Files
crater/public/assets/js/app.js
Sebastian Cretu cfc0a1ef75 Regenerated assets
2021-02-05 20:53:34 +01:00

2 lines
3.6 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see app.js.LICENSE.txt */
(()=>{var e={7757:(e,t,n)=>{e.exports=n(5666)},9381:function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return 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 a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));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="fb15")}({"00ee":function(e,t,n){var r={};r[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(r)},"00fd":function(e,t,n){var r=n("9e69"),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[s]=n:delete e[s]),a}},"010e":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"02fb":function(e,t,n){!function(e){"use strict";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,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n("c1df"))},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},"03dd":function(e,t,n){var r=n("eac5"),a=n("57a5"),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},"03ec":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"0558":function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,a){var i=e+" ";switch(r){case"s":return n||a?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(n||a?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?i+(n||a?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(n||a?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":a?"dag":"degi";case"dd":return t(e)?n?i+"dagar":i+(a?"daga":"dögum"):n?i+"dagur":i+(a?"dag":"degi");case"M":return n?"mánuður":a?"mánuð":"mánuði";case"MM":return t(e)?n?i+"mánuðir":i+(a?"mánuði":"mánuðum"):n?i+"mánuður":i+(a?"mánuð":"mánuði");case"y":return n||a?"ár":"ári";case"yy":return t(e)?i+(n||a?"ár":"árum"):i+(n||a?"ár":"ári")}}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:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"057f":function(e,t,n){var r=n("fc6a"),a=n("241c").f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?function(e){try{return a(e)}catch(e){return o.slice()}}(e):a(r(e))}},"06cf":function(e,t,n){var r=n("83ab"),a=n("d1e7"),i=n("5c6c"),o=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return i(!a.f.call(e,t),e[t])}},"0721":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"073e":function(e,t,n){"use strict";var r=n("5dbe"),a=i(Error);function i(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=r.apply(null,arguments)),new e(t)}}e.exports=a,a.eval=i(EvalError),a.range=i(RangeError),a.reference=i(ReferenceError),a.syntax=i(SyntaxError),a.type=i(TypeError),a.uri=i(URIError),a.create=i},"079e":function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},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:"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,n){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"y":return 1===e?"元年":e+"年";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年"}})}(n("c1df"))},"07c7":function(e,t){e.exports=function(){return!1}},"087d":function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},"0a3c":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(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;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,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:r,longMonthsParse:r,shortMonthsParse:r,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",w:"una semana",ww:"%d semanas",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}})}(n("c1df"))},"0a84":function(e,t,n){!function(e){"use strict";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:1,doy:4}})}(n("c1df"))},"0ac0":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return D})),n.d(t,"g",(function(){return k})),n.d(t,"h",(function(){return C})),n.d(t,"i",(function(){return w})),n.d(t,"j",(function(){return S})),n.d(t,"k",(function(){return b}));var r=n("304a"),a=Math.pow(2,16);function i(e){return 65535&e}var o=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},s=function(e,t){void 0===t&&(t=!1),this.ranges=e,this.inverted=t};s.prototype.recover=function(e){var t=0,n=i(e);if(!this.inverted)for(var r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/a}(e)},s.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},s.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},s.prototype._map=function(e,t,n){for(var r=0,i=this.inverted?2:1,s=this.inverted?1:2,l=0;l<this.ranges.length;l+=3){var c=this.ranges[l]-(this.inverted?r:0);if(c>e)break;var u=this.ranges[l+i],d=this.ranges[l+s],p=c+u;if(e<=p){var m=c+r+((u?e==c?-1:e==p?1:t:t)<0?0:d);if(n)return m;var f=e==(t<0?c:p)?null:l/3+(e-c)*a;return new o(m,t<0?e!=c:e!=p,f)}r+=d-u}return n?e+r:new o(e+r)},s.prototype.touches=function(e,t){for(var n=0,r=i(t),a=this.inverted?2:1,o=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var l=this.ranges[s]-(this.inverted?n:0);if(l>e)break;var c=this.ranges[s+a];if(e<=l+c&&s==3*r)return!0;n+=this.ranges[s+o]-c}return!1},s.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,a=0;r<this.ranges.length;r+=3){var i=this.ranges[r],o=i-(this.inverted?a:0),s=i+(this.inverted?0:a),l=this.ranges[r+t],c=this.ranges[r+n];e(o,o+l,s,s+c),a+=c-l}},s.prototype.invert=function(){return new s(this.ranges,!this.inverted)},s.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},s.offset=function(e){return 0==e?s.empty:new s(e<0?[0,-e,0]:[0,0,e])},s.empty=new s([]);var l=function(e,t,n,r){this.maps=e||[],this.from=n||0,this.to=null==r?this.maps.length:r,this.mirror=t};function c(e){var t=Error.call(this,e);return t.__proto__=c.prototype,t}l.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new l(this.maps,this.mirror,e,t)},l.prototype.copy=function(){return new l(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},l.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},l.prototype.appendMapping=function(e){for(var t=0,n=this.maps.length;t<e.maps.length;t++){var r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:null)}},l.prototype.getMirror=function(e){if(this.mirror)for(var t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]},l.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},l.prototype.appendMappingInverted=function(e){for(var t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){var r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:null)}},l.prototype.invert=function(){var e=new l;return e.appendMappingInverted(this),e},l.prototype.map=function(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e},l.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},l.prototype._map=function(e,t,n){for(var r=!1,a=this.from;a<this.to;a++){var i=this.maps[a].mapResult(e,t);if(null!=i.recover){var s=this.getMirror(a);if(null!=s&&s>a&&s<this.to){a=s,e=this.maps[s].recover(i.recover);continue}}i.deleted&&(r=!0),e=i.pos}return n?e:new o(e,r)},c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.prototype.name="TransformError";var u=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new l},d={before:{configurable:!0},docChanged:{configurable:!0}};function p(){throw new Error("Override me")}d.before.get=function(){return this.docs.length?this.docs[0]:this.doc},u.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new c(t.failed);return this},u.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},d.docChanged.get=function(){return this.steps.length>0},u.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(u.prototype,d);var m=Object.create(null),f=function(){};f.prototype.apply=function(e){return p()},f.prototype.getMap=function(){return s.empty},f.prototype.invert=function(e){return p()},f.prototype.map=function(e){return p()},f.prototype.merge=function(e){return null},f.prototype.toJSON=function(){return p()},f.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=m[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},f.jsonID=function(e,t){if(e in m)throw new RangeError("Duplicate use of step JSON ID "+e);return m[e]=t,t.prototype.jsonID=e,t};var h=function(e,t){this.doc=e,this.failed=t};h.ok=function(e){return new h(e,null)},h.fail=function(e){return new h(null,e)},h.fromReplace=function(e,t,n,a){try{return h.ok(e.replace(t,n,a))}catch(e){if(e instanceof r.ReplaceError)return h.fail(e.message);throw e}};var _=function(e){function t(t,n,r,a){e.call(this),this.from=t,this.to=n,this.slice=r,this.structure=!!a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){return this.structure&&g(e,this.from,this.to)?h.fail("Structure replace would overwrite content"):h.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new s([this.from,this.to-this.from,this.slice.size])},t.prototype.invert=function(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted?null:new t(n.pos,Math.max(n.pos,r.pos),this.slice)},t.prototype.merge=function(e){if(!(e instanceof t)||e.structure!=this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var n=this.slice.size+e.slice.size==0?r.Slice.empty:new r.Slice(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}var a=this.slice.size+e.slice.size==0?r.Slice.empty:new r.Slice(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),a,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,r.Slice.fromJSON(e,n.slice),!!n.structure)},t}(f);f.jsonID("replace",_);var v=function(e){function t(t,n,r,a,i,o,s){e.call(this),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=a,this.slice=i,this.insert=o,this.structure=!!s}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){if(this.structure&&(g(e,this.from,this.gapFrom)||g(e,this.gapTo,this.to)))return h.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return h.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?h.fromReplace(e,this.from,this.to,n):h.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new s([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},t.prototype.invert=function(e){var n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),a=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deleted&&r.deleted||a<n.pos||i>r.pos?null:new t(n.pos,r.pos,a,i,this.slice,this.insert,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,r.Slice.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(f);function g(e,t,n){for(var r=e.resolve(t),a=n-t,i=r.depth;a>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,a--;if(a>0)for(var o=r.node(i).maybeChild(r.indexAfter(i));a>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,a--}return!1}function y(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function b(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth;;--n){var r=e.$from.node(n),a=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(a,i,t))return n;if(0==n||r.type.spec.isolating||!y(r,a,i))break}}function w(e,t,n,r){void 0===r&&(r=e);var a=function(e,t){var n=e.parent,r=e.startIndex,a=e.endIndex,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;var o=i.length?i[0]:t;return n.canReplaceWith(r,a,o)?i:null}(e,t),i=a&&function(e,t){var n=e.parent,r=e.startIndex,a=e.endIndex,i=n.child(r),o=t.contentMatch.findWrapping(i.type);if(!o)return null;for(var s=(o.length?o[o.length-1]:t).contentMatch,l=r;s&&l<a;l++)s=s.matchType(n.child(l).type);return s&&s.validEnd?o:null}(r,t);return i?a.map(x).concat({type:t,attrs:n}).concat(i.map(x)):null}function x(e){return{type:e,attrs:null}}function k(e,t,n,r){void 0===n&&(n=1);var a=e.resolve(t),i=a.depth-n,o=r&&r[r.length-1]||a.parent;if(i<0||a.parent.type.spec.isolating||!a.parent.canReplace(a.index(),a.parent.childCount)||!o.type.validContent(a.parent.content.cutByIndex(a.index(),a.parent.childCount)))return!1;for(var s=a.depth-1,l=n-2;s>i;s--,l--){var c=a.node(s),u=a.index(s);if(c.type.spec.isolating)return!1;var d=c.content.cutByIndex(u,c.childCount),p=r&&r[l]||c;if(p!=c&&(d=d.replaceChild(0,p.type.create(p.attrs))),!c.canReplace(u+1,c.childCount)||!p.type.validContent(d))return!1}var m=a.indexAfter(i),f=r&&r[0];return a.node(i).canReplaceWith(m,m,f?f.type:a.node(i+1).type)}function D(e,t){var n=e.resolve(t),r=n.index();return M(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function M(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function S(e,t,n){void 0===n&&(n=-1);for(var r=e.resolve(t),a=r.depth;;a--){var i=void 0,o=void 0,s=r.index(a);if(a==r.depth?(i=r.nodeBefore,o=r.nodeAfter):n>0?(i=r.node(a+1),s++,o=r.node(a).maybeChild(s)):(i=r.node(a).maybeChild(s-1),o=r.node(a+1)),i&&!i.isTextblock&&M(i,o)&&r.node(a).canReplace(s,s+1))return t;if(0==a)break;t=n<0?r.before(a):r.after(a)}}function C(e,t,n){var r=e.resolve(t);if(!n.content.size)return t;for(var a=n.content,i=0;i<n.openStart;i++)a=a.firstChild.content;for(var o=1;o<=(0==n.openStart&&n.size?2:1);o++)for(var s=r.depth;s>=0;s--){var l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,c=r.index(s)+(l>0?1:0);if(1==o?r.node(s).canReplace(c,c,a):r.node(s).contentMatchAt(c).findWrapping(a.firstChild.type))return 0==l?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function L(e,t,n){for(var a=[],i=0;i<e.childCount;i++){var o=e.child(i);o.content.size&&(o=o.copy(L(o.content,t,o))),o.isInline&&(o=t(o,n,i)),a.push(o)}return r.Fragment.fromArray(a)}f.jsonID("replaceAround",v),u.prototype.lift=function(e,t){for(var n=e.$from,a=e.$to,i=e.depth,o=n.before(i+1),s=a.after(i+1),l=o,c=s,u=r.Fragment.empty,d=0,p=i,m=!1;p>t;p--)m||n.index(p)>0?(m=!0,u=r.Fragment.from(n.node(p).copy(u)),d++):l--;for(var f=r.Fragment.empty,h=0,_=i,g=!1;_>t;_--)g||a.after(_+1)<a.end(_)?(g=!0,f=r.Fragment.from(a.node(_).copy(f)),h++):c++;return this.step(new v(l,c,o,s,new r.Slice(u.append(f),d,h),u.size-d,!0))},u.prototype.wrap=function(e,t){for(var n=r.Fragment.empty,a=t.length-1;a>=0;a--)n=r.Fragment.from(t[a].type.create(t[a].attrs,n));var i=e.start,o=e.end;return this.step(new v(i,o,i,o,new r.Slice(n,0,0),t.length,!0))},u.prototype.setBlockType=function(e,t,n,a){var i=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var o=this.steps.length;return this.doc.nodesBetween(e,t,(function(e,t){if(e.isTextblock&&!e.hasMarkup(n,a)&&function(e,t,n){var r=e.resolve(t),a=r.index();return r.parent.canReplaceWith(a,a+1,n)}(i.doc,i.mapping.slice(o).map(t),n)){i.clearIncompatible(i.mapping.slice(o).map(t,1),n);var s=i.mapping.slice(o),l=s.map(t,1),c=s.map(t+e.nodeSize,1);return i.step(new v(l,c,l+1,c-1,new r.Slice(r.Fragment.from(n.create(a,null,e.marks)),0,0),1,!0)),!1}})),this},u.prototype.setNodeMarkup=function(e,t,n,a){var i=this.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);var o=t.create(n,null,a||i.marks);if(i.isLeaf)return this.replaceWith(e,e+i.nodeSize,o);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new v(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new r.Slice(r.Fragment.from(o),0,0),1,!0))},u.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var a=this.doc.resolve(e),i=r.Fragment.empty,o=r.Fragment.empty,s=a.depth,l=a.depth-t,c=t-1;s>l;s--,c--){i=r.Fragment.from(a.node(s).copy(i));var u=n&&n[c];o=r.Fragment.from(u?u.type.create(u.attrs,o):a.node(s).copy(o))}return this.step(new _(e,e,new r.Slice(i.append(o),t,t),!0))},u.prototype.join=function(e,t){void 0===t&&(t=1);var n=new _(e-t,e+t,r.Slice.empty,!0);return this.step(n)};var T=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),a=e.resolve(this.from),i=a.node(a.sharedDepth(this.to)),o=new r.Slice(L(n.content,(function(e,n){return n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e}),i),n.openStart,n.openEnd);return h.fromReplace(e,this.from,this.to,o)},t.prototype.invert=function(){return new O(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(f);f.jsonID("addMark",T);var O=function(e){function t(t,n,r){e.call(this),this.from=t,this.to=n,this.mark=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),a=new r.Slice(L(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return h.fromReplace(e,this.from,this.to,a)},t.prototype.invert=function(){return new T(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new t(n.pos,r.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(f);function E(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}f.jsonID("removeMark",O),u.prototype.addMark=function(e,t,n){var r=this,a=[],i=[],o=null,s=null;return this.doc.nodesBetween(e,t,(function(r,l,c){if(r.isInline){var u=r.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){for(var d=Math.max(l,e),p=Math.min(l+r.nodeSize,t),m=n.addToSet(u),f=0;f<u.length;f++)u[f].isInSet(m)||(o&&o.to==d&&o.mark.eq(u[f])?o.to=p:a.push(o=new O(d,p,u[f])));s&&s.to==d?s.to=p:i.push(s=new T(d,p,n))}}})),a.forEach((function(e){return r.step(e)})),i.forEach((function(e){return r.step(e)})),this},u.prototype.removeMark=function(e,t,n){var a=this;void 0===n&&(n=null);var i=[],o=0;return this.doc.nodesBetween(e,t,(function(a,s){if(a.isInline){o++;var l=null;if(n instanceof r.MarkType){var c=n.isInSet(a.marks);c&&(l=[c])}else n?n.isInSet(a.marks)&&(l=[n]):l=a.marks;if(l&&l.length)for(var u=Math.min(s+a.nodeSize,t),d=0;d<l.length;d++){for(var p=l[d],m=void 0,f=0;f<i.length;f++){var h=i[f];h.step==o-1&&p.eq(i[f].style)&&(m=h)}m?(m.to=u,m.step=o):i.push({style:p,from:Math.max(s,e),to:u,step:o})}}})),i.forEach((function(e){return a.step(new O(e.from,e.to,e.style))})),this},u.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var a=this.doc.nodeAt(e),i=[],o=e+1,s=0;s<a.childCount;s++){var l=a.child(s),c=o+l.nodeSize,u=n.matchType(l.type,l.attrs);if(u){n=u;for(var d=0;d<l.marks.length;d++)t.allowsMarkType(l.marks[d].type)||this.step(new O(o,c,l.marks[d]))}else i.push(new _(o,c,r.Slice.empty));o=c}if(!n.validEnd){var p=n.fillBefore(r.Fragment.empty,!0);this.replace(o,o,new r.Slice(p,0,0))}for(var m=i.length-1;m>=0;m--)this.step(i[m]);return this},u.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=r.Slice.empty);var a=function(e,t,n,a){if(void 0===n&&(n=t),void 0===a&&(a=r.Slice.empty),t==n&&!a.size)return null;var i=e.resolve(t),o=e.resolve(n);return E(i,o,a)?new _(t,n,a):new A(i,o,a).fit()}(this.doc,e,t,n);return a&&this.step(a),this},u.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new r.Slice(r.Fragment.from(n),0,0))},u.prototype.delete=function(e,t){return this.replace(e,t,r.Slice.empty)},u.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var A=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var a=0;a<=e.depth;a++){var i=e.node(a);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(a))})}this.placed=r.Fragment.empty;for(var o=e.depth;o>0;o--)this.placed=r.Fragment.from(e.node(o).copy(this.placed))},j={depth:{configurable:!0}};function $(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy($(e.firstChild.content,t-1,n)))}function P(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(P(e.lastChild.content,t-1,n)))}function Y(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function N(e,t,n){if(t<=0)return e;var a=e.content;return t>1&&(a=a.replaceChild(0,N(a.firstChild,t-1,1==a.childCount?n-1:0))),t>0&&(a=e.type.contentMatch.fillBefore(a).append(a),n<=0&&(a=a.append(e.type.contentMatch.matchFragment(a).fillBefore(r.Fragment.empty,!0)))),e.copy(a)}function z(e,t,n,r,a){var i=e.node(t),o=a?e.indexAfter(t):e.index(t);if(o==i.childCount&&!n.compatibleContent(i.type))return null;var s=r.fillBefore(i.content,!0,o);return s&&!function(e,t,n){for(var r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,o)?s:null}function I(e,t,n,a,i){if(t<n){var o=e.firstChild;e=e.replaceChild(0,o.copy(I(o.content,t+1,n,a,o)))}if(t>a){var s=i.contentMatchAt(0),l=s.fillBefore(e).append(e);e=l.append(s.matchFragment(l).fillBefore(r.Fragment.empty,!0))}return e}function F(e,t){for(var n=[],r=Math.min(e.depth,t.depth);r>=0;r--){var a=e.start(r);if(a<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;a==t.start(r)&&n.push(r)}return n}j.depth.get=function(){return this.frontier.length-1},A.prototype.fit=function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,a=this.$from,i=this.close(t<0?this.$to:a.doc.resolve(t));if(!i)return null;for(var o=this.placed,s=a.depth,l=i.depth;s&&l&&1==o.childCount;)o=o.firstChild.content,s--,l--;var c=new r.Slice(o,s,l);return t>-1?new v(a.pos,t,this.$to.pos,this.$to.end(),c,n):c.size||a.pos!=this.$to.pos?new _(a.pos,i.pos,c):void 0},A.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,a=(t?(n=Y(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,i=this.depth;i>=0;i--){var o=this.frontier[i],s=o.type,l=o.match,c=void 0,u=void 0;if(1==e&&(a?l.matchType(a.type)||(u=l.fillBefore(r.Fragment.from(a),!1)):s.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:i,parent:n,inject:u};if(2==e&&a&&(c=l.findWrapping(a.type)))return{sliceDepth:t,frontierDepth:i,parent:n,wrap:c};if(n&&l.matchType(n.type))break}},A.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,a=e.openEnd,i=Y(t,n);return!(!i.childCount||i.firstChild.isLeaf||(this.unplaced=new r.Slice(t,n+1,Math.max(a,i.size+n>=t.size-a?n+1:0)),0))},A.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,a=e.openEnd,i=Y(t,n);if(i.childCount<=1&&n>0){var o=t.size-n<=n+i.size;this.unplaced=new r.Slice($(t,n-1,1),n-1,o?n-1:a)}else this.unplaced=new r.Slice($(t,n,1),n,a)},A.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,a=e.parent,i=e.inject,o=e.wrap;this.depth>n;)this.closeFrontierNode();if(o)for(var s=0;s<o.length;s++)this.openFrontierNode(o[s]);var l=this.unplaced,c=a?a.content:l.content,u=l.openStart-t,d=0,p=[],m=this.frontier[n],f=m.match,h=m.type;if(i){for(var _=0;_<i.childCount;_++)p.push(i.child(_));f=f.matchFragment(i)}for(var v=c.size+t-(l.content.size-l.openEnd);d<c.childCount;){var g=c.child(d),y=f.matchType(g.type);if(!y)break;(++d>1||0==u||g.content.size)&&(f=y,p.push(N(g.mark(h.allowedMarks(g.marks)),1==d?u:0,d==c.childCount?v:-1)))}var b=d==c.childCount;b||(v=-1),this.placed=P(this.placed,n,r.Fragment.from(p)),this.frontier[n].match=f,b&&v<0&&a&&a.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var w=0,x=c;w<v;w++){var k=x.lastChild;this.frontier.push({type:k.type,match:k.contentMatchAt(k.childCount)}),x=k.content}this.unplaced=b?0==t?r.Slice.empty:new r.Slice($(l.content,t-1,1),t-1,v<0?l.openEnd:t-1):new r.Slice($(l.content,t,d),l.openStart,l.openEnd)},A.prototype.mustMoveInline=function(){if(!this.$to.parent.isTextblock||this.$to.end()==this.$to.pos)return-1;var e,t=this.frontier[this.depth];if(!t.type.isTextblock||!z(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;for(var n=this.$to.depth,r=this.$to.after(n);n>1&&r==this.$to.end(--n);)++r;return r},A.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,a=n.type,i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=z(e,t,a,r,i);if(o){for(var s=t-1;s>=0;s--){var l=this.frontier[s],c=l.match,u=z(e,s,l.type,c,!0);if(!u||u.childCount)continue e}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}},A.prototype.close=function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=P(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var r=e.node(n),a=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,a)}return e},A.prototype.openFrontierNode=function(e,t,n){var a=this.frontier[this.depth];a.match=a.match.matchType(e),this.placed=P(this.placed,this.depth,r.Fragment.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},A.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(r.Fragment.empty,!0);e.childCount&&(this.placed=P(this.placed,this.frontier.length,e))},Object.defineProperties(A.prototype,j),u.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var a=this.doc.resolve(e),i=this.doc.resolve(t);if(E(a,i,n))return this.step(new _(e,t,n));var o=F(a,this.doc.resolve(t));0==o[o.length-1]&&o.pop();var s=-(a.depth+1);o.unshift(s);for(var l=a.depth,c=a.pos-1;l>0;l--,c--){var u=a.node(l).type.spec;if(u.defining||u.isolating)break;o.indexOf(l)>-1?s=l:a.before(l)==c&&o.splice(1,0,-l)}for(var d=o.indexOf(s),p=[],m=n.openStart,f=n.content,h=0;;h++){var v=f.firstChild;if(p.push(v),h==n.openStart)break;f=v.content}m>0&&p[m-1].type.spec.defining&&a.node(d).type!=p[m-1].type?m-=1:m>=2&&p[m-1].isTextblock&&p[m-2].type.spec.defining&&a.node(d).type!=p[m-2].type&&(m-=2);for(var g=n.openStart;g>=0;g--){var y=(g+m+1)%(n.openStart+1),b=p[y];if(b)for(var w=0;w<o.length;w++){var x=o[(w+d)%o.length],k=!0;x<0&&(k=!1,x=-x);var D=a.node(x-1),M=a.index(x-1);if(D.canReplaceWith(M,M,b.type,b.marks))return this.replace(a.before(x),k?i.after(x):t,new r.Slice(I(n.content,0,n.openStart,y),y,n.openEnd))}}for(var S=this.steps.length,C=o.length-1;C>=0&&(this.replace(e,t,n),!(this.steps.length>S));C--){var L=o[C];C<0||(e=a.before(L),t=i.after(L))}return this},u.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var a=function(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var a=r.depth-1;a>=0;a--){var i=r.index(a);if(r.node(a).canReplaceWith(i,i,n))return r.before(a+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(var o=r.depth-1;o>=0;o--){var s=r.indexAfter(o);if(r.node(o).canReplaceWith(s,s,n))return r.after(o+1);if(s<r.node(o).childCount)return null}}(this.doc,e,n.type);null!=a&&(e=t=a)}return this.replaceRange(e,t,new r.Slice(r.Fragment.from(n),0,0))},u.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),r=this.doc.resolve(t),a=F(n,r),i=0;i<a.length;i++){var o=a[i],s=i==a.length-1;if(s&&0==o||n.node(o).type.contentMatch.validEnd)return this.delete(n.start(o),r.end(o));if(o>0&&(s||n.node(o-1).canReplace(n.index(o-1),r.indexAfter(o-1))))return this.delete(n.before(o),r.after(o))}for(var l=1;l<=n.depth&&l<=r.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&r.end(l)-t!=r.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)}},"0b07":function(e,t,n){var r=n("34ac"),a=n("3698");e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},"0caa":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?a[n][0]:a[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_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 Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] 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:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n("c1df"))},"0cfb":function(e,t,n){var r=n("83ab"),a=n("d039"),i=n("cc12");e.exports=!r&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0d24":function(e,t,n){(function(e){var r=n("2b3e"),a=n("07c7"),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l}).call(this,n("62e4")(e))},"0e49":function(e,t,n){!function(e){"use strict";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:"[Aujourdhui à] 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}})}(n("c1df"))},"0e6b":function(e,t,n){!function(e){"use strict";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:0,doy:4}})}(n("c1df"))},"0e81":function(e,t,n){!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ı"};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("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},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",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10,a=e%100-r,i=e>=100?100:null;return e+(t[r]||t[a]||t[i])}},week:{dow:1,doy:7}})}(n("c1df"))},"0f14":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"0f38":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"0ff2":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"100e":function(e,t,n){var r=n("cd9d"),a=n("2286"),i=n("c1c9");e.exports=function(e,t){return i(a(e,t,r),e+"")}},1020:function(e,t){function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var r=e[t];"object"!=typeof r||Object.isFrozen(r)||n(r)})),e}var r=n,a=n;r.default=a;class i{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function o(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}function l(e){return e.nodeName.toLowerCase()}var c=Object.freeze({__proto__:null,escapeHTML:o,inherit:s,nodeStream:function(e){const t=[];return function e(n,r){for(let a=n.firstChild;a;a=a.nextSibling)3===a.nodeType?r+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:r,node:a}),r=e(a,r),l(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:a}));return r}(e,0),t},mergeStreams:function(e,t,n){let r=0,a="";const i=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function c(e){a+="<"+l(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+o(e.value)+'"'})).join("")+">"}function u(e){a+="</"+l(e)+">"}function d(e){("start"===e.event?c:u)(e.node)}for(;e.length||t.length;){let t=s();if(a+=o(n.substring(r,t[0].offset)),r=t[0].offset,t===e){i.reverse().forEach(u);do{d(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===r);i.reverse().forEach(c)}else"start"===t[0].event?i.push(t[0].node):i.pop(),d(t.splice(0,1)[0])}return a+o(n.substr(r))}});const u=e=>!!e.kind;class d{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=o(e)}openNode(e){if(!u(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){u(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class p{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{p._collapse(e)})))}}class m extends p{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new d(this,this.options).value()}finalize(){return!0}}function f(e){return e?"string"==typeof e?e:e.source:null}const h="[a-zA-Z]\\w*",_="[a-zA-Z_]\\w*",v="\\b\\d+(\\.\\d+)?",g="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",y="\\b(0b[01]+)",b={begin:"\\\\[\\s\\S]",relevance:0},w={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[b]},x={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[b]},k={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},D=function(e,t,n={}){const r=s({className:"comment",begin:e,end:t,contains:[]},n);return r.contains.push(k),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},M=D("//","$"),S=D("/\\*","\\*/"),C=D("#","$"),L={className:"number",begin:v,relevance:0},T={className:"number",begin:g,relevance:0},O={className:"number",begin:y,relevance:0},E={className:"number",begin:v+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},A={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[b,{begin:/\[/,end:/\]/,relevance:0,contains:[b]}]}]},j={className:"title",begin:h,relevance:0},$={className:"title",begin:_,relevance:0},P={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var Y=Object.freeze({__proto__:null,IDENT_RE:h,UNDERSCORE_IDENT_RE:_,NUMBER_RE:v,C_NUMBER_RE:g,BINARY_NUMBER_RE:y,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map((e=>f(e))).join("")}(t,/.*\b/,e.binary,/\b.*/)),s({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:b,APOS_STRING_MODE:w,QUOTE_STRING_MODE:x,PHRASAL_WORDS_MODE:k,COMMENT:D,C_LINE_COMMENT_MODE:M,C_BLOCK_COMMENT_MODE:S,HASH_COMMENT_MODE:C,NUMBER_MODE:L,C_NUMBER_MODE:T,BINARY_NUMBER_MODE:O,CSS_NUMBER_MODE:E,REGEXP_MODE:A,TITLE_MODE:j,UNDERSCORE_TITLE_MODE:$,METHOD_GUARD:P,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});const N=["of","and","for","in","not","or","if","then","parent","list","value"];function z(e){function t(t,n){return new RegExp(f(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(function(e,t="|"){const n=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;let r=0,a="";for(let i=0;i<e.length;i++){r+=1;const o=r;let s=f(e[i]);for(i>0&&(a+=t),a+="(";s.length>0;){const e=n.exec(s);if(null==e){a+=s;break}a+=s.substring(0,e.index),s=s.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+String(Number(e[1])+o):(a+=e[0],"("===e[0]&&r++)}a+=")"}return a}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function a(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}if(e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=s(e.classNameAliases||{}),function n(i,o){const l=i;if(i.compiled)return l;i.compiled=!0,i.__beforeBegin=null,i.keywords=i.keywords||i.beginKeywords;let c=null;if("object"==typeof i.keywords&&(c=i.keywords.$pattern,delete i.keywords.$pattern),i.keywords&&(i.keywords=function(e,t){const n={};return"string"==typeof e?r("keyword",e):Object.keys(e).forEach((function(t){r(t,e[t])})),n;function r(e,r){t&&(r=r.toLowerCase()),r.split(" ").forEach((function(t){const r=t.split("|");n[r[0]]=[e,F(r[0],r[1])]}))}}(i.keywords,e.case_insensitive)),i.lexemes&&c)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return l.keywordPatternRe=t(i.lexemes||c||/\w+/,!0),o&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",i.__beforeBegin=a),i.begin||(i.begin=/\B|\b/),l.beginRe=t(i.begin),i.endSameAsBegin&&(i.end=i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(l.endRe=t(i.end)),l.terminator_end=f(i.end)||"",i.endsWithParent&&o.terminator_end&&(l.terminator_end+=(i.end?"|":"")+o.terminator_end)),i.illegal&&(l.illegalRe=t(i.illegal)),void 0===i.relevance&&(i.relevance=1),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(t){return s(e,{variants:null},t)}))),e.cached_variants?e.cached_variants:I(e)?s(e,{starts:e.starts?s(e.starts):null}):Object.isFrozen(e)?s(e):e}("self"===e?i:e)}))),i.contains.forEach((function(e){n(e,l)})),i.starts&&n(i.starts,o),l.matcher=function(e){const t=new r;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminator_end&&t.addRule(e.terminator_end,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(l),l}(e)}function I(e){return!!e&&(e.endsWithParent||I(e.starts))}function F(e,t){return t?Number(t):function(e){return N.includes(e.toLowerCase())}(e)?0:1}function H(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,o(this.code);let t;return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const R=o,B=s,{nodeStream:q,mergeStreams:V}=c,W=Symbol("nomatch");var U=function(e){const t=[],n=Object.create(null),a=Object.create(null),o=[];let s=!0;const l=/(^(<[^>]+>|\t|)+|\n)/gm,c="Could not find the language '{}', did you forget to load/include a language module?",u={disableAutodetect:!0,name:"Plain text",contains:[]};let d={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:m};function p(e){return d.noHighlightRe.test(e)}function f(e,t,n,r){const a={code:t,language:e};k("before:highlight",a);const i=a.result?a.result:h(a.language,a.code,n,r);return i.code=a.code,k("after:highlight",i),i}function h(e,t,r,a){const o=t;function l(e,t){const n=x.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function u(){null!=M.subLanguage?function(){if(""===L)return;let e=null;if("string"==typeof M.subLanguage){if(!n[M.subLanguage])return void C.addText(L);e=h(M.subLanguage,L,!0,S[M.subLanguage]),S[M.subLanguage]=e.top}else e=_(L,M.subLanguage.length?M.subLanguage:null);M.relevance>0&&(T+=e.relevance),C.addSublanguage(e.emitter,e.language)}():function(){if(!M.keywords)return void C.addText(L);let e=0;M.keywordPatternRe.lastIndex=0;let t=M.keywordPatternRe.exec(L),n="";for(;t;){n+=L.substring(e,t.index);const r=l(M,t);if(r){const[e,a]=r;C.addText(n),n="",T+=a;const i=x.classNameAliases[e]||e;C.addKeyword(t[0],i)}else n+=t[0];e=M.keywordPatternRe.lastIndex,t=M.keywordPatternRe.exec(L)}n+=L.substr(e),C.addText(n)}(),L=""}function p(e){return e.className&&C.openNode(x.classNameAliases[e.className]||e.className),M=Object.create(e,{parent:{value:M}}),M}function m(e,t,n){let r=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,n);if(r){if(e["on:end"]){const n=new i(e);e["on:end"](t,n),n.ignore&&(r=!1)}if(r){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return m(e.parent,t,n)}function f(e){return 0===M.matcher.regexIndex?(L+=e[0],1):(A=!0,0)}function v(e){const t=e[0],n=e.rule,r=new i(n),a=[n.__beforeBegin,n["on:begin"]];for(const n of a)if(n&&(n(e,r),r.ignore))return f(t);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?L+=t:(n.excludeBegin&&(L+=t),u(),n.returnBegin||n.excludeBegin||(L=t)),p(n),n.returnBegin?0:t.length}function g(e){const t=e[0],n=o.substr(e.index),r=m(M,e,n);if(!r)return W;const a=M;a.skip?L+=t:(a.returnEnd||a.excludeEnd||(L+=t),u(),a.excludeEnd&&(L=t));do{M.className&&C.closeNode(),M.skip||M.subLanguage||(T+=M.relevance),M=M.parent}while(M!==r.parent);return r.starts&&(r.endSameAsBegin&&(r.starts.endRe=r.endRe),p(r.starts)),a.returnEnd?0:t.length}let y={};function w(t,n){const a=n&&n[0];if(L+=t,null==a)return u(),0;if("begin"===y.type&&"end"===n.type&&y.index===n.index&&""===a){if(L+=o.slice(n.index,n.index+1),!s){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=y.rule,t}return 1}if(y=n,"begin"===n.type)return v(n);if("illegal"===n.type&&!r){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(M.className||"<unnamed>")+'"');throw e.mode=M,e}if("end"===n.type){const e=g(n);if(e!==W)return e}if("illegal"===n.type&&""===a)return 1;if(E>1e5&&E>3*n.index)throw new Error("potential infinite loop, way more iterations than matches");return L+=a,a.length}const x=b(e);if(!x)throw console.error(c.replace("{}",e)),new Error('Unknown language: "'+e+'"');const k=z(x);let D="",M=a||k;const S={},C=new d.__emitter(d);!function(){const e=[];for(let t=M;t!==x;t=t.parent)t.className&&e.unshift(t.className);e.forEach((e=>C.openNode(e)))}();let L="",T=0,O=0,E=0,A=!1;try{for(M.matcher.considerAll();;){E++,A?A=!1:M.matcher.considerAll(),M.matcher.lastIndex=O;const e=M.matcher.exec(o);if(!e)break;const t=w(o.substring(O,e.index),e);O=e.index+t}return w(o.substr(O)),C.closeAllNodes(),C.finalize(),D=C.toHTML(),{relevance:T,value:D,language:e,illegal:!1,emitter:C,top:M}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:o.slice(O-100,O+100),mode:t.mode},sofar:D,relevance:0,value:R(o),emitter:C};if(s)return{illegal:!1,relevance:0,value:R(o),emitter:C,language:e,top:M,errorRaised:t};throw t}}function _(e,t){t=t||d.languages||Object.keys(n);const r=function(e){const t={relevance:0,emitter:new d.__emitter(d),value:R(e),illegal:!1,top:u};return t.emitter.addText(e),t}(e),a=t.filter(b).filter(x).map((t=>h(t,e,!1)));a.unshift(r);const i=a.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(b(e.language).supersetOf===t.language)return 1;if(b(t.language).supersetOf===e.language)return-1}return 0})),[o,s]=i,l=o;return l.second_best=s,l}function v(e){return d.tabReplace||d.useBR?e.replace(l,(e=>"\n"===e?d.useBR?"<br>":e:d.tabReplace?e.replace(/\t/g,d.tabReplace):e)):e}function g(e){let t=null;const n=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=d.languageDetectRe.exec(t);if(n){const t=b(n[1]);return t||(console.warn(c.replace("{}",n[1])),console.warn("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>p(e)||b(e)))}(e);if(p(n))return;k("before:highlightBlock",{block:e,language:n}),d.useBR?(t=document.createElement("div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n")):t=e;const r=t.textContent,i=n?f(n,r,!0):_(r),o=q(t);if(o.length){const e=document.createElement("div");e.innerHTML=i.value,i.value=V(o,q(e),r)}i.value=v(i.value),k("after:highlightBlock",{block:e,result:i}),e.innerHTML=i.value,e.className=function(e,t,n){const r=t?a[t]:n,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),e.includes(r)||i.push(r),i.join(" ").trim()}(e.className,n,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const y=()=>{if(y.called)return;y.called=!0;const e=document.querySelectorAll("pre code");t.forEach.call(e,g)};function b(e){return e=(e||"").toLowerCase(),n[e]||n[a[e]]}function w(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{a[e]=t}))}function x(e){const t=b(e);return t&&!t.disableAutodetect}function k(e,t){const n=e;o.forEach((function(e){e[n]&&e[n](t)}))}Object.assign(e,{highlight:f,highlightAuto:_,fixMarkup:function(e){return console.warn("fixMarkup is deprecated and will be removed entirely in v11.0"),console.warn("Please see https://github.com/highlightjs/highlight.js/issues/2534"),v(e)},highlightBlock:g,configure:function(e){e.useBR&&(console.warn("'useBR' option is deprecated and will be removed entirely in v11.0"),console.warn("Please see https://github.com/highlightjs/highlight.js/issues/2559")),d=B(d,e)},initHighlighting:y,initHighlightingOnLoad:function(){window.addEventListener("DOMContentLoaded",y,!1)},registerLanguage:function(t,r){let a=null;try{a=r(e)}catch(e){if(console.error("Language definition for '{}' could not be registered.".replace("{}",t)),!s)throw e;console.error(e),a=u}a.name||(a.name=t),n[t]=a,a.rawDefinition=r.bind(null,e),a.aliases&&w(a.aliases,{languageName:t})},listLanguages:function(){return Object.keys(n)},getLanguage:b,registerAliases:w,requireLanguage:function(e){console.warn("requireLanguage is deprecated and will be removed entirely in the future."),console.warn("Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=b(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:x,inherit:B,addPlugin:function(e){o.push(e)},vuePlugin:H(e).VuePlugin}),e.debugMode=function(){s=!1},e.safeMode=function(){s=!0},e.versionString="10.4.0";for(const e in Y)"object"==typeof Y[e]&&r(Y[e]);return Object.assign(e,Y),e}({});e.exports=U},"10e8":function(e,t,n){!function(e){"use strict";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,n){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 วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n("c1df"))},1276:function(e,t,n){"use strict";var r=n("d784"),a=n("44e7"),i=n("825a"),o=n("1d80"),s=n("4840"),l=n("8aa5"),c=n("50c4"),u=n("14c3"),d=n("9263"),p=n("d039"),m=[].push,f=Math.min,h=4294967295,_=!p((function(){return!RegExp(h,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(o(this)),i=void 0===n?h:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!a(e))return t.call(r,e,i);for(var s,l,c,u=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,_=new RegExp(e.source,p+"g");(s=d.call(_,r))&&!((l=_.lastIndex)>f&&(u.push(r.slice(f,s.index)),s.length>1&&s.index<r.length&&m.apply(u,s.slice(1)),c=s[0].length,f=l,u.length>=i));)_.lastIndex===s.index&&_.lastIndex++;return f===r.length?!c&&_.test("")||u.push(""):u.push(r.slice(f)),u.length>i?u.slice(0,i):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var a=o(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,a,n):r.call(String(a),t,n)},function(e,a){var o=n(r,e,this,a,r!==t);if(o.done)return o.value;var d=i(e),p=String(this),m=s(d,RegExp),v=d.unicode,g=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(_?"y":"g"),y=new m(_?d:"^(?:"+d.source+")",g),b=void 0===a?h:a>>>0;if(0===b)return[];if(0===p.length)return null===u(y,p)?[p]:[];for(var w=0,x=0,k=[];x<p.length;){y.lastIndex=_?x:0;var D,M=u(y,_?p:p.slice(x));if(null===M||(D=f(c(y.lastIndex+(_?0:x)),p.length))===w)x=l(p,x,v);else{if(k.push(p.slice(w,x)),k.length===b)return k;for(var S=1;S<=M.length-1;S++)if(k.push(M[S]),k.length===b)return k;x=w=D}}return k.push(p.slice(w)),k}]}),!_)},1290:function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},1310:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},1368:function(e,t,n){var r,a=n("da03"),i=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},"13d5":function(e,t,n){"use strict";var r=n("23e7"),a=n("d58f").left,i=n("a640"),o=n("ae40"),s=n("2d00"),l=n("605d"),c=i("reduce"),u=o("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u||!l&&s>79&&s<83},{reduce:function(e){return a(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"13e9":function(e,t,n){!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,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};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:"D. M. 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}})}(n("c1df"))},"14c3":function(e,t,n){var r=n("c6b6"),a=n("9263");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),a=n("fdbc"),i=n("17c2"),o=n("9112");for(var s in a){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==i)try{o(c,"forEach",i)}catch(e){c.forEach=i}}},"167b":function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_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] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("c1df"))},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,a=n("a640"),i=n("ae40"),o=a("forEach"),s=i("forEach");e.exports=o&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"1a8c":function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},"1b45":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c3c":function(e,t,n){var r=n("9e69"),a=n("2474"),i=n("9638"),o=n("a2be"),s=n("edfa"),l=n("ac41"),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=s;case"[object Set]":var f=1&r;if(m||(m=l),e.size!=t.size&&!f)return!1;var h=p.get(e);if(h)return h==t;r|=2,p.set(e,t);var _=o(m(e),m(t),r,c,d,p);return p.delete(e),_;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},"1c7e":function(e,t,n){var r=n("b622")("iterator"),a=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){a=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1cec":function(e,t,n){var r=n("0b07")(n("2b3e"),"Promise");e.exports=r},"1cfd":function(e,t,n){!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"},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},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,a,i,o){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:i,monthsShort:i,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,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("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}})}(n("c1df"))},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var r=n("d039"),a=n("b622"),i=n("2d00"),o=a("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1efc":function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},"1fc1":function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[r],+e)}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:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){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}})}(n("c1df"))},"1fc8":function(e,t,n){var r=n("4245");e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},"201b":function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},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:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},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}})}(n("c1df"))},2266:function(e,t,n){var r=n("825a"),a=n("e95a"),i=n("50c4"),o=n("0366"),s=n("35a1"),l=n("2a62"),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,d,p,m,f,h,_,v=n&&n.that,g=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),b=!(!n||!n.INTERRUPTED),w=o(t,v,1+g+b),x=function(e){return u&&l(u),new c(!0,e)},k=function(e){return g?(r(e),b?w(e[0],e[1],x):w(e[0],e[1])):b?w(e,x):w(e)};if(y)u=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(a(d)){for(p=0,m=i(e.length);m>p;p++)if((f=k(e[p]))&&f instanceof c)return f;return new c(!1)}u=d.call(e)}for(h=u.next;!(_=h.call(u)).done;){try{f=k(_.value)}catch(e){throw l(u),e}if("object"==typeof f&&f&&f instanceof c)return f}return new c(!1)}},2286:function(e,t,n){var r=n("85e3"),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=a(i.length-t,0),l=Array(s);++o<s;)l[o]=i[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=i[o];return c[t]=n(l),r(e,this,c)}}},"22f8":function(e,t,n){!function(e){"use strict";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,n){return e<12?"오전":"오후"}})}(n("c1df"))},"23cb":function(e,t,n){var r=n("a691"),a=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?a(n+t,0):i(n,t)}},"23e7":function(e,t,n){var r=n("da84"),a=n("06cf").f,i=n("9112"),o=n("6eeb"),s=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,u,d,p,m,f=e.target,h=e.global,_=e.stat;if(n=h?r:_?r[f]||s(f,{}):(r[f]||{}).prototype)for(u in t){if(p=t[u],d=e.noTargetGet?(m=a(n,u))&&m.value:n[u],!c(h?u:f+(_?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),o(n,u,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),a=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},2421:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,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,n){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 n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("c1df"))},2474:function(e,t,n){var r=n("2b3e").Uint8Array;e.exports=r},2478:function(e,t,n){var r=n("4245");e.exports=function(e){return r(this,e).get(e)}},2524:function(e,t,n){var r=n("6044");e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},"252c":function(e,t,n){"use strict";(function(e){let r;function a(){a.init||(a.init=!0,r=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}function i(e,t,n,r,a,i,o,s,l,c){"boolean"!=typeof o&&(l=s,s=o,o=!1);var u,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,a&&(d.functional=!0)),r&&(d._scopeId=r),i?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=u):t&&(u=o?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),u)if(d.functional){var p=d.render;d.render=function(e,t){return u.call(t),p(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,u):[u]}return n}n.d(t,"a",(function(){return l}));const o={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){a(),this.$nextTick((()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()}));const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",r&&this.$el.appendChild(e),e.data="about:blank",r||this.$el.appendChild(e)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!r&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};var s=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})};s._withStripped=!0;const l=i({render:s,staticRenderFns:[]},void 0,o,"data-v-8859cc6c",!1,void 0,!1,void 0,void 0,void 0);var c={version:"1.0.0",install:function(e){e.component("resize-observer",l),e.component("ResizeObserver",l)}},u=null;"undefined"!=typeof window?u=window.Vue:void 0!==e&&(u=e.Vue),u&&u.use(c)}).call(this,n("c8ba"))},2532:function(e,t,n){"use strict";var r=n("23e7"),a=n("5a34"),i=n("1d80");r({target:"String",proto:!0,forced:!n("ab13")("includes")},{includes:function(e){return!!~String(i(this)).indexOf(a(e),arguments.length>1?arguments[1]:void 0)}})},"253c":function(e,t,n){var r=n("3729"),a=n("1310");e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},2554:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}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}})}(n("c1df"))},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),a=n("825a"),i=n("d039"),o=n("ad6d"),s="toString",l=RegExp.prototype,c=l.toString,u=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=s;(u||d)&&r(RegExp.prototype,s,(function(){var e=a(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in l)?o.call(e):n)}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),a=n("9bf2"),i=n("b622"),o=n("83ab"),s=i("species");e.exports=function(e){var t=r(e),n=a.f;o&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"26f9":function(e,t,n){!function(e){"use strict";var t={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"};function n(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function a(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function o(e,t,n,o){var s=e+" ";return 1===e?s+r(e,t,n[0],o):t?s+(a(e)?i(n)[1]:i(n)[0]):o?s+i(n)[1]:s+(a(e)?i(n)[1]:i(n)[2])}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:n,ss:o,m:r,mm:o,h:r,hh:o,d:r,dd:o,M:r,MM:o,y:r,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("c1df"))},"28c9":function(e,t){e.exports=function(){this.__data__=[],this.size=0}},2921:function(e,t,n){!function(e){"use strict";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:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".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,n){return e<12?n?"sa":"SA":n?"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 trước 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",w:"một tuần",ww:"%d tuần",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}})}(n("c1df"))},"293c":function(e,t,n){!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,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};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}})}(n("c1df"))},"29f3":function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},"2a62":function(e,t,n){var r=n("825a");e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},"2b3e":function(e,t,n){var r=n("585a"),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},"2bfb":function(e,t,n){!function(e){"use strict";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,n){return e<12?n?"vm":"VM":n?"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}})}(n("c1df"))},"2ca0":function(e,t,n){"use strict";var r,a=n("23e7"),i=n("06cf").f,o=n("50c4"),s=n("5a34"),l=n("1d80"),c=n("ab13"),u=n("c430"),d="".startsWith,p=Math.min,m=c("startsWith");a({target:"String",proto:!0,forced:!(!u&&!m&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||m)},{startsWith:function(e){var t=String(l(this));s(e);var n=o(p(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},"2cf4":function(e,t,n){var r,a,i,o=n("da84"),s=n("d039"),l=n("0366"),c=n("1be4"),u=n("cc12"),d=n("1cdc"),p=n("605d"),m=o.location,f=o.setImmediate,h=o.clearImmediate,_=o.process,v=o.MessageChannel,g=o.Dispatch,y=0,b={},w="onreadystatechange",x=function(e){if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},k=function(e){return function(){x(e)}},D=function(e){x(e.data)},M=function(e){o.postMessage(e+"",m.protocol+"//"+m.host)};f&&h||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},h=function(e){delete b[e]},p?r=function(e){_.nextTick(k(e))}:g&&g.now?r=function(e){g.now(k(e))}:v&&!d?(i=(a=new v).port2,a.port1.onmessage=D,r=l(i.postMessage,i,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts&&m&&"file:"!==m.protocol&&!s(M)?(r=M,o.addEventListener("message",D,!1)):r=w in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),x(e)}}:function(e){setTimeout(k(e),0)}),e.exports={set:f,clear:h}},"2d00":function(e,t,n){var r,a,i=n("da84"),o=n("342f"),s=i.process,l=s&&s.versions,c=l&&l.v8;c?a=(r=c.split("."))[0]+r[1]:o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(a=r[1]),e.exports=a&&+a},"2d7c":function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}},"2dcb":function(e,t,n){var r=n("91e9")(Object.getPrototypeOf,Object);e.exports=r},"2e8c":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"2ec1":function(e,t,n){var r=n("100e"),a=n("9aff");e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&a(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t}))}},"2fcc":function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},"304a":function(e,t,n){"use strict";function r(e){this.content=e}n.r(t),n.d(t,"ContentMatch",(function(){return I})),n.d(t,"DOMParser",(function(){return oe})),n.d(t,"DOMSerializer",(function(){return ve})),n.d(t,"Fragment",(function(){return s})),n.d(t,"Mark",(function(){return p})),n.d(t,"MarkType",(function(){return re})),n.d(t,"Node",(function(){return P})),n.d(t,"NodeRange",(function(){return A})),n.d(t,"NodeType",(function(){return Q})),n.d(t,"ReplaceError",(function(){return m})),n.d(t,"ResolvedPos",(function(){return C})),n.d(t,"Schema",(function(){return ae})),n.d(t,"Slice",(function(){return f})),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var a=n&&n!=e?this.remove(n):this,i=a.find(e),o=a.content.slice();return-1==i?o.push(n||e,t):(o[i+1]=t,n&&(o[i]=n)),new r(o)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var a=this.remove(t),i=a.content.slice(),o=a.find(e);return i.splice(-1==o?i.length:o,0,t,n),new r(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=r.from(e)).size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=r.from(e)).size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};var a=r;function i(e,t,n){for(var r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;var a=e.child(r),o=t.child(r);if(a!=o){if(!a.sameMarkup(o))return n;if(a.isText&&a.text!=o.text){for(var s=0;a.text[s]==o.text[s];s++)n++;return n}if(a.content.size||o.content.size){var l=i(a.content,o.content,n+1);if(null!=l)return l}n+=a.nodeSize}else n+=a.nodeSize}}function o(e,t,n,r){for(var a=e.childCount,i=t.childCount;;){if(0==a||0==i)return a==i?null:{a:n,b:r};var s=e.child(--a),l=t.child(--i),c=s.nodeSize;if(s!=l){if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){for(var u=0,d=Math.min(s.text.length,l.text.length);u<d&&s.text[s.text.length-u-1]==l.text[l.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(s.content.size||l.content.size){var p=o(s.content,l.content,n-1,r-1);if(p)return p}n-=c,r-=c}else n-=c,r-=c}}var s=function(e,t){if(this.content=e,this.size=t||0,null==t)for(var n=0;n<e.length;n++)this.size+=e[n].nodeSize},l={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};s.prototype.nodesBetween=function(e,t,n,r,a){void 0===r&&(r=0);for(var i=0,o=0;o<t;i++){var s=this.content[i],l=o+s.nodeSize;if(l>e&&!1!==n(s,r+o,a,i)&&s.content.size){var c=o+1;s.nodesBetween(Math.max(0,e-c),Math.min(s.content.size,t-c),n,r+c)}o=l}},s.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},s.prototype.textBetween=function(e,t,n,r){var a="",i=!0;return this.nodesBetween(e,t,(function(o,s){o.isText?(a+=o.text.slice(Math.max(e,s)-s,t-s),i=!n):o.isLeaf&&r?(a+=r,i=!n):!i&&o.isBlock&&(a+=n,i=!0)}),0),a},s.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,r=this.content.slice(),a=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),a=1);a<e.content.length;a++)r.push(e.content[a]);return new s(r,this.size+e.size)},s.prototype.cut=function(e,t){if(null==t&&(t=this.size),0==e&&t==this.size)return this;var n=[],r=0;if(t>e)for(var a=0,i=0;i<t;a++){var o=this.content[a],l=i+o.nodeSize;l>e&&((i<e||l>t)&&(o=o.isText?o.cut(Math.max(0,e-i),Math.min(o.text.length,t-i)):o.cut(Math.max(0,e-i-1),Math.min(o.content.size,t-i-1))),n.push(o),r+=o.nodeSize),i=l}return new s(n,r)},s.prototype.cutByIndex=function(e,t){return e==t?s.empty:0==e&&t==this.content.length?this:new s(this.content.slice(e,t))},s.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var r=this.content.slice(),a=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new s(r,a)},s.prototype.addToStart=function(e){return new s([e].concat(this.content),this.size+e.nodeSize)},s.prototype.addToEnd=function(e){return new s(this.content.concat(e),this.size+e.nodeSize)},s.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0},l.firstChild.get=function(){return this.content.length?this.content[0]:null},l.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},l.childCount.get=function(){return this.content.length},s.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},s.prototype.maybeChild=function(e){return this.content[e]},s.prototype.forEach=function(e){for(var t=0,n=0;t<this.content.length;t++){var r=this.content[t];e(r,n,t),n+=r.nodeSize}},s.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),i(this,e,t)},s.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),o(this,e,t,n)},s.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return u(0,e);if(e==this.size)return u(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,r=0;;n++){var a=r+this.child(n).nodeSize;if(a>=e)return a==e||t>0?u(n+1,a):u(n,r);r=a}},s.prototype.toString=function(){return"<"+this.toStringInner()+">"},s.prototype.toStringInner=function(){return this.content.join(", ")},s.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},s.fromJSON=function(e,t){if(!t)return s.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new s(t.map(e.nodeFromJSON))},s.fromArray=function(e){if(!e.length)return s.empty;for(var t,n=0,r=0;r<e.length;r++){var a=e[r];n+=a.nodeSize,r&&a.isText&&e[r-1].sameMarkup(a)?(t||(t=e.slice(0,r)),t[t.length-1]=a.withText(t[t.length-1].text+a.text)):t&&t.push(a)}return new s(t||e,n)},s.from=function(e){if(!e)return s.empty;if(e instanceof s)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new s([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))},Object.defineProperties(s.prototype,l);var c={index:0,offset:0};function u(e,t){return c.index=e,c.offset=t,c}function d(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!d(e[r],t[r]))return!1}else{for(var a in e)if(!(a in t)||!d(e[a],t[a]))return!1;for(var i in t)if(!(i in e))return!1}return!0}s.empty=new s([],0);var p=function(e,t){this.type=e,this.attrs=t};function m(e){var t=Error.call(this,e);return t.__proto__=m.prototype,t}p.prototype.addToSet=function(e){for(var t,n=!1,r=0;r<e.length;r++){var a=e[r];if(this.eq(a))return e;if(this.type.excludes(a.type))t||(t=e.slice(0,r));else{if(a.type.excludes(this.type))return e;!n&&a.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(a)}}return t||(t=e.slice()),n||t.push(this),t},p.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e},p.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},p.prototype.eq=function(e){return this==e||this.type==e.type&&d(this.attrs,e.attrs)},p.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},p.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type "+t.type+" in this schema");return n.create(t.attrs)},p.sameSet=function(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0},p.setFrom=function(e){if(!e||0==e.length)return p.none;if(e instanceof p)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},p.none=[],m.prototype=Object.create(Error.prototype),m.prototype.constructor=m,m.prototype.name="ReplaceError";var f=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},h={size:{configurable:!0}};function _(e,t,n){var r=e.findIndex(t),a=r.index,i=r.offset,o=e.maybeChild(a),s=e.findIndex(n),l=s.index,c=s.offset;if(i==t||o.isText){if(c!=n&&!e.child(l).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(a!=l)throw new RangeError("Removing non-flat range");return e.replaceChild(a,o.copy(_(o.content,t-i-1,n-i-1)))}function v(e,t,n,r){var a=e.findIndex(t),i=a.index,o=a.offset,s=e.maybeChild(i);if(o==t||s.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));var l=v(s.content,t-o-1,n);return l&&e.replaceChild(i,s.copy(l))}function g(e,t,n){if(n.openStart>e.depth)throw new m("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new m("Inconsistent open depths");return y(e,t,n,0)}function y(e,t,n,r){var a=e.index(r),i=e.node(r);if(a==t.index(r)&&r<e.depth-n.openStart){var o=y(e,t,n,r+1);return i.copy(i.content.replaceChild(a,o))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){var l=function(e,t){for(var n=t.depth-e.openStart,r=t.node(n).copy(e.content),a=n-1;a>=0;a--)r=t.node(a).copy(s.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return D(i,M(e,l.start,l.end,t,r))}var c=e.parent,u=c.content;return D(c,u.cut(0,e.parentOffset).append(n.content).append(u.cut(t.parentOffset)))}return D(i,S(e,t,r))}function b(e,t){if(!t.type.compatibleContent(e.type))throw new m("Cannot join "+t.type.name+" onto "+e.type.name)}function w(e,t,n){var r=e.node(n);return b(r,t.node(n)),r}function x(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function k(e,t,n,r){var a=(t||e).node(n),i=0,o=t?t.index(n):a.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(x(e.nodeAfter,r),i++));for(var s=i;s<o;s++)x(a.child(s),r);t&&t.depth==n&&t.textOffset&&x(t.nodeBefore,r)}function D(e,t){if(!e.type.validContent(t))throw new m("Invalid content for node "+e.type.name);return e.copy(t)}function M(e,t,n,r,a){var i=e.depth>a&&w(e,t,a+1),o=r.depth>a&&w(n,r,a+1),l=[];return k(null,e,a,l),i&&o&&t.index(a)==n.index(a)?(b(i,o),x(D(i,M(e,t,n,r,a+1)),l)):(i&&x(D(i,S(e,t,a+1)),l),k(t,n,a,l),o&&x(D(o,S(n,r,a+1)),l)),k(r,null,a,l),new s(l)}function S(e,t,n){var r=[];return k(null,e,n,r),e.depth>n&&x(D(w(e,t,n+1),S(e,t,n+1)),r),k(t,null,n,r),new s(r)}h.size.get=function(){return this.content.size-this.openStart-this.openEnd},f.prototype.insertAt=function(e,t){var n=v(this.content,e+this.openStart,t,null);return n&&new f(n,this.openStart,this.openEnd)},f.prototype.removeBetween=function(e,t){return new f(_(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},f.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},f.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},f.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},f.fromJSON=function(e,t){if(!t)return f.empty;var n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new f(s.fromJSON(e,t.content),t.openStart||0,t.openEnd||0)},f.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,r=0,a=e.firstChild;a&&!a.isLeaf&&(t||!a.type.spec.isolating);a=a.firstChild)n++;for(var i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)r++;return new f(e,n,r)},Object.defineProperties(f.prototype,h),f.empty=new f(s.empty,0,0);var C=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},L={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};C.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},L.parent.get=function(){return this.node(this.depth)},L.doc.get=function(){return this.node(0)},C.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},C.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},C.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},C.prototype.start=function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},C.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},C.prototype.before=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},C.prototype.after=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},L.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},L.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r},L.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},C.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return p.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){var a=n;n=r,r=a}for(var i=n.marks,o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||r&&i[o].isInSet(r.marks)||(i=i[o--].removeFromSet(i));return i},C.prototype.marksAcross=function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,r=e.parent.maybeChild(e.index()),a=0;a<n.length;a++)!1!==n[a].type.spec.inclusive||r&&n[a].isInSet(r.marks)||(n=n[a--].removeFromSet(n));return n},C.prototype.sharedDepth=function(e){for(var t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},C.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new A(this,e,n)},C.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},C.prototype.max=function(e){return e.pos>this.pos?e:this},C.prototype.min=function(e){return e.pos<this.pos?e:this},C.prototype.toString=function(){for(var e="",t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset},C.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],r=0,a=t,i=e;;){var o=i.content.findIndex(a),s=o.index,l=o.offset,c=a-l;if(n.push(i,s,r+l),!c)break;if((i=i.child(s)).isText)break;a=c-1,r+=l+1}return new C(t,n,a)},C.resolveCached=function(e,t){for(var n=0;n<T.length;n++){var r=T[n];if(r.pos==t&&r.doc==e)return r}var a=T[O]=C.resolve(e,t);return O=(O+1)%E,a},Object.defineProperties(C.prototype,L);var T=[],O=0,E=12,A=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},j={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};j.start.get=function(){return this.$from.before(this.depth+1)},j.end.get=function(){return this.$to.after(this.depth+1)},j.parent.get=function(){return this.$from.node(this.depth)},j.startIndex.get=function(){return this.$from.index(this.depth)},j.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(A.prototype,j);var $=Object.create(null),P=function(e,t,n,r){this.type=e,this.attrs=t,this.content=n||s.empty,this.marks=r||p.none},Y={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};Y.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},Y.childCount.get=function(){return this.content.childCount},P.prototype.child=function(e){return this.content.child(e)},P.prototype.maybeChild=function(e){return this.content.maybeChild(e)},P.prototype.forEach=function(e){this.content.forEach(e)},P.prototype.nodesBetween=function(e,t,n,r){void 0===r&&(r=0),this.content.nodesBetween(e,t,n,r,this)},P.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},Y.textContent.get=function(){return this.textBetween(0,this.content.size,"")},P.prototype.textBetween=function(e,t,n,r){return this.content.textBetween(e,t,n,r)},Y.firstChild.get=function(){return this.content.firstChild},Y.lastChild.get=function(){return this.content.lastChild},P.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},P.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},P.prototype.hasMarkup=function(e,t,n){return this.type==e&&d(this.attrs,t||e.defaultAttrs||$)&&p.sameSet(this.marks,n||p.none)},P.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},P.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},P.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},P.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return f.empty;var r=this.resolve(e),a=this.resolve(t),i=n?0:r.sharedDepth(t),o=r.start(i),s=r.node(i).content.cut(r.pos-o,a.pos-o);return new f(s,r.depth-i,a.depth-i)},P.prototype.replace=function(e,t,n){return g(this.resolve(e),this.resolve(t),n)},P.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),r=n.index,a=n.offset;if(!(t=t.maybeChild(r)))return null;if(a==e||t.isText)return t;e-=a+1}},P.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,r=t.offset;return{node:this.content.maybeChild(n),index:n,offset:r}},P.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,r=t.offset;if(r<e)return{node:this.content.child(n),index:n,offset:r};var a=this.content.child(n-1);return{node:a,index:n-1,offset:r-a.nodeSize}},P.prototype.resolve=function(e){return C.resolveCached(this,e)},P.prototype.resolveNoCache=function(e){return C.resolve(this,e)},P.prototype.rangeHasMark=function(e,t,n){var r=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(r=!0),!r})),r},Y.isBlock.get=function(){return this.type.isBlock},Y.isTextblock.get=function(){return this.type.isTextblock},Y.inlineContent.get=function(){return this.type.inlineContent},Y.isInline.get=function(){return this.type.isInline},Y.isText.get=function(){return this.type.isText},Y.isLeaf.get=function(){return this.type.isLeaf},Y.isAtom.get=function(){return this.type.isAtom},P.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),z(this.marks,e)},P.prototype.contentMatchAt=function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},P.prototype.canReplace=function(e,t,n,r,a){void 0===n&&(n=s.empty),void 0===r&&(r=0),void 0===a&&(a=n.childCount);var i=this.contentMatchAt(e).matchFragment(n,r,a),o=i&&i.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(var l=r;l<a;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0},P.prototype.canReplaceWith=function(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;var a=this.contentMatchAt(e).matchType(n),i=a&&a.matchFragment(this.content,t);return!!i&&i.validEnd},P.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},P.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));this.content.forEach((function(e){return e.check()}))},P.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((function(e){return e.toJSON()}))),e},P.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var r=s.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)},Object.defineProperties(P.prototype,Y);var N=function(e){function t(t,n,r,a){if(e.call(this,t,n,null,a),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={textContent:{configurable:!0},nodeSize:{configurable:!0}};return t.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):z(this.marks,JSON.stringify(this.text))},n.textContent.get=function(){return this.text},t.prototype.textBetween=function(e,t){return this.text.slice(e,t)},n.nodeSize.get=function(){return this.text.length},t.prototype.mark=function(e){return e==this.marks?this:new t(this.type,this.attrs,this.text,e)},t.prototype.withText=function(e){return e==this.text?this:new t(this.type,this.attrs,e,this.marks)},t.prototype.cut=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.text.length),0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))},t.prototype.eq=function(e){return this.sameMarkup(e)&&this.text==e.text},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.text=this.text,t},Object.defineProperties(t.prototype,n),t}(P);function z(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var I=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},F={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};I.parse=function(e,t){var n=new H(e,t);if(null==n.next)return I.empty;var r=B(n);n.next&&n.err("Unexpected trailing text");var a=function(e){var t=Object.create(null);return n(Z(e,0));function n(r){var a=[];r.forEach((function(t){e[t].forEach((function(t){var n=t.term,r=t.to;if(n){var i=a.indexOf(n),o=i>-1&&a[i+1];Z(e,r).forEach((function(e){o||a.push(n,o=[]),-1==o.indexOf(e)&&o.push(e)}))}}))}));for(var i=t[r.join(",")]=new I(r.indexOf(e.length-1)>-1),o=0;o<a.length;o+=2){var s=a[o+1].sort(K);i.next.push(a[o],t[s.join(",")]||n(s))}return i}}(function(e){var t=[[]];return a(i(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){var a={term:r,to:n};return t[e].push(a),a}function a(e,t){e.forEach((function(e){return e.to=t}))}function i(e,t){if("choice"==e.type)return e.exprs.reduce((function(e,n){return e.concat(i(n,t))}),[]);if("seq"==e.type)for(var o=0;;o++){var s=i(e.exprs[o],t);if(o==e.exprs.length-1)return s;a(s,t=n())}else{if("star"==e.type){var l=n();return r(t,l),a(i(e.expr,l),l),[r(l)]}if("plus"==e.type){var c=n();return a(i(e.expr,t),c),a(i(e.expr,c),c),[r(c)]}if("opt"==e.type)return[r(t)].concat(i(e.expr,t));if("range"==e.type){for(var u=t,d=0;d<e.min;d++){var p=n();a(i(e.expr,u),p),u=p}if(-1==e.max)a(i(e.expr,u),u);else for(var m=e.min;m<e.max;m++){var f=n();r(u,f),a(i(e.expr,u),f),u=f}return[r(u)]}if("name"==e.type)return[r(t,null,e.value)]}}}(r));return function(e,t){for(var n=0,r=[e];n<r.length;n++){for(var a=r[n],i=!a.validEnd,o=[],s=0;s<a.next.length;s+=2){var l=a.next[s],c=a.next[s+1];o.push(l.name),!i||l.isText||l.hasRequiredAttrs()||(i=!1),-1==r.indexOf(c)&&r.push(c)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position")}}(a,n),a},I.prototype.matchType=function(e){for(var t=0;t<this.next.length;t+=2)if(this.next[t]==e)return this.next[t+1];return null},I.prototype.matchFragment=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.childCount);for(var r=this,a=t;r&&a<n;a++)r=r.matchType(e.child(a).type);return r},F.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},F.defaultType.get=function(){for(var e=0;e<this.next.length;e+=2){var t=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}},I.prototype.compatible=function(e){for(var t=0;t<this.next.length;t+=2)for(var n=0;n<e.next.length;n+=2)if(this.next[t]==e.next[n])return!0;return!1},I.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var r=[this];return function a(i,o){var l=i.matchFragment(e,n);if(l&&(!t||l.validEnd))return s.from(o.map((function(e){return e.createAndFill()})));for(var c=0;c<i.next.length;c+=2){var u=i.next[c],d=i.next[c+1];if(!u.isText&&!u.hasRequiredAttrs()&&-1==r.indexOf(d)){r.push(d);var p=a(d,o.concat(u));if(p)return p}}}(this,[])},I.prototype.findWrapping=function(e){for(var t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n},I.prototype.computeWrapping=function(e){for(var t=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var r=n.shift(),a=r.match;if(a.matchType(e)){for(var i=[],o=r;o.type;o=o.via)i.push(o.type);return i.reverse()}for(var s=0;s<a.next.length;s+=2){var l=a.next[s];l.isLeaf||l.hasRequiredAttrs()||l.name in t||r.type&&!a.next[s+1].validEnd||(n.push({match:l.contentMatch,type:l,via:r}),t[l.name]=!0)}}},F.edgeCount.get=function(){return this.next.length>>1},I.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},I.prototype.toString=function(){var e=[];return function t(n){e.push(n);for(var r=1;r<n.next.length;r+=2)-1==e.indexOf(n.next[r])&&t(n.next[r])}(this),e.map((function(t,n){for(var r=n+(t.validEnd?"*":" ")+" ",a=0;a<t.next.length;a+=2)r+=(a?", ":"")+t.next[a].name+"->"+e.indexOf(t.next[a+1]);return r})).join("\n")},Object.defineProperties(I.prototype,F),I.empty=new I(!0);var H=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.unshift()},R={next:{configurable:!0}};function B(e){var t=[];do{t.push(q(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function q(e){var t=[];do{t.push(V(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function V(e){for(var t=function(e){if(e.eat("(")){var t=B(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=function(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var a=[];for(var i in n){var o=n[i];o.groups.indexOf(t)>-1&&a.push(o)}return 0==a.length&&e.err("No node type or group '"+t+"' found"),a}(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=U(e,t)}return t}function W(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function U(e,t){var n=W(e),r=n;return e.eat(",")&&(r="}"!=e.next?W(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function K(e,t){return t-e}function Z(e,t){var n=[];return function t(r){var a=e[r];if(1==a.length&&!a[0].term)return t(a[0].to);n.push(r);for(var i=0;i<a.length;i++){var o=a[i],s=o.term,l=o.to;s||-1!=n.indexOf(l)||t(l)}}(t),n.sort(K)}function G(e){var t=Object.create(null);for(var n in e){var r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function J(e,t){var n=Object.create(null);for(var r in e){var a=t&&t[r];if(void 0===a){var i=e[r];if(!i.hasDefault)throw new RangeError("No value supplied for attribute "+r);a=i.default}n[r]=a}return n}function X(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new te(e[n]);return t}R.next.get=function(){return this.tokens[this.pos]},H.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},H.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(H.prototype,R);var Q=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=X(n.attrs),this.defaultAttrs=G(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},ee={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};ee.isInline.get=function(){return!this.isBlock},ee.isTextblock.get=function(){return this.isBlock&&this.inlineContent},ee.isLeaf.get=function(){return this.contentMatch==I.empty},ee.isAtom.get=function(){return this.isLeaf||this.spec.atom},Q.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1},Q.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)},Q.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:J(this.attrs,e)},Q.prototype.create=function(e,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new P(this,this.computeAttrs(e),s.from(t),p.setFrom(n))},Q.prototype.createChecked=function(e,t,n){if(t=s.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new P(this,this.computeAttrs(e),t,p.setFrom(n))},Q.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),(t=s.from(t)).size){var r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}var a=this.contentMatch.matchFragment(t).fillBefore(s.empty,!0);return a?new P(this,e,t.append(a),p.setFrom(n)):null},Q.prototype.validContent=function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0},Q.prototype.allowsMarkType=function(e){return null==this.markSet||this.markSet.indexOf(e)>-1},Q.prototype.allowsMarks=function(e){if(null==this.markSet)return!0;for(var t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0},Q.prototype.allowedMarks=function(e){if(null==this.markSet)return e;for(var t,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:p.empty:e},Q.compile=function(e,t){var n=Object.create(null);e.forEach((function(e,r){return n[e]=new Q(e,t,r)}));var r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var a in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(Q.prototype,ee);var te=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},ne={isRequired:{configurable:!0}};ne.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(te.prototype,ne);var re=function(e,t,n,r){this.name=e,this.schema=n,this.spec=r,this.attrs=X(r.attrs),this.rank=t,this.excluded=null;var a=G(this.attrs);this.instance=a&&new p(this,a)};re.prototype.create=function(e){return!e&&this.instance?this.instance:new p(this,J(this.attrs,e))},re.compile=function(e,t){var n=Object.create(null),r=0;return e.forEach((function(e,a){return n[e]=new re(e,r++,t,a)})),n},re.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e.slice(0,t).concat(e.slice(t+1));return e},re.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},re.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var ae=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=a.from(e.nodes),this.spec.marks=a.from(e.marks),this.nodes=Q.compile(this.spec.nodes,this),this.marks=re.compile(this.spec.marks,this);var n=Object.create(null);for(var r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");var i=this.nodes[r],o=i.spec.content||"",s=i.spec.marks;i.contentMatch=n[o]||(n[o]=I.parse(o,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet="_"==s?null:s?ie(this,s.split(" ")):""!=s&&i.inlineContent?null:[]}for(var l in this.marks){var c=this.marks[l],u=c.spec.excludes;c.excluded=null==u?[c]:""==u?[]:ie(this,u.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};function ie(e,t){for(var n=[],r=0;r<t.length;r++){var a=t[r],i=e.marks[a],o=i;if(i)n.push(i);else for(var s in e.marks){var l=e.marks[s];("_"==a||l.spec.group&&l.spec.group.split(" ").indexOf(a)>-1)&&n.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}ae.prototype.node=function(e,t,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof Q))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)},ae.prototype.text=function(e,t){var n=this.nodes.text;return new N(n,n.defaultAttrs,e,p.setFrom(t))},ae.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},ae.prototype.nodeFromJSON=function(e){return P.fromJSON(this,e)},ae.prototype.markFromJSON=function(e){return p.fromJSON(this,e)},ae.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var oe=function(e,t){var n=this;this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((function(e){e.tag?n.tags.push(e):e.style&&n.styles.push(e)}))};oe.prototype.parse=function(e,t){void 0===t&&(t={});var n=new pe(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},oe.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new pe(this,t,!0);return n.addAll(e,null,t.from,t.to),f.maxOpen(n.finish())},oe.prototype.matchTag=function(e,t){for(var n=0;n<this.tags.length;n++){var r=this.tags[n];if(fe(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){var a=r.getAttrs(e);if(!1===a)continue;r.attrs=a}return r}}},oe.prototype.matchStyle=function(e,t,n){for(var r=0;r<this.styles.length;r++){var a=this.styles[r];if(!(0!=a.style.indexOf(e)||a.context&&!n.matchesContext(a.context)||a.style.length>e.length&&(61!=a.style.charCodeAt(e.length)||a.style.slice(e.length+1)!=t))){if(a.getAttrs){var i=a.getAttrs(t);if(!1===i)continue;a.attrs=i}return a}}},oe.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,r=0;r<t.length;r++){var a=t[r];if((null==a.priority?50:a.priority)<n)break}t.splice(r,0,e)}var r,a=function(t){var r=e.marks[t].spec.parseDOM;r&&r.forEach((function(e){n(e=he(e)),e.mark=t}))};for(var i in e.marks)a(i);for(var o in e.nodes)r=void 0,(r=e.nodes[o].spec.parseDOM)&&r.forEach((function(e){n(e=he(e)),e.node=o}));return t},oe.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new oe(e,oe.schemaRules(e)))};var se={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},le={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ce={ol:!0,ul:!0};function ue(e){return(e?1:0)|("full"===e?2:0)}var de=function(e,t,n,r,a,i,o){this.type=e,this.attrs=t,this.solid=a,this.match=i||(4&o?null:e.contentMatch),this.options=o,this.content=[],this.marks=n,this.activeMarks=p.none,this.pendingMarks=r};de.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(s.from(e));if(!t){var n,r=this.type.contentMatch;return(n=r.findWrapping(e.type))?(this.match=r,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)},de.prototype.finish=function(e){if(!(1&this.options)){var t,n=this.content[this.content.length-1];n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))&&(n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length)))}var r=s.from(this.content);return!e&&this.match&&(r=r.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r},de.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var r=n[t];(this.type?this.type.allowsMarkType(r.type):_e(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}};var pe=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var r,a=t.topNode,i=ue(t.preserveWhitespace)|(n?4:0);r=a?new de(a.type,a.attrs,p.none,p.none,!0,t.topMatch||a.type.contentMatch,i):new de(n?null:e.schema.topNodeType,null,p.none,p.none,!0,null,i),this.nodes=[r],this.open=0,this.find=t.findPositions,this.needsBlock=!1},me={top:{configurable:!0},currentPos:{configurable:!0}};function fe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function he(e){var t={};for(var n in e)t[n]=e[n];return t}function _e(e,t){var n=t.schema.nodes,r=function(r){var a=n[r];if(a.allowsMarkType(e)){var i=[],o=function(e){i.push(e);for(var n=0;n<e.edgeCount;n++){var r=e.edge(n),a=r.type,s=r.next;if(a==t)return!0;if(i.indexOf(s)<0&&o(s))return!0}};return o(a.contentMatch)?{v:!0}:void 0}};for(var a in n){var i=r(a);if(i)return i.v}}me.top.get=function(){return this.nodes[this.open]},pe.prototype.addDOM=function(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){var t=e.getAttribute("style"),n=t?this.readStyles(function(e){for(var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];t=n.exec(e);)r.push(t[1],t[2].trim());return r}(t)):null,r=this.top;if(null!=n)for(var a=0;a<n.length;a++)this.addPendingMark(n[a]);if(this.addElement(e),null!=n)for(var i=0;i<n.length;i++)this.removePendingMark(n[i],r)}},pe.prototype.addTextNode=function(e){var t=e.nodeValue,n=this.top;if((n.type?n.type.inlineContent:n.content.length&&n.content[0].isInline)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)2&n.options||(t=t.replace(/\r?\n|\r/g," "));else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){var r=n.content[n.content.length-1],a=e.previousSibling;(!r||a&&"BR"==a.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)},pe.prototype.addElement=function(e){var t=e.nodeName.toLowerCase();ce.hasOwnProperty(t)&&function(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var r=1==t.nodeType?t.nodeName.toLowerCase():null;r&&ce.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):"li"==r?n=t:r&&(n=null)}}(e);var n=this.options.ruleFromNode&&this.options.ruleFromNode(e)||this.parser.matchTag(e,this);if(n?n.ignore:le.hasOwnProperty(t))this.findInside(e);else if(!n||n.skip){n&&n.skip.nodeType&&(e=n.skip);var r,a=this.top,i=this.needsBlock;if(se.hasOwnProperty(t))r=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),r&&this.sync(a),this.needsBlock=i}else this.addElementByRule(e,n)},pe.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},pe.prototype.readStyles=function(e){for(var t=p.none,n=0;n<e.length;n+=2){var r=this.parser.matchStyle(e[n],e[n+1],this);if(r){if(r.ignore)return null;t=this.parser.schema.marks[r.mark].create(r.attrs).addToSet(t)}}return t},pe.prototype.addElementByRule=function(e,t){var n,r,a,i=this;t.node?(r=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(r.create(t.attrs))||this.leafFallback(e):n=this.enter(r,t.attrs,t.preserveWhitespace):(a=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(a));var o=this.top;if(r&&r.isLeaf)this.findInside(e);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((function(e){return i.insertNode(e)}));else{var s=t.contentElement;"string"==typeof s?s=e.querySelector(s):"function"==typeof s&&(s=s(e)),s||(s=e),this.findAround(e,s,!0),this.addAll(s,n)}n&&(this.sync(o),this.open--),a&&this.removePendingMark(a,o)},pe.prototype.addAll=function(e,t,n,r){for(var a=n||0,i=n?e.childNodes[n]:e.firstChild,o=null==r?null:e.childNodes[r];i!=o;i=i.nextSibling,++a)this.findAtPoint(e,a),this.addDOM(i),t&&se.hasOwnProperty(i.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,a)},pe.prototype.findPlace=function(e){for(var t,n,r=this.open;r>=0;r--){var a=this.nodes[r],i=a.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,n=a,!i.length))break;if(a.solid)break}if(!t)return!1;this.sync(n);for(var o=0;o<t.length;o++)this.enterInner(t[o],null,!1);return!0},pe.prototype.insertNode=function(e){if(e.isInline&&this.needsBlock&&!this.top.type){var t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();var n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));for(var r=n.activeMarks,a=0;a<e.marks.length;a++)n.type&&!n.type.allowsMarkType(e.marks[a].type)||(r=e.marks[a].addToSet(r));return n.content.push(e.mark(r)),!0}return!1},pe.prototype.enter=function(e,t,n){var r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r},pe.prototype.enterInner=function(e,t,n,r){this.closeExtra();var a=this.top;a.applyPending(e),a.match=a.match&&a.match.matchType(e,t);var i=null==r?-5&a.options:ue(r);4&a.options&&0==a.content.length&&(i|=4),this.nodes.push(new de(e,t,a.activeMarks,a.pendingMarks,n,null,i)),this.open++},pe.prototype.closeExtra=function(e){var t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},pe.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},pe.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},me.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e},pe.prototype.findAtPoint=function(e,t){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)},pe.prototype.findInside=function(e){if(this.find)for(var t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)},pe.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var r=0;r<this.find.length;r++)null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)},pe.prototype.findInText=function(e){if(this.find)for(var t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))},pe.prototype.matchesContext=function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,a=!(this.isOpen||r&&r.parent.type!=this.nodes[0].type),i=-(r?r.depth+1:0)+(a?0:1),o=function(e,s){for(;e>=0;e--){var l=n[e];if(""==l){if(e==n.length-1||0==e)continue;for(;s>=i;s--)if(o(e-1,s))return!0;return!1}var c=s>0||0==s&&a?t.nodes[s].type:r&&s>=i?r.node(s-i).type:null;if(!c||c.name!=l&&-1==c.groups.indexOf(l))return!1;s--}return!0};return o(n.length-1,this.open)},pe.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var a=this.parser.schema.nodes[r];if(a.isTextblock&&a.defaultAttrs)return a}},pe.prototype.addPendingMark=function(e){this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},pe.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var r=this.nodes[n];if(r.pendingMarks.lastIndexOf(e)>-1?r.pendingMarks=e.removeFromSet(r.pendingMarks):r.activeMarks=e.removeFromSet(r.activeMarks),r==t)break}},Object.defineProperties(pe.prototype,me);var ve=function(e,t){this.nodes=e||{},this.marks=t||{}};function ge(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function ye(e){return e.document||window.document}ve.prototype.serializeFragment=function(e,t,n){var r=this;void 0===t&&(t={}),n||(n=ye(t).createDocumentFragment());var a=n,i=null;return e.forEach((function(e){if(i||e.marks.length){i||(i=[]);for(var n=0,o=0;n<i.length&&o<e.marks.length;){var s=e.marks[o];if(r.marks[s.type.name]){if(!s.eq(i[n])||!1===s.type.spec.spanning)break;n+=2,o++}else o++}for(;n<i.length;)a=i.pop(),i.pop();for(;o<e.marks.length;){var l=e.marks[o++],c=r.serializeMark(l,e.isInline,t);c&&(i.push(l,a),a.appendChild(c.dom),a=c.contentDOM||c.dom)}}a.appendChild(r.serializeNode(e,t))})),n},ve.prototype.serializeNode=function(e,t){void 0===t&&(t={});var n=ve.renderSpec(ye(t),this.nodes[e.type.name](e)),r=n.dom,a=n.contentDOM;if(a){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,a,t):this.serializeFragment(e.content,t,a)}return r},ve.prototype.serializeNodeAndMarks=function(e,t){void 0===t&&(t={});for(var n=this.serializeNode(e,t),r=e.marks.length-1;r>=0;r--){var a=this.serializeMark(e.marks[r],e.isInline,t);a&&((a.contentDOM||a.dom).appendChild(n),n=a.dom)}return n},ve.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var r=this.marks[e.type.name];return r&&ve.renderSpec(ye(n),r(e,t))},ve.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};var r=t[0],a=r.indexOf(" ");a>0&&(n=r.slice(0,a),r=r.slice(a+1));var i=null,o=n?e.createElementNS(n,r):e.createElement(r),s=t[1],l=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s))for(var c in l=2,s)if(null!=s[c]){var u=c.indexOf(" ");u>0?o.setAttributeNS(c.slice(0,u),c.slice(u+1),s[c]):o.setAttribute(c,s[c])}for(var d=l;d<t.length;d++){var p=t[d];if(0===p){if(d<t.length-1||d>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:o,contentDOM:o}}var m=ve.renderSpec(e,p,n),f=m.dom,h=m.contentDOM;if(o.appendChild(f),h){if(i)throw new RangeError("Multiple content holes");i=h}}return{dom:o,contentDOM:i}},ve.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new ve(this.nodesFromSchema(e),this.marksFromSchema(e)))},ve.nodesFromSchema=function(e){var t=ge(e.nodes);return t.text||(t.text=function(e){return e.text}),t},ve.marksFromSchema=function(e){return ge(e.marks)}},"30c9":function(e,t,n){var r=n("9520"),a=n("b218");e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},"32b3":function(e,t,n){var r=n("872a"),a=n("9638"),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];i.call(e,t)&&a(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},"32f4":function(e,t,n){var r=n("2d7c"),a=n("d327"),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:a;e.exports=s},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"34ac":function(e,t,n){var r=n("9520"),a=n("1368"),i=n("1a8c"),o=n("dc57"),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(r(e)?p:s).test(o(e))}},"35a1":function(e,t,n){var r=n("f5df"),a=n("3f8c"),i=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||a[r(e)]}},3698:function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},3729:function(e,t,n){var r=n("9e69"),a=n("00fd"),i=n("29f3"),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},"37e8":function(e,t,n){var r=n("83ab"),a=n("9bf2"),i=n("825a"),o=n("df75");e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=o(t),s=r.length,l=0;s>l;)a.f(e,n=r[l++],t[n]);return e}},3886:function(e,t,n){!function(e){"use strict";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")}})}(n("c1df"))},"39a6":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"39bd":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};function r(e,t,n,r){var a="";if(t)switch(n){case"s":a="काही सेकंद";break;case"ss":a="%d सेकंद";break;case"m":a="एक मिनिट";break;case"mm":a="%d मिनिटे";break;case"h":a="एक तास";break;case"hh":a="%d तास";break;case"d":a="एक दिवस";break;case"dd":a="%d दिवस";break;case"M":a="एक महिना";break;case"MM":a="%d महिने";break;case"y":a="एक वर्ष";break;case"yy":a="%d वर्षे"}else switch(n){case"s":a="काही सेकंदां";break;case"ss":a="%d सेकंदां";break;case"m":a="एका मिनिटा";break;case"mm":a="%d मिनिटां";break;case"h":a="एका तासा";break;case"hh":a="%d तासां";break;case"d":a="एका दिवसा";break;case"dd":a="%d दिवसां";break;case"M":a="एका महिन्या";break;case"MM":a="%d महिन्यां";break;case"y":a="एका वर्षा";break;case"yy":a="%d वर्षां"}return a.replace(/%d/i,e)}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:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[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||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n("c1df"))},"39ff":function(e,t,n){var r=n("0b07")(n("2b3e"),"WeakMap");e.exports=r},"3a39":function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};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 n[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,n){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}})}(n("c1df"))},"3a6c":function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{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:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",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,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<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 年"}})}(n("c1df"))},"3b1b":function(e,t,n){!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:"-ум"};e.defineLocale("tg",{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:"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,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n("c1df"))},"3b4a":function(e,t,n){var r=n("0b07"),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c0d":function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="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;function i(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?a+(i(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?a+(i(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(i(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?a+(i(e)?"dny":"dní"):a+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?a+(i(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?a+(i(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,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:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,a=n("69f3"),i=n("7dd0"),o="String Iterator",s=a.set,l=a.getterFor(o);i(String,"String",(function(e){s(this,{type:o,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,a=t.index;return a>=n.length?{value:void 0,done:!0}:(e=r(n,a),t.index+=e.length,{value:e,done:!1})}))},"3ce4":function(e,t,n){"use strict";var r=n("1020"),a=n("073e");t.highlight=o,t.highlightAuto=function(e,t){var n,s,l,c,u=t||{},d=u.subset||r.listLanguages(),p=u.prefix,m=d.length,f=-1;if(null==p&&(p=i),"string"!=typeof e)throw a("Expected `string` for value, got `%s`",e);for(s={relevance:0,language:null,value:[]},n={relevance:0,language:null,value:[]};++f<m;)c=d[f],r.getLanguage(c)&&((l=o(c,e,t)).language=c,l.relevance>s.relevance&&(s=l),l.relevance>n.relevance&&(s=n,n=l));return s.language&&(n.secondBest=s),n},t.registerLanguage=function(e,t){r.registerLanguage(e,t)},t.listLanguages=function(){return r.listLanguages()},t.registerAlias=function(e,t){var n,a=e;for(n in t&&((a={})[e]=t),a)r.registerAliases(a[n],{languageName:n})},s.prototype.addText=function(e){var t,n,r=this.stack;""!==e&&(t=r[r.length-1],(n=t.children[t.children.length-1])&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e}))},s.prototype.addKeyword=function(e,t){this.openNode(t),this.addText(e),this.closeNode()},s.prototype.addSublanguage=function(e,t){var n=this.stack,r=n[n.length-1],a=e.rootNode.children,i=t?{type:"element",tagName:"span",properties:{className:[t]},children:a}:a;r.children=r.children.concat(i)},s.prototype.openNode=function(e){var t=this.stack,n=this.options.classPrefix+e,r=t[t.length-1],a={type:"element",tagName:"span",properties:{className:[n]},children:[]};r.children.push(a),t.push(a)},s.prototype.closeNode=function(){this.stack.pop()},s.prototype.closeAllNodes=l,s.prototype.finalize=l,s.prototype.toHTML=function(){return""};var i="hljs-";function o(e,t,n){var o,l=r.configure({}),c=(n||{}).prefix;if("string"!=typeof e)throw a("Expected `string` for name, got `%s`",e);if(!r.getLanguage(e))throw a("Unknown language: `%s` is not registered",e);if("string"!=typeof t)throw a("Expected `string` for value, got `%s`",t);if(null==c&&(c=i),r.configure({__emitter:s,classPrefix:c}),o=r.highlight(e,t,!0),r.configure(l||{}),o.errorRaised)throw o.errorRaised;return{relevance:o.relevance,language:o.language,value:o.emitter.rootNode.children}}function s(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function l(){}},"3de5":function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:""},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","":"0"};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 n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){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||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("c1df"))},"3e92":function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:""},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","":"0"};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 n[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,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n("c1df"))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){"use strict";var r=n("23e7"),a=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},"41c3":function(e,t,n){var r=n("1a8c"),a=n("eac5"),i=n("ec8c"),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=a(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},"423e":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},4245:function(e,t,n){var r=n("1290");e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},42454:function(e,t,n){var r=n("f909"),a=n("2ec1")((function(e,t,n){r(e,t,n)}));e.exports=a},4284:function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},"428f":function(e,t,n){var r=n("da84");e.exports=r},"42a2":function(e,t,n){var r=n("b5a7"),a=n("79bc"),i=n("1cec"),o=n("c869"),s=n("39ff"),l=n("3729"),c=n("dc57"),u="[object Map]",d="[object Promise]",p="[object Set]",m="[object WeakMap]",f="[object DataView]",h=c(r),_=c(a),v=c(i),g=c(o),y=c(s),b=l;(r&&b(new r(new ArrayBuffer(1)))!=f||a&&b(new a)!=u||i&&b(i.resolve())!=d||o&&b(new o)!=p||s&&b(new s)!=m)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case h:return f;case _:return u;case v:return d;case g:return p;case y:return m}return t}),e.exports=b},4359:function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},"440c":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={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?a[n][0]:a[n][1]}function n(e){return a(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function r(e){return a(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function a(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;return a(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return a(e)}return a(e/=1e3)}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:n,past:r,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}})}(n("c1df"))},"44ad":function(e,t,n){var r=n("d039"),a=n("c6b6"),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),a=n("7c73"),i=n("9bf2"),o=r("unscopables"),s=Array.prototype;null==s[o]&&i.f(s,o,{configurable:!0,value:a(null)}),e.exports=function(e){s[o][e]=!0}},"44de":function(e,t,n){var r=n("da84");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var r=n("861d"),a=n("c6b6"),i=n("b622")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==a(e))}},4678:function(e,t,n){var r={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function a(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=i,e.exports=a,a.id="4678"},4840:function(e,t,n){var r=n("825a"),a=n("1c0b"),i=n("b622")("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||null==(n=r(o)[i])?t:a(n)}},"485c":function(e,t,n){!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ı"};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:"bir neçə 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,n){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 n=e%10,r=e%100-n,a=e>=100?100:null;return e+(t[n]||t[r]||t[a])},week:{dow:1,doy:7}})}(n("c1df"))},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"498a":function(e,t,n){"use strict";var r=n("23e7"),a=n("58a8").trim;r({target:"String",proto:!0,forced:n("c8d2")("trim")},{trim:function(){return a(this)}})},"49ab":function(e,t,n){!function(e){"use strict";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,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<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 年"}})}(n("c1df"))},"49f4":function(e,t,n){var r=n("6044");e.exports=function(){this.__data__=r?r(null):{},this.size=0}},"4ba9":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}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:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do 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:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [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}})}(n("c1df"))},"4d64":function(e,t,n){var r=n("fc6a"),a=n("50c4"),i=n("23cb"),o=function(e){return function(t,n,o){var s,l=r(t),c=a(l.length),u=i(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").filter,i=n("1dde"),o=n("ae40"),s=i("filter"),l=o("filter");r({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("0366"),a=n("7b0b"),i=n("9bdd"),o=n("e95a"),s=n("50c4"),l=n("8418"),c=n("35a1");e.exports=function(e){var t,n,u,d,p,m,f=a(e),h="function"==typeof this?this:Array,_=arguments.length,v=_>1?arguments[1]:void 0,g=void 0!==v,y=c(f),b=0;if(g&&(v=r(v,_>2?arguments[2]:void 0,2)),null==y||h==Array&&o(y))for(n=new h(t=s(f.length));t>b;b++)m=g?v(f[b],b):f[b],l(n,b,m);else for(p=(d=y.call(f)).next,n=new h;!(u=p.call(d)).done;b++)m=g?i(d,v,[u.value,b],!0):u.value,l(n,b,m);return n.length=b,n}},"4f50":function(e,t,n){var r=n("b760"),a=n("e5383"),i=n("c8fe"),o=n("4359"),s=n("fa21"),l=n("d370"),c=n("6747"),u=n("dcbe"),d=n("0d24"),p=n("9520"),m=n("1a8c"),f=n("60ed"),h=n("73ac"),_=n("8adb"),v=n("8de2");e.exports=function(e,t,n,g,y,b,w){var x=_(e,n),k=_(t,n),D=w.get(k);if(D)r(e,n,D);else{var M=b?b(x,k,n+"",e,t,w):void 0,S=void 0===M;if(S){var C=c(k),L=!C&&d(k),T=!C&&!L&&h(k);M=k,C||L||T?c(x)?M=x:u(x)?M=o(x):L?(S=!1,M=a(k,!0)):T?(S=!1,M=i(k,!0)):M=[]:f(k)||l(k)?(M=x,l(x)?M=v(x):m(x)&&!p(x)||(M=s(k))):S=!1}S&&(w.set(k,M),y(M,k,g,b,w),w.delete(k)),r(e,n,M)}}},5038:function(e,t,n){!function(e){"use strict";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,n){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:0,doy:6}})}(n("c1df"))},"50c4":function(e,t,n){var r=n("a691"),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},"50d8":function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},5120:function(e,t,n){!function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],a=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],i=["Do","Lu","Má","Cé","Dé","A","Sa"];e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:a,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"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] 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íonna",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}})}(n("c1df"))},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5294:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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,n){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}})}(n("c1df"))},"52bd":function(e,t,n){!function(e){"use strict";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,n){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}})}(n("c1df"))},5313:function(e,t,n){"use strict";n.r(t),n.d(t,"AllSelection",(function(){return m})),n.d(t,"EditorState",(function(){return x})),n.d(t,"NodeSelection",(function(){return d})),n.d(t,"Plugin",(function(){return S})),n.d(t,"PluginKey",(function(){return T})),n.d(t,"Selection",(function(){return o})),n.d(t,"SelectionRange",(function(){return l})),n.d(t,"TextSelection",(function(){return c})),n.d(t,"Transaction",(function(){return v}));var r=n("304a"),a=n("0ac0"),i=Object.create(null),o=function(e,t,n){this.ranges=n||[new l(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},s={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};s.anchor.get=function(){return this.$anchor.pos},s.head.get=function(){return this.$head.pos},s.from.get=function(){return this.$from.pos},s.to.get=function(){return this.$to.pos},s.$from.get=function(){return this.ranges[0].$from},s.$to.get=function(){return this.ranges[0].$to},s.empty.get=function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0},o.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},o.prototype.replace=function(e,t){void 0===t&&(t=r.Slice.empty);for(var n=t.content.lastChild,a=null,i=0;i<t.openEnd;i++)a=n,n=n.lastChild;for(var o=e.steps.length,s=this.ranges,l=0;l<s.length;l++){var c=s[l],u=c.$from,d=c.$to,p=e.mapping.slice(o);e.replaceRange(p.map(u.pos),p.map(d.pos),l?r.Slice.empty:t),0==l&&_(e,o,(n?n.isInline:a&&a.isTextblock)?-1:1)}},o.prototype.replaceWith=function(e,t){for(var n=e.steps.length,r=this.ranges,a=0;a<r.length;a++){var i=r[a],o=i.$from,s=i.$to,l=e.mapping.slice(n),c=l.map(o.pos),u=l.map(s.pos);a?e.deleteRange(c,u):(e.replaceRangeWith(c,u,t),_(e,n,t.isInline?-1:1))}},o.findFrom=function(e,t,n){var r=e.parent.inlineContent?new c(e):h(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(var a=e.depth-1;a>=0;a--){var i=t<0?h(e.node(0),e.node(a),e.before(a+1),e.index(a),t,n):h(e.node(0),e.node(a),e.after(a+1),e.index(a)+1,t,n);if(i)return i}},o.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new m(e.node(0))},o.atStart=function(e){return h(e,e,0,0,1)||new m(e)},o.atEnd=function(e){return h(e,e,e.content.size,e.childCount,-1)||new m(e)},o.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=i[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},o.jsonID=function(e,t){if(e in i)throw new RangeError("Duplicate use of selection JSON ID "+e);return i[e]=t,t.prototype.jsonID=e,t},o.prototype.getBookmark=function(){return c.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(o.prototype,s),o.prototype.visible=!0;var l=function(e,t){this.$from=e,this.$to=t},c=function(e){function t(t,n){void 0===n&&(n=t),e.call(this,t,n)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={$cursor:{configurable:!0}};return n.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},t.prototype.map=function(n,r){var a=n.resolve(r.map(this.head));if(!a.parent.inlineContent)return e.near(a);var i=n.resolve(r.map(this.anchor));return new t(i.parent.inlineContent?i:a,a)},t.prototype.replace=function(t,n){if(void 0===n&&(n=r.Slice.empty),e.prototype.replace.call(this,t,n),n==r.Slice.empty){var a=this.$from.marksAcross(this.$to);a&&t.ensureMarks(a)}},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head},t.prototype.getBookmark=function(){return new u(this.anchor,this.head)},t.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,t,n){void 0===n&&(n=t);var r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))},t.between=function(n,r,a){var i=n.pos-r.pos;if(a&&!i||(a=i>=0?1:-1),!r.parent.inlineContent){var o=e.findFrom(r,a,!0)||e.findFrom(r,-a,!0);if(!o)return e.near(r,a);r=o.$head}return n.parent.inlineContent||(0==i||(n=(e.findFrom(n,-a,!0)||e.findFrom(n,a,!0)).$anchor).pos<r.pos!=i<0)&&(n=r),new t(n,r)},Object.defineProperties(t.prototype,n),t}(o);o.jsonID("text",c);var u=function(e,t){this.anchor=e,this.head=t};u.prototype.map=function(e){return new u(e.map(this.anchor),e.map(this.head))},u.prototype.resolve=function(e){return c.between(e.resolve(this.anchor),e.resolve(this.head))};var d=function(e){function t(t){var n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);e.call(this,t,r),this.node=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,r){var a=r.mapResult(this.anchor),i=a.deleted,o=a.pos,s=n.resolve(o);return i?e.near(s):new t(s)},t.prototype.content=function(){return new r.Slice(r.Fragment.from(this.node),0,0)},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor},t.prototype.toJSON=function(){return{type:"node",anchor:this.anchor}},t.prototype.getBookmark=function(){return new p(this.anchor)},t.fromJSON=function(e,n){if("number"!=typeof n.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new t(e.resolve(n.anchor))},t.create=function(e,t){return new this(e.resolve(t))},t.isSelectable=function(e){return!e.isText&&!1!==e.type.spec.selectable},t}(o);d.prototype.visible=!1,o.jsonID("node",d);var p=function(e){this.anchor=e};p.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,r=t.pos;return n?new u(r,r):new p(r)},p.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&d.isSelectable(n)?new d(t):o.near(t)};var m=function(e){function t(t){e.call(this,t.resolve(0),t.resolve(t.content.size))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.replace=function(t,n){if(void 0===n&&(n=r.Slice.empty),n==r.Slice.empty){t.delete(0,t.doc.content.size);var a=e.atStart(t.doc);a.eq(t.selection)||t.setSelection(a)}else e.prototype.replace.call(this,t,n)},t.prototype.toJSON=function(){return{type:"all"}},t.fromJSON=function(e){return new t(e)},t.prototype.map=function(e){return new t(e)},t.prototype.eq=function(e){return e instanceof t},t.prototype.getBookmark=function(){return f},t}(o);o.jsonID("all",m);var f={map:function(){return this},resolve:function(e){return new m(e)}};function h(e,t,n,r,a,i){if(t.inlineContent)return c.create(e,n);for(var o=r-(a>0?0:1);a>0?o<t.childCount:o>=0;o+=a){var s=t.child(o);if(s.isAtom){if(!i&&d.isSelectable(s))return d.create(e,n-(a<0?s.nodeSize:0))}else{var l=h(e,s,n+a,a<0?s.childCount:0,a,i);if(l)return l}n+=s.nodeSize*a}}function _(e,t,n){var r=e.steps.length-1;if(!(r<t)){var i,s=e.steps[r];(s instanceof a.c||s instanceof a.b)&&(e.mapping.maps[r].forEach((function(e,t,n,r){null==i&&(i=r)})),e.setSelection(o.near(e.doc.resolve(i),n)))}}var v=function(e){function t(t){e.call(this,t.doc),this.time=Date.now(),this.curSelection=t.selection,this.curSelectionFor=0,this.storedMarks=t.storedMarks,this.updated=0,this.meta=Object.create(null)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={selection:{configurable:!0},selectionSet:{configurable:!0},storedMarksSet:{configurable:!0},isGeneric:{configurable:!0},scrolledIntoView:{configurable:!0}};return n.selection.get=function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection},t.prototype.setSelection=function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this},n.selectionSet.get=function(){return(1&this.updated)>0},t.prototype.setStoredMarks=function(e){return this.storedMarks=e,this.updated|=2,this},t.prototype.ensureMarks=function(e){return r.Mark.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this},t.prototype.addStoredMark=function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))},t.prototype.removeStoredMark=function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))},n.storedMarksSet.get=function(){return(2&this.updated)>0},t.prototype.addStep=function(t,n){e.prototype.addStep.call(this,t,n),this.updated=-3&this.updated,this.storedMarks=null},t.prototype.setTime=function(e){return this.time=e,this},t.prototype.replaceSelection=function(e){return this.selection.replace(this,e),this},t.prototype.replaceSelectionWith=function(e,t){var n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r.Mark.none))),n.replaceWith(this,e),this},t.prototype.deleteSelection=function(){return this.selection.replace(this),this},t.prototype.insertText=function(e,t,n){void 0===n&&(n=t);var r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var a=this.storedMarks;if(!a){var i=this.doc.resolve(t);a=n==t?i.marks():i.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,a)),this.selection.empty||this.setSelection(o.near(this.selection.$to)),this},t.prototype.setMeta=function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this},t.prototype.getMeta=function(e){return this.meta["string"==typeof e?e:e.key]},n.isGeneric.get=function(){for(var e in this.meta)return!1;return!0},t.prototype.scrollIntoView=function(){return this.updated|=4,this},n.scrolledIntoView.get=function(){return(4&this.updated)>0},Object.defineProperties(t.prototype,n),t}(a.e);function g(e,t){return t&&e?e.bind(t):e}var y=function(e,t,n){this.name=e,this.init=g(t.init,n),this.apply=g(t.apply,n)},b=[new y("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new y("selection",{init:function(e,t){return e.selection||o.atStart(t.doc)},apply:function(e){return e.selection}}),new y("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new y("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],w=function(e,t){var n=this;this.schema=e,this.fields=b.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach((function(e){if(n.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");n.plugins.push(e),n.pluginsByKey[e.key]=e,e.spec.state&&n.fields.push(new y(e.key,e.spec.state,e))}))},x=function(e){this.config=e},k={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};k.schema.get=function(){return this.config.schema},k.plugins.get=function(){return this.config.plugins},x.prototype.apply=function(e){return this.applyTransaction(e).state},x.prototype.filterTransaction=function(e,t){void 0===t&&(t=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=t){var r=this.config.plugins[n];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0},x.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),r=null;;){for(var a=!1,i=0;i<this.config.plugins.length;i++){var o=this.config.plugins[i];if(o.spec.appendTransaction){var s=r?r[i].n:0,l=r?r[i].state:this,c=s<t.length&&o.spec.appendTransaction.call(o,s?t.slice(s):t,l,n);if(c&&n.filterTransaction(c,i)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(var u=0;u<this.config.plugins.length;u++)r.push(u<i?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),a=!0}r&&(r[i]={state:n,n:t.length})}}if(!a)return{state:n,transactions:t}}},x.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new x(this.config),n=this.config.fields,r=0;r<n.length;r++){var a=n[r];t[a.name]=a.apply(e,this[a.name],this,t)}for(var i=0;i<D.length;i++)D[i](this,e,t);return t},k.tr.get=function(){return new v(this)},x.create=function(e){for(var t=new w(e.schema||e.doc.type.schema,e.plugins),n=new x(t),r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n},x.prototype.reconfigure=function(e){for(var t=new w(e.schema||this.schema,e.plugins),n=t.fields,r=new x(t),a=0;a<n.length;a++){var i=n[a].name;r[i]=this.hasOwnProperty(i)?this[i]:n[a].init(e,r)}return r},x.prototype.toJSON=function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((function(e){return e.toJSON()}))),e&&"object"==typeof e)for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var r=e[n],a=r.spec.state;a&&a.toJSON&&(t[n]=a.toJSON.call(r,this[r.key]))}return t},x.fromJSON=function(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");var a=new w(e.schema,e.plugins),i=new x(a);return a.fields.forEach((function(a){if("doc"==a.name)i.doc=r.Node.fromJSON(e.schema,t.doc);else if("selection"==a.name)i.selection=o.fromJSON(i.doc,t.selection);else if("storedMarks"==a.name)t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var s in n){var l=n[s],c=l.spec.state;if(l.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,s))return void(i[a.name]=c.fromJSON.call(l,e,t[s],i))}i[a.name]=a.init(e,i)}})),i},x.addApplyListener=function(e){D.push(e)},x.removeApplyListener=function(e){var t=D.indexOf(e);t>-1&&D.splice(t,1)},Object.defineProperties(x.prototype,k);var D=[];function M(e,t,n){for(var r in e){var a=e[r];a instanceof Function?a=a.bind(t):"handleDOMEvents"==r&&(a=M(a,t,{})),n[r]=a}return n}var S=function(e){this.props={},e.props&&M(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:L("plugin")};S.prototype.getState=function(e){return e[this.key]};var C=Object.create(null);function L(e){return e in C?e+"$"+ ++C[e]:(C[e]=0,e+"$")}var T=function(e){void 0===e&&(e="key"),this.key=L(e)};T.prototype.get=function(e){return e.config.pluginsByKey[this.key]},T.prototype.getState=function(e){return e[this.key]}},5319:function(e,t,n){"use strict";var r=n("d784"),a=n("825a"),i=n("7b0b"),o=n("50c4"),s=n("a691"),l=n("1d80"),c=n("8aa5"),u=n("14c3"),d=Math.max,p=Math.min,m=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var _=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,g=_?"$":"$0";return[function(n,r){var a=l(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,a,r):t.call(String(a),n,r)},function(e,r){if(!_&&v||"string"==typeof r&&-1===r.indexOf(g)){var i=n(t,e,this,r);if(i.done)return i.value}var l=a(e),m=String(this),f="function"==typeof r;f||(r=String(r));var h=l.global;if(h){var b=l.unicode;l.lastIndex=0}for(var w=[];;){var x=u(l,m);if(null===x)break;if(w.push(x),!h)break;""===String(x[0])&&(l.lastIndex=c(m,o(l.lastIndex),b))}for(var k,D="",M=0,S=0;S<w.length;S++){x=w[S];for(var C=String(x[0]),L=d(p(s(x.index),m.length),0),T=[],O=1;O<x.length;O++)T.push(void 0===(k=x[O])?k:String(k));var E=x.groups;if(f){var A=[C].concat(T,L,m);void 0!==E&&A.push(E);var j=String(r.apply(void 0,A))}else j=y(C,m,L,T,E,r);L>=M&&(D+=m.slice(M,L)+j,M=L+C.length)}return D+m.slice(M)}];function y(e,n,r,a,o,s){var l=r+e.length,c=a.length,u=h;return void 0!==o&&(o=i(o),u=f),t.call(s,u,(function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":s=o[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>c){var d=m(u/10);return 0===d?t:d<=c?void 0===a[d-1]?i.charAt(1):a[d-1]+i.charAt(1):t}s=a[u-1]}return void 0===s?"":s}))}}))},"55a3":function(e,t){e.exports=function(e){return this.__data__.has(e)}},"55be":function(e,t,n){"use strict";n.r(t),n.d(t,"CellSelection",(function(){return $})),n.d(t,"TableMap",(function(){return f})),n.d(t,"TableView",(function(){return Ce})),n.d(t,"__clipCells",(function(){return I})),n.d(t,"__insertCells",(function(){return R})),n.d(t,"__pastedCells",(function(){return N})),n.d(t,"addColSpan",(function(){return A})),n.d(t,"addColumn",(function(){return ae})),n.d(t,"addColumnAfter",(function(){return oe})),n.d(t,"addColumnBefore",(function(){return ie})),n.d(t,"addRow",(function(){return ue})),n.d(t,"addRowAfter",(function(){return pe})),n.d(t,"addRowBefore",(function(){return de})),n.d(t,"cellAround",(function(){return w})),n.d(t,"colCount",(function(){return L})),n.d(t,"columnIsHeader",(function(){return j})),n.d(t,"columnResizing",(function(){return Oe})),n.d(t,"columnResizingPluginKey",(function(){return Te})),n.d(t,"deleteColumn",(function(){return le})),n.d(t,"deleteRow",(function(){return fe})),n.d(t,"deleteTable",(function(){return Se})),n.d(t,"findCell",(function(){return C})),n.d(t,"fixTables",(function(){return ne})),n.d(t,"fixTablesKey",(function(){return ee})),n.d(t,"goToNextCell",(function(){return Me})),n.d(t,"handlePaste",(function(){return Z})),n.d(t,"inSameTable",(function(){return S})),n.d(t,"isInTable",(function(){return x})),n.d(t,"mergeCells",(function(){return _e})),n.d(t,"moveCellForward",(function(){return M})),n.d(t,"nextCell",(function(){return T})),n.d(t,"pointsAtCell",(function(){return D})),n.d(t,"removeColSpan",(function(){return E})),n.d(t,"removeColumn",(function(){return se})),n.d(t,"removeRow",(function(){return me})),n.d(t,"rowIsHeader",(function(){return ce})),n.d(t,"selectedRect",(function(){return re})),n.d(t,"selectionCell",(function(){return k})),n.d(t,"setAttr",(function(){return O})),n.d(t,"setCellAttr",(function(){return ye})),n.d(t,"splitCell",(function(){return ve})),n.d(t,"splitCellWithType",(function(){return ge})),n.d(t,"tableEditing",(function(){return Ye})),n.d(t,"tableEditingKey",(function(){return b})),n.d(t,"tableNodeTypes",(function(){return y})),n.d(t,"tableNodes",(function(){return g})),n.d(t,"toggleHeader",(function(){return we})),n.d(t,"toggleHeaderCell",(function(){return De})),n.d(t,"toggleHeaderColumn",(function(){return ke})),n.d(t,"toggleHeaderRow",(function(){return xe})),n.d(t,"updateColumnsOnResize",(function(){return Le}));var r,a,i=n("5313"),o=n("304a"),s=n("7f06"),l=n("576a"),c=n("0ac0");if("undefined"!=typeof WeakMap){var u=new WeakMap;r=function(e){return u.get(e)},a=function(e,t){return u.set(e,t),t}}else{var d=[],p=0;r=function(e){for(var t=0;t<d.length;t+=2)if(d[t]==e)return d[t+1]},a=function(e,t){return 10==p&&(p=0),d[p++]=e,d[p++]=t}}var m=function(e,t,n,r){this.left=e,this.top=t,this.right=n,this.bottom=r},f=function(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r};function h(e){if(e.colwidth)return e.colwidth.slice();for(var t=[],n=0;n<e.colspan;n++)t.push(0);return t}function _(e,t){var n=e.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map((function(e){return Number(e)})):null,a=Number(e.getAttribute("colspan")||1),i={colspan:a,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:r&&r.length==a?r:null};for(var o in t){var s=t[o].getFromDOM,l=s&&s(e);null!=l&&(i[o]=l)}return i}function v(e,t){var n={};for(var r in 1!=e.attrs.colspan&&(n.colspan=e.attrs.colspan),1!=e.attrs.rowspan&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(",")),t){var a=t[r].setDOMAttr;a&&a(e.attrs[r],n)}return n}function g(e){var t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(var r in t)n[r]={default:t[r].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM:function(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM:function(){return["tr",0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:function(e){return _(e,t)}}],toDOM:function(e){return["td",v(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:function(e){return _(e,t)}}],toDOM:function(e){return["th",v(e,t),0]}}}}function y(e){var t=e.cached.tableNodeTypes;if(!t)for(var n in t=e.cached.tableNodeTypes={},e.nodes){var r=e.nodes[n],a=r.spec.tableRole;a&&(t[a]=r)}return t}f.prototype.findCell=function(e){for(var t=0;t<this.map.length;t++){var n=this.map[t];if(n==e){for(var r=t%this.width,a=t/this.width|0,i=r+1,o=a+1,s=1;i<this.width&&this.map[t+s]==n;s++)i++;for(var l=1;o<this.height&&this.map[t+this.width*l]==n;l++)o++;return new m(r,a,i,o)}}throw new RangeError("No cell with offset "+e+" found")},f.prototype.colCount=function(e){for(var t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError("No cell with offset "+e+" found")},f.prototype.nextCell=function(e,t,n){var r=this.findCell(e),a=r.left,i=r.right,o=r.top,s=r.bottom;return"horiz"==t?(n<0?0==a:i==this.width)?null:this.map[o*this.width+(n<0?a-1:i)]:(n<0?0==o:s==this.height)?null:this.map[a+this.width*(n<0?o-1:s)]},f.prototype.rectBetween=function(e,t){var n=this.findCell(e),r=n.left,a=n.right,i=n.top,o=n.bottom,s=this.findCell(t),l=s.left,c=s.right,u=s.top,d=s.bottom;return new m(Math.min(r,l),Math.min(i,u),Math.max(a,c),Math.max(o,d))},f.prototype.cellsInRect=function(e){for(var t=[],n={},r=e.top;r<e.bottom;r++)for(var a=e.left;a<e.right;a++){var i=r*this.width+a,o=this.map[i];n[o]||(n[o]=!0,a==e.left&&a&&this.map[i-1]==o||r==e.top&&r&&this.map[i-this.width]==o||t.push(o))}return t},f.prototype.positionAt=function(e,t,n){for(var r=0,a=0;;r++){var i=a+n.child(r).nodeSize;if(r==e){for(var o=t+e*this.width,s=(e+1)*this.width;o<s&&this.map[o]<a;)o++;return o==s?i-1:this.map[o]}a=i}},f.get=function(e){return r(e)||a(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);for(var t=function(e){for(var t=-1,n=!1,r=0;r<e.childCount;r++){var a=e.child(r),i=0;if(n)for(var o=0;o<r;o++)for(var s=e.child(o),l=0;l<s.childCount;l++){var c=s.child(l);o+c.attrs.rowspan>r&&(i+=c.attrs.colspan)}for(var u=0;u<a.childCount;u++){var d=a.child(u);i+=d.attrs.colspan,d.attrs.rowspan>1&&(n=!0)}-1==t?t=i:t!=i&&(t=Math.max(t,i))}return t}(e),n=e.childCount,r=[],a=0,i=null,o=[],s=0,l=t*n;s<l;s++)r[s]=0;for(var c=0,u=0;c<n;c++){var d=e.child(c);u++;for(var p=0;;p++){for(;a<r.length&&0!=r[a];)a++;if(p==d.childCount)break;for(var m=d.child(p),_=m.attrs,v=_.colspan,g=_.rowspan,y=_.colwidth,b=0;b<g;b++){if(b+c>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:u,n:g-b});break}for(var w=a+b*t,x=0;x<v;x++){0==r[w+x]?r[w+x]=u:(i||(i=[])).push({type:"collision",row:c,pos:u,n:v-x});var k=y&&y[x];if(k){var D=(w+x)%t*2,M=o[D];null==M||M!=k&&1==o[D+1]?(o[D]=k,o[D+1]=1):M==k&&o[D+1]++}}}a+=v,u+=m.nodeSize}for(var S=(c+1)*t,C=0;a<S;)0==r[a++]&&C++;C&&(i||(i=[])).push({type:"missing",row:c,n:C}),u++}for(var L=new f(t,n,r,i),T=!1,O=0;!T&&O<o.length;O+=2)null!=o[O]&&o[O+1]<n&&(T=!0);return T&&function(e,t,n){e.problems||(e.problems=[]);for(var r=0,a={};r<e.map.length;r++){var i=e.map[r];if(!a[i]){a[i]=!0;for(var o=n.nodeAt(i),s=null,l=0;l<o.attrs.colspan;l++){var c=t[(r+l)%e.width*2];null==c||o.attrs.colwidth&&o.attrs.colwidth[l]==c||((s||(s=h(o.attrs)))[l]=c)}s&&e.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:s})}}}(L,o,e),L}(e))};var b=new i.PluginKey("selectingCells");function w(e){for(var t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function x(e){for(var t=e.selection.$head,n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function k(e){var t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:w(t.$head)||function(e){for(var t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){var r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(var a=e.nodeBefore,i=e.pos;a;a=a.lastChild,i--){var o=a.type.spec.tableRole;if("cell"==o||"header_cell"==o)return e.doc.resolve(i-a.nodeSize)}}(t.$head)}function D(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function M(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function S(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function C(e){return f.get(e.node(-1)).findCell(e.pos-e.start(-1))}function L(e){return f.get(e.node(-1)).colCount(e.pos-e.start(-1))}function T(e,t,n){var r=e.start(-1),a=f.get(e.node(-1)).nextCell(e.pos-r,t,n);return null==a?null:e.node(0).resolve(r+a)}function O(e,t,n){var r={};for(var a in e)r[a]=e[a];return r[t]=n,r}function E(e,t,n){void 0===n&&(n=1);var r=O(e,"colspan",e.colspan-n);return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some((function(e){return e>0}))||(r.colwidth=null)),r}function A(e,t,n){void 0===n&&(n=1);var r=O(e,"colspan",e.colspan+n);if(r.colwidth){r.colwidth=r.colwidth.slice();for(var a=0;a<n;a++)r.colwidth.splice(t,0,0)}return r}function j(e,t,n){for(var r=y(t.type.schema).header_cell,a=0;a<e.height;a++)if(t.nodeAt(e.map[n+a*e.width]).type!=r)return!1;return!0}var $=function(e){function t(t,n){void 0===n&&(n=t);var r=t.node(-1),a=f.get(r),o=t.start(-1),s=a.rectBetween(t.pos-o,n.pos-o),l=t.node(0),c=a.cellsInRect(s).filter((function(e){return e!=n.pos-o}));c.unshift(n.pos-o);var u=c.map((function(e){var t=r.nodeAt(e),n=e+o+1;return new i.SelectionRange(l.resolve(n),l.resolve(n+t.content.size))}));e.call(this,u[0].$from,u[0].$to,u),this.$anchorCell=t,this.$headCell=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(e,n){var r=e.resolve(n.map(this.$anchorCell.pos)),a=e.resolve(n.map(this.$headCell.pos));if(D(r)&&D(a)&&S(r,a)){var o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?t.rowSelection(r,a):o&&this.isColSelection()?t.colSelection(r,a):new t(r,a)}return i.TextSelection.between(r,a)},t.prototype.content=function(){for(var e=this.$anchorCell.node(-1),t=f.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),a={},i=[],s=r.top;s<r.bottom;s++){for(var l=[],c=s*t.width+r.left,u=r.left;u<r.right;u++,c++){var d=t.map[c];if(!a[d]){a[d]=!0;var p=t.findCell(d),m=e.nodeAt(d),h=r.left-p.left,_=p.right-r.right;if(h>0||_>0){var v=m.attrs;h>0&&(v=E(v,0,h)),_>0&&(v=E(v,v.colspan-_,_)),m=p.left<r.left?m.type.createAndFill(v):m.type.create(v,m.content)}if(p.top<r.top||p.bottom>r.bottom){var g=O(m.attrs,"rowspan",Math.min(p.bottom,r.bottom)-Math.max(p.top,r.top));m=p.top<r.top?m.type.createAndFill(g):m.type.create(g,m.content)}l.push(m)}}i.push(e.child(s).copy(o.Fragment.from(l)))}var y=this.isColSelection()&&this.isRowSelection()?e:i;return new o.Slice(o.Fragment.from(y),1,1)},t.prototype.replace=function(t,n){void 0===n&&(n=o.Slice.empty);for(var r=t.steps.length,a=this.ranges,i=0;i<a.length;i++){var s=a[i],l=s.$from,c=s.$to,u=t.mapping.slice(r);t.replace(u.map(l.pos),u.map(c.pos),i?o.Slice.empty:n)}var d=e.findFrom(t.doc.resolve(t.mapping.slice(r).map(this.to)),-1);d&&t.setSelection(d)},t.prototype.replaceWith=function(e,t){this.replace(e,new o.Slice(o.Fragment.from(t),0,0))},t.prototype.forEachCell=function(e){for(var t=this.$anchorCell.node(-1),n=f.get(t),r=this.$anchorCell.start(-1),a=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r)),i=0;i<a.length;i++)e(t.nodeAt(a[i]),r+a[i])},t.prototype.isColSelection=function(){var e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;var n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount},t.colSelection=function(e,n){void 0===n&&(n=e);var r=f.get(e.node(-1)),a=e.start(-1),i=r.findCell(e.pos-a),o=r.findCell(n.pos-a),s=e.node(0);return i.top<=o.top?(i.top>0&&(e=s.resolve(a+r.map[i.left])),o.bottom<r.height&&(n=s.resolve(a+r.map[r.width*(r.height-1)+o.right-1]))):(o.top>0&&(n=s.resolve(a+r.map[o.left])),i.bottom<r.height&&(e=s.resolve(a+r.map[r.width*(r.height-1)+i.right-1]))),new t(e,n)},t.prototype.isRowSelection=function(){var e=f.get(this.$anchorCell.node(-1)),t=this.$anchorCell.start(-1),n=e.colCount(this.$anchorCell.pos-t),r=e.colCount(this.$headCell.pos-t);if(Math.min(n,r)>0)return!1;var a=n+this.$anchorCell.nodeAfter.attrs.colspan,i=r+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,i)==e.width},t.prototype.eq=function(e){return e instanceof t&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos},t.rowSelection=function(e,n){void 0===n&&(n=e);var r=f.get(e.node(-1)),a=e.start(-1),i=r.findCell(e.pos-a),o=r.findCell(n.pos-a),s=e.node(0);return i.left<=o.left?(i.left>0&&(e=s.resolve(a+r.map[i.top*r.width])),o.right<r.width&&(n=s.resolve(a+r.map[r.width*(o.top+1)-1]))):(o.left>0&&(n=s.resolve(a+r.map[o.top*r.width])),i.right<r.width&&(e=s.resolve(a+r.map[r.width*(i.top+1)-1]))),new t(e,n)},t.prototype.toJSON=function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}},t.fromJSON=function(e,n){return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,n,r){return void 0===r&&(r=n),new t(e.resolve(n),e.resolve(r))},t.prototype.getBookmark=function(){return new P(this.$anchorCell.pos,this.$headCell.pos)},t}(i.Selection);$.prototype.visible=!1,i.Selection.jsonID("cell",$);var P=function(e,t){this.anchor=e,this.head=t};function Y(e){if(!(e.selection instanceof $))return null;var t=[];return e.selection.forEachCell((function(e,n){t.push(l.a.node(n,n+e.nodeSize,{class:"selectedCell"}))})),l.b.create(e.doc,t)}function N(e){if(!e.size)return null;for(var t=e.content,n=e.openStart,r=e.openEnd;1==t.childCount&&(n>0&&r>0||"table"==t.firstChild.type.spec.tableRole);)n--,r--,t=t.firstChild.content;var a=t.firstChild,i=a.type.spec.tableRole,s=a.type.schema,l=[];if("row"==i)for(var c=0;c<t.childCount;c++){var u=t.child(c).content,d=c?0:Math.max(0,n-1),p=c<t.childCount-1?0:Math.max(0,r-1);(d||p)&&(u=z(y(s).row,new o.Slice(u,d,p)).content),l.push(u)}else{if("cell"!=i&&"header_cell"!=i)return null;l.push(n||r?z(y(s).row,new o.Slice(t,n,r)).content:t)}return function(e,t){for(var n=[],r=0;r<t.length;r++)for(var a=t[r],i=a.childCount-1;i>=0;i--)for(var s=a.child(i).attrs,l=s.rowspan,c=s.colspan,u=r;u<r+l;u++)n[u]=(n[u]||0)+c;for(var d=0,p=0;p<n.length;p++)d=Math.max(d,n[p]);for(var m=0;m<n.length;m++)if(m>=t.length&&t.push(o.Fragment.empty),n[m]<d){for(var f=y(e).cell.createAndFill(),h=[],_=n[m];_<d;_++)h.push(f);t[m]=t[m].append(o.Fragment.from(h))}return{height:t.length,width:d,rows:t}}(s,l)}function z(e,t){var n=e.createAndFill();return new c.e(n).replace(0,n.content.size,t).doc}function I(e,t,n){var r=e.width,a=e.height,i=e.rows;if(r!=t){for(var s=[],l=[],c=0;c<i.length;c++){for(var u=i[c],d=[],p=s[c]||0,m=0;p<t;m++){var f=u.child(m%u.childCount);p+f.attrs.colspan>t&&(f=f.type.create(E(f.attrs,f.attrs.colspan,p+f.attrs.colspan-t),f.content)),d.push(f),p+=f.attrs.colspan;for(var h=1;h<f.attrs.rowspan;h++)s[c+h]=(s[c+h]||0)+f.attrs.colspan}l.push(o.Fragment.from(d))}i=l,r=t}if(a!=n){for(var _=[],v=0,g=0;v<n;v++,g++){for(var y=[],b=i[g%a],w=0;w<b.childCount;w++){var x=b.child(w);v+x.attrs.rowspan>n&&(x=x.type.create(O(x.attrs,"rowspan",Math.max(1,n-x.attrs.rowspan)),x.content)),y.push(x)}_.push(o.Fragment.from(y))}i=_,a=n}return{width:r,height:a,rows:i}}function F(e,t,n,r,a,i,o,s){if(0==o||o==t.height)return!1;for(var l=!1,c=a;c<i;c++){var u=o*t.width+c,d=t.map[u];if(t.map[u-t.width]==d){l=!0;var p=n.nodeAt(d),m=t.findCell(d),f=m.top,h=m.left;e.setNodeMarkup(e.mapping.slice(s).map(d+r),null,O(p.attrs,"rowspan",o-f)),e.insert(e.mapping.slice(s).map(t.positionAt(o,h,n)),p.type.createAndFill(O(p.attrs,"rowspan",f+p.attrs.rowspan-o))),c+=p.attrs.colspan-1}}return l}function H(e,t,n,r,a,i,o,s){if(0==o||o==t.width)return!1;for(var l=!1,c=a;c<i;c++){var u=c*t.width+o,d=t.map[u];if(t.map[u-1]==d){l=!0;var p=n.nodeAt(d),m=t.colCount(d),f=e.mapping.slice(s).map(d+r);e.setNodeMarkup(f,null,E(p.attrs,o-m,p.attrs.colspan-(o-m))),e.insert(f+p.nodeSize,p.type.createAndFill(E(p.attrs,0,o-m))),c+=p.attrs.rowspan-1}}return l}function R(e,t,n,r,a){var i=n?e.doc.nodeAt(n-1):e.doc,s=f.get(i),l=r.top,c=r.left,u=c+a.width,d=l+a.height,p=e.tr,m=0;function h(){i=n?p.doc.nodeAt(n-1):p.doc,s=f.get(i),m=p.mapping.maps.length}(function(e,t,n,r,a,i,s){var l,c,u=y(e.doc.type.schema);if(a>t.width)for(var d=0,p=0;d<t.height;d++){var m=n.child(d);p+=m.nodeSize;var f=[],h=void 0;h=null==m.lastChild||m.lastChild.type==u.cell?l||(l=u.cell.createAndFill()):c||(c=u.header_cell.createAndFill());for(var _=t.width;_<a;_++)f.push(h);e.insert(e.mapping.slice(s).map(p-1+r),f)}if(i>t.height){for(var v=[],g=0,b=(t.height-1)*t.width;g<Math.max(t.width,a);g++){var w=!(g>=t.width)&&n.nodeAt(t.map[b+g]).type==u.header_cell;v.push(w?c||(c=u.header_cell.createAndFill()):l||(l=u.cell.createAndFill()))}for(var x=u.row.create(null,o.Fragment.from(v)),k=[],D=t.height;D<i;D++)k.push(x);e.insert(e.mapping.slice(s).map(r+n.nodeSize-2),k)}return!(!l&&!c)})(p,s,i,n,u,d,m)&&h(),F(p,s,i,n,c,u,l,m)&&h(),F(p,s,i,n,c,u,d,m)&&h(),H(p,s,i,n,l,d,c,m)&&h(),H(p,s,i,n,l,d,u,m)&&h();for(var _=l;_<d;_++){var v=s.positionAt(_,c,i),g=s.positionAt(_,u,i);p.replace(p.mapping.slice(m).map(v+n),p.mapping.slice(m).map(g+n),new o.Slice(a.rows[_-l],0,0))}h(),p.setSelection(new $(p.doc.resolve(n+s.positionAt(l,c,i)),p.doc.resolve(n+s.positionAt(d-1,u-1,i)))),t(p)}P.prototype.map=function(e){return new P(e.map(this.anchor),e.map(this.head))},P.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&S(t,n)?new $(t,n):i.Selection.near(n,1)};var B=Object(s.a)({ArrowLeft:V("horiz",-1),ArrowRight:V("horiz",1),ArrowUp:V("vert",-1),ArrowDown:V("vert",1),"Shift-ArrowLeft":W("horiz",-1),"Shift-ArrowRight":W("horiz",1),"Shift-ArrowUp":W("vert",-1),"Shift-ArrowDown":W("vert",1),Backspace:U,"Mod-Backspace":U,Delete:U,"Mod-Delete":U});function q(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function V(e,t){return function(n,r,a){var o=n.selection;if(o instanceof $)return q(n,r,i.Selection.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;var s=J(a,e,t);if(null==s)return!1;if("horiz"==e)return q(n,r,i.Selection.near(n.doc.resolve(o.head+t),t));var l,c=n.doc.resolve(s),u=T(c,e,t);return l=u?i.Selection.near(u,1):t<0?i.Selection.near(n.doc.resolve(c.before(-1)),-1):i.Selection.near(n.doc.resolve(c.after(-1)),1),q(n,r,l)}}function W(e,t){return function(n,r,a){var i=n.selection;if(!(i instanceof $)){var o=J(a,e,t);if(null==o)return!1;i=new $(n.doc.resolve(o))}var s=T(i.$headCell,e,t);return!!s&&q(n,r,new $(i.$anchorCell,s))}}function U(e,t){var n=e.selection;if(!(n instanceof $))return!1;if(t){var r=e.tr,a=y(e.schema).cell.createAndFill().content;n.forEachCell((function(e,t){e.content.eq(a)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new o.Slice(a,0,0))})),r.docChanged&&t(r)}return!0}function K(e,t){var n=w(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new $(n))),!0)}function Z(e,t,n){if(!x(e.state))return!1;var r=N(n),a=e.state.selection;if(a instanceof $){r||(r={width:1,height:1,rows:[o.Fragment.from(z(y(e.state.schema).cell,n))]});var i=a.$anchorCell.node(-1),s=a.$anchorCell.start(-1),l=f.get(i).rectBetween(a.$anchorCell.pos-s,a.$headCell.pos-s);return r=I(r,l.right-l.left,l.bottom-l.top),R(e.state,e.dispatch,s,l,r),!0}if(r){var c=k(e.state),u=c.start(-1);return R(e.state,e.dispatch,u,f.get(c.node(-1)).findCell(c.pos-u),r),!0}return!1}function G(e,t){if(!t.ctrlKey&&!t.metaKey){var n,r=X(e,t.target);if(t.shiftKey&&e.state.selection instanceof $)a(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&null!=(n=w(e.state.selection.$anchor))&&Q(e,t).pos!=n.pos)a(n,t),t.preventDefault();else if(!r)return;e.root.addEventListener("mouseup",i),e.root.addEventListener("dragstart",i),e.root.addEventListener("mousemove",o)}function a(t,n){var r=Q(e,n),a=null==b.getState(e.state);if(!r||!S(t,r)){if(!a)return;r=t}var i=new $(t,r);if(a||!e.state.selection.eq(i)){var o=e.state.tr.setSelection(i);a&&o.setMeta(b,t.pos),e.dispatch(o)}}function i(){e.root.removeEventListener("mouseup",i),e.root.removeEventListener("dragstart",i),e.root.removeEventListener("mousemove",o),null!=b.getState(e.state)&&e.dispatch(e.state.tr.setMeta(b,-1))}function o(n){var o,s=b.getState(e.state);if(null!=s)o=e.state.doc.resolve(s);else if(X(e,n.target)!=r&&!(o=Q(e,t)))return i();o&&a(o,n)}}function J(e,t,n){if(!(e.state.selection instanceof i.TextSelection))return null;for(var r=e.state.selection.$head,a=r.depth-1;a>=0;a--){var o=r.node(a);if((n<0?r.index(a):r.indexAfter(a))!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){var s=r.before(a),l="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(l)?s:null}}return null}function X(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function Q(e,t){var n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?w(e.state.doc.resolve(n.pos)):null}var ee=new i.PluginKey("fix-tables");function te(e,t,n,r){var a=e.childCount,i=t.childCount;e:for(var o=0,s=0;o<i;o++){for(var l=t.child(o),c=s,u=Math.min(a,o+3);c<u;c++)if(e.child(c)==l){s=c+1,n+=l.nodeSize;continue e}r(l,n),s<a&&e.child(s).sameMarkup(l)?te(e.child(s),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function ne(e,t){var n,r=function(t,r){"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){var a=f.get(t);if(!a.problems)return r;r||(r=e.tr);for(var i,o,s=[],l=0;l<a.height;l++)s.push(0);for(var c=0;c<a.problems.length;c++){var u=a.problems[c];if("collision"==u.type){for(var d=t.nodeAt(u.pos),p=0;p<d.attrs.rowspan;p++)s[u.row+p]+=u.n;r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,E(d.attrs,d.attrs.colspan-u.n,u.n))}else if("missing"==u.type)s[u.row]+=u.n;else if("overlong_rowspan"==u.type){var m=t.nodeAt(u.pos);r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,O(m.attrs,"rowspan",m.attrs.rowspan-u.n))}else if("colwidth mismatch"==u.type){var h=t.nodeAt(u.pos);r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,O(h.attrs,"colwidth",u.colwidth))}}for(var _=0;_<s.length;_++)s[_]&&(null==i&&(i=_),o=_);for(var v=0,g=n+1;v<a.height;v++){var b=t.child(v),w=g+b.nodeSize,x=s[v];if(x>0){var k="cell";b.firstChild&&(k=b.firstChild.type.spec.tableRole);for(var D=[],M=0;M<x;M++)D.push(y(e.schema)[k].createAndFill());var S=0!=v&&i!=v-1||o!=v?w-1:g+1;r.insert(r.mapping.map(S),D)}g=w}return r.setMeta(ee,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&te(t.doc,e.doc,0,r):e.doc.descendants(r),n}function re(e){var t,n=e.selection,r=k(e),a=r.node(-1),i=r.start(-1),o=f.get(a);return(t=n instanceof $?o.rectBetween(n.$anchorCell.pos-i,n.$headCell.pos-i):o.findCell(r.pos-i)).tableStart=i,t.map=o,t.table=a,t}function ae(e,t,n){var r=t.map,a=t.tableStart,i=t.table,o=n>0?-1:0;j(r,i,n+o)&&(o=0==n||n==r.width?null:0);for(var s=0;s<r.height;s++){var l=s*r.width+n;if(n>0&&n<r.width&&r.map[l-1]==r.map[l]){var c=r.map[l],u=i.nodeAt(c);e.setNodeMarkup(e.mapping.map(a+c),null,A(u.attrs,n-r.colCount(c))),s+=u.attrs.rowspan-1}else{var d=null==o?y(i.type.schema).cell:i.nodeAt(r.map[l+o]).type,p=r.positionAt(s,n,i);e.insert(e.mapping.map(a+p),d.createAndFill())}}return e}function ie(e,t){if(!x(e))return!1;if(t){var n=re(e);t(ae(e.tr,n,n.left))}return!0}function oe(e,t){if(!x(e))return!1;if(t){var n=re(e);t(ae(e.tr,n,n.right))}return!0}function se(e,t,n){for(var r=t.map,a=t.table,i=t.tableStart,o=e.mapping.maps.length,s=0;s<r.height;){var l=s*r.width+n,c=r.map[l],u=a.nodeAt(c);if(n>0&&r.map[l-1]==c||n<r.width-1&&r.map[l+1]==c)e.setNodeMarkup(e.mapping.slice(o).map(i+c),null,E(u.attrs,n-r.colCount(c)));else{var d=e.mapping.slice(o).map(i+c);e.delete(d,d+u.nodeSize)}s+=u.attrs.rowspan}}function le(e,t){if(!x(e))return!1;if(t){var n=re(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(var a=n.right-1;se(r,n,a),a!=n.left;a--)n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=f.get(n.table);t(r)}return!0}function ce(e,t,n){for(var r=y(t.type.schema).header_cell,a=0;a<e.width;a++)if(t.nodeAt(e.map[a+n*e.width]).type!=r)return!1;return!0}function ue(e,t,n){for(var r=t.map,a=t.tableStart,i=t.table,o=a,s=0;s<n;s++)o+=i.child(s).nodeSize;var l=[],c=n>0?-1:0;ce(r,i,n+c)&&(c=0==n||n==r.height?null:0);for(var u=0,d=r.width*n;u<r.width;u++,d++)if(n>0&&n<r.height&&r.map[d]==r.map[d-r.width]){var p=r.map[d],m=i.nodeAt(p).attrs;e.setNodeMarkup(a+p,null,O(m,"rowspan",m.rowspan+1)),u+=m.colspan-1}else{var f=null==c?y(i.type.schema).cell:i.nodeAt(r.map[d+c*r.width]).type;l.push(f.createAndFill())}return e.insert(o,y(i.type.schema).row.create(null,l)),e}function de(e,t){if(!x(e))return!1;if(t){var n=re(e);t(ue(e.tr,n,n.top))}return!0}function pe(e,t){if(!x(e))return!1;if(t){var n=re(e);t(ue(e.tr,n,n.bottom))}return!0}function me(e,t,n){for(var r=t.map,a=t.table,i=t.tableStart,o=0,s=0;s<n;s++)o+=a.child(s).nodeSize;var l=o+a.child(n).nodeSize,c=e.mapping.maps.length;e.delete(o+i,l+i);for(var u=0,d=n*r.width;u<r.width;u++,d++){var p=r.map[d];if(n>0&&p==r.map[d-r.width]){var m=a.nodeAt(p).attrs;e.setNodeMarkup(e.mapping.slice(c).map(p+i),null,O(m,"rowspan",m.rowspan-1)),u+=m.colspan-1}else if(n<r.width&&p==r.map[d+r.width]){var f=a.nodeAt(p),h=f.type.create(O(f.attrs,"rowspan",f.attrs.rowspan-1),f.content),_=r.positionAt(n+1,u,a);e.insert(e.mapping.slice(c).map(i+_),h),u+=f.attrs.colspan-1}}}function fe(e,t){if(!x(e))return!1;if(t){var n=re(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(var a=n.bottom-1;me(r,n,a),a!=n.top;a--)n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=f.get(n.table);t(r)}return!0}function he(e){var t=e.content;return 1==t.childCount&&t.firstChild.isTextblock&&0==t.firstChild.childCount}function _e(e,t){var n=e.selection;if(!(n instanceof $)||n.$anchorCell.pos==n.$headCell.pos)return!1;var r=re(e),a=r.map;if(function(e,t){for(var n=e.width,r=e.height,a=e.map,i=t.top*n+t.left,o=i,s=(t.bottom-1)*n+t.left,l=i+(t.right-t.left-1),c=t.top;c<t.bottom;c++){if(t.left>0&&a[o]==a[o-1]||t.right<n&&a[l]==a[l+1])return!0;o+=n,l+=n}for(var u=t.left;u<t.right;u++){if(t.top>0&&a[i]==a[i-n]||t.bottom<r&&a[s]==a[s+n])return!0;i++,s++}return!1}(a,r))return!1;if(t){for(var i,s,l=e.tr,c={},u=o.Fragment.empty,d=r.top;d<r.bottom;d++)for(var p=r.left;p<r.right;p++){var m=a.map[d*a.width+p],f=r.table.nodeAt(m);if(!c[m])if(c[m]=!0,null==i)i=m,s=f;else{he(f)||(u=u.append(f.content));var h=l.mapping.map(m+r.tableStart);l.delete(h,h+f.nodeSize)}}if(l.setNodeMarkup(i+r.tableStart,null,O(A(s.attrs,s.attrs.colspan,r.right-r.left-s.attrs.colspan),"rowspan",r.bottom-r.top)),u.size){var _=i+1+s.content.size,v=he(s)?i+1:_;l.replaceWith(v+r.tableStart,_+r.tableStart,u)}l.setSelection(new $(l.doc.resolve(i+r.tableStart))),t(l)}return!0}function ve(e,t){var n=y(e.schema);return ge((function(e){var t=e.node;return n[t.type.spec.tableRole]}))(e,t)}function ge(e){return function(t,n){var r,a,i=t.selection;if(i instanceof $){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;r=i.$anchorCell.nodeAfter,a=i.$anchorCell.pos}else{if(!(r=function(e){for(var t=e.depth;t>0;t--){var n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(i.$from)))return!1;a=w(i.$from).pos}if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(n){var o=r.attrs,s=[],l=o.colwidth;o.rowspan>1&&(o=O(o,"rowspan",1)),o.colspan>1&&(o=O(o,"colspan",1));for(var c,u=re(t),d=t.tr,p=0;p<u.right-u.left;p++)s.push(l?O(o,"colwidth",l&&l[p]?[l[p]]:null):o);for(var m=u.top;m<u.bottom;m++){var f=u.map.positionAt(m,u.left,u.table);m==u.top&&(f+=r.nodeSize);for(var h=u.left,_=0;h<u.right;h++,_++)h==u.left&&m==u.top||d.insert(c=d.mapping.map(f+u.tableStart,1),e({node:r,row:m,col:h}).createAndFill(s[_]))}d.setNodeMarkup(a,e({node:r,row:u.top,col:u.left}),s[0]),i instanceof $&&d.setSelection(new $(d.doc.resolve(i.$anchorCell.pos),c&&d.doc.resolve(c))),n(d)}return!0}}function ye(e,t){return function(n,r){if(!x(n))return!1;var a=k(n);if(a.nodeAfter.attrs[e]===t)return!1;if(r){var i=n.tr;n.selection instanceof $?n.selection.forEachCell((function(n,r){n.attrs[e]!==t&&i.setNodeMarkup(r,null,O(n.attrs,e,t))})):i.setNodeMarkup(a.pos,null,O(a.nodeAfter.attrs,e,t)),r(i)}return!0}}function be(e,t,n){for(var r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1}),a=0;a<r.length;a++){var i=t.table.nodeAt(r[a]);if(i&&i.type!==n.header_cell)return!1}return!0}function we(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!x(t))return!1;if(n){for(var r=y(t.schema),a=re(t),i=t.tr,o=a.map.cellsInRect("column"==e?new m(a.left,0,a.right,a.map.height):"row"==e?new m(0,a.top,a.map.width,a.bottom):a),s=o.map((function(e){return a.table.nodeAt(e)})),l=0;l<o.length;l++)s[l].type==r.header_cell&&i.setNodeMarkup(a.tableStart+o[l],r.cell,s[l].attrs);if(0==i.steps.length)for(var c=0;c<o.length;c++)i.setNodeMarkup(a.tableStart+o[c],r.header_cell,s[c].attrs);n(i)}return!0}}(e):function(t,n){if(!x(t))return!1;if(n){var r=y(t.schema),a=re(t),i=t.tr,o=be("row",a,r),s=be("column",a,r),l=("column"===e?o:"row"===e&&s)?1:0,c="column"==e?new m(0,l,1,a.map.height):"row"==e?new m(l,0,a.map.width,1):a,u="column"==e?s?r.cell:r.header_cell:"row"==e?o?r.cell:r.header_cell:r.cell;a.map.cellsInRect(c).forEach((function(e){var t=e+a.tableStart,n=i.doc.nodeAt(t);n&&i.setNodeMarkup(t,u,n.attrs)})),n(i)}return!0}}var xe=we("row",{useDeprecatedLogic:!0}),ke=we("column",{useDeprecatedLogic:!0}),De=we("cell",{useDeprecatedLogic:!0});function Me(e){return function(t,n){if(!x(t))return!1;var r=function(e,t){if(t<0){var n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(var r=e.index(-1)-1,a=e.before();r>=0;r--){var i=e.node(-1).child(r);if(i.childCount)return a-1-i.lastChild.nodeSize;a-=i.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;for(var o=e.node(-1),s=e.indexAfter(-1),l=e.after();s<o.childCount;s++){var c=o.child(s);if(c.childCount)return l+1;l+=c.nodeSize}}}(k(t),e);if(null!=r){if(n){var a=t.doc.resolve(r);n(t.tr.setSelection(i.TextSelection.between(a,M(a))).scrollIntoView())}return!0}}}function Se(e,t){for(var n=e.selection.$anchor,r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}var Ce=function(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Le(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))};function Le(e,t,n,r,a,i){for(var o=0,s=!0,l=t.firstChild,c=e.firstChild,u=0,d=0;u<c.childCount;u++)for(var p=c.child(u).attrs,m=p.colspan,f=p.colwidth,h=0;h<m;h++,d++){var _=a==d?i:f&&f[h],v=_?_+"px":"";o+=_||r,_||(s=!1),l?(l.style.width!=v&&(l.style.width=v),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=v}for(;l;){var g=l.nextSibling;l.parentNode.removeChild(l),l=g}s?(n.style.width=o+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=o+"px")}Ce.prototype.update=function(e){return e.type==this.node.type&&(this.node=e,Le(e,this.colgroup,this.table,this.cellMinWidth),!0)},Ce.prototype.ignoreMutation=function(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))};var Te=new i.PluginKey("tableColumnResizing");function Oe(e){void 0===e&&(e={});var t=e.handleWidth;void 0===t&&(t=5);var n=e.cellMinWidth;void 0===n&&(n=25);var r=e.View;void 0===r&&(r=Ce);var a=e.lastColumnResizable;return void 0===a&&(a=!0),new i.Plugin({key:Te,state:{init:function(e,t){return this.spec.props.nodeViews[y(t.schema).table.name]=function(e,t){return new r(e,n,t)},new Ee(-1,!1)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return Te.getState(e).activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(e,n){!function(e,t,n,r,a){var i=Te.getState(e.state);if(!i.dragging){var o=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),s=-1;if(o){var l=o.getBoundingClientRect(),c=l.left,u=l.right;t.clientX-c<=n?s=Ae(e,t,"left"):u-t.clientX<=n&&(s=Ae(e,t,"right"))}if(s!=i.activeHandle){if(!a&&-1!==s){var d=e.state.doc.resolve(s),p=d.node(-1),m=f.get(p),h=d.start(-1);if(m.colCount(d.pos-h)+d.nodeAfter.attrs.colspan-1==m.width-1)return}$e(e,s)}}}(e,n,t,0,a)},mouseleave:function(e){!function(e){var t=Te.getState(e.state);t.activeHandle>-1&&!t.dragging&&$e(e,-1)}(e)},mousedown:function(e,t){!function(e,t,n){var r=Te.getState(e.state);if(-1==r.activeHandle||r.dragging)return!1;var a=e.state.doc.nodeAt(r.activeHandle),i=function(e,t,n){var r=n.colspan,a=n.colwidth,i=a&&a[a.length-1];if(i)return i;var o=e.domAtPos(t),s=o.node.childNodes[o.offset].offsetWidth,l=r;if(a)for(var c=0;c<r;c++)a[c]&&(s-=a[c],l--);return s/l}(e,r.activeHandle,a.attrs);function o(t){window.removeEventListener("mouseup",o),window.removeEventListener("mousemove",s);var r=Te.getState(e.state);r.dragging&&(function(e,t,n){for(var r=e.state.doc.resolve(t),a=r.node(-1),i=f.get(a),o=r.start(-1),s=i.colCount(r.pos-o)+r.nodeAfter.attrs.colspan-1,l=e.state.tr,c=0;c<i.height;c++){var u=c*i.width+s;if(!c||i.map[u]!=i.map[u-i.width]){var d=i.map[u],p=a.nodeAt(d).attrs,m=1==p.colspan?0:s-i.colCount(d);if(!p.colwidth||p.colwidth[m]!=n){var h=p.colwidth?p.colwidth.slice():Pe(p.colspan);h[m]=n,l.setNodeMarkup(o+d,null,O(p,"colwidth",h))}}}l.docChanged&&e.dispatch(l)}(e,r.activeHandle,je(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Te,{setDragging:null})))}function s(t){if(!t.which)return o(t);var r=Te.getState(e.state),a=je(r.dragging,t,n);!function(e,t,n,r){for(var a=e.state.doc.resolve(t),i=a.node(-1),o=a.start(-1),s=f.get(i).colCount(a.pos-o)+a.nodeAfter.attrs.colspan-1,l=e.domAtPos(a.start(-1)).node;"TABLE"!=l.nodeName;)l=l.parentNode;Le(i,l.firstChild,l,r,s,n)}(e,r.activeHandle,a,n)}e.dispatch(e.state.tr.setMeta(Te,{setDragging:{startX:t.clientX,startWidth:i}})),window.addEventListener("mouseup",o),window.addEventListener("mousemove",s),t.preventDefault()}(e,t,n)}},decorations:function(e){var t=Te.getState(e);if(t.activeHandle>-1)return function(e,t){for(var n=[],r=e.doc.resolve(t),a=r.node(-1),i=f.get(a),o=r.start(-1),s=i.colCount(r.pos-o)+r.nodeAfter.attrs.colspan,c=0;c<i.height;c++){var u=s+c*i.width-1;if(!(s!=i.width&&i.map[u]==i.map[u+1]||0!=c&&i.map[u-1]==i.map[u-1-i.width])){var d=i.map[u],p=o+d+a.nodeAt(d).nodeSize-1,m=document.createElement("div");m.className="column-resize-handle",n.push(l.a.widget(p,m))}}return l.b.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}})}var Ee=function(e,t){this.activeHandle=e,this.dragging=t};function Ae(e,t,n){var r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return-1;var a=r.pos,i=w(e.state.doc.resolve(a));if(!i)return-1;if("right"==n)return i.pos;var o=f.get(i.node(-1)),s=i.start(-1),l=o.map.indexOf(i.pos-s);return l%o.width==0?-1:s+o.map[l-1]}function je(e,t,n){var r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function $e(e,t){e.dispatch(e.state.tr.setMeta(Te,{setHandle:t}))}function Pe(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function Ye(e){void 0===e&&(e={});var t=e.allowTableNodeSelection;return void 0===t&&(t=!1),new i.Plugin({key:b,state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(b);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;var r=e.mapping.mapResult(t),a=r.deleted,i=r.pos;return a?null:i}},props:{decorations:Y,handleDOMEvents:{mousedown:G},createSelectionBetween:function(e){if(null!=b.getState(e.state))return e.state.selection},handleTripleClick:K,handleKeyDown:B,handlePaste:Z},appendTransaction:function(e,n,r){return function(e,t,n){var r,a,o=(t||e).selection,s=(t||e).doc;if(o instanceof i.NodeSelection&&(a=o.node.type.spec.tableRole)){if("cell"==a||"header_cell"==a)r=$.create(s,o.from);else if("row"==a){var l=s.resolve(o.from+1);r=$.rowSelection(l,l)}else if(!n){var c=f.get(o.node),u=o.from+1,d=u+c.map[c.width*c.height-1];r=$.create(s,u+1,d)}}else o instanceof i.TextSelection&&function(e){var t=e.$from,n=e.$to;if(t.pos==n.pos||t.pos<t.pos-6)return!1;for(var r=t.pos,a=n.pos,i=t.depth;i>=0&&!(t.after(i+1)<t.end(i));i--,r++);for(var o=n.depth;o>=0&&!(n.before(o+1)>n.start(o));o--,a--);return r==a&&/row|table/.test(t.node(i).type.spec.tableRole)}(o)?r=i.TextSelection.create(s,o.from):o instanceof i.TextSelection&&function(e){for(var t,n,r=e.$from,a=e.$to,i=r.depth;i>0;i--){var o=r.node(i);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){t=o;break}}for(var s=a.depth;s>0;s--){var l=a.node(s);if("cell"===l.type.spec.tableRole||"header_cell"===l.type.spec.tableRole){n=l;break}}return t!==n&&0===a.parentOffset}(o)&&(r=i.TextSelection.create(s,o.$from.start(),o.$from.end()));return r&&(t||(t=e.tr)).setSelection(r),t}(r,ne(r,n),t)}})}Ee.prototype.apply=function(e){var t=this,n=e.getMeta(Te);if(n&&null!=n.setHandle)return new Ee(n.setHandle,null);if(n&&void 0!==n.setDragging)return new Ee(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){var r=e.mapping.map(t.activeHandle,-1);D(e.doc.resolve(r))||(r=null),t=new Ee(r,t.dragging)}return t}},"55c9":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(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;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,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:r,longMonthsParse:r,shortMonthsParse:r,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",w:"una semana",ww:"%d semanas",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}})}(n("c1df"))},5692:function(e,t,n){var r=n("c430"),a=n("c6cd");(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.0",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),a=n("241c"),i=n("7418"),o=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},"576a":function(e,t,n){"use strict";n.d(t,"a",(function(){return Tt})),n.d(t,"b",(function(){return jt}));var r=n("5313"),a=n("304a"),i=n("0ac0"),o={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var s=/Edge\/(\d+)/.exec(navigator.userAgent),l=/MSIE \d/.test(navigator.userAgent),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);o.mac=/Mac/.test(navigator.platform);var u=o.ie=!!(l||c||s);o.ie_version=l?document.documentMode||6:c?+c[1]:s?+s[1]:null,o.gecko=!u&&/gecko\/(\d+)/i.test(navigator.userAgent),o.gecko_version=o.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var d=!u&&/Chrome\/(\d+)/.exec(navigator.userAgent);o.chrome=!!d,o.chrome_version=d&&+d[1],o.ios=!u&&/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),o.android=/Android \d/.test(navigator.userAgent),o.webkit="webkitFontSmoothing"in document.documentElement.style,o.safari=/Apple Computer/.test(navigator.vendor),o.webkit_version=o.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var p=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},m=function(e){var t=e.parentNode;return t&&11==t.nodeType?t.host:t},f=null,h=function(e,t,n){var r=f||(f=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},_=function(e,t,n,r){return n&&(g(e,t,n,r,-1)||g(e,t,n,r,1))},v=/^(img|br|input|textarea|hr)$/i;function g(e,t,n,r,a){for(;;){if(e==n&&t==r)return!0;if(t==(a<0?0:y(e))){var i=e.parentNode;if(1!=i.nodeType||b(e)||v.test(e.nodeName)||"false"==e.contentEditable)return!1;t=p(e)+(a<0?0:1),e=i}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(a<0?-1:0)]).contentEditable)return!1;t=a<0?y(e):0}}}function y(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function b(e){for(var t,n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var w=function(e){var t=e.isCollapsed;return t&&o.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function x(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function k(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function D(e,t){return"number"==typeof e?e:e[t]}function M(e){var t=e.getBoundingClientRect();return{left:t.left,right:t.left+e.clientWidth,top:t.top,bottom:t.top+e.clientHeight}}function S(e,t,n){for(var r=e.someProp("scrollThreshold")||0,a=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument,o=n||e.dom;o;o=m(o))if(1==o.nodeType){var s=o==i.body||1!=o.nodeType,l=s?k(i):M(o),c=0,u=0;if(t.top<l.top+D(r,"top")?u=-(l.top-t.top+D(a,"top")):t.bottom>l.bottom-D(r,"bottom")&&(u=t.bottom-l.bottom+D(a,"bottom")),t.left<l.left+D(r,"left")?c=-(l.left-t.left+D(a,"left")):t.right>l.right-D(r,"right")&&(c=t.right-l.right+D(a,"right")),c||u)if(s)i.defaultView.scrollBy(c,u);else{var d=o.scrollLeft,p=o.scrollTop;u&&(o.scrollTop+=u),c&&(o.scrollLeft+=c);var f=o.scrollLeft-d,h=o.scrollTop-p;t={left:t.left-f,top:t.top-h,right:t.right-f,bottom:t.bottom-h}}if(s)break}}function C(e){for(var t=[],n=e.ownerDocument;e&&(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e!=n);e=m(e));return t}function L(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=r.dom,i=r.top,o=r.left;a.scrollTop!=i+t&&(a.scrollTop=i+t),a.scrollLeft!=o&&(a.scrollLeft=o)}}var T=null;function O(e,t){for(var n,r,a=2e8,i=0,o=t.top,s=t.top,l=e.firstChild,c=0;l;l=l.nextSibling,c++){var u=void 0;if(1==l.nodeType)u=l.getClientRects();else{if(3!=l.nodeType)continue;u=h(l).getClientRects()}for(var d=0;d<u.length;d++){var p=u[d];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);var m=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(m<a){n=l,a=m,r=m&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==l.nodeType&&m&&(i=c+(t.left>=(p.left+p.right)/2?1:0));continue}}!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(i=c+1)}}return n&&3==n.nodeType?function(e,t){for(var n=e.nodeValue.length,r=document.createRange(),a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);var i=$(r,1);if(i.top!=i.bottom&&E(t,i))return{node:e,offset:a+(t.left>=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}(n,r):!n||a&&1==n.nodeType?{node:e,offset:i}:O(n,r)}function E(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function A(e,t,n){var r=e.childNodes.length;if(r&&n.top<n.bottom)for(var a=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),i=a;;){var o=e.childNodes[i];if(1==o.nodeType)for(var s=o.getClientRects(),l=0;l<s.length;l++){var c=s[l];if(E(t,c))return A(o,t,c)}if((i=(i+1)%r)==a)break}return e}function j(e,t){var n,r,a,i,s=e.root;if(s.caretPositionFromPoint)try{var l=s.caretPositionFromPoint(t.left,t.top);l&&(a=(n=l).offsetNode,i=n.offset)}catch(e){}if(!a&&s.caretRangeFromPoint){var c=s.caretRangeFromPoint(t.left,t.top);c&&(a=(r=c).startContainer,i=r.startOffset)}var u,d=s.elementFromPoint(t.left,t.top+1);if(!d||!e.dom.contains(1!=d.nodeType?d.parentNode:d)){var p=e.dom.getBoundingClientRect();if(!E(t,p))return null;if(!(d=A(e.dom,t,p)))return null}if(o.safari&&d.draggable&&(a=i=null),d=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(d,t),a){if(o.gecko&&1==a.nodeType&&(i=Math.min(i,a.childNodes.length))<a.childNodes.length){var m,f=a.childNodes[i];"IMG"==f.nodeName&&(m=f.getBoundingClientRect()).right<=t.left&&m.bottom>t.top&&i++}a==e.dom&&i==a.childNodes.length-1&&1==a.lastChild.nodeType&&t.top>a.lastChild.getBoundingClientRect().bottom?u=e.state.doc.content.size:0!=i&&1==a.nodeType&&"BR"==a.childNodes[i-1].nodeName||(u=function(e,t,n,r){for(var a=-1,i=t;i!=e.dom;){var o=e.docView.nearestDesc(i,!0);if(!o)return null;if(o.node.isBlock&&o.parent){var s=o.dom.getBoundingClientRect();if(s.left>r.left||s.top>r.top)a=o.posBefore;else{if(!(s.right<r.left||s.bottom<r.top))break;a=o.posAfter}}i=o.dom.parentNode}return a>-1?a:e.docView.posFromDOM(t,n)}(e,a,i,t))}null==u&&(u=function(e,t,n){var r=O(t,n),a=r.node,i=r.offset,o=-1;if(1==a.nodeType&&!a.firstChild){var s=a.getBoundingClientRect();o=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(a,i,o)}(e,d,t));var h=e.docView.nearestDesc(d,!0);return{pos:u,inside:h?h.posAtStart-h.border:-1}}function $(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var P=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Y(e,t,n){var r=e.docView.domFromPos(t),a=r.node,i=r.offset,s=e.state.doc.resolve(t),l=s.parent.inlineContent,c=o.webkit||o.gecko;if(3==a.nodeType&&c&&P.test(a.nodeValue)){var u=$(h(a,i,i),n);if(o.gecko&&i&&/\s/.test(a.nodeValue[i-1])&&i<a.nodeValue.length){var d=$(h(a,i-1,i-1),-1);if(d.top==u.top){var m=$(h(a,i,i+1),-1);if(m.top!=u.top)return N(m,m.left<d.left)}}return u}if(l){for(var f=s.depth?e.docView.domAfterPos(s.before()):e.dom;n<0&&!i&&a!=f;)i=p(a),a=a.parentNode;for(;n>=0&&i==y(a)&&a!=f;)i=p(a)+1,a=a.parentNode}if(3==a.nodeType)return n<0?N($(h(a,i-1,i),1),!1):N($(h(a,i,i+1),-1),!0);if(!l){if(i&&(n<0||i==y(a))){var _=a.childNodes[i-1];if(1==_.nodeType)return z(_.getBoundingClientRect(),!1)}if(i<y(a)){var v=a.childNodes[i];if(1==v.nodeType)return z(v.getBoundingClientRect(),!0)}return z(a.getBoundingClientRect(),n>=0)}if(i&&(n<0||i==y(a))){var g=a.childNodes[i-1],b=3==g.nodeType?h(g,y(g)-(c?0:1)):1==g.nodeType&&"BR"!=g.nodeName?g:null;if(b)return N($(b,1),!1)}if(i<y(a)){var w=a.childNodes[i],x=3==w.nodeType?h(w,0,c?0:1):1==w.nodeType?w:null;if(x)return N($(x,-1),!0)}return N($(3==a.nodeType?h(a):a,-n),n>=0)}function N(e,t){if(0==e.width)return e;var n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function z(e,t){if(0==e.height)return e;var n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function I(e,t,n){var r=e.state,a=e.root.activeElement;r!=t&&e.updateState(t),a!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),a!=e.dom&&a&&a.focus()}}var F=/[\u0590-\u08ac]/,H=null,R=null,B=!1;function q(e,t,n){return H==t&&R==n?B:(H=t,R=n,B="up"==n||"down"==n?function(e,t,n){var r=t.selection,a="up"==n?r.$anchor.min(r.$head):r.$anchor.max(r.$head);return I(e,t,(function(){for(var t=e.docView.domFromPos(a.pos).node;;){var r=e.docView.nearestDesc(t,!0);if(!r)break;if(r.node.isBlock){t=r.dom;break}t=r.dom.parentNode}for(var i=Y(e,a.pos,1),o=t.firstChild;o;o=o.nextSibling){var s=void 0;if(1==o.nodeType)s=o.getClientRects();else{if(3!=o.nodeType)continue;s=h(o,0,o.nodeValue.length).getClientRects()}for(var l=0;l<s.length;l++){var c=s[l];if(c.bottom>c.top&&("up"==n?c.bottom<i.top+1:c.top>i.bottom-1))return!1}}return!0}))}(e,t,n):function(e,t,n){var r=t.selection.$head;if(!r.parent.isTextblock)return!1;var a=r.parentOffset,i=!a,o=a==r.parent.content.size,s=getSelection();return F.test(r.parent.textContent)&&s.modify?I(e,t,(function(){var t=s.getRangeAt(0),a=s.focusNode,i=s.focusOffset,o=s.caretBidiLevel;s.modify("move",n,"character");var l=!(r.depth?e.docView.domAfterPos(r.before()):e.dom).contains(1==s.focusNode.nodeType?s.focusNode:s.focusNode.parentNode)||a==s.focusNode&&i==s.focusOffset;return s.removeAllRanges(),s.addRange(t),null!=o&&(s.caretBidiLevel=o),l})):"left"==n||"backward"==n?i:o}(e,t,n))}var V=function(e,t,n,r){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=r,this.dirty=0},W={beforePosition:{configurable:!0},size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0}};V.prototype.matchesWidget=function(){return!1},V.prototype.matchesMark=function(){return!1},V.prototype.matchesNode=function(){return!1},V.prototype.matchesHack=function(){return!1},W.beforePosition.get=function(){return!1},V.prototype.parseRule=function(){return null},V.prototype.stopEvent=function(){return!1},W.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},W.border.get=function(){return 0},V.prototype.destroy=function(){this.parent=null,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=null);for(var e=0;e<this.children.length;e++)this.children[e].destroy()},V.prototype.posBeforeChild=function(e){for(var t=0,n=this.posAtStart;t<this.children.length;t++){var r=this.children[t];if(r==e)return n;n+=r.size}},W.posBefore.get=function(){return this.parent.posBeforeChild(this)},W.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},W.posAfter.get=function(){return this.posBefore+this.size},W.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},V.prototype.localPosFromDOM=function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var r,a;if(e==this.contentDOM)r=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.previousSibling}for(;r&&(!(a=r.pmViewDesc)||a.parent!=this);)r=r.previousSibling;return r?this.posBeforeChild(a)+a.size:this.posAtStart}var i,o;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&(!(o=i.pmViewDesc)||o.parent!=this);)i=i.nextSibling;return i?this.posBeforeChild(o):this.posAtEnd}var s;if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))s=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var l=e;;l=l.parentNode){if(l==this.dom){s=!1;break}if(l.parentNode.firstChild!=l)break}if(null==s&&t==e.childNodes.length)for(var c=e;;c=c.parentNode){if(c==this.dom){s=!0;break}if(c.parentNode.lastChild!=c)break}}return(null==s?n>0:s)?this.posAtEnd:this.posAtStart},V.prototype.nearestDesc=function(e,t){for(var n=!0,r=e;r;r=r.parentNode){var a=this.getDesc(r);if(a&&(!t||a.node)){if(!n||!a.nodeDOM||(1==a.nodeDOM.nodeType?a.nodeDOM.contains(1==e.nodeType?e:e.parentNode):a.nodeDOM==e))return a;n=!1}}},V.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},V.prototype.posFromDOM=function(e,t,n){for(var r=e;r;r=r.parentNode){var a=this.getDesc(r);if(a)return a.localPosFromDOM(e,t,n)}return-1},V.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var r=this.children[t],a=n+r.size;if(n==e&&a!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<a)return r.descAt(e-n-r.border);n=a}},V.prototype.domFromPos=function(e){if(!this.contentDOM)return{node:this.dom,offset:0};for(var t=0,n=0;;n++){if(t==e){for(;n<this.children.length&&(this.children[n].beforePosition||this.children[n].dom.parentNode!=this.contentDOM);)n++;return{node:this.contentDOM,offset:n==this.children.length?this.contentDOM.childNodes.length:p(this.children[n].dom)}}if(n==this.children.length)throw new Error("Invalid position "+e);var r=this.children[n],a=t+r.size;if(e<a)return r.domFromPos(e-t-r.border);t=a}},V.prototype.parseRange=function(e,t,n){if(void 0===n&&(n=0),0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var r=-1,a=-1,i=n,o=0;;o++){var s=this.children[o],l=i+s.size;if(-1==r&&e<=l){var c=i+s.border;if(e>=c&&t<=l-s.border&&s.node&&s.contentDOM&&this.contentDOM.contains(s.contentDOM))return s.parseRange(e,t,c);e=i;for(var u=o;u>0;u--){var d=this.children[u-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){r=p(d.dom)+1;break}e-=d.size}-1==r&&(r=0)}if(r>-1&&(l>t||o==this.children.length-1)){t=l;for(var m=o+1;m<this.children.length;m++){var f=this.children[m];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){a=p(f.dom);break}t+=f.size}-1==a&&(a=this.contentDOM.childNodes.length);break}i=l}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:a}},V.prototype.emptyChildAt=function(e){if(this.border||!this.contentDOM||!this.children.length)return!1;var t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)},V.prototype.domAfterPos=function(e){var t=this.domFromPos(e),n=t.node,r=t.offset;if(1!=n.nodeType||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]},V.prototype.setSelection=function(e,t,n,r){for(var a=Math.min(e,t),i=Math.max(e,t),s=0,l=0;s<this.children.length;s++){var c=this.children[s],u=l+c.size;if(a>l&&i<u)return c.setSelection(e-l-c.border,t-l-c.border,n,r);l=u}var d=this.domFromPos(e),p=this.domFromPos(t),m=n.getSelection(),f=!1;if((o.gecko||o.safari)&&e==t)if(3==d.node.nodeType)f=d.offset&&"\n"==d.node.nodeValue[d.offset-1];else{var h=d.node.childNodes[d.offset-1];f=h&&("BR"==h.nodeName||"false"==h.contentEditable)}if(r||f&&o.safari||!_(d.node,d.offset,m.anchorNode,m.anchorOffset)||!_(p.node,p.offset,m.focusNode,m.focusOffset)){var v=!1;if((m.extend||e==t)&&!f){m.collapse(d.node,d.offset);try{e!=t&&m.extend(p.node,p.offset),v=!0}catch(e){if(!(e instanceof DOMException))throw e}}if(!v){if(e>t){var g=d;d=p,p=g}var y=document.createRange();y.setEnd(p.node,p.offset),y.setStart(d.node,d.offset),m.removeAllRanges(),m.addRange(y)}}},V.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},W.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},V.prototype.markDirty=function(e,t){for(var n=0,r=0;r<this.children.length;r++){var a=this.children[r],i=n+a.size;if(n==i?e<=i&&t>=n:e<i&&t>n){var o=n+a.border,s=i-a.border;if(e>=o&&t<=s)return this.dirty=e==n||t==i?2:1,void(e!=o||t!=s||!a.contentLost&&a.dom.parentNode==this.contentDOM?a.markDirty(e-o,t-o):a.dirty=3);a.dirty=3}n=i}this.dirty=2},V.prototype.markParentsDirty=function(){for(var e=1,t=this.parent;t;t=t.parent,e++){var n=1==e?2:1;t.dirty<n&&(t.dirty=n)}},Object.defineProperties(V.prototype,W);var U=[],K=function(e){function t(t,n,r,a){var i,o=n.type.toDOM;if("function"==typeof o&&(o=o(r,(function(){return i?i.parent?i.parent.posBeforeChild(i):void 0:a}))),!n.type.spec.raw){if(1!=o.nodeType){var s=document.createElement("span");s.appendChild(o),o=s}o.contentEditable=!1,o.classList.add("ProseMirror-widget")}e.call(this,t,U,o,null),this.widget=n,i=this}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={beforePosition:{configurable:!0}};return n.beforePosition.get=function(){return this.widget.type.side<0},t.prototype.matchesWidget=function(e){return 0==this.dirty&&e.type.eq(this.widget.type)},t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.stopEvent=function(e){var t=this.widget.spec.stopEvent;return!!t&&t(e)},t.prototype.ignoreMutation=function(e){return"selection"!=e.type||this.widget.spec.ignoreSelection},Object.defineProperties(t.prototype,n),t}(V),Z=function(e){function t(t,n,r,a){e.call(this,t,U,n,null),this.textDOM=r,this.text=a}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0}};return n.size.get=function(){return this.text.length},t.prototype.localPosFromDOM=function(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t},t.prototype.domFromPos=function(e){return{node:this.textDOM,offset:e}},t.prototype.ignoreMutation=function(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue},Object.defineProperties(t.prototype,n),t}(V),G=function(e){function t(t,n,r,a){e.call(this,t,[],r,a),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,r,i){var o=i.nodeViews[n.type.name],s=o&&o(n,i,r);return s&&s.dom||(s=a.DOMSerializer.renderSpec(document,n.type.spec.toDOM(n,r))),new t(e,n,s.dom,s.contentDOM||s.dom)},t.prototype.parseRule=function(){return{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},t.prototype.matchesMark=function(e){return 3!=this.dirty&&this.mark.eq(e)},t.prototype.markDirty=function(t,n){if(e.prototype.markDirty.call(this,t,n),0!=this.dirty){for(var r=this.parent;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=0}},t.prototype.slice=function(e,n,r){var a=t.create(this.parent,this.mark,!0,r),i=this.children,o=this.size;n<o&&(i=me(i,n,o,r)),e>0&&(i=me(i,0,e,r));for(var s=0;s<i.length;s++)i[s].parent=a;return a.children=i,a},t}(V),J=function(e){function t(t,n,r,a,i,o,s,l,c){e.call(this,t,n.isLeaf?U:[],i,o),this.nodeDOM=s,this.node=n,this.outerDeco=r,this.innerDeco=a,o&&this.updateChildren(l,c)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0},border:{configurable:!0}};return t.create=function(e,n,r,i,o,s){var l,c,u=o.nodeViews[n.type.name],d=u&&u(n,o,(function(){return c?c.parent?c.parent.posBeforeChild(c):void 0:s}),r),p=d&&d.dom,m=d&&d.contentDOM;if(n.isText)if(p){if(3!=p.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else p=document.createTextNode(n.text);else p||(p=(l=a.DOMSerializer.renderSpec(document,n.type.spec.toDOM(n))).dom,m=l.contentDOM);m||n.isText||"BR"==p.nodeName||(p.hasAttribute("contenteditable")||(p.contentEditable=!1),n.type.spec.draggable&&(p.draggable=!0));var f=p;return p=le(p,r,n),d?c=new te(e,n,r,i,p,m,f,d,o,s+1):n.isText?new Q(e,n,r,i,p,f,o):new t(e,n,r,i,p,m,f,o,s+1)},t.prototype.parseRule=function(){var e=this;if(this.node.type.spec.reparseInView)return null;var t={node:this.node.type.name,attrs:this.node.attrs};return this.node.type.spec.code&&(t.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?t.contentElement=this.contentDOM:t.getContent=function(){return e.contentDOM?a.Fragment.empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&ce(t,this.outerDeco)&&n.eq(this.innerDeco)},n.size.get=function(){return this.node.nodeSize},n.border.get=function(){return this.node.isLeaf?0:1},t.prototype.updateChildren=function(e,t){var n=this,r=this.node.inlineContent,i=t,s=r&&e.composing&&this.localCompositionNode(e,t),l=new de(this,s&&s.node);!function(e,t,n,r){var a=t.locals(e),i=0;if(0!=a.length)for(var o=0,s=[],l=null,c=0;;){if(o<a.length&&a[o].to==i){for(var u=a[o++],d=void 0;o<a.length&&a[o].to==i;)(d||(d=[u])).push(a[o++]);if(d){d.sort(pe);for(var p=0;p<d.length;p++)n(d[p],c,!!l)}else n(u,c,!!l)}var m=void 0,f=void 0;if(l)f=-1,m=l,l=null;else{if(!(c<e.childCount))break;f=c,m=e.child(c++)}for(var h=0;h<s.length;h++)s[h].to<=i&&s.splice(h--,1);for(;o<a.length&&a[o].from<=i&&a[o].to>i;)s.push(a[o++]);var _=i+m.nodeSize;if(m.isText){var v=_;o<a.length&&a[o].from<v&&(v=a[o].from);for(var g=0;g<s.length;g++)s[g].to<v&&(v=s[g].to);v<_&&(l=m.cut(v-i),m=m.cut(0,v-i),_=v,f=-1)}r(m,s.length?m.isInline&&!m.isLeaf?s.filter((function(e){return!e.inline})):s.slice():U,t.forChild(i,m),f),i=_}else for(var y=0;y<e.childCount;y++){var b=e.child(y);r(b,a,t.forChild(i,b),y),i+=b.nodeSize}}(this.node,this.innerDeco,(function(t,o,s){t.spec.marks?l.syncToMarks(t.spec.marks,r,e):t.type.side>=0&&!s&&l.syncToMarks(o==n.node.childCount?a.Mark.none:n.node.child(o).marks,r,e),l.placeWidget(t,e,i)}),(function(t,n,a,o){l.syncToMarks(t.marks,r,e),l.findNodeMatch(t,n,a,o)||l.updateNextNode(t,n,a,e,o)||l.addNode(t,n,a,e,i),i+=t.nodeSize})),l.syncToMarks(U,r,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),ne(this.contentDOM,this.children,e),o.ios&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){var t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))},t.prototype.localCompositionNode=function(e,t){var n=e.state.selection,a=n.from,i=n.to;if(!(!(e.state.selection instanceof r.TextSelection)||a<t||i>t+this.node.content.size)){var o=e.root.getSelection(),s=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];t=y(e=e.childNodes[t-1])}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}(o.focusNode,o.focusOffset);if(s&&this.dom.contains(s.parentNode)){var l=s.nodeValue,c=function(e,t,n,r){for(var a=0,i=0;a<e.childCount&&i<=r;){var o=e.child(a++),s=i;if(i+=o.nodeSize,o.isText){for(var l=o.text;a<e.childCount;){var c=e.child(a++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){var u=l.lastIndexOf(t,r-s);if(u>=0&&u+t.length+s>=n)return s+u}}}return-1}(this.node.content,l,a-t,i-t);return c<0?null:{node:s,pos:c,text:l}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,r=t.pos,a=t.text;if(!this.getDesc(n)){for(var i=n;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=null)}var o=new Z(this,i,n,a);e.compositionNodes.push(o),this.children=me(this.children,r,r+a.length,e,o)}},t.prototype.update=function(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node)||(this.updateInner(e,t,n,r),0))},t.prototype.updateInner=function(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0},t.prototype.updateOuterDeco=function(e){if(!ce(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=oe(this.dom,this.nodeDOM,ie(this.outerDeco,this.node,t),ie(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=e}},t.prototype.selectNode=function(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)},t.prototype.deselectNode=function(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")},Object.defineProperties(t.prototype,n),t}(V);function X(e,t,n,r,a){return le(r,t,e),new J(null,e,t,n,r,r,r,a,0)}var Q=function(e){function t(t,n,r,a,i,o,s){e.call(this,t,n,r,a,i,null,o,s)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.parseRule=function(){for(var e=this.nodeDOM.parentNode;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}},t.prototype.update=function(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node)||(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,0))},t.prototype.inParent=function(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1},t.prototype.domFromPos=function(e){return{node:this.nodeDOM,offset:e}},t.prototype.localPosFromDOM=function(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,r)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,r){var a=this.node.cut(e,n),i=document.createTextNode(a.text);return new t(this.parent,a,this.outerDeco,this.innerDeco,i,i,r)},t}(J),ee=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.matchesHack=function(){return 0==this.dirty},t}(V),te=function(e){function t(t,n,r,a,i,o,s,l,c,u){e.call(this,t,n,r,a,i,o,s,c,u),this.spec=l}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.update=function(t,n,r,a){if(3==this.dirty)return!1;if(this.spec.update){var i=this.spec.update(t,n);return i&&this.updateInner(t,n,r,a),i}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,r,a)},t.prototype.selectNode=function(){this.spec.selectNode?this.spec.selectNode():e.prototype.selectNode.call(this)},t.prototype.deselectNode=function(){this.spec.deselectNode?this.spec.deselectNode():e.prototype.deselectNode.call(this)},t.prototype.setSelection=function(t,n,r,a){this.spec.setSelection?this.spec.setSelection(t,n,r):e.prototype.setSelection.call(this,t,n,r,a)},t.prototype.destroy=function(){this.spec.destroy&&this.spec.destroy(),e.prototype.destroy.call(this)},t.prototype.stopEvent=function(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)},t.prototype.ignoreMutation=function(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):e.prototype.ignoreMutation.call(this,t)},t}(J);function ne(e,t,n){for(var r=e.firstChild,a=!1,i=0;i<t.length;i++){var o=t[i],s=o.dom;if(s.parentNode==e){for(;s!=r;)r=ue(r),a=!0;r=r.nextSibling}else a=!0,e.insertBefore(s,r);if(o instanceof G){var l=r?r.previousSibling:e.lastChild;ne(o.contentDOM,o.children,n),r=l?l.nextSibling:e.firstChild}}for(;r;)r=ue(r),a=!0;a&&n.trackWrites==e&&(n.trackWrites=null)}function re(e){e&&(this.nodeName=e)}re.prototype=Object.create(null);var ae=[new re];function ie(e,t,n){if(0==e.length)return ae;for(var r=n?ae[0]:new re,a=[r],i=0;i<e.length;i++){var o=e[i].type.attrs;if(o)for(var s in o.nodeName&&a.push(r=new re(o.nodeName)),o){var l=o[s];null!=l&&(n&&1==a.length&&a.push(r=new re(t.isInline?"span":"div")),"class"==s?r.class=(r.class?r.class+" ":"")+l:"style"==s?r.style=(r.style?r.style+";":"")+l:"nodeName"!=s&&(r[s]=l))}}return a}function oe(e,t,n,r){if(n==ae&&r==ae)return t;for(var a=t,i=0;i<r.length;i++){var o=r[i],s=n[i];if(i){var l=void 0;s&&s.nodeName==o.nodeName&&a!=e&&(l=a.parentNode)&&l.tagName.toLowerCase()==o.nodeName||((l=document.createElement(o.nodeName)).pmIsDeco=!0,l.appendChild(a),s=ae[0]),a=l}se(a,s||ae[0],o)}return a}function se(e,t,n){for(var r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(var a in n)"class"!=a&&"style"!=a&&"nodeName"!=a&&n[a]!=t[a]&&e.setAttribute(a,n[a]);if(t.class!=n.class){for(var i=t.class?t.class.split(" "):U,o=n.class?n.class.split(" "):U,s=0;s<i.length;s++)-1==o.indexOf(i[s])&&e.classList.remove(i[s]);for(var l=0;l<o.length;l++)-1==i.indexOf(o[l])&&e.classList.add(o[l])}if(t.style!=n.style){if(t.style)for(var c,u=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;c=u.exec(t.style);)e.style.removeProperty(c[1]);n.style&&(e.style.cssText+=n.style)}}function le(e,t,n){return oe(e,e,ae,ie(t,n,1!=e.nodeType))}function ce(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function ue(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var de=function(e,t){this.top=e,this.lock=t,this.index=0,this.stack=[],this.changed=!1;var n=function(e,t){for(var n=[],r=e.childCount,a=t.length-1;r>0&&a>=0;a--){var i=t[a],o=i.node;if(o){if(o!=e.child(r-1))break;n.push(i),--r}}return{nodes:n.reverse(),offset:r}}(e.node.content,e.children);this.preMatched=n.nodes,this.preMatchOffset=n.offset};function pe(e,t){return e.type.side-t.type.side}function me(e,t,n,r,a){for(var i=[],o=0,s=0;o<e.length;o++){var l=e[o],c=s,u=s+=l.size;c>=n||u<=t?i.push(l):(c<t&&i.push(l.slice(0,t-c,r)),a&&(i.push(a),a=null),u>n&&i.push(l.slice(n-c,l.size,r)))}return i}function fe(e,t){var n=e.root.getSelection(),a=e.state.doc;if(!n.focusNode)return null;var i=e.docView.nearestDesc(n.focusNode),o=i&&0==i.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(s<0)return null;var l,c,u=a.resolve(s);if(w(n)){for(l=u;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&r.NodeSelection.isSelectable(i.node)&&i.parent&&(!i.node.isInline||!function(e,t,n){for(var r=0==t,a=t==y(e);r||a;){if(e==n)return!0;var i=p(e);if(!(e=e.parentNode))return!1;r=r&&0==i,a=a&&i==y(e)}}(n.focusNode,n.focusOffset,i.dom))){var d=i.posBefore;c=new r.NodeSelection(s==d?u:a.resolve(d))}}else{var m=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(m<0)return null;l=a.resolve(m)}return c||(c=xe(e,l,u,"pointer"==t||e.state.selection.head<u.pos&&!o?1:-1)),c}function he(e,t){var n=e.state.selection;if(be(e,n),e.editable?e.hasFocus():ke(e)&&document.activeElement&&document.activeElement.contains(e.dom)){if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){var t=e.root.getSelection(),n=document.createRange(),r=e.cursorWrapper.dom,a="IMG"==r.nodeName;a?n.setEnd(r.parentNode,p(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!a&&!e.state.selection.visible&&o.ie&&o.ie_version<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{var a,i,s=n.anchor,l=n.head;!_e||n instanceof r.TextSelection||(n.$from.parent.inlineContent||(a=ve(e,n.from)),n.empty||n.$from.parent.inlineContent||(i=ve(e,n.to))),e.docView.setSelection(s,l,e.root,t),_e&&(a&&ye(a),i&&ye(i)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.hideSelectionGuard);var n=e.root.getSelection(),r=n.anchorNode,a=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==r&&n.anchorOffset==a||(t.removeEventListener("selectionchange",e.hideSelectionGuard),e.dom.classList.remove("ProseMirror-hideselection"))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}de.prototype.getPreMatch=function(e){return e>=this.preMatchOffset?this.preMatched[e-this.preMatchOffset]:null},de.prototype.destroyBetween=function(e,t){if(e!=t){for(var n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}},de.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},de.prototype.syncToMarks=function(e,t,n){for(var r=0,a=this.stack.length>>1,i=Math.min(a,e.length);r<i&&(r==a-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning;)r++;for(;r<a;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);for(var o=-1,s=this.index;s<Math.min(this.index+3,this.top.children.length);s++)if(this.top.children[s].matchesMark(e[a])){o=s;break}if(o>-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{var l=G.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,a++}},de.prototype.findNodeMatch=function(e,t,n,r){var a=-1,i=r<0?void 0:this.getPreMatch(r),o=this.top.children;if(i&&i.matchesNode(e,t,n))a=o.indexOf(i);else for(var s=this.index,l=Math.min(o.length,s+5);s<l;s++){var c=o[s];if(c.matchesNode(e,t,n)&&this.preMatched.indexOf(c)<0){a=s;break}}return!(a<0||(this.destroyBetween(this.index,a),this.index++,0))},de.prototype.updateNextNode=function(e,t,n,r,a){for(var i=this.index;i<this.top.children.length;i++){var o=this.top.children[i];if(o instanceof J){var s=this.preMatched.indexOf(o);if(s>-1&&s+this.preMatchOffset!=a)return!1;var l=o.dom;if((!this.lock||!(l==this.lock||1==l.nodeType&&l.contains(this.lock.parentNode))||e.isText&&o.node&&o.node.isText&&o.nodeDOM.nodeValue==e.text&&3!=o.dirty&&ce(t,o.outerDeco))&&o.update(e,t,n,r))return this.destroyBetween(this.index,i),o.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1},de.prototype.addNode=function(e,t,n,r,a){this.top.children.splice(this.index++,0,J.create(this.top,e,t,n,r,a)),this.changed=!0},de.prototype.placeWidget=function(e,t,n){var r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){var a=new K(this.top,e,t,n);this.top.children.splice(this.index++,0,a),this.changed=!0}else this.index++},de.prototype.addTextblockHacks=function(){for(var e=this.top.children[this.index-1];e instanceof G;)e=e.children[e.children.length-1];if(!e||!(e instanceof Q)||/\n$/.test(e.node.text))if(this.index<this.top.children.length&&this.top.children[this.index].matchesHack())this.index++;else{var t=document.createElement("br");this.top.children.splice(this.index++,0,new ee(this.top,U,t,null)),this.changed=!0}};var _e=o.safari||o.chrome&&o.chrome_version<63;function ve(e,t){var n=e.docView.domFromPos(t),r=n.node,a=n.offset,i=a<r.childNodes.length?r.childNodes[a]:null,s=a?r.childNodes[a-1]:null;if(o.safari&&i&&"false"==i.contentEditable)return ge(i);if(!(i&&"false"!=i.contentEditable||s&&"false"!=s.contentEditable)){if(i)return ge(i);if(s)return ge(s)}}function ge(e){return e.contentEditable="true",o.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function ye(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function be(e,t){if(t instanceof r.NodeSelection){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(we(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else we(e)}function we(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function xe(e,t,n,a){return e.someProp("createSelectionBetween",(function(r){return r(e,t,n)}))||r.TextSelection.between(t,n,a)}function ke(e){var t=e.root.getSelection();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function De(e,t){var n=e.selection,a=n.$anchor,i=n.$head,o=t>0?a.max(i):a.min(i),s=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return s&&r.Selection.findFrom(s,t)}function Me(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Se(e,t,n){var a=e.state.selection;if(!(a instanceof r.TextSelection)){if(a instanceof r.NodeSelection&&a.node.isInline)return Me(e,new r.TextSelection(t>0?a.$to:a.$from));var i=De(e.state,t);return!!i&&Me(e,i)}if(!a.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var s=De(e.state,t);return!!(s&&s instanceof r.NodeSelection)&&Me(e,s)}if(!(o.mac&&n.indexOf("m")>-1)){var l,c=a.$head,u=c.textOffset?null:t<0?c.nodeBefore:c.nodeAfter;if(!u||u.isText)return!1;var d=t<0?c.pos-u.nodeSize:c.pos;return!!(u.isAtom||(l=e.docView.descAt(d))&&!l.contentDOM)&&(r.NodeSelection.isSelectable(u)?Me(e,new r.NodeSelection(t<0?e.state.doc.resolve(c.pos-u.nodeSize):c)):!!o.webkit&&Me(e,new r.TextSelection(e.state.doc.resolve(t<0?d:d+u.nodeSize))))}}function Ce(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Le(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function Te(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){var a,i,s=!1;for(o.gecko&&1==n.nodeType&&r<Ce(n)&&Le(n.childNodes[r])&&(s=!0);;)if(r>0){if(1!=n.nodeType)break;var l=n.childNodes[r-1];if(Le(l))a=n,i=--r;else{if(3!=l.nodeType)break;r=(n=l).nodeValue.length}}else{if(Ee(n))break;for(var c=n.previousSibling;c&&Le(c);)a=n.parentNode,i=p(c),c=c.previousSibling;if(c)r=Ce(n=c);else{if((n=n.parentNode)==e.dom)break;r=0}}s?Ae(e,t,n,r):a&&Ae(e,t,a,i)}}function Oe(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){for(var a,i,o=Ce(n);;)if(r<o){if(1!=n.nodeType)break;if(!Le(n.childNodes[r]))break;a=n,i=++r}else{if(Ee(n))break;for(var s=n.nextSibling;s&&Le(s);)a=s.parentNode,i=p(s)+1,s=s.nextSibling;if(s)r=0,o=Ce(n=s);else{if((n=n.parentNode)==e.dom)break;r=o=0}}a&&Ae(e,t,a,i)}}function Ee(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Ae(e,t,n,r){if(w(t)){var a=document.createRange();a.setEnd(n,r),a.setStart(n,r),t.removeAllRanges(),t.addRange(a)}else t.extend&&t.extend(n,r);e.domObserver.setCurSelection();var i=e.state;setTimeout((function(){e.state==i&&he(e)}),50)}function je(e,t,n){var a=e.state.selection;if(a instanceof r.TextSelection&&!a.empty||n.indexOf("s")>-1)return!1;if(o.mac&&n.indexOf("m")>-1)return!1;var i=a.$from,s=a.$to;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var l=De(e.state,t);if(l&&l instanceof r.NodeSelection)return Me(e,l)}if(!i.parent.inlineContent){var c=r.Selection.findFrom(t<0?i:s,t);return!c||Me(e,c)}return!1}function $e(e,t){if(!(e.state.selection instanceof r.TextSelection))return!0;var n=e.state.selection,a=n.$head,i=n.$anchor,o=n.empty;if(!a.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var s=!a.textOffset&&(t<0?a.nodeBefore:a.nodeAfter);if(s&&!s.isText){var l=e.state.tr;return t<0?l.delete(a.pos-s.nodeSize,a.pos):l.delete(a.pos,a.pos+s.nodeSize),e.dispatch(l),!0}return!1}function Pe(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Ye(e,t){var n=t.keyCode,r=function(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);return 8==n||o.mac&&72==n&&"c"==r?$e(e,-1)||Te(e):46==n||o.mac&&68==n&&"c"==r?$e(e,1)||Oe(e):13==n||27==n||(37==n?Se(e,-1,r)||Te(e):39==n?Se(e,1,r)||Oe(e):38==n?je(e,-1,r)||Te(e):40==n?function(e){if(o.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n&&1==n.nodeType&&0==r&&n.firstChild&&"false"==n.firstChild.contentEditable){var a=n.firstChild;Pe(e,a,!0),setTimeout((function(){return Pe(e,a,!1)}),20)}}}(e)||je(e,1,r)||Oe(e):r==(o.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function Ne(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(o.safari&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){var n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}if(e.parentNode.lastChild==e||o.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function ze(e,t,n,i,s){if(t<0){var l=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,c=fe(e,l);if(c&&!e.state.selection.eq(c)){var u=e.state.tr.setSelection(c);"pointer"==l?u.setMeta("pointer",!0):"key"==l&&u.scrollIntoView(),e.dispatch(u)}}else{var d=e.state.doc.resolve(t),p=d.sharedDepth(n);t=d.before(p+1),n=e.state.doc.resolve(n).after(p+1);var m,f,h=e.state.selection,_=function(e,t,n){var r=e.docView.parseRange(t,n),i=r.node,s=r.fromOffset,l=r.toOffset,c=r.from,u=r.to,d=e.root.getSelection(),p=null,m=d.anchorNode;if(m&&e.dom.contains(1==m.nodeType?m:m.parentNode)&&(p=[{node:m,offset:d.anchorOffset}],w(d)||p.push({node:d.focusNode,offset:d.focusOffset})),o.chrome&&8===e.lastKeyCode)for(var f=l;f>s;f--){var h=i.childNodes[f-1],_=h.pmViewDesc;if("BR"==h.nodeType&&!_){l=f;break}if(!_||_.size)break}var v=e.state.doc,g=e.someProp("domParser")||a.DOMParser.fromSchema(e.state.schema),y=v.resolve(c),b=null,x=g.parse(i,{topNode:y.parent,topMatch:y.parent.contentMatchAt(y.index()),topOpen:!0,from:s,to:l,preserveWhitespace:!y.parent.type.spec.code||"full",editableContent:!0,findPositions:p,ruleFromNode:Ne,context:y});if(p&&null!=p[0].pos){var k=p[0].pos,D=p[1]&&p[1].pos;null==D&&(D=k),b={anchor:k+c,head:D+c}}return{doc:x,sel:b,from:c,to:u}}(e,t,n),v=e.state.doc,g=v.slice(_.from,_.to);8===e.lastKeyCode&&Date.now()-100<e.lastKeyCodeTime?(m=e.state.selection.to,f="end"):(m=e.state.selection.from,f="start"),e.lastKeyCode=null;var y=function(e,t,n,r,a){var i=e.findDiffStart(t,n);if(null==i)return null;var o=e.findDiffEnd(t,n+e.size,n+t.size),s=o.a,l=o.b;return"end"==a&&(r-=s+Math.max(0,i-Math.min(s,l))-i),s<i&&e.size<t.size?(l=(i-=r<=i&&r>=s?i-r:0)+(l-s),s=i):l<i&&(s=(i-=r<=i&&r>=l?i-r:0)+(s-l),l=i),{start:i,endA:s,endB:l}}(g.content,_.doc.content,_.from,m,f);if(!y){if(!(i&&h instanceof r.TextSelection&&!h.empty&&h.$head.sameParent(h.$anchor))||e.composing||_.sel&&_.sel.anchor!=_.sel.head){if(_.sel){var b=Ie(e,e.state.doc,_.sel);b&&!b.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(b))}return}y={start:h.from,endA:h.to,endB:h.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&y.start==y.endB&&e.state.selection instanceof r.TextSelection&&(y.start>e.state.selection.from&&y.start<=e.state.selection.from+2?y.start=e.state.selection.from:y.endA<e.state.selection.to&&y.endA>=e.state.selection.to-2&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),o.ie&&o.ie_version<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>_.from&&"  "==_.doc.textBetween(y.start-_.from-1,y.start-_.from+1)&&(y.start--,y.endA--,y.endB--);var k,D=_.doc.resolveNoCache(y.start-_.from),M=_.doc.resolveNoCache(y.endB-_.from),S=D.sameParent(M)&&D.parent.inlineContent;if((o.ios&&e.lastIOSEnter>Date.now()-225&&(!S||s.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!S&&D.pos<_.doc.content.size&&(k=r.Selection.findFrom(_.doc.resolve(D.pos+1),1,!0))&&k.head==M.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,x(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>y.start&&function(e,t,n,r,a){if(!r.parent.isTextblock||n-t<=a.pos-r.pos||Fe(r,!0,!1)<a.pos)return!1;var i=e.resolve(t);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;var o=e.resolve(Fe(i,!0,!0));return!(!o.parent.isTextblock||o.pos>n||Fe(o,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(o.parent.content)}(v,y.start,y.endA,D,M)&&e.someProp("handleKeyDown",(function(t){return t(e,x(8,"Backspace"))})))o.android&&o.chrome&&e.domObserver.suppressSelectionUpdates();else{o.android&&!S&&D.start()!=M.start()&&0==M.parentOffset&&D.depth==M.depth&&_.sel&&_.sel.anchor==_.sel.head&&_.sel.head==y.endA&&(y.endB-=2,M=_.doc.resolveNoCache(y.endB-_.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,x(13,"Enter"))}))}),20));var C,L,T,O,E=y.start,A=y.endA;if(S)if(D.pos==M.pos)o.ie&&o.ie_version<=11&&0==D.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return he(e)}),20)),C=e.state.tr.delete(E,A),L=v.resolve(y.start).marksAcross(v.resolve(y.endA));else if(y.endA==y.endB&&(O=v.resolve(y.start))&&(T=function(e,t){for(var n,r,i,o=e.firstChild.marks,s=t.firstChild.marks,l=o,c=s,u=0;u<s.length;u++)l=s[u].removeFromSet(l);for(var d=0;d<o.length;d++)c=o[d].removeFromSet(c);if(1==l.length&&0==c.length)r=l[0],n="add",i=function(e){return e.mark(r.addToSet(e.marks))};else{if(0!=l.length||1!=c.length)return null;r=c[0],n="remove",i=function(e){return e.mark(r.removeFromSet(e.marks))}}for(var p=[],m=0;m<t.childCount;m++)p.push(i(t.child(m)));if(a.Fragment.from(p).eq(e))return{mark:r,type:n}}(D.parent.content.cut(D.parentOffset,M.parentOffset),O.parent.content.cut(O.parentOffset,y.endA-O.start()))))C=e.state.tr,"add"==T.type?C.addMark(E,A,T.mark):C.removeMark(E,A,T.mark);else if(D.parent.child(D.index()).isText&&D.index()==M.index()-(M.textOffset?0:1)){var j=D.parent.textBetween(D.parentOffset,M.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,E,A,j)})))return;C=e.state.tr.insertText(j,E,A)}if(C||(C=e.state.tr.replace(E,A,_.doc.slice(y.start-_.from,y.endB-_.from))),_.sel){var $=Ie(e,C.doc,_.sel);$&&!(o.chrome&&o.android&&e.composing&&$.empty&&($.head==E||$.head==C.mapping.map(A)-1)||o.ie&&$.empty&&$.head==E)&&C.setSelection($)}L&&C.ensureMarks(L),e.dispatch(C.scrollIntoView())}}}function Ie(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:xe(e,t.resolve(n.anchor),t.resolve(n.head))}function Fe(e,t,n){for(var r=e.depth,a=t?e.end():e.pos;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,a++,t=!1;if(n)for(var i=e.node(r).maybeChild(e.indexAfter(r));i&&!i.isLeaf;)i=i.firstChild,a++;return a}function He(e,t){for(var n=[],r=t.content,i=t.openStart,o=t.openEnd;i>1&&o>1&&1==r.childCount&&1==r.firstChild.childCount;){i--,o--;var s=r.firstChild;n.push(s.type.name,s.attrs!=s.type.defaultAttrs?s.attrs:null),r=s.content}var l=e.someProp("clipboardSerializer")||a.DOMSerializer.fromSchema(e.state.schema),c=Ze(),u=c.createElement("div");u.appendChild(l.serializeFragment(r,{document:c}));for(var d,p=u.firstChild;p&&1==p.nodeType&&(d=Ue[p.nodeName.toLowerCase()]);){for(var m=d.length-1;m>=0;m--){for(var f=c.createElement(d[m]);u.firstChild;)f.appendChild(u.firstChild);u.appendChild(f)}p=u.firstChild}return p&&1==p.nodeType&&p.setAttribute("data-pm-slice",i+" "+o+" "+JSON.stringify(n)),{dom:u,text:e.someProp("clipboardTextSerializer",(function(e){return e(t)}))||t.content.textBetween(0,t.content.size,"\n\n")}}function Re(e,t,n,r,i){var o,s,l=i.parent.type.spec.code;if(!n&&!t)return null;var c=t&&(r||l||!n);if(c){if(e.someProp("transformPastedText",(function(e){t=e(t,l||r)})),l)return new a.Slice(a.Fragment.from(e.state.schema.text(t)),0,0);var u=e.someProp("clipboardTextParser",(function(e){return e(t,i,r)}));u?s=u:(o=document.createElement("div"),t.trim().split(/(?:\r\n?|\n)+/).forEach((function(e){o.appendChild(document.createElement("p")).textContent=e})))}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),o=function(e){var t=/(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,r=Ze().createElement("div"),a=/(?:<meta [^>]*>)*<([a-z][^>\s]+)/i.exec(e),i=0;(n=a&&Ue[a[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join(""),i=n.length),r.innerHTML=e;for(var o=0;o<i;o++)r=r.firstChild;return r}(n);var d=o&&o.querySelector("[data-pm-slice]"),p=d&&/^(\d+) (\d+) (.*)/.exec(d.getAttribute("data-pm-slice"));if(!s){var m=e.someProp("clipboardParser")||e.someProp("domParser")||a.DOMParser.fromSchema(e.state.schema);s=m.parseSlice(o,{preserveWhitespace:!(!c&&!p),context:i})}return s=p?function(e,t){if(!e.size)return e;var n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}for(var i=e.content,o=e.openStart,s=e.openEnd,l=n.length-2;l>=0;l-=2){var c=r.nodes[n[l]];if(!c||c.hasRequiredAttrs())break;i=a.Fragment.from(c.create(n[l+1],i)),o++,s++}return new a.Slice(i,o,s)}(function(e,t,n){return t<e.openStart&&(e=new a.Slice(We(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new a.Slice(We(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}(s,+p[1],+p[2]),p[3]):a.Slice.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n=function(n){var r=t.node(n).contentMatchAt(t.index(n)),i=void 0,o=[];if(e.forEach((function(e){if(o){var t,n=r.findWrapping(e.type);if(!n)return o=null;if(t=o.length&&i.length&&qe(n,i,e,o[o.length-1],0))o[o.length-1]=t;else{o.length&&(o[o.length-1]=Ve(o[o.length-1],i.length));var a=Be(e,n);o.push(a),r=r.matchType(a.type,a.attrs),i=n}}})),o)return{v:a.Fragment.from(o)}},r=t.depth;r>=0;r--){var i=n(r);if(i)return i.v}return e}(s.content,i),!1),e.someProp("transformPasted",(function(e){s=e(s)})),s}function Be(e,t,n){void 0===n&&(n=0);for(var r=t.length-1;r>=n;r--)e=t[r].create(null,a.Fragment.from(e));return e}function qe(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){var o=qe(e,t,n,r.lastChild,i+1);if(o)return r.copy(r.content.replaceChild(r.childCount-1,o));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(a.Fragment.from(Be(n,e,i+1))))}}function Ve(e,t){if(0==t)return e;var n=e.content.replaceChild(e.childCount-1,Ve(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(a.Fragment.empty,!0);return e.copy(n.append(r))}function We(e,t,n,r,i,o){var s=t<0?e.firstChild:e.lastChild,l=s.content;return i<r-1&&(l=We(l,t,n,r,i+1,o)),i>=n&&(l=t<0?s.contentMatchAt(0).fillBefore(l,e.childCount>1||o<=i).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(a.Fragment.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(l))}var Ue={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Ke=null;function Ze(){return Ke||(Ke=document.implementation.createHTMLDocument("title"))}var Ge={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Je=o.ie&&o.ie_version<=11,Xe=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};Xe.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},Xe.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var Qe=function(e,t){var n=this;this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver((function(e){for(var t=0;t<e.length;t++)n.queue.push(e[t]);o.ie&&o.ie_version<=11&&e.some((function(e){return"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length}))?n.flushSoon():n.flush()})),this.currentSelection=new Xe,Je&&(this.onCharData=function(e){n.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1};Qe.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},Qe.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},Qe.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,Ge),Je&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},Qe.prototype.stop=function(){var e=this;if(this.observer){var t=this.observer.takeRecords();if(t.length){for(var n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout((function(){return e.flush()}),20)}this.observer.disconnect()}Je&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},Qe.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},Qe.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},Qe.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},Qe.prototype.onSelectionChange=function(){if((!(e=this.view).editable||e.root.activeElement==e.dom)&&ke(e)){var e;if(this.suppressingSelectionUpdates)return he(this.view);if(o.ie&&o.ie_version<=11&&!this.view.state.selection.empty){var t=this.view.root.getSelection();if(t.focusNode&&_(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}},Qe.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},Qe.prototype.ignoreSelectionChange=function(e){if(0==e.rangeCount)return!0;var t=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0},Qe.prototype.flush=function(){if(this.view.docView&&!(this.flushingSoon>-1)){var e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);var t=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&ke(this.view)&&!this.ignoreSelectionChange(t),r=-1,a=-1,i=!1,s=[];if(this.view.editable)for(var l=0;l<e.length;l++){var c=this.registerMutation(e[l],s);c&&(r=r<0?c.from:Math.min(c.from,r),a=a<0?c.to:Math.max(c.to,a),c.typeOver&&(i=!0))}if(o.gecko&&s.length>1){var u=s.filter((function(e){return"BR"==e.nodeName}));if(2==u.length){var d=u[0],p=u[1];d.parentNode&&d.parentNode.parentNode==p.parentNode?p.remove():d.remove()}}(r>-1||n)&&(r>-1&&(this.view.docView.markDirty(r,a),m=this.view,et||(et=!0,"normal"==getComputedStyle(m.dom).whiteSpace&&console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."))),this.handleDOMChange(r,a,i,s),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||he(this.view))}var m},Qe.prototype.registerMutation=function(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){var r=e.previousSibling,a=e.nextSibling;if(o.ie&&o.ie_version<=11&&e.addedNodes.length)for(var i=0;i<e.addedNodes.length;i++){var s=e.addedNodes[i],l=s.previousSibling,c=s.nextSibling;(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(r=l),(!c||Array.prototype.indexOf.call(e.addedNodes,c)<0)&&(a=c)}for(var u=r&&r.parentNode==e.target?p(r)+1:0,d=n.localPosFromDOM(e.target,u,-1),m=a&&a.parentNode==e.target?p(a):e.target.childNodes.length,f=0;f<e.addedNodes.length;f++)t.push(e.addedNodes[f]);return{from:d,to:n.localPosFromDOM(e.target,m,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}};var et=!1,tt={},nt={};function rt(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function at(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return it(e,t)})}))}function it(e,t){return e.someProp("handleDOMEvents",(function(n){var r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)}))}function ot(e){return{left:e.clientX,top:e.clientY}}function st(e,t,n,r,a){if(-1==r)return!1;for(var i=e.state.doc.resolve(r),o=function(r){if(e.someProp(t,(function(t){return r>i.depth?t(e,n,i.nodeAfter,i.before(r),a,!0):t(e,n,i.node(r),i.before(r),a,!1)})))return{v:!0}},s=i.depth+1;s>0;s--){var l=o(s);if(l)return l.v}return!1}function lt(e,t,n){e.focused||e.focus();var r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function ct(e,t,n,a,i){return st(e,"handleClickOn",t,n,a)||e.someProp("handleClick",(function(n){return n(e,t,a)}))||(i?function(e,t){if(-1==t)return!1;var n,a,i=e.state.selection;i instanceof r.NodeSelection&&(n=i.node);for(var o=e.state.doc.resolve(t),s=o.depth+1;s>0;s--){var l=s>o.depth?o.nodeAfter:o.node(s);if(r.NodeSelection.isSelectable(l)){a=n&&i.$from.depth>0&&s>=i.$from.depth&&o.before(i.$from.depth+1)==i.$from.pos?o.before(i.$from.depth):o.before(s);break}}return null!=a&&(lt(e,r.NodeSelection.create(e.state.doc,a),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),a=n.nodeAfter;return!!(a&&a.isAtom&&r.NodeSelection.isSelectable(a))&&(lt(e,new r.NodeSelection(n),"pointer"),!0)}(e,n))}function ut(e,t,n,r){return st(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",(function(n){return n(e,t,r)}))}function dt(e,t,n,a){return st(e,"handleTripleClickOn",t,n,a)||e.someProp("handleTripleClick",(function(n){return n(e,t,a)}))||function(e,t){var n=e.state.doc;if(-1==t)return!!n.inlineContent&&(lt(e,r.TextSelection.create(n,0,n.content.size),"pointer"),!0);for(var a=n.resolve(t),i=a.depth+1;i>0;i--){var o=i>a.depth?a.nodeAfter:a.node(i),s=a.before(i);if(o.inlineContent)lt(e,r.TextSelection.create(n,s+1,s+1+o.content.size),"pointer");else{if(!r.NodeSelection.isSelectable(o))continue;lt(e,r.NodeSelection.create(n,s),"pointer")}return!0}}(e,n)}function pt(e){return yt(e)}nt.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!ht(e,t))if(e.domObserver.forceFlush(),e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!o.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",(function(n){return n(e,t)}))||Ye(e,t)?t.preventDefault():rt(e,"key");else{var n=Date.now();e.lastIOSEnter=n,e.lastIOSEnterFallbackTimeout=setTimeout((function(){e.lastIOSEnter==n&&(e.someProp("handleKeyDown",(function(t){return t(e,x(13,"Enter"))})),e.lastIOSEnter=0)}),200)}},nt.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},nt.keypress=function(e,t){if(!(ht(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||o.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof r.TextSelection&&n.$from.sameParent(n.$to))){var a=String.fromCharCode(t.charCode);e.someProp("handleTextInput",(function(t){return t(e,n.$from.pos,n.$to.pos,a)}))||e.dispatch(e.state.tr.insertText(a).scrollIntoView()),t.preventDefault()}}};var mt=o.mac?"metaKey":"ctrlKey";tt.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=pt(e),r=Date.now(),a="singleClick";r-e.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(t,e.lastClick)&&!t[mt]&&("singleClick"==e.lastClick.type?a="doubleClick":"doubleClick"==e.lastClick.type&&(a="tripleClick")),e.lastClick={time:r,x:t.clientX,y:t.clientY,type:a};var i=e.posAtCoords(ot(t));i&&("singleClick"==a?e.mouseDown=new ft(e,i,t,n):("doubleClick"==a?ut:dt)(e,i.pos,i.inside,t)?t.preventDefault():rt(e,"pointer"))};var ft=function(e,t,n,a){var i,s,l=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=a,this.selectNode=n[mt],this.allowDefault=n.shiftKey,t.inside>-1)i=e.state.doc.nodeAt(t.inside),s=t.inside;else{var c=e.state.doc.resolve(t.pos);i=c.parent,s=c.depth?c.before():0}this.mightDrag=null;var u=a?null:n.target,d=u?e.docView.nearestDesc(u,!0):null;this.target=d?d.dom:null,(i.type.spec.draggable&&!1!==i.type.spec.selectable||e.state.selection instanceof r.NodeSelection&&s==e.state.selection.from)&&(this.mightDrag={node:i,pos:s,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&o.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((function(){return l.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),rt(e,"pointer")};function ht(e,t){return!!e.composing||!!(o.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}ft.prototype.done=function(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.view.mouseDown=null},ft.prototype.up=function(e){if(this.done(),this.view.dom.contains(3==e.target.nodeType?e.target.parentNode:e.target)){var t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(ot(e))),this.allowDefault||!t?rt(this.view,"pointer"):ct(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():this.flushed||o.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||o.chrome&&!(this.view.state.selection instanceof r.TextSelection)&&(t.pos==this.view.state.selection.from||t.pos==this.view.state.selection.to)?(lt(this.view,r.Selection.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):rt(this.view,"pointer")}},ft.prototype.move=function(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),rt(this.view,"pointer")},tt.touchdown=function(e){pt(e),rt(e,"pointer")},tt.contextmenu=function(e){return pt(e)};var _t=o.android?5e3:-1;function vt(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return yt(e)}),t))}function gt(e){for(e.composing=!1;e.compositionNodes.length>0;)e.compositionNodes.pop().markParentsDirty()}function yt(e,t){if(e.domObserver.forceFlush(),gt(e),t||e.docView.dirty){var n=fe(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}nt.compositionstart=nt.compositionupdate=function(e){if(!e.composing){e.domObserver.flush();var t=e.state,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((function(e){return!1===e.type.spec.inclusive}))))e.markCursor=e.state.storedMarks||n.marks(),yt(e,!0),e.markCursor=null;else if(yt(e),o.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var r=e.root.getSelection(),a=r.focusNode,i=r.focusOffset;a&&1==a.nodeType&&0!=i;){var s=i<0?a.lastChild:a.childNodes[i-1];if(!s)break;if(3==s.nodeType){r.collapse(s,s.nodeValue.length);break}a=s,i=-1}e.composing=!0}vt(e,_t)},nt.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,vt(e,20))};var bt=o.ie&&o.ie_version<15||o.ios&&o.webkit_version<604;function wt(e,t,n,r){var i=Re(e,t,n,e.shiftKey,e.state.selection.$from);if(!e.someProp("handlePaste",(function(t){return t(e,r,i||a.Slice.empty)}))&&i){var o=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(i),s=o?e.state.tr.replaceSelectionWith(o,e.shiftKey):e.state.tr.replaceSelection(i);e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste"))}}tt.copy=nt.cut=function(e,t){var n=e.state.selection,r="cut"==t.type;if(!n.empty){var a=bt?null:t.clipboardData,i=He(e,n.content()),o=i.dom,s=i.text;a?(t.preventDefault(),a.clearData(),a.setData("text/html",o.innerHTML),a.setData("text/plain",s)):function(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var r=getSelection(),a=document.createRange();a.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(a),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,o),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},nt.paste=function(e,t){var n=bt?null:t.clipboardData,r=n&&n.getData("text/html"),a=n&&n.getData("text/plain");n&&(r||a||n.files.length)?(wt(e,a,r,t),t.preventDefault()):function(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout((function(){e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?wt(e,r.value,null,t):wt(e,r.textContent,r.innerHTML,t)}),50)}}(e,t)};var xt=function(e,t){this.slice=e,this.move=t},kt=o.mac?"altKey":"ctrlKey";for(var Dt in tt.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var a=e.state.selection,i=a.empty?null:e.posAtCoords(ot(t));if(i&&i.pos>=a.from&&i.pos<=(a instanceof r.NodeSelection?a.to-1:a.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(r.NodeSelection.create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var o=e.docView.nearestDesc(t.target,!0);if(!o||!o.node.type.spec.draggable||o==e.docView)return;e.dispatch(e.state.tr.setSelection(r.NodeSelection.create(e.state.doc,o.posBefore)))}var s=e.state.selection.content(),l=He(e,s),c=l.dom,u=l.text;t.dataTransfer.clearData(),t.dataTransfer.setData(bt?"Text":"text/html",c.innerHTML),bt||t.dataTransfer.setData("text/plain",u),e.dragging=new xt(s,!t[kt])}},tt.dragend=function(e){var t=e.dragging;window.setTimeout((function(){e.dragging==t&&(e.dragging=null)}),50)},nt.dragover=nt.dragenter=function(e,t){return t.preventDefault()},nt.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var o=e.posAtCoords(ot(t));if(o){var s=e.state.doc.resolve(o.pos);if(s){var l=n&&n.slice||Re(e,t.dataTransfer.getData(bt?"Text":"text/plain"),bt?null:t.dataTransfer.getData("text/html"),!1,s),c=n&&!t[kt];if(e.someProp("handleDrop",(function(n){return n(e,t,l||a.Slice.empty,c)})))t.preventDefault();else if(l){t.preventDefault();var u=l?Object(i.h)(e.state.doc,s.pos,l):s.pos;null==u&&(u=s.pos);var d=e.state.tr;c&&d.deleteSelection();var p=d.mapping.map(u),m=0==l.openStart&&0==l.openEnd&&1==l.content.childCount,f=d.doc;if(m?d.replaceRangeWith(p,p,l.content.firstChild):d.replaceRange(p,p,l),!d.doc.eq(f)){var h=d.doc.resolve(p);if(m&&r.NodeSelection.isSelectable(l.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(l.content.firstChild))d.setSelection(new r.NodeSelection(h));else{var _=d.mapping.map(u);d.mapping.maps[d.mapping.maps.length-1].forEach((function(e,t,n,r){return _=r})),d.setSelection(xe(e,h,d.doc.resolve(_)))}e.focus(),e.dispatch(d.setMeta("uiEvent","drop"))}}}}}},tt.focus=function(e){e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((function(){e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.root.getSelection())&&he(e)}),20))},tt.blur=function(e){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),e.domObserver.currentSelection.set({}),e.focused=!1)},tt.beforeinput=function(e,t){if(o.chrome&&o.android&&"deleteContentBackward"==t.inputType){var n=e.domChangeCount;setTimeout((function(){if(e.domChangeCount==n&&(e.dom.blur(),e.focus(),!e.someProp("handleKeyDown",(function(t){return t(e,x(8,"Backspace"))})))){var t=e.state.selection.$cursor;t&&t.pos>0&&e.dispatch(e.state.tr.delete(t.pos-1,t.pos).scrollIntoView())}}),50)}},nt)tt[Dt]=nt[Dt];function Mt(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var r in t)if(!(r in e))return!1;return!0}var St=function(e,t){this.spec=t||At,this.side=this.spec.side||0,this.toDOM=e};St.prototype.map=function(e,t,n,r){var a=e.mapResult(t.from+r,this.side<0?-1:1),i=a.pos;return a.deleted?null:new Tt(i-n,i-n,this)},St.prototype.valid=function(){return!0},St.prototype.eq=function(e){return this==e||e instanceof St&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Mt(this.spec,e.spec))};var Ct=function(e,t){this.spec=t||At,this.attrs=e};Ct.prototype.map=function(e,t,n,r){var a=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return a>=i?null:new Tt(a,i,this)},Ct.prototype.valid=function(e,t){return t.from<t.to},Ct.prototype.eq=function(e){return this==e||e instanceof Ct&&Mt(this.attrs,e.attrs)&&Mt(this.spec,e.spec)},Ct.is=function(e){return e.type instanceof Ct};var Lt=function(e,t){this.spec=t||At,this.attrs=e};Lt.prototype.map=function(e,t,n,r){var a=e.mapResult(t.from+r,1);if(a.deleted)return null;var i=e.mapResult(t.to+r,-1);return i.deleted||i.pos<=a.pos?null:new Tt(a.pos-n,i.pos-n,this)},Lt.prototype.valid=function(e,t){var n=e.content.findIndex(t.from),r=n.index,a=n.offset;return a==t.from&&a+e.child(r).nodeSize==t.to},Lt.prototype.eq=function(e){return this==e||e instanceof Lt&&Mt(this.attrs,e.attrs)&&Mt(this.spec,e.spec)};var Tt=function(e,t,n){this.from=e,this.to=t,this.type=n},Ot={spec:{configurable:!0},inline:{configurable:!0}};Tt.prototype.copy=function(e,t){return new Tt(e,t,this.type)},Tt.prototype.eq=function(e,t){return void 0===t&&(t=0),this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to},Tt.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},Tt.widget=function(e,t,n){return new Tt(e,e,new St(t,n))},Tt.inline=function(e,t,n,r){return new Tt(e,t,new Ct(n,r))},Tt.node=function(e,t,n,r){return new Tt(e,t,new Lt(n,r))},Ot.spec.get=function(){return this.type.spec},Ot.inline.get=function(){return this.type instanceof Ct},Object.defineProperties(Tt.prototype,Ot);var Et=[],At={},jt=function(e,t){this.local=e&&e.length?e:Et,this.children=t&&t.length?t:Et};jt.create=function(e,t){return t.length?It(t,e,0,At):$t},jt.prototype.find=function(e,t,n){var r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r},jt.prototype.findInner=function(e,t,n,r,a){for(var i=0;i<this.local.length;i++){var o=this.local[i];o.from<=t&&o.to>=e&&(!a||a(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(var s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){var l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,n,r+l,a)}},jt.prototype.map=function(e,t,n){return this==$t||0==e.maps.length?this:this.mapInner(e,t,0,0,n||At)},jt.prototype.mapInner=function(e,t,n,r,a){for(var i,o=0;o<this.local.length;o++){var s=this.local[o].map(e,n,r);s&&s.type.valid(t,s)?(i||(i=[])).push(s):a.onRemove&&a.onRemove(this.local[o].spec)}return this.children.length?function(e,t,n,r,a,i,o){for(var s=e.slice(),l=function(e,t,n,r){for(var o=0;o<s.length;o+=3){var l=s[o+1],c=void 0;-1==l||e>l+i||(t>=s[o]+i?s[o+1]=-1:n>=a&&(c=r-n-(t-e))&&(s[o]+=c,s[o+1]+=c))}},c=0;c<n.maps.length;c++)n.maps[c].forEach(l);for(var u=!1,d=0;d<s.length;d+=3)if(-1==s[d+1]){var p=n.map(e[d]+i),m=p-a;if(m<0||m>=r.content.size){u=!0;continue}var f=n.map(e[d+1]+i,-1)-a,h=r.content.findIndex(m),_=h.index,v=h.offset,g=r.maybeChild(_);if(g&&v==m&&v+g.nodeSize==f){var y=s[d+2].mapInner(n,g,p+1,e[d]+i+1,o);y!=$t?(s[d]=m,s[d+1]=f,s[d+2]=y):(s[d+1]=-2,u=!0)}else u=!0}if(u){var b=It(function(e,t,n,r,a,i,o){function s(e,t){for(var i=0;i<e.local.length;i++){var l=e.local[i].map(r,a,t);l?n.push(l):o.onRemove&&o.onRemove(e.local[i].spec)}for(var c=0;c<e.children.length;c+=3)s(e.children[c+2],e.children[c]+t+1)}for(var l=0;l<e.length;l+=3)-1==e[l+1]&&s(e[l+2],t[l]+i+1);return n}(s,e,t||[],n,a,i,o),r,0,o);t=b.local;for(var w=0;w<s.length;w+=3)s[w+1]<0&&(s.splice(w,3),w-=3);for(var x=0,k=0;x<b.children.length;x+=3){for(var D=b.children[x];k<s.length&&s[k]<D;)k+=3;s.splice(k,0,b.children[x],b.children[x+1],b.children[x+2])}}return new jt(t&&t.sort(Ft),s)}(this.children,i,e,t,n,r,a):i?new jt(i.sort(Ft)):$t},jt.prototype.add=function(e,t){return t.length?this==$t?jt.create(e,t):this.addInner(e,t,0):this},jt.prototype.addInner=function(e,t,n){var r,a=this,i=0;e.forEach((function(e,o){var s,l=o+n;if(s=Nt(t,e,l)){for(r||(r=a.children.slice());i<r.length&&r[i]<o;)i+=3;r[i]==o?r[i+2]=r[i+2].addInner(e,s,l+1):r.splice(i,0,o,o+e.nodeSize,It(s,e,l+1,At)),i+=3}}));var o=Yt(i?zt(t):t,-n);return new jt(o.length?this.local.concat(o).sort(Ft):this.local,r||this.children)},jt.prototype.remove=function(e){return 0==e.length||this==$t?this:this.removeInner(e,0)},jt.prototype.removeInner=function(e,t){for(var n=this.children,r=this.local,a=0;a<n.length;a+=3){for(var i=void 0,o=n[a]+t,s=n[a+1]+t,l=0,c=void 0;l<e.length;l++)(c=e[l])&&c.from>o&&c.to<s&&(e[l]=null,(i||(i=[])).push(c));if(i){n==this.children&&(n=this.children.slice());var u=n[a+2].removeInner(i,o+1);u!=$t?n[a+2]=u:(n.splice(a,3),a-=3)}}if(r.length)for(var d=0,p=void 0;d<e.length;d++)if(p=e[d])for(var m=0;m<r.length;m++)r[m].eq(p,t)&&(r==this.local&&(r=this.local.slice()),r.splice(m--,1));return n==this.children&&r==this.local?this:r.length||n.length?new jt(r,n):$t},jt.prototype.forChild=function(e,t){if(this==$t)return this;if(t.isLeaf)return jt.empty;for(var n,r,a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(n=this.children[a+2]);break}for(var i=e+1,o=i+t.content.size,s=0;s<this.local.length;s++){var l=this.local[s];if(l.from<o&&l.to>i&&l.type instanceof Ct){var c=Math.max(i,l.from)-i,u=Math.min(o,l.to)-i;c<u&&(r||(r=[])).push(l.copy(c,u))}}if(r){var d=new jt(r.sort(Ft));return n?new Pt([d,n]):d}return n||$t},jt.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof jt)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(var t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(var n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0},jt.prototype.locals=function(e){return Ht(this.localsInner(e))},jt.prototype.localsInner=function(e){if(this==$t)return Et;if(e.inlineContent||!this.local.some(Ct.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof Ct||t.push(this.local[n]);return t};var $t=new jt;jt.empty=$t,jt.removeOverlap=Ht;var Pt=function(e){this.members=e};function Yt(e,t){if(!t||!e.length)return e;for(var n=[],r=0;r<e.length;r++){var a=e[r];n.push(new Tt(a.from+t,a.to+t,a.type))}return n}function Nt(e,t,n){if(t.isLeaf)return null;for(var r=n+t.nodeSize,a=null,i=0,o=void 0;i<e.length;i++)(o=e[i])&&o.from>n&&o.to<r&&((a||(a=[])).push(o),e[i]=null);return a}function zt(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function It(e,t,n,r){var a=[],i=!1;t.forEach((function(t,o){var s=Nt(e,t,o+n);if(s){i=!0;var l=It(s,t,n+o+1,r);l!=$t&&a.push(o,o+t.nodeSize,l)}}));for(var o=Yt(i?zt(e):e,-n).sort(Ft),s=0;s<o.length;s++)o[s].type.valid(t,o[s])||(r.onRemove&&r.onRemove(o[s].spec),o.splice(s--,1));return o.length||a.length?new jt(o,a):$t}function Ft(e,t){return e.from-t.from||e.to-t.to}function Ht(e){for(var t=e,n=0;n<t.length-1;n++){var r=t[n];if(r.from!=r.to)for(var a=n+1;a<t.length;a++){var i=t[a];if(i.from!=r.from){i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),Rt(t,a,r.copy(i.from,r.to)));break}i.to!=r.to&&(t==e&&(t=e.slice()),t[a]=i.copy(i.from,r.to),Rt(t,a+1,i.copy(r.to,i.to)))}}return t}function Rt(e,t,n){for(;t<e.length&&Ft(n,e[t])>0;)t++;e.splice(t,0,n)}function Bt(e){var t=[];return e.someProp("decorations",(function(n){var r=n(e.state);r&&r!=$t&&t.push(r)})),e.cursorWrapper&&t.push(jt.create(e.state.doc,[e.cursorWrapper.deco])),Pt.from(t)}Pt.prototype.forChild=function(e,t){if(t.isLeaf)return jt.empty;for(var n=[],r=0;r<this.members.length;r++){var a=this.members[r].forChild(e,t);a!=$t&&(a instanceof Pt?n=n.concat(a.members):n.push(a))}return Pt.from(n)},Pt.prototype.eq=function(e){if(!(e instanceof Pt)||e.members.length!=this.members.length)return!1;for(var t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0},Pt.prototype.locals=function(e){for(var t,n=!0,r=0;r<this.members.length;r++){var a=this.members[r].localsInner(e);if(a.length)if(t){n&&(t=t.slice(),n=!1);for(var i=0;i<a.length;i++)t.push(a[i])}else t=a}return t?Ht(n?t:t.sort(Ft)):Et},Pt.from=function(e){switch(e.length){case 0:return $t;case 1:return e[0];default:return new Pt(e)}};var qt=function(e,t){this._props=t,this.state=t.state,this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.trackWrites=null,this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):e.apply?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Kt(this),this.markCursor=null,this.cursorWrapper=null,Ut(this),this.nodeViews=Zt(this),this.docView=X(this.state.doc,Wt(this),Bt(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,function(e){e.shiftKey=!1,e.mouseDown=null,e.lastKeyCode=null,e.lastKeyCodeTime=0,e.lastClick={time:0,x:0,y:0,type:""},e.lastSelectionOrigin=null,e.lastSelectionTime=0,e.lastIOSEnter=0,e.lastIOSEnterFallbackTimeout=null,e.composing=!1,e.composingTimeout=null,e.compositionNodes=[],e.compositionEndedAt=-2e8,e.domObserver=new Qe(e,(function(t,n,r,a){return ze(e,t,n,r,a)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=tt[t];e.dom.addEventListener(t,e.eventHandlers[t]=function(t){!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}(e,t)||it(e,t)||!e.editable&&t.type in nt||n(e,t)})};for(var n in tt)t(n);o.safari&&e.dom.addEventListener("input",(function(){return null})),at(e)}(this),this.pluginViews=[],this.updatePluginViews()},Vt={props:{configurable:!0},root:{configurable:!0}};function Wt(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var r in n)"class"==r?t.class+=" "+n[r]:t[r]||"contenteditable"==r||"nodeName"==r||(t[r]=String(n[r]))})),[Tt.node(0,e.state.doc.content.size,t)]}function Ut(e){if(e.markCursor){var t=document.createElement("img");t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:Tt.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Kt(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function Zt(e){var t={};return e.someProp("nodeViews",(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])})),t}Vt.props.get=function(){if(this._props.state!=this.state){var e=this._props;for(var t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props},qt.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&at(this),this._props=e,this.updateStateInner(e.state,!0)},qt.prototype.setProps=function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var r in t.state=this.state,e)t[r]=e[r];this.update(t)},qt.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},qt.prototype.updateStateInner=function(e,t){var n=this,a=this.state,i=!1,s=!1;if(e.storedMarks&&this.composing&&(gt(this),s=!0),this.state=e,t){var l=Zt(this);(function(e,t){var n=0,r=0;for(var a in e){if(e[a]!=t[a])return!0;n++}for(var i in t)r++;return n!=r})(l,this.nodeViews)&&(this.nodeViews=l,i=!0),at(this)}this.editable=Kt(this),Ut(this);var c=Bt(this),u=Wt(this),d=t?"reset":e.scrollToSelection>a.scrollToSelection?"to selection":"preserve",p=i||!this.docView.matchesNode(e.doc,u,c);!p&&e.selection.eq(a.selection)||(s=!0);var m,f,h,v,g,y,b,w,x,k,D,M="preserve"==d&&s&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,r=e.dom.getBoundingClientRect(),a=Math.max(0,r.top),i=(r.left+r.right)/2,o=a+1;o<Math.min(innerHeight,r.bottom);o+=5){var s=e.root.elementFromPoint(i,o);if(s!=e.dom&&e.dom.contains(s)){var l=s.getBoundingClientRect();if(l.top>=a-20){t=s,n=l.top;break}}}return{refDOM:t,refTop:n,stack:C(e.dom)}}(this);if(s){this.domObserver.stop();var T=p&&(o.ie||o.chrome)&&!this.composing&&!a.selection.empty&&!e.selection.empty&&(v=a.selection,g=e.selection,y=Math.min(v.$anchor.sharedDepth(v.head),g.$anchor.sharedDepth(g.head)),v.$anchor.start(y)!=g.$anchor.start(y));if(p){var O=o.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!i&&this.docView.update(e.doc,u,c,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=X(e.doc,u,c,this.dom,this)),O&&!this.trackWrites&&(T=!0)}T||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&(m=this,f=m.docView.domFromPos(m.state.selection.anchor),h=m.root.getSelection(),_(f.node,f.offset,h.anchorNode,h.anchorOffset)))?he(this,T):(be(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(a),"reset"==d)this.dom.scrollTop=0;else if("to selection"==d){var E=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(e){return e(n)}))||(e.selection instanceof r.NodeSelection?S(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),E):S(this,this.coordsAtPos(e.selection.head,1),E))}else M&&(w=(b=M).refDOM,x=b.refTop,k=b.stack,D=w?w.getBoundingClientRect().top:0,L(k,0==D?0:D-x))},qt.prototype.destroyPluginViews=function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()},qt.prototype.updatePluginViews=function(e){if(e&&e.plugins==this.state.plugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.destroyPluginViews();for(var r=0;r<this.state.plugins.length;r++){var a=this.state.plugins[r];a.spec.view&&this.pluginViews.push(a.spec.view(this))}}},qt.prototype.someProp=function(e,t){var n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;var a=this.state.plugins;if(a)for(var i=0;i<a.length;i++){var o=a[i].props[e];if(null!=o&&(n=t?t(o):o))return n}},qt.prototype.hasFocus=function(){return this.root.activeElement==this.dom},qt.prototype.focus=function(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(T)return e.focus(T);var t=C(e);e.focus(null==T?{get preventScroll(){return T={preventScroll:!0},!0}}:void 0),T||(T=!1,L(t,0))}(this.dom),he(this),this.domObserver.start()},Vt.root.get=function(){var e=this._root;if(null==e)for(var t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=function(){return document.getSelection()}),this._root=t;return e||document},qt.prototype.posAtCoords=function(e){return j(this,e)},qt.prototype.coordsAtPos=function(e,t){return void 0===t&&(t=1),Y(this,e,t)},qt.prototype.domAtPos=function(e){return this.docView.domFromPos(e)},qt.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},qt.prototype.posAtDOM=function(e,t,n){void 0===n&&(n=-1);var r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r},qt.prototype.endOfTextblock=function(e,t){return q(this,t||this.state,e)},qt.prototype.destroy=function(){this.docView&&(function(e){for(var t in e.domObserver.stop(),e.eventHandlers)e.dom.removeEventListener(t,e.eventHandlers[t]);clearTimeout(e.composingTimeout),clearTimeout(e.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Bt(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},qt.prototype.dispatchEvent=function(e){return function(e,t){it(e,t)||!tt[t.type]||!e.editable&&t.type in nt||tt[t.type](e,t)}(this,e)},qt.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(qt.prototype,Vt)},"576c":function(e,t,n){!function(e){"use strict";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:"segundu balun",ss:"segundu %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}})}(n("c1df"))},"57a5":function(e,t,n){var r=n("91e9")(Object.keys,Object);e.exports=r},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},5899:function(e,t){e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},"58a8":function(e,t,n){var r=n("1d80"),a="["+n("5899")+"]",i=RegExp("^"+a+a+"*"),o=RegExp(a+a+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(o,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},"598a":function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,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,n){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}})}(n("c1df"))},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5aff":function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".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 sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10,a=e%100-r,i=e>=100?100:null;return e+(t[r]||t[a]||t[i])}},week:{dow:1,doy:7}})}(n("c1df"))},"5b14":function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var a=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return a+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return a+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return a+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return a+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return a+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return a+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}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("_"),monthsParseExact:!0,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,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"5c3a":function(e,t,n){!function(e){"use strict";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,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},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 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n("c1df"))},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cbb":function(e,t,n){!function(e){"use strict";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,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n("c1df"))},"5dbe":function(e,t,n){!function(){var t;function n(e){for(var t,n,r,a,i=1,o=[].slice.call(arguments),s=0,l=e.length,c="",u=!1,d=!1,p=function(){return o[i++]},m=function(){for(var n="";/\d/.test(e[s]);)n+=e[s++],t=e[s];return n.length>0?parseInt(n):null};s<l;++s)if(t=e[s],u)switch(u=!1,"."==t?(d=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(d=!0,t=e[s+=2]):d=!0,a=m(),t){case"b":c+=parseInt(p(),10).toString(2);break;case"c":c+="string"==typeof(n=p())||n instanceof String?n:String.fromCharCode(parseInt(n,10));break;case"d":c+=parseInt(p(),10);break;case"f":r=String(parseFloat(p()).toFixed(a||6)),c+=d?r:r.replace(/^0/,"");break;case"j":c+=JSON.stringify(p());break;case"o":c+="0"+parseInt(p(),10).toString(8);break;case"s":c+=p();break;case"x":c+="0x"+parseInt(p(),10).toString(16);break;case"X":c+="0x"+parseInt(p(),10).toString(16).toUpperCase();break;default:c+=t}else"%"===t?u=!0:c+=t;return c}(t=e.exports=n).format=n,t.vsprintf=function(e,t){return n.apply(null,[e].concat(t))},"undefined"!=typeof console&&"function"==typeof console.log&&(t.printf=function(){console.log(n.apply(null,arguments))})}()},"5e2e":function(e,t,n){var r=n("28c9"),a=n("69d5"),i=n("b4c0"),o=n("fba5"),s=n("67ca");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},"5fbd":function(e,t,n){!function(e){"use strict";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||2===t?":a":":e")},week:{dow:1,doy:4}})}(n("c1df"))},6044:function(e,t,n){var r=n("0b07")(Object,"create");e.exports=r},"605d":function(e,t,n){var r=n("c6b6"),a=n("da84");e.exports="process"==r(a.process)},"60ed":function(e,t,n){var r=n("3729"),a=n("2dcb"),i=n("1310"),o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=a(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},6117:function(e,t,n){!function(e){"use strict";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,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<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}})}(n("c1df"))},"62e4":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}},"63ea":function(e,t,n){var r=n("c05f");e.exports=function(e,t){return r(e,t)}},6403:function(e,t,n){!function(e){"use strict";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,n){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}})}(n("c1df"))},6547:function(e,t,n){var r=n("a691"),a=n("1d80"),i=function(e){return function(t,n){var i,o,s=String(a(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):i:e?s.slice(l,l+2):o-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},"65db":function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_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:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("c1df"))},"65f0":function(e,t,n){var r=n("861d"),a=n("e8b5"),i=n("b622")("species");e.exports=function(e,t){var n;return a(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!a(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},6747:function(e,t){var n=Array.isArray;e.exports=n},6784:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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,n){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}})}(n("c1df"))},"67ca":function(e,t,n){var r=n("cb5a");e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},6887:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+a({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function r(e){return e>9?r(e%10):e}function a(e,t){return 2===t?i(e):e}function i(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var o=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,c=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],p=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];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("_"),weekdaysParse:p,fullWeekdaysParse:u,shortWeekdaysParse:d,minWeekdaysParse:p,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:l,monthsShortStrictRegex:c,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},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:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n("c1df"))},"688b":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},6909:function(e,t,n){!function(e){"use strict";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,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("c1df"))},"69d5":function(e,t,n){var r=n("cb5a"),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():a.call(t,n,1),--this.size,0))}},"69f3":function(e,t,n){var r,a,i,o=n("7f9a"),s=n("da84"),l=n("861d"),c=n("9112"),u=n("5135"),d=n("c6cd"),p=n("f772"),m=n("d012"),f=s.WeakMap;if(o){var h=d.state||(d.state=new f),_=h.get,v=h.has,g=h.set;r=function(e,t){return t.facade=e,g.call(h,e,t),t},a=function(e){return _.call(h,e)||{}},i=function(e){return v.call(h,e)}}else{var y=p("state");m[y]=!0,r=function(e,t){return t.facade=e,c(e,y,t),t},a=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:a,has:i,enforce:function(e){return i(e)?a(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6ce3":function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._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",w:"en uke",ww:"%d uker",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}})}(n("c1df"))},"6d79":function(e,t,n){!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:"-ші"};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 n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n("c1df"))},"6d83":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"6e98":function(e,t,n){!function(e){"use strict";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:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",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",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("c1df"))},"6eeb":function(e,t,n){var r=n("da84"),a=n("9112"),i=n("5135"),o=n("ce4e"),s=n("8925"),l=n("69f3"),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,p=!!s&&!!s.enumerable,m=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||a(n,"name",t),(l=u(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(c?!m&&e[t]&&(p=!0):delete e[t],p?e[t]=n:a(e,t,n)):p?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},"6f12":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"6f50":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"6fcd":function(e,t,n){var r=n("50d8"),a=n("d370"),i=n("6747"),o=n("0d24"),s=n("c098"),l=n("73ac"),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&a(e),d=!n&&!u&&o(e),p=!n&&!u&&!d&&l(e),m=n||u||d||p,f=m?r(e.length,String):[],h=f.length;for(var _ in e)!t&&!c.call(e,_)||m&&("length"==_||d&&("offset"==_||"parent"==_)||p&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||s(_,h))||f.push(_);return f}},7118:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[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}})}(n("c1df"))},7156:function(e,t,n){var r=n("861d"),a=n("d2bb");e.exports=function(e,t,n){var i,o;return a&&"function"==typeof(i=t.constructor)&&i!==n&&r(o=i.prototype)&&o!==n.prototype&&a(e,o),e}},"716b":function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=".",t(t.s=9)}([function(e,t,n){"use strict";t.a={prefix:"",suffix:"",thousands:",",decimal:".",precision:2}},function(e,t,n){"use strict";var r=n(2),a=n(5),i=n(0);t.a=function(e,t){if(t.value){var o=n.i(a.a)(i.a,t.value);if("INPUT"!==e.tagName.toLocaleUpperCase()){var s=e.getElementsByTagName("input");1!==s.length||(e=s[0])}e.oninput=function(){var t=e.value.length-e.selectionEnd;e.value=n.i(r.a)(e.value,o),t=Math.max(t,o.suffix.length),t=e.value.length-t,t=Math.max(t,o.prefix.length+1),n.i(r.b)(e,t),e.dispatchEvent(n.i(r.c)("change"))},e.onfocus=function(){n.i(r.b)(e,e.value.length-o.suffix.length)},e.oninput(),e.dispatchEvent(n.i(r.c)("input"))}}},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.a;"number"==typeof e&&(e=e.toFixed(o(t.precision)));var n=e.indexOf("-")>=0?"-":"",r=d(l(i(e),t.precision)).split("."),a=r[0],s=r[1];return a=c(a,t.thousands),t.prefix+n+u(a,s,t.decimal)+t.suffix}function a(e,t){var n=e.indexOf("-")>=0?-1:1,r=l(i(e),t);return parseFloat(r)*n}function i(e){return d(e).replace(/\D+/g,"")||"0"}function o(e){return s(0,e,20)}function s(e,t,n){return Math.max(e,Math.min(t,n))}function l(e,t){var n=Math.pow(10,t);return(parseFloat(e)/n).toFixed(o(t))}function c(e,t){return e.replace(/(\d)(?=(?:\d{3})+\b)/gm,"$1"+t)}function u(e,t,n){return t?e+n+t:e}function d(e){return e?e.toString():""}function p(e,t){var n=function(){e.setSelectionRange(t,t)};e===document.activeElement&&(n(),setTimeout(n,1))}function m(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var f=n(0);n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return m}))},function(e,t,n){"use strict";function r(e,t){t&&Object.keys(t).map((function(e){s.a[e]=t[e]})),e.directive("money",o.a),e.component("money",i.a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),i=n.n(a),o=n(1),s=n(0);n.d(t,"Money",(function(){return i.a})),n.d(t,"VMoney",(function(){return o.a})),n.d(t,"options",(function(){return s.a})),n.d(t,"VERSION",(function(){return l}));var l="0.8.1";t.default=r,"undefined"!=typeof window&&window.Vue&&window.Vue.use(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(0),i=n(2);t.default={name:"Money",props:{value:{required:!0,type:[Number,String],default:0},masked:{type:Boolean,default:!1},precision:{type:Number,default:function(){return a.a.precision}},decimal:{type:String,default:function(){return a.a.decimal}},thousands:{type:String,default:function(){return a.a.thousands}},prefix:{type:String,default:function(){return a.a.prefix}},suffix:{type:String,default:function(){return a.a.suffix}}},directives:{money:r.a},data:function(){return{formattedValue:""}},watch:{value:{immediate:!0,handler:function(e,t){var r=n.i(i.a)(e,this.$props);r!==this.formattedValue&&(this.formattedValue=r)}}},methods:{change:function(e){this.$emit("input",this.masked?e.target.value:n.i(i.d)(e.target.value,this.precision))}}}},function(e,t,n){"use strict";t.a=function(e,t){return e=e||{},t=t||{},Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return n[r]=void 0===t[r]?e[r]:t[r],n}),{})}},function(e,t,n){var r=n(7)(n(4),n(8),null,null);e.exports=r.exports},function(e,t){e.exports=function(e,t,n,r){var a,i=e=e||{},o=typeof e.default;"object"!==o&&"function"!==o||(a=e,i=e.default);var s="function"==typeof i?i.options:i;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var l=s.computed||(s.computed={});Object.keys(r).forEach((function(e){var t=r[e];l[e]=function(){return t}}))}return{esModule:a,exports:i,options:s}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{directives:[{name:"money",rawName:"v-money",value:{precision:e.precision,decimal:e.decimal,thousands:e.thousands,prefix:e.prefix,suffix:e.suffix},expression:"{precision, decimal, thousands, prefix, suffix}"}],staticClass:"v-money",attrs:{type:"tel"},domProps:{value:e.formattedValue},on:{change:e.change}})},staticRenderFns:[]}},function(e,t,n){e.exports=n(3)}])},"72af":function(e,t,n){var r=n("99cd")();e.exports=r},"72f0":function(e,t){e.exports=function(e){return function(){return e}}},7333:function(e,t,n){!function(e){"use strict";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",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")}})}(n("c1df"))},"73ac":function(e,t,n){var r=n("743f"),a=n("b047"),i=n("99d3"),o=i&&i.isTypedArray,s=o?a(o):r;e.exports=s},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"743f":function(e,t,n){var r=n("3729"),a=n("b218"),i=n("1310"),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[r(e)]}},"746f":function(e,t,n){var r=n("428f"),a=n("5135"),i=n("e538"),o=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});a(t,e)||o(t,e,{value:i.f(e)})}},"74dc":function(e,t,n){!function(e){"use strict";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 A",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:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("c1df"))},7530:function(e,t,n){var r=n("1a8c"),a=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"79bc":function(e,t,n){var r=n("0b07")(n("2b3e"),"Map");e.exports=r},"7a48":function(e,t,n){var r=n("6044"),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7b83":function(e,t,n){var r=n("7c64"),a=n("93ed"),i=n("2478"),o=n("a524"),s=n("1fc8");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},"7b97":function(e,t,n){var r=n("7e64"),a=n("a2be"),i=n("1c3c"),o=n("b1e5"),s=n("42a2"),l=n("6747"),c=n("0d24"),u=n("73ac"),d="[object Arguments]",p="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,_,v){var g=l(e),y=l(t),b=g?p:s(e),w=y?p:s(t),x=(b=b==d?m:b)==m,k=(w=w==d?m:w)==m,D=b==w;if(D&&c(e)){if(!c(t))return!1;g=!0,x=!1}if(D&&!x)return v||(v=new r),g||u(e)?a(e,t,n,h,_,v):i(e,t,b,n,h,_,v);if(!(1&n)){var M=x&&f.call(e,"__wrapped__"),S=k&&f.call(t,"__wrapped__");if(M||S){var C=M?e.value():e,L=S?t.value():t;return v||(v=new r),_(C,L,n,h,v)}}return!!D&&(v||(v=new r),o(e,t,n,h,_,v))}},"7be6":function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function a(e,t,n,a){var i=e+" ";switch(n){case"s":return t||a?"pár sekúnd":"pár sekundami";case"ss":return t||a?i+(r(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":a?"minútu":"minútou";case"mm":return t||a?i+(r(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?i+(r(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||a?"deň":"dňom";case"dd":return t||a?i+(r(e)?"dni":"dní"):i+"dňami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?i+(r(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?i+(r(e)?"roky":"rokov"):i+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,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:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"7c64":function(e,t,n){var r=n("e24b"),a=n("5e2e"),i=n("79bc");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||a),string:new r}}},"7c73":function(e,t,n){var r,a=n("825a"),i=n("37e8"),o=n("7839"),s=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),d=u("IE_PROTO"),p=function(){},m=function(e){return"<script>"+e+"<\/script>"},f=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;f=r?function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var n=o.length;n--;)delete f.prototype[o[n]];return f()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=a(e),n=new p,p.prototype=null,n[d]=e):n=f(),void 0===t?n:i(n,t)}},"7d1f":function(e,t,n){var r=n("087d"),a=n("6747");e.exports=function(e,t,n){var i=t(e);return a(e)?i:r(i,n(e))}},"7db0":function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").find,i=n("44d2"),o=n("ae40"),s="find",l=!0,c=o(s);s in[]&&Array(1).find((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!c},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),a=n("9ed3"),i=n("e163"),o=n("d2bb"),s=n("d44e"),l=n("9112"),c=n("6eeb"),u=n("b622"),d=n("c430"),p=n("3f8c"),m=n("ae93"),f=m.IteratorPrototype,h=m.BUGGY_SAFARI_ITERATORS,_=u("iterator"),v="keys",g="values",y="entries",b=function(){return this};e.exports=function(e,t,n,u,m,w,x){a(n,t,u);var k,D,M,S=function(e){if(e===m&&E)return E;if(!h&&e in T)return T[e];switch(e){case v:case g:case y:return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",L=!1,T=e.prototype,O=T[_]||T["@@iterator"]||m&&T[m],E=!h&&O||S(m),A="Array"==t&&T.entries||O;if(A&&(k=i(A.call(new e)),f!==Object.prototype&&k.next&&(d||i(k)===f||(o?o(k,f):"function"!=typeof k[_]&&l(k,_,b)),s(k,C,!0,!0),d&&(p[C]=b))),m==g&&O&&O.name!==g&&(L=!0,E=function(){return O.call(this)}),d&&!x||T[_]===E||l(T,_,E),p[t]=E,m)if(D={values:S(g),keys:w?E:S(v),entries:S(y)},x)for(M in D)(h||L||!(M in T))&&c(T,M,D[M]);else r({target:t,proto:!0,forced:h||L},D);return D}},"7e64":function(e,t,n){var r=n("5e2e"),a=n("efb6"),i=n("2fcc"),o=n("802a"),s=n("55a3"),l=n("d02c");function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},"7ed2":function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},"7f06":function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return v}));for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},a={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},i="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),o="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),s="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),l="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),c="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=i&&(l||+i[1]<57)||s&&l,d=0;d<10;d++)r[48+d]=r[96+d]=String(d);for(d=1;d<=24;d++)r[d+111]="F"+d;for(d=65;d<=90;d++)r[d]=String.fromCharCode(d+32),a[d]=String.fromCharCode(d);for(var p in r)a.hasOwnProperty(p)||(a[p]=r[p]);var m=n("5313"),f="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);function h(e){var t,n,r,a,i=e.split(/-(?!$)/),o=i[i.length-1];"Space"==o&&(o=" ");for(var s=0;s<i.length-1;s++){var l=i[s];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))r=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: "+l);f?a=!0:n=!0}}return t&&(o="Alt-"+o),n&&(o="Ctrl-"+o),a&&(o="Meta-"+o),r&&(o="Shift-"+o),o}function _(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}function v(e){return new m.Plugin({props:{handleKeyDown:g(e)}})}function g(e){var t=function(e){var t=Object.create(null);for(var n in e)t[h(n)]=e[n];return t}(e);return function(e,n){var i,s=function(e){var t=!(u&&(e.ctrlKey||e.altKey||e.metaKey)||(o||c)&&e.shiftKey&&e.key&&1==e.key.length)&&e.key||(e.shiftKey?a:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),l=1==s.length&&" "!=s,d=t[_(s,n,!l)];if(d&&d(e.state,e.dispatch,e))return!0;if(l&&(n.shiftKey||n.altKey||n.metaKey||s.charCodeAt(0)>127)&&(i=r[n.keyCode])&&i!=s){var p=t[_(i,n,!0)];if(p&&p(e.state,e.dispatch,e))return!0}else if(l&&n.shiftKey){var m=t[_(s,n,!0)];if(m&&m(e.state,e.dispatch,e))return!0}return!1}}},"7f33":function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},"7f9a":function(e,t,n){var r=n("da84"),a=n("8925"),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(a(i))},"802a":function(e,t){e.exports=function(e){return this.__data__.get(e)}},8155:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return a+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return a+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return a+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return a+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return a+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return a+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}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}})}(n("c1df"))},"81e9":function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,t,n,r){var i="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":i=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":i=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":i=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":i=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":i=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":i=r?"vuoden":"vuotta"}return i=a(e,r)+" "+i}function a(e,r){return e<10?r?n[e]:t[e]:e}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:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},8230:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};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,n){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 n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n("c1df"))},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var r=n("c04e"),a=n("9bf2"),i=n("5c6c");e.exports=function(e,t,n){var o=r(t);o in e?a.f(e,o,i(0,n)):e[o]=n}},"841c":function(e,t,n){"use strict";var r=n("d784"),a=n("825a"),i=n("1d80"),o=n("129f"),s=n("14c3");r("search",1,(function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=a(e),l=String(this),c=i.lastIndex;o(c,0)||(i.lastIndex=0);var u=s(i,l);return o(i.lastIndex,c)||(i.lastIndex=c),null===u?-1:u.index}]}))},"84aa":function(e,t,n){!function(e){"use strict";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 дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n("c1df"))},"85e3":function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},"861d":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},8689:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:""},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","":"0"};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 n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("c1df"))},"872a":function(e,t,n){var r=n("3b4a");e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},8840:function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},8875:function(e,t,n){var r,a,i;"undefined"!=typeof self&&self,a=[],void 0===(i="function"==typeof(r=function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(e){var n,r,a,i=/@([^@]*):(\d+):(\d+)\s*$/gi,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||i.exec(e.stack),s=o&&o[1]||!1,l=o&&o[2]||!1,c=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");s===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),a=n.replace(r,"$1").trim());for(var d=0;d<u.length;d++){if("interactive"===u[d].readyState)return u[d];if(u[d].src===s)return u[d];if(s===c&&u[d].innerHTML&&u[d].innerHTML.trim()===a)return u[d]}return null}}return e})?r.apply(t,a):r)||(e.exports=i)},8925:function(e,t,n){var r=n("c6cd"),a=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return a.call(e)}),e.exports=r.inspectSource},"898b":function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(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;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,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:r,longMonthsParse:r,shortMonthsParse:r,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",w:"una semana",ww:"%d semanas",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},invalidDate:"Fecha inválida"})}(n("c1df"))},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8adb":function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},"8bbf":function(t,n){t.exports=e},"8d47":function(e,t,n){!function(e){"use strict";function t(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}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,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},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,n){var r=this._calendarEl[e],a=n&&n.hours();return t(r)&&(r=r.apply(n)),r.replace("{}",a%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}})}(n("c1df"))},"8d57":function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var r=e+" ";switch(n){case"ss":return r+(a(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(a(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(a(e)?"godziny":"godzin");case"ww":return r+(a(e)?"tygodnie":"tygodni");case"MM":return r+(a(e)?"miesiące":"miesięcy");case"yy":return r+(a(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,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",w:"tydzień",ww:i,M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},"8de2":function(e,t,n){var r=n("8eeb"),a=n("9934");e.exports=function(e){return r(e,a(e))}},"8df4":function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};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,n){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 n[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}})}(n("c1df"))},"8e73":function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,n,i,o){var s=r(t),l=a[e][r(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:o,monthsShort:o,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,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n("c1df"))},"8eeb":function(e,t,n){var r=n("32b3"),a=n("872a");e.exports=function(e,t,n,i){var o=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?a(n,c,u):r(n,c,u)}return n}},9043:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},n={"১":"1","২":"2","৩":"3","":"4","৫":"5","৬":"6","":"7","৮":"8","৯":"9","":"0"};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 n[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,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n("c1df"))},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},"90ea":function(e,t,n){!function(e){"use strict";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,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<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 年"}})}(n("c1df"))},9112:function(e,t,n){var r=n("83ab"),a=n("9bf2"),i=n("5c6c");e.exports=r?function(e,t,n){return a.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"91e9":function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},9263:function(e,t,n){"use strict";var r,a,i=n("ad6d"),o=n("9f7f"),s=RegExp.prototype.exec,l=String.prototype.replace,c=s,u=(r=/a/,a=/b*/g,s.call(r,"a"),s.call(a,"a"),0!==r.lastIndex||0!==a.lastIndex),d=o.UNSUPPORTED_Y||o.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(u||p||d)&&(c=function(e){var t,n,r,a,o=this,c=d&&o.sticky,m=i.call(o),f=o.source,h=0,_=e;return c&&(-1===(m=m.replace("y","")).indexOf("g")&&(m+="g"),_=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(f="(?: "+f+")",_=" "+_,h++),n=new RegExp("^(?:"+f+")",m)),p&&(n=new RegExp("^"+f+"$(?!\\s)",m)),u&&(t=o.lastIndex),r=s.call(c?n:o,_),c?r?(r.input=r.input.slice(h),r[0]=r[0].slice(h),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:u&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),p&&r&&r.length>1&&l.call(r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r}),e.exports=c},"92c3":function(e,t,n){e.exports=function(){"use strict";var e,t=(function(e){var t=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(){r(this,e)}return t(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];for(var i=0,o=o=t;!(i>=o.length);)o[i++].apply(this,r)}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}return this}}]),e}(),i=function(e){function i(e,t){r(this,i);var a,o=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this)),s=void 0;if(o.element=e,o.version=i.version,o.defaultOptions.previewTemplate=o.defaultOptions.previewTemplate.replace(/\n*/g,""),o.clickableElements=[],o.listeners=[],o.files=[],"string"==typeof o.element&&(o.element=document.querySelector(o.element)),!o.element||null==o.element.nodeType)throw new Error("Invalid dropzone element.");if(o.element.dropzone)throw new Error("Dropzone already attached.");i.instances.push(o),o.element.dropzone=o;var l,c=null!=(a=i.optionsForElement(o.element))?a:{};if(o.options=i.extend({},o.defaultOptions,c,null!=t?t:{}),o.options.forceFallback||!i.isBrowserSupported())return l=o.options.fallback.call(o),n(o,l);if(null==o.options.url&&(o.options.url=o.element.getAttribute("action")),!o.options.url)throw new Error("No URL provided.");if(o.options.acceptedFiles&&o.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(o.options.uploadMultiple&&o.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return o.options.acceptedMimeTypes&&(o.options.acceptedFiles=o.options.acceptedMimeTypes,delete o.options.acceptedMimeTypes),null!=o.options.renameFilename&&(o.options.renameFile=function(e){return o.options.renameFilename.call(o,e.name,e)}),o.options.method=o.options.method.toUpperCase(),(s=o.getExistingFallback())&&s.parentNode&&s.parentNode.removeChild(s),!1!==o.options.previewsContainer&&(o.options.previewsContainer?o.previewsContainer=i.getElement(o.options.previewsContainer,"previewsContainer"):o.previewsContainer=o.element),o.options.clickable&&(!0===o.options.clickable?o.clickableElements=[o.element]:o.clickableElements=i.getElements(o.options.clickable,"clickable")),o.init(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,a),t(i,null,[{key:"initClass",value:function(){this.prototype.Emitter=a,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var t=0,n=n=this.element.getElementsByTagName("div");!(t>=n.length);){var r=n[t++];if(/(^| )dz-message($| )/.test(r.className)){e=r,r.className="dz-message";break}}e||(e=i.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var a=e.getElementsByTagName("span")[0];return a&&(null!=a.textContent?a.textContent=this.options.dictFallbackMessage:null!=a.innerText&&(a.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,r){var a={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},i=e.width/e.height;null==t&&null==n?(t=a.srcWidth,n=a.srcHeight):null==t?t=n*i:null==n&&(n=t/i);var o=(t=Math.min(t,a.srcWidth))/(n=Math.min(n,a.srcHeight));if(a.srcWidth>t||a.srcHeight>n)if("crop"===r)i>o?(a.srcHeight=e.height,a.srcWidth=a.srcHeight*o):(a.srcWidth=e.width,a.srcHeight=a.srcWidth/o);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");i>o?n=t/i:t=n*i}return a.srcX=(e.width-a.srcWidth)/2,a.srcY=(e.height-a.srcHeight)/2,a.trgWidth=t,a.trgHeight=n,a},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:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Check</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Error</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>',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=i.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-name]");!(n>=r.length);){var a=r[n++];a.textContent=e.name}for(var o=0,s=s=e.previewElement.querySelectorAll("[data-dz-size]");!(o>=s.length);)(a=s[o++]).innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=i.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var l=function(n){return n.preventDefault(),n.stopPropagation(),e.status===i.UPLOADING?i.confirm(t.options.dictCancelUploadConfirmation,(function(){return t.removeFile(e)})):t.options.dictRemoveFileConfirmation?i.confirm(t.options.dictRemoveFileConfirmation,(function(){return t.removeFile(e)})):t.removeFile(e)},c=0,u=u=e.previewElement.querySelectorAll("[data-dz-remove]");!(c>=u.length);)u[c++].addEventListener("click",l)}},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 n=0,r=r=e.previewElement.querySelectorAll("[data-dz-thumbnail]");!(n>=r.length);){var a=r[n++];a.alt=e.name,a.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 n=0,r=r=e.previewElement.querySelectorAll("[data-dz-errormessage]");!(n>=r.length);)r[n++].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,n){if(e.previewElement)for(var r=0,a=a=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");!(r>=a.length);){var i=a[r++];"PROGRESS"===i.nodeName?i.value=t:i.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,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0,i=i=n;!(a>=i.length);){var o=i[a++];for(var s in o){var l=o[s];e[s]=l}}return e}}]),t(i,[{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(i.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(i.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(i.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(e){return e.status===i.UPLOADING||e.status===i.QUEUED})).map((function(e){return e}))}},{key:"init",value:function(){var e=this;"form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(i.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),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",i.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",(function(){var n=e.hiddenFileInput.files;if(n.length)for(var r=0,a=a=n;!(r>=a.length);){var i=a[r++];e.addFile(i)}return e.emit("addedfiles",n),t()}))}(),this.URL=null!==window.URL?window.URL:window.webkitURL;for(var t=0,n=n=this.events;!(t>=n.length);){var r=n[t++];this.on(r,this.options[r])}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 a=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 a(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",a(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return a(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(n){return(t!==e.element||n.target===e.element||i.elementInside(n.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,i.instances.splice(i.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){for(var r=0,a=a=this.getActiveFiles();!(r>=a.length);){var i=a[r++];t+=i.upload.bytesSent,n+=i.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,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,t=void 0;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"</p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var r=i.createElement(n);return"FORM"!==this.element.tagName?(t=i.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(r):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:r}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,n=n=e;!(t>=n.length);){var r=n[t++];if(/(^| )fallback($| )/.test(r.className))return r}},t=["div","form"],n=0;n<t.length;n++){var r,a=t[n];if(r=e(this.element.getElementsByTagName(a)))return r}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.addEventListener(n,r,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.removeEventListener(n,r,!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,n="b";if(e>0){for(var r=["tb","gb","mb","kb","b"],a=0;a<r.length;a++){var i=r[a];if(e>=Math.pow(this.options.filesizeBase,4-a)/10){t=e/Math.pow(this.options.filesizeBase,4-a),n=i;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[n]}},{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=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(this.emit("addedfiles",t),t.length){var r=e.dataTransfer.items;r&&r.length&&null!=r[0].webkitGetAsEntry?this._addFilesFromItems(r):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=(null!=(t=null!=e?e.clipboardData:void 0)?function(e){return e.items}(t):void 0)){var t;this.emit("paste",e);var n=e.clipboardData.items;return n.length?this._addFilesFromItems(n):void 0}}},{key:"handleFiles",value:function(e){for(var t=0,n=n=e;!(t>=n.length);){var r=n[t++];this.addFile(r)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],r=0,a=a=e;!(r>=a.length);){var i,o=a[r++];null!=o.webkitGetAsEntry&&(i=o.webkitGetAsEntry())?i.isFile?n.push(t.addFile(o.getAsFile())):i.isDirectory?n.push(t._addFilesFromDirectory(i,i.name)):n.push(void 0):null==o.getAsFile||null!=o.kind&&"file"!==o.kind?n.push(void 0):n.push(t.addFile(o.getAsFile()))}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,r=e.createReader(),a=function(e){return n="log",r=function(t){return t.log(e)},null!=(t=console)&&"function"==typeof t[n]?r(t,n):void 0;var t,n,r};return function e(){return r.readEntries((function(r){if(r.length>0){for(var a=0,i=i=r;!(a>=i.length);){var o=i[a++];o.isFile?o.file((function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)})):o.isDirectory&&n._addFilesFromDirectory(o,t+"/"+o.name)}e()}return null}),a)}()}},{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)):i.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:i.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=i.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(e){for(var t=0,n=n=e;!(t>=n.length);){var r=n[t++];this.enqueueFile(r)}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==i.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=i.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(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()}))}}},{key:"removeFile",value:function(e){if(e.status===i.UPLOADING&&this.cancelUpload(e),this.files=o(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=0,n=n=this.files.slice();!(t>=n.length);){var r=n[t++];(r.status!==i.UPLOADING||e)&&this.removeFile(r)}return null}},{key:"resizeImage",value:function(e,t,n,r,a){var o=this;return this.createThumbnail(e,t,n,r,!0,(function(t,n){if(null==n)return a(e);var r=o.options.resizeMimeType;null==r&&(r=e.type);var s=n.toDataURL(r,o.options.resizeQuality);return"image/jpeg"!==r&&"image/jpg"!==r||(s=c.restore(e.dataURL,s)),a(i.dataURItoBlob(s))}))}},{key:"createThumbnail",value:function(e,t,n,r,a,i){var o=this,s=new FileReader;return s.onload=function(){if(e.dataURL=s.result,"image/svg+xml"!==e.type)return o.createThumbnailFromUrl(e,t,n,r,a,i);null!=i&&i(s.result)},s.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,r,a,i,o){var s=this,c=document.createElement("img");return o&&(c.crossOrigin=o),c.onload=function(){var o=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&a&&(o=function(e){return EXIF.getData(c,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),o((function(a){e.width=c.width,e.height=c.height;var o=s.options.resize.call(s,e,t,n,r),u=document.createElement("canvas"),d=u.getContext("2d");switch(u.width=o.trgWidth,u.height=o.trgHeight,a>4&&(u.width=o.trgHeight,u.height=o.trgWidth),a){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)}l(d,c,null!=o.srcX?o.srcX:0,null!=o.srcY?o.srcY:0,o.srcWidth,o.srcHeight,null!=o.trgX?o.trgX:0,null!=o.trgY?o.trgY:0,o.trgWidth,o.trgHeight);var p=u.toDataURL("image/png");if(null!=i)return i(p,u)}))},null!=i&&(c.onerror=i),c.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n<e;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var t=0,n=n=e;!(t>=n.length);){var r=n[t++];r.processing=!0,r.status=i.UPLOADING,this.emit("processing",r)}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===i.UPLOADING){for(var t=this._getFilesWithXhr(e.xhr),n=0,r=r=t;!(n>=r.length);)r[n++].status=i.CANCELED;void 0!==e.xhr&&e.xhr.abort();for(var a=0,o=o=t;!(a>=o.length);){var s=o[a++];this.emit("canceled",s)}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==i.ADDED&&e.status!==i.QUEUED||(e.status=i.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,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,(function(n){if(e[0].upload.chunked){var r=e[0],a=n[0];r.upload.chunks=[];var o=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){var o=n*t.options.chunkSize,s=Math.min(o+t.options.chunkSize,r.size),l={name:t._getParamName(0),data:a.webkitSlice?a.webkitSlice(o,s):a.slice(o,s),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:l,status:i.UPLOADING,progress:0,retries:0},t._uploadData(e,[l])}};if(r.upload.finishedChunkUpload=function(n){var a=!0;n.status=i.SUCCESS,n.dataBlock=null,n.xhr=null;for(var s=0;s<r.upload.totalChunkCount;s++){if(void 0===r.upload.chunks[s])return o();r.upload.chunks[s].status!==i.SUCCESS&&(a=!1)}a&&t.options.chunksUploaded(r,(function(){t._finished(e,"",null)}))},t.options.parallelChunkUploads)for(var s=0;s<r.upload.totalChunkCount;s++)o();else o()}else{for(var l=[],c=0;c<e.length;c++)l[c]={name:t._getParamName(c),data:n[c],filename:e[c].upload.filename};t._uploadData(e,l)}}))}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,t){for(var n=this,r=new XMLHttpRequest,a=0,o=o=e;!(a>=o.length);)o[a++].xhr=r;e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=r);var s=this.resolveOption(this.options.method,e),l=this.resolveOption(this.options.url,e);r.open(s,l,!0),r.timeout=this.resolveOption(this.options.timeout,e),r.withCredentials=!!this.options.withCredentials,r.onload=function(t){n._finishedUploading(e,r,t)},r.onerror=function(){n._handleUploadError(e,r)},(null!=r.upload?r.upload:r).onprogress=function(t){return n._updateFilesUploadProgress(e,r,t)};var c={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var u in this.options.headers&&i.extend(c,this.options.headers),c){var d=c[u];d&&r.setRequestHeader(u,d)}var p=new FormData;if(this.options.params){var m=this.options.params;for(var f in"function"==typeof m&&(m=m.call(this,e,r,e[0].upload.chunked?this._getChunk(e[0],r):null)),m){var h=m[f];p.append(f,h)}}for(var _=0,v=v=e;!(_>=v.length);){var g=v[_++];this.emit("sending",g,r,p)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,r,p),this._addFormElementData(p);for(var y=0;y<t.length;y++){var b=t[y];p.append(b.name,b.data,b.filename)}this.submitRequest(r,p,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,r=[],a=0,i=function(i){n.options.transformFile.call(n,e[i],(function(n){r[i]=n,++a===e.length&&t(r)}))},o=0;o<e.length;o++)i(o)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=0,n=n=this.element.querySelectorAll("input, textarea, select, button");!(t>=n.length);){var r=n[t++],a=r.getAttribute("name"),i=r.getAttribute("type");if(i&&(i=i.toLowerCase()),null!=a)if("SELECT"===r.tagName&&r.hasAttribute("multiple"))for(var o=0,s=s=r.options;!(o>=s.length);){var l=s[o++];l.selected&&e.append(a,l.value)}else(!i||"checkbox"!==i&&"radio"!==i||r.checked)&&e.append(a,r.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,e[0].upload.chunked){var a=e[0],i=this._getChunk(a,t);i.progress=r,i.total=n.total,i.bytesSent=n.loaded,a.upload.progress=0,a.upload.total=0,a.upload.bytesSent=0;for(var o=0;o<a.upload.totalChunkCount;o++)void 0!==a.upload.chunks[o]&&void 0!==a.upload.chunks[o].progress&&(a.upload.progress+=a.upload.chunks[o].progress,a.upload.total+=a.upload.chunks[o].total,a.upload.bytesSent+=a.upload.chunks[o].bytesSent);a.upload.progress=a.upload.progress/a.upload.totalChunkCount}else for(var s=0,l=l=e;!(s>=l.length);){var c=l[s++];c.upload.progress=r,c.upload.total=n.total,c.upload.bytesSent=n.loaded}for(var u=0,d=d=e;!(u>=d.length);){var p=d[u++];this.emit("uploadprogress",p,p.upload.progress,p.upload.bytesSent)}}else{var m=!0;r=100;for(var f=0,h=h=e;!(f>=h.length);){var _=h[f++];100===_.upload.progress&&_.upload.bytesSent===_.upload.total||(m=!1),_.upload.progress=r,_.upload.bytesSent=_.upload.total}if(m)return;for(var v=0,g=g=e;!(v>=g.length);){var y=g[v++];this.emit("uploadprogress",y,r,y.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,n){var r=void 0;if(e[0].status!==i.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(r=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(e){n=e,r="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,r,n):this._handleUploadError(e,t,r)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==i.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var r=this._getChunk(e[0],t);if(r.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[r.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var a=0,o=o=e;!(a>=o.length);)o[a++],this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,t,n){for(var r=0,a=a=e;!(r>=a.length);){var o=a[r++];o.status=i.SUCCESS,this.emit("success",o,t,n),this.emit("complete",o)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){for(var r=0,a=a=e;!(r>=a.length);){var o=a[r++];o.status=i.ERROR,this.emit("error",o,t,n),this.emit("complete",o)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),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)}))}}]),i}();i.initClass(),i.version="5.5.1",i.options={},i.optionsForElement=function(e){return e.getAttribute("id")?i.options[s(e.getAttribute("id"))]:void 0},i.instances=[],i.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},i.autoDiscover=!0,i.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],r=0,a=a=t;!(r>=a.length);){var i=a[r++];/(^| )dropzone($| )/.test(i.className)?n.push(e.push(i)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=0,r=r=e;!(n>=r.length);){var a=r[n++];!1!==i.optionsForElement(a)?t.push(new i(a)):t.push(void 0)}return t}()},i.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],i.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=0,n=n=i.blacklistedBrowsers;!(t>=n.length);)n[t++].test(navigator.userAgent)&&(e=!1);else e=!1;else e=!1;return e},i.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),a=new Uint8Array(r),i=0,o=t.length,s=0<=o;s?i<=o:i>=o;s?i++:i--)a[i]=t.charCodeAt(i);return new Blob([r],{type:n})};var o=function(e,t){return e.filter((function(e){return e!==t})).map((function(e){return e}))},s=function(e){return e.replace(/[\-_](\w)/g,(function(e){return e.charAt(1).toUpperCase()}))};i.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},i.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},i.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},i.getElements=function(e,t){var n=void 0,r=void 0;if(e instanceof Array){r=[];try{for(var a=0,i=i=e;!(a>=i.length);)n=i[a++],r.push(this.getElement(n,t))}catch(e){r=null}}else if("string"==typeof e){r=[];for(var o=0,s=s=document.querySelectorAll(e);!(o>=s.length);)n=s[o++],r.push(n)}else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},i.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},i.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,r=n.replace(/\/.*$/,""),a=0,i=i=t;!(a>=i.length);){var o=i[a++];if("."===(o=o.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(o.toLowerCase(),e.name.length-o.length))return!0}else if(/\/\*$/.test(o)){if(r===o.replace(/\/.*$/,""))return!0}else if(n===o)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each((function(){return new i(this,e)}))}),null!==e?e.exports=i:window.Dropzone=i,i.ADDED="added",i.QUEUED="queued",i.ACCEPTED=i.QUEUED,i.UPLOADING="uploading",i.PROCESSING=i.UPLOADING,i.CANCELED="canceled",i.ERROR="error",i.SUCCESS="success";var l=function(e,t,n,r,a,i,o,s,l,c){var u=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var r=n.getContext("2d");r.drawImage(e,0,0);for(var a=r.getImageData(1,0,1,t).data,i=0,o=t,s=t;s>i;)0===a[4*(s-1)+3]?o=s:i=s,s=o+i>>1;var l=s/t;return 0===l?1:l}(t);return e.drawImage(t,n,r,a,i,o,s,l,c/u)},c=function(){function e(){r(this,e)}return t(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,r=void 0,a="",i=void 0,o=void 0,s=void 0,l="",c=0;i=(n=e[c++])>>2,o=(3&n)<<4|(r=e[c++])>>4,s=(15&r)<<2|(a=e[c++])>>6,l=63&a,isNaN(r)?s=l=64:isNaN(a)&&(l=64),t=t+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(l),n=r=a="",i=o=s=l="",c<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),a=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(a)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),a=r.indexOf(255,3),i=r.slice(0,a),o=r.slice(a),s=i;return(s=s.concat(t)).concat(o)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];!(255===e[t]&218===e[t+1]);){if(255===e[t]&216===e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,a=e.slice(t,r);n.push(a),t=r}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,r="",a=void 0,i=void 0,o="",s=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.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,"");t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(a=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&a)<<4|(i=this.KEY_STR.indexOf(e.charAt(s++)))>>2,r=(3&i)<<6|(o=this.KEY_STR.indexOf(e.charAt(s++))),l.push(t),64!==i&&l.push(n),64!==o&&l.push(r),t=n=r="",a=i=o="",s<e.length;);return l}}]),e}();c.initClass(),i._autoDiscoverFunction=function(){if(i.autoDiscover)return i.discover()},function(e,t){var n=!1,r=!0,a=e.document,i=a.documentElement,o=a.addEventListener?"addEventListener":"attachEvent",s=a.addEventListener?"removeEventListener":"detachEvent",l=a.addEventListener?"":"on",c=function r(i){if("readystatechange"!==i.type||"complete"===a.readyState)return("load"===i.type?e:a)[s](l+i.type,r,!1),!n&&(n=!0)?t.call(e,i.type||i):void 0};if("complete"!==a.readyState){if(a.createEventObject&&i.doScroll){try{r=!e.frameElement}catch(e){}r&&function e(){try{i.doScroll("left")}catch(t){return void setTimeout(e,50)}return c("poll")}()}a[o](l+"DOMContentLoaded",c,!1),a[o](l+"readystatechange",c,!1),e[o](l+"load",c,!1)}}(window,i._autoDiscoverFunction)}(e={exports:{}},e.exports),e.exports),n={getSignedURL(e,t){let n={filePath:e.name,contentType:e.type};return new Promise(((r,a)=>{var i=new FormData;let o=new XMLHttpRequest,s="function"==typeof t.signingURL?t.signingURL(e):t.signingURL;o.open("POST",s),o.onload=function(){200==o.status?r(JSON.parse(o.response)):a(o.statusText)},o.onerror=function(e){console.error("Network Error : Could not send request to AWS (Maybe CORS errors)"),a(e)},!0===t.withCredentials&&(o.withCredentials=!0),Object.entries(t.headers||{}).forEach((([e,t])=>{o.setRequestHeader(e,t)})),n=Object.assign(n,t.params||{}),Object.entries(n).forEach((([e,t])=>{i.append(e,t)})),o.send(i)}))},sendFile(e,t,n){var r=n?this.setResponseHandler:this.sendS3Handler;return this.getSignedURL(e,t).then((t=>r(t,e))).catch((e=>e))},setResponseHandler(e,t){t.s3Signature=e.signature,t.s3Url=e.postEndpoint},sendS3Handler(e,t){let n=new FormData,r=e.signature;return Object.keys(r).forEach((function(e){n.append(e,r[e])})),n.append("file",t),new Promise(((t,r)=>{let a=new XMLHttpRequest;a.open("POST",e.postEndpoint),a.onload=function(){if(201==a.status){var e=(new window.DOMParser).parseFromString(a.response,"text/xml").firstChild.children[0].innerHTML;t({success:!0,message:e})}else{var n=(new window.DOMParser).parseFromString(a.response,"text/xml").firstChild.children[0].innerHTML;r({success:!1,message:n+". Request is marked as resolved when returns as status 201"})}},a.onerror=function(e){var t=(new window.DOMParser).parseFromString(a.response,"text/xml").firstChild.children[1].innerHTML;r({success:!1,message:t})},a.send(n)}))}};return t.autoDiscover=!1,function(e,t,n,r,a,i,o,s,l,c){"boolean"!=typeof o&&(l=s,s=o,o=!1);var u,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,a&&(d.functional=!0)),r&&(d._scopeId=r),i?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=u):t&&(u=o?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),u)if(d.functional){var p=d.render;d.render=function(e,t){return u.call(t),p(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,u):[u]}return n}({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"dropzoneElement",class:{"vue-dropzone dropzone":this.includeStyling},attrs:{id:this.id}},[this.useCustomSlot?t("div",{staticClass:"dz-message"},[this._t("default",[this._v("Drop files here to upload")])],2):this._e()])},staticRenderFns:[]},void 0,{props:{id:{type:String,required:!0,default:"dropzone"},options:{type:Object,required:!0},includeStyling:{type:Boolean,default:!0,required:!1},awss3:{type:Object,required:!1,default:null},destroyDropzone:{type:Boolean,default:!0,required:!1},duplicateCheck:{type:Boolean,default:!1,required:!1},useCustomSlot:{type:Boolean,default:!1,required:!1}},data:()=>({isS3:!1,isS3OverridesServerPropagation:!1,wasQueueAutoProcess:!0}),computed:{dropzoneSettings(){let e={thumbnailWidth:200,thumbnailHeight:200};return Object.keys(this.options).forEach((function(t){e[t]=this.options[t]}),this),null!==this.awss3&&(e.autoProcessQueue=!1,this.isS3=!0,this.isS3OverridesServerPropagation=!1===this.awss3.sendFileToServer,void 0!==this.options.autoProcessQueue&&(this.wasQueueAutoProcess=this.options.autoProcessQueue),this.isS3OverridesServerPropagation&&(e.url=e=>e[0].s3Url)),e}},mounted(){if(this.$isServer&&this.hasBeenMounted)return;this.hasBeenMounted=!0,this.dropzone=new t(this.$refs.dropzoneElement,this.dropzoneSettings);let e=this;this.dropzone.on("thumbnail",(function(t,n){e.$emit("vdropzone-thumbnail",t,n)})),this.dropzone.on("addedfile",(function(t){var n,r;if(e.duplicateCheck&&this.files.length)for(n=0,r=this.files.length;n<r-1;n++)this.files[n].name===t.name&&this.files[n].size===t.size&&this.files[n].lastModifiedDate.toString()===t.lastModifiedDate.toString()&&(this.removeFile(t),e.$emit("vdropzone-duplicate-file",t));e.$emit("vdropzone-file-added",t),e.isS3&&e.wasQueueAutoProcess&&!t.manuallyAdded&&e.getSignedAndUploadToS3(t)})),this.dropzone.on("addedfiles",(function(t){e.$emit("vdropzone-files-added",t)})),this.dropzone.on("removedfile",(function(t){e.$emit("vdropzone-removed-file",t),t.manuallyAdded&&null!==e.dropzone.options.maxFiles&&e.dropzone.options.maxFiles++})),this.dropzone.on("success",(function(t,n){if(e.$emit("vdropzone-success",t,n),e.isS3){if(e.isS3OverridesServerPropagation){var r=(new window.DOMParser).parseFromString(n,"text/xml").firstChild.children[0].innerHTML;e.$emit("vdropzone-s3-upload-success",r)}e.wasQueueAutoProcess&&e.setOption("autoProcessQueue",!1)}})),this.dropzone.on("successmultiple",(function(t,n){e.$emit("vdropzone-success-multiple",t,n)})),this.dropzone.on("error",(function(t,n,r){e.$emit("vdropzone-error",t,n,r),this.isS3&&e.$emit("vdropzone-s3-upload-error")})),this.dropzone.on("errormultiple",(function(t,n,r){e.$emit("vdropzone-error-multiple",t,n,r)})),this.dropzone.on("sending",(function(t,n,r){if(e.isS3)if(e.isS3OverridesServerPropagation){let e=t.s3Signature;Object.keys(e).forEach((function(t){r.append(t,e[t])}))}else r.append("s3ObjectLocation",t.s3ObjectLocation);e.$emit("vdropzone-sending",t,n,r)})),this.dropzone.on("sendingmultiple",(function(t,n,r){e.$emit("vdropzone-sending-multiple",t,n,r)})),this.dropzone.on("complete",(function(t){e.$emit("vdropzone-complete",t)})),this.dropzone.on("completemultiple",(function(t){e.$emit("vdropzone-complete-multiple",t)})),this.dropzone.on("canceled",(function(t){e.$emit("vdropzone-canceled",t)})),this.dropzone.on("canceledmultiple",(function(t){e.$emit("vdropzone-canceled-multiple",t)})),this.dropzone.on("maxfilesreached",(function(t){e.$emit("vdropzone-max-files-reached",t)})),this.dropzone.on("maxfilesexceeded",(function(t){e.$emit("vdropzone-max-files-exceeded",t)})),this.dropzone.on("processing",(function(t){e.$emit("vdropzone-processing",t)})),this.dropzone.on("processingmultiple",(function(t){e.$emit("vdropzone-processing-multiple",t)})),this.dropzone.on("uploadprogress",(function(t,n,r){e.$emit("vdropzone-upload-progress",t,n,r)})),this.dropzone.on("totaluploadprogress",(function(t,n,r){e.$emit("vdropzone-total-upload-progress",t,n,r)})),this.dropzone.on("reset",(function(){e.$emit("vdropzone-reset")})),this.dropzone.on("queuecomplete",(function(){e.$emit("vdropzone-queue-complete")})),this.dropzone.on("drop",(function(t){e.$emit("vdropzone-drop",t)})),this.dropzone.on("dragstart",(function(t){e.$emit("vdropzone-drag-start",t)})),this.dropzone.on("dragend",(function(t){e.$emit("vdropzone-drag-end",t)})),this.dropzone.on("dragenter",(function(t){e.$emit("vdropzone-drag-enter",t)})),this.dropzone.on("dragover",(function(t){e.$emit("vdropzone-drag-over",t)})),this.dropzone.on("dragleave",(function(t){e.$emit("vdropzone-drag-leave",t)})),e.$emit("vdropzone-mounted")},beforeDestroy(){this.destroyDropzone&&this.dropzone.destroy()},methods:{manuallyAddFile:function(e,t){e.manuallyAdded=!0,this.dropzone.emit("addedfile",e);let n=!1;if((t.indexOf(".svg")>-1||t.indexOf(".png")>-1||t.indexOf(".jpg")>-1||t.indexOf(".jpeg")>-1||t.indexOf(".gif")>-1||t.indexOf(".webp")>-1)&&(n=!0),this.dropzone.options.createImageThumbnails&&n&&e.size<=1024*this.dropzone.options.maxThumbnailFilesize*1024){t&&this.dropzone.emit("thumbnail",e,t);for(var r=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),a=0;a<r.length;a++)r[a].style.width=this.dropzoneSettings.thumbnailWidth+"px",r[a].style.height=this.dropzoneSettings.thumbnailHeight+"px",r[a].style["object-fit"]="contain"}this.dropzone.emit("complete",e),this.dropzone.options.maxFiles&&this.dropzone.options.maxFiles--,this.dropzone.files.push(e),this.$emit("vdropzone-file-added-manually",e)},setOption:function(e,t){this.dropzone.options[e]=t},removeAllFiles:function(e){this.dropzone.removeAllFiles(e)},processQueue:function(){let e=this.dropzone;this.isS3&&!this.wasQueueAutoProcess?this.getQueuedFiles().forEach((e=>{this.getSignedAndUploadToS3(e)})):this.dropzone.processQueue(),this.dropzone.on("success",(function(){e.options.autoProcessQueue=!0})),this.dropzone.on("queuecomplete",(function(){e.options.autoProcessQueue=!1}))},init:function(){return this.dropzone.init()},destroy:function(){return this.dropzone.destroy()},updateTotalUploadProgress:function(){return this.dropzone.updateTotalUploadProgress()},getFallbackForm:function(){return this.dropzone.getFallbackForm()},getExistingFallback:function(){return this.dropzone.getExistingFallback()},setupEventListeners:function(){return this.dropzone.setupEventListeners()},removeEventListeners:function(){return this.dropzone.removeEventListeners()},disable:function(){return this.dropzone.disable()},enable:function(){return this.dropzone.enable()},filesize:function(e){return this.dropzone.filesize(e)},accept:function(e,t){return this.dropzone.accept(e,t)},addFile:function(e){return this.dropzone.addFile(e)},removeFile:function(e){this.dropzone.removeFile(e)},getAcceptedFiles:function(){return this.dropzone.getAcceptedFiles()},getRejectedFiles:function(){return this.dropzone.getRejectedFiles()},getFilesWithStatus:function(){return this.dropzone.getFilesWithStatus()},getQueuedFiles:function(){return this.dropzone.getQueuedFiles()},getUploadingFiles:function(){return this.dropzone.getUploadingFiles()},getAddedFiles:function(){return this.dropzone.getAddedFiles()},getActiveFiles:function(){return this.dropzone.getActiveFiles()},getSignedAndUploadToS3(e){var t=n.sendFile(e,this.awss3,this.isS3OverridesServerPropagation);this.isS3OverridesServerPropagation?t.then((()=>{setTimeout((()=>this.dropzone.processFile(e)))})):t.then((t=>{t.success?(e.s3ObjectLocation=t.message,setTimeout((()=>this.dropzone.processFile(e))),this.$emit("vdropzone-s3-upload-success",t.message)):void 0!==t.message?this.$emit("vdropzone-s3-upload-error",t.message):this.$emit("vdropzone-s3-upload-error","Network Error : Could not send request to AWS. (Maybe CORS error)")})),t.catch((e=>{alert(e)}))},setAWSSigningURL(e){this.isS3&&(this.awss3.signingURL=e)}}},void 0,!1,void 0,void 0,void 0)}()},"93ed":function(e,t,n){var r=n("4245");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},"94ca":function(e,t,n){var r=n("d039"),a=/#|\.prototype\./,i=function(e,t){var n=s[o(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},o=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},9520:function(e,t,n){var r=n("3729"),a=n("1a8c");e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"957c":function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"минута":"минуту":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"часасаасов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяцаесяцев",yy:"год_годает"}[r],+e)}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];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:r,longMonthsParse:r,shortMonthsParse:r,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:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){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}})}(n("c1df"))},"958b":function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){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}}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,n){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}}})}(n("c1df"))},9609:function(e,t,n){!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:"-чү"};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 n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n("c1df"))},9638:function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},9686:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},n={"১":"1","২":"2","৩":"3","":"4","৫":"5","৬":"6","":"7","৮":"8","৯":"9","":"0"};e.defineLocale("bn-bd",{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 n[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||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n("c1df"))},"96cf":function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof _?t:_,i=Object.create(a.prototype),o=new L(r||[]);return i._invoke=function(e,t,n){var r=d;return function(a,i){if(r===m)throw new Error("Generator is already running");if(r===f){if("throw"===a)throw i;return O()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=M(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?f:p,l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}(e,n,o),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",p="suspendedYield",m="executing",f="completed",h={};function _(){}function v(){}function g(){}var y={};y[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==n&&r.call(w,i)&&(y=w);var x=g.prototype=_.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function n(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var a;this._invoke=function(e,r){function i(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(i,i):i()}}function M(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var a=u(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,h;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:O}}function O(){return{value:t,done:!0}}return v.prototype=x.constructor=g,g.constructor=v,v.displayName=l(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},k(D.prototype),D.prototype[o]=function(){return this},e.AsyncIterator=D,e.async=function(t,n,r,a,i){void 0===i&&(i=Promise);var o=new D(c(t,n,r,a),i);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},k(x),l(x,s,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=T,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(r,a){return s.type="throw",s.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;C(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},"972c":function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._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,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("c1df"))},9797:function(e,t,n){!function(e){"use strict";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="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n("c1df"))},"986d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("5313"),a=n("304a"),i=n("55be"),o=function(e,t){return function(n){Array.isArray(e)||(e=[e]);for(var r=0,a=e.length;r<a;r++){var i=A(e[r])(n.selection);if(i){var o=h(i.pos,t)(n);if(o!==n)return o}}return n}},s=function(e){return function(t){if(p(t.selection)){var n=t.selection,i=n.$from,o=n.$to;if(e instanceof a.Fragment&&i.parent.canReplace(i.index(),i.indexAfter(),e)||i.parent.canReplaceWith(i.index(),i.indexAfter(),e.type))return f(t.replaceWith(i.pos,o.pos,e).setSelection(new r.NodeSelection(t.doc.resolve(i.pos))))}return t}},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(n){var a=r.Selection.findFrom(n.doc.resolve(e),t,!0);return a?n.setSelection(a):n}},c=function(e){return e.type&&e.type.spec.selectable},u=function(e,t,n){return function(e){return c(e)&&e.type.isLeaf}(e)?n.setSelection(new r.NodeSelection(n.doc.resolve(t))):l(t)(n)},d=function(e,t,n){return function(r){var a="number"==typeof t,i=r.selection.$from,l=a?r.doc.resolve(t):p(r.selection)?r.doc.resolve(i.pos+1):i,d=l.parent;if(p(r.selection)&&n&&r!==(r=s(e)(r)))return r;if(b(d)&&r!==(r=o(d.type,e)(r))){var m=c(e)?l.before(l.depth):l.pos;return u(e,m,r)}if(y(l,e)){r.insert(l.pos,e);var h=a?l.pos:c(e)?r.selection.$anchor.pos-1:r.selection.$anchor.pos;return f(u(e,h,r))}for(var _=l.depth;_>0;_--){var v=l.after(_),g=r.doc.resolve(v);if(y(g,e))return r.insert(v,e),f(u(e,v,r))}return r}},p=function(e){return e instanceof r.NodeSelection},m=function(e,t){return Array.isArray(e)&&e.indexOf(t.type)>-1||t.type===e},f=function(e){return Object.assign(Object.create(e),e).setTime(Date.now())},h=function(e,t){return function(n){var r=n.doc.nodeAt(e),a=n.doc.resolve(e);if(_(a,t)){var i=(n=n.replaceWith(e,e+r.nodeSize,t)).selection.$from.pos-1;return n=l(Math.max(i,0),-1)(n),n=l(n.selection.$from.start())(n),f(n)}return n}},_=function(e,t){var n=e.node(e.depth);return n&&n.type.validContent(t instanceof a.Fragment?t:a.Fragment.from(t))},v=function(e){return function(t){var n=t.doc.nodeAt(e);return f(t.delete(e,e+n.nodeSize))}},g=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;var t={};return Object.keys(e.nodes).forEach((function(n){var r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)})),e.cached.tableNodeTypes=t,t},y=function(e,t){var n=e.index();return t instanceof a.Fragment?e.parent.canReplace(n,n,t):t instanceof a.Node&&e.parent.canReplaceWith(n,n,t.type)},b=function(e){return!e||"paragraph"===e.type.name&&2===e.nodeSize},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?e.createChecked(null,t):e.createAndFill()},x=function(e){return function(t){for(var n=i.TableMap.get(t.$anchorCell.node(-1)),r=t.$anchorCell.start(-1),a=n.cellsInRect(e),o=n.cellsInRect(n.rectBetween(t.$anchorCell.pos-r,t.$headCell.pos-r)),s=0,l=a.length;s<l;s++)if(-1===o.indexOf(a[s]))return!1;return!0}},k=function(e){return e[0].map((function(t,n){return e.map((function(e){return e[n]}))}))},D=function(e){for(var t=i.TableMap.get(e),n=[],r=0;r<t.height;r++){for(var a=[],o={},s=0;s<t.width;s++){var l=t.map[r*t.width+s],c=e.nodeAt(l),u=t.findCell(l);o[l]||u.top!==r?a.push(null):(o[l]=!0,a.push(c))}n.push(a)}return n},M=function(e,t){for(var n=[],r=i.TableMap.get(e),a=0;a<r.height;a++){for(var o=e.child(a),s=[],l=0;l<r.width;l++)if(t[a][l]){var c=r.map[a*r.width+l],u=t[a][l],d=e.nodeAt(c).type.createChecked(Object.assign({},u.attrs),u.content,u.marks);s.push(d)}n.push(o.type.createChecked(o.attrs,s,o.marks))}return e.type.createChecked(e.attrs,n,e.marks)},S=function(e,t,n,r){var a=t[0]>n[0]?-1:1,i=e.splice(t[0],t.length),o=i.length%2==0?1:0,s=void 0;return s=-1===r&&1===a?n[0]-1:1===r&&-1===a?n[n.length-1]-o+1:-1===a?n[0]:n[n.length-1]-o,e.splice.apply(e,[s,0].concat(i)),e},C=function(e,t,n,r){var a="Target position is invalid, you can't move the "+r+" "+e+" to "+t+", the target can't be split. You could use tryToFit option.";if(1==(e>t?-1:1)){if(-1!==n.slice(0,n.length-1).indexOf(t))throw new Error(a)}else if(-1!==n.slice(1).indexOf(t))throw new Error(a);return!0},L=function(e){return function(t){var n=t.$from;return T(n,e)}},T=function(e,t){for(var n=e.depth;n>0;n--){var r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}},O=function(e,t){return function(n){var r=L(e)(n);if(r)return $(r.pos,t)}},E=function(e){return function(t){return!!L(e)(t)}},A=function(e){return function(t){return L((function(t){return m(e,t)}))(t)}},j=function(e){var t=e.$from.nodeBefore,n=r.Selection.findFrom(e.$from,-1);if(n&&t){var a=A(t.type)(n);return a?a.pos:n.$from.pos}},$=function(e,t){var n=t(e),r=n.node.childNodes[n.offset];return n.node.nodeType===Node.TEXT_NODE?n.node.parentNode:r&&r.nodeType!==Node.TEXT_NODE?r:n.node},P=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)throw new Error('Invalid "node" parameter');var n=[];return e.descendants((function(e,r){if(n.push({node:e,pos:r}),!t)return!1})),n},Y=function(e,t,n){if(!e)throw new Error('Invalid "node" parameter');if(!t)throw new Error('Invalid "predicate" parameter');return P(e,n).filter((function(e){return t(e.node)}))},N=function(e,t,n){return Y(e,(function(e){return e.type===t}),n)},z=function(e){return L((function(e){return e.type.spec.tableRole&&"table"===e.type.spec.tableRole}))(e)},I=function(e){return e instanceof i.CellSelection},F=function(e){if(I(e)){var t=i.TableMap.get(e.$anchorCell.node(-1));return x({left:0,right:t.width,top:0,bottom:t.height})(e)}return!1},H=function(e){return function(t){var n=z(t);if(n){var r=i.TableMap.get(n.node);return(Array.isArray(e)?e:Array.from([e])).reduce((function(e,t){if(t>=0&&t<=r.width-1){var a=r.cellsInRect({left:t,right:t+1,top:0,bottom:r.height});return e.concat(a.map((function(e){var t=n.node.nodeAt(e),r=e+n.start;return{pos:r,start:r+1,node:t}})))}}),[])}}},R=function(e){return function(t){var n=z(t);if(n){var r=i.TableMap.get(n.node);return(Array.isArray(e)?e:Array.from([e])).reduce((function(e,t){if(t>=0&&t<=r.height-1){var a=r.cellsInRect({left:0,right:r.width,top:t,bottom:t+1});return e.concat(a.map((function(e){var t=n.node.nodeAt(e),r=e+n.start;return{pos:r,start:r+1,node:t}})))}}),[])}}},B=function(e){return function(t,n){return function(r){var a=z(r.selection),o="row"===e;if(a){var s=i.TableMap.get(a.node);if(t>=0&&t<(o?s.height:s.width)){var l=o?0:t,c=o?t:0,u=o?s.width:t+1,d=o?t+1:s.height;if(n){var p=J(r.selection.$from);if(!p)return r;var m=s.findCell(p.pos-a.start);o?(c=Math.min(c,m.top),d=Math.max(d,m.bottom)):(l=Math.min(l,m.left),u=Math.max(u,m.right))}var h=s.cellsInRect({left:l,top:c,right:o?u:l+1,bottom:o?c+1:d}),_=d-c==1?h:s.cellsInRect({left:o?l:u-1,top:o?d-1:c,right:u,bottom:d}),v=a.start+h[0],g=a.start+_[_.length-1],y=r.doc.resolve(v),b=r.doc.resolve(g);return f(r.setSelection(new i.CellSelection(b,y)))}}return r}}},q=B("column"),V=B("row"),W=function(e){return function(t){var n=z(t.selection);if(n){var r=i.TableMap.get(n.node);if(e>=0&&e<=r.height){for(var a=n.node,o=g(a.type.schema),s=n.start,l=0;l<e+1;l++)s+=a.child(l).nodeSize;var c=a.child(e),u=[],p=0;if(c.forEach((function(e){1===e.attrs.rowspan&&(p+=e.attrs.colspan,u.push(o[e.type.spec.tableRole].createAndFill(e.attrs,e.marks)))})),p<r.width){for(var m=[],f=function(n){var r=Q(n,(function(t,r){var a=t.node.attrs.rowspan;return a>1&&n+a>e}))(t);m.push.apply(m,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(r))},h=e;h>=0;h--)f(h);m.length&&m.forEach((function(e){t=G(e,{rowspan:e.node.attrs.rowspan+1})(t)}))}return d(o.row.create(c.attrs,u),s)(t)}}return t}},U=function(e){return function(t){var n=z(t.selection);if(n){var r=i.TableMap.get(n.node);if(0===e&&1===r.width)return Z(t);if(e>=0&&e<=r.width)return i.removeColumn(t,{map:r,tableStart:n.start,table:n.node},e),f(t)}return t}},K=function(e){return function(t){var n=z(t.selection);if(n){var r=i.TableMap.get(n.node);if(0===e&&1===r.height)return Z(t);if(e>=0&&e<=r.height)return i.removeRow(t,{map:r,tableStart:n.start,table:n.node},e),f(t)}return t}},Z=function(e){for(var t=e.selection.$from,n=t.depth;n>0;n--)if("table"===t.node(n).type.spec.tableRole)return f(e.delete(t.before(n),t.after(n)));return e},G=function(e,t){return function(n){return e?(n.setNodeMarkup(e.pos,null,Object.assign({},e.node.attrs,t)),f(n)):n}},J=function(e){return T(e,(function(e){return e.type.spec.tableRole&&/cell/i.test(e.type.spec.tableRole)}))},X=function(e){var t=J(e);if(t){var n=function(e){return T(e,(function(e){return e.type.spec.tableRole&&/table/i.test(e.type.spec.tableRole)}))}(e),r=i.TableMap.get(n.node),a=t.pos-n.start;return r.rectBetween(a,a)}},Q=function(e,t){return function(n){var r=[],a=R(e)(n.selection);if(a)for(var i=a.length-1;i>=0;i--)t(a[i],n)&&r.push(a[i]);return r}},ee=function(e){return function(t){for(var n=e,r=e,a=function(e){var a=H(e)(t.selection);a&&a.forEach((function(t){var a=t.node.attrs.colspan+e-1;a>=n&&(n=e),a>r&&(r=a)}))},i=e;i>=0;i--)a(i);var o=function(e){var n=H(e)(t.selection);n&&n.forEach((function(t){var n=t.node.attrs.colspan+e-1;t.node.attrs.colspan>1&&n>r&&(r=n)}))};for(i=e;i<=r;i++)o(i);var s=[];for(i=n;i<=r;i++){var l=H(i)(t.selection);l&&l.length&&s.push(i)}n=s[0],r=s[s.length-1];for(var c=H(n)(t.selection),u=R(0)(t.selection),d=t.doc.resolve(c[c.length-1].pos),p=void 0,m=r;m>=n;m--){var f=H(m)(t.selection);if(f&&f.length){for(var h=u.length-1;h>=0;h--)if(u[h].pos===f[0].pos){p=f[0];break}if(p)break}}return{$anchor:d,$head:t.doc.resolve(p.pos),indexes:s}}},te=function(e){return function(t){for(var n=e,r=e,a=function(e){R(e)(t.selection).forEach((function(t){var a=t.node.attrs.rowspan+e-1;a>=n&&(n=e),a>r&&(r=a)}))},i=e;i>=0;i--)a(i);var o=function(e){R(e)(t.selection).forEach((function(t){var n=t.node.attrs.rowspan+e-1;t.node.attrs.rowspan>1&&n>r&&(r=n)}))};for(i=e;i<=r;i++)o(i);var s=[];for(i=n;i<=r;i++){var l=R(i)(t.selection);l&&l.length&&s.push(i)}n=s[0],r=s[s.length-1];for(var c=R(n)(t.selection),u=H(0)(t.selection),d=t.doc.resolve(c[c.length-1].pos),p=void 0,m=r;m>=n;m--){var f=R(m)(t.selection);if(f&&f.length){for(var h=u.length-1;h>=0;h--)if(u[h].pos===f[0].pos){p=f[0];break}if(p)break}}return{$anchor:d,$head:t.doc.resolve(p.pos),indexes:s}}};t.isNodeSelection=p,t.canInsert=y,t.convertTableNodeToArrayOfRows=D,t.convertArrayOfRowsToTableNode=M,t.findParentNode=L,t.findParentNodeClosestToPos=T,t.findParentDomRef=O,t.hasParentNode=E,t.findParentNodeOfType=A,t.findParentNodeOfTypeClosestToPos=function(e,t){return T(e,(function(e){return m(t,e)}))},t.hasParentNodeOfType=function(e){return function(t){return E((function(t){return m(e,t)}))(t)}},t.findParentDomRefOfType=function(e,t){return function(n){return O((function(t){return m(e,t)}),t)(n)}},t.findSelectedNodeOfType=function(e){return function(t){if(p(t)){var n=t.node,r=t.$from;if(m(e,n))return{node:n,pos:r.pos,depth:r.depth}}}},t.findPositionOfNodeBefore=j,t.findDomRefAtPos=$,t.flatten=P,t.findChildren=Y,t.findTextNodes=function(e,t){return Y(e,(function(e){return e.isText}),t)},t.findInlineNodes=function(e,t){return Y(e,(function(e){return e.isInline}),t)},t.findBlockNodes=function(e,t){return Y(e,(function(e){return e.isBlock}),t)},t.findChildrenByAttr=function(e,t,n){return Y(e,(function(e){return!!t(e.attrs)}),n)},t.findChildrenByType=N,t.findChildrenByMark=function(e,t,n){return Y(e,(function(e){return t.isInSet(e.marks)}),n)},t.contains=function(e,t){return!!N(e,t).length},t.findTable=z,t.isCellSelection=I,t.getSelectionRect=function(e){if(I(e)){var t=e.$anchorCell.start(-1);return i.TableMap.get(e.$anchorCell.node(-1)).rectBetween(e.$anchorCell.pos-t,e.$headCell.pos-t)}},t.isColumnSelected=function(e){return function(t){if(I(t)){var n=i.TableMap.get(t.$anchorCell.node(-1));return x({left:e,right:e+1,top:0,bottom:n.height})(t)}return!1}},t.isRowSelected=function(e){return function(t){if(I(t)){var n=i.TableMap.get(t.$anchorCell.node(-1));return x({left:0,right:n.width,top:e,bottom:e+1})(t)}return!1}},t.isTableSelected=F,t.getCellsInColumn=H,t.getCellsInRow=R,t.getCellsInTable=function(e){var t=z(e);if(t){var n=i.TableMap.get(t.node);return n.cellsInRect({left:0,right:n.width,top:0,bottom:n.height}).map((function(e){var n=t.node.nodeAt(e),r=e+t.start;return{pos:r,start:r+1,node:n}}))}},t.selectColumn=q,t.selectRow=V,t.selectTable=function(e){var t=z(e.selection);if(t){var n=i.TableMap.get(t.node).map;if(n&&n.length){var r=t.start+n[0],a=t.start+n[n.length-1],o=e.doc.resolve(r),s=e.doc.resolve(a);return f(e.setSelection(new i.CellSelection(s,o)))}}return e},t.emptyCell=function(e,t){return function(n){if(e){var r=g(t).cell.createAndFill().content;if(!e.node.content.eq(r))return n.replaceWith(e.pos+1,e.pos+e.node.nodeSize,r),f(n)}return n}},t.addColumnAt=function(e){return function(t){var n=z(t.selection);if(n){var r=i.TableMap.get(n.node);if(e>=0&&e<=r.width)return f(i.addColumn(t,{map:r,tableStart:n.start,table:n.node},e))}return t}},t.moveRow=function(e,t,n){return function(r){var a=Object.assign({tryToFit:!1,direction:0},n),i=z(r.selection);if(!i)return r;var o=te(e)(r).indexes,s=te(t)(r).indexes;if(o.indexOf(t)>-1)return r;!a.tryToFit&&s.length>1&&C(e,t,s,"row");var l=function(e,t,n,r){var a=D(e.node);return a=S(a,t,n,r),M(e.node,a)}(i,o,s,a.direction);return f(r).replaceWith(i.pos,i.pos+i.node.nodeSize,l)}},t.moveColumn=function(e,t,n){return function(r){var a=Object.assign({tryToFit:!1,direction:0},n),i=z(r.selection);if(!i)return r;var o=ee(e)(r).indexes,s=ee(t)(r).indexes;if(o.indexOf(t)>-1)return r;!a.tryToFit&&s.length>1&&C(e,t,s,"column");var l=function(e,t,n,r){var a=k(D(e.node));return a=S(a,t,n,r),a=k(a),M(e.node,a)}(i,o,s,a.direction);return f(r).replaceWith(i.pos,i.pos+i.node.nodeSize,l)}},t.addRowAt=function(e,t){return function(n){var r=z(n.selection);if(r){var a=i.TableMap.get(r.node),o=e-1;if(t&&o>=0)return f(W(o)(n));if(e>=0&&e<=a.height)return f(i.addRow(n,{map:a,tableStart:r.start,table:r.node},e))}return n}},t.cloneRowAt=W,t.removeColumnAt=U,t.removeRowAt=K,t.removeTable=Z,t.removeSelectedColumns=function(e){var t=e.selection;if(F(t))return Z(e);if(I(t)){var n=z(t);if(n){var r=i.TableMap.get(n.node),a=r.rectBetween(t.$anchorCell.pos-n.start,t.$headCell.pos-n.start);if(0==a.left&&a.right==r.width)return!1;for(var o=Object.assign({},a,{map:r,table:n.node,tableStart:n.start}),s=o.right-1;i.removeColumn(e,o,s),s!==o.left;s--)o.table=o.tableStart?e.doc.nodeAt(o.tableStart-1):e.doc,o.map=i.TableMap.get(o.table);return f(e)}}return e},t.removeSelectedRows=function(e){var t=e.selection;if(F(t))return Z(e);if(I(t)){var n=z(t);if(n){var r=i.TableMap.get(n.node),a=r.rectBetween(t.$anchorCell.pos-n.start,t.$headCell.pos-n.start);if(0==a.top&&a.bottom==r.height)return!1;for(var o=Object.assign({},a,{map:r,table:n.node,tableStart:n.start}),s=o.bottom-1;i.removeRow(e,o,s),s!==o.top;s--)o.table=o.tableStart?e.doc.nodeAt(o.tableStart-1):e.doc,o.map=i.TableMap.get(o.table);return f(e)}}return e},t.removeColumnClosestToPos=function(e){return function(t){var n=X(e);return n?U(n.left)(l(e.pos)(t)):t}},t.removeRowClosestToPos=function(e){return function(t){var n=X(e);return n?K(n.top)(l(e.pos)(t)):t}},t.forEachCellInColumn=function(e,t,n){return function(a){var i=H(e)(a.selection);if(i){for(var o=i.length-1;o>=0;o--)a=t(i[o],a);if(n){var s=a.doc.resolve(a.mapping.map(i[i.length-1].pos));a.setSelection(r.Selection.near(s))}return f(a)}return a}},t.forEachCellInRow=function(e,t,n){return function(a){var i=R(e)(a.selection);if(i){for(var o=i.length-1;o>=0;o--)a=t(i[o],a);if(n){var s=a.doc.resolve(a.mapping.map(i[i.length-1].pos));a.setSelection(r.Selection.near(s))}}return a}},t.setCellAttrs=G,t.createTable=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=g(e),o=i.cell,s=i.header_cell,l=i.row,c=i.table,u=[],d=[],p=0;p<n;p++)u.push(w(o,a)),r&&d.push(w(s,a));for(var m=[],f=0;f<t;f++)m.push(l.createChecked(null,r&&0===f?d:u));return c.createChecked(null,m)},t.findCellClosestToPos=J,t.findCellRectClosestToPos=X,t.getSelectionRangeInColumn=ee,t.getSelectionRangeInRow=te,t.removeParentNodeOfType=function(e){return function(t){var n=A(e)(t.selection);return n?v(n.pos)(t):t}},t.replaceParentNodeOfType=o,t.removeSelectedNode=function(e){if(p(e.selection)){var t=e.selection.$from.pos,n=e.selection.$to.pos;return f(e.delete(t,n))}return e},t.replaceSelectedNode=s,t.setTextSelection=l,t.safeInsert=d,t.setParentNodeMarkup=function(e,t,n,r){return function(a){var i=A(e)(a.selection);return i?f(a.setNodeMarkup(i.pos,t,Object.assign({},i.node.attrs,n),r)):a}},t.selectParentNodeOfType=function(e){return function(t){if(!p(t.selection)){var n=A(e)(t.selection);if(n)return f(t.setSelection(r.NodeSelection.create(t.doc,n.pos)))}return t}},t.removeNodeBefore=function(e){var t=j(e.selection);return"number"==typeof t?v(t)(e):e}},9934:function(e,t,n){var r=n("6fcd"),a=n("41c3"),i=n("30c9");e.exports=function(e){return i(e)?r(e,!0):a(e)}},"99af":function(e,t,n){"use strict";var r=n("23e7"),a=n("d039"),i=n("e8b5"),o=n("861d"),s=n("7b0b"),l=n("50c4"),c=n("8418"),u=n("65f0"),d=n("1dde"),p=n("b622"),m=n("2d00"),f=p("isConcatSpreadable"),h=9007199254740991,_="Maximum allowed index exceeded",v=m>=51||!a((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),g=d("concat"),y=function(e){if(!o(e))return!1;var t=e[f];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!v||!g},{concat:function(e){var t,n,r,a,i,o=s(this),d=u(o,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(y(i=-1===t?o:arguments[t])){if(p+(a=l(i.length))>h)throw TypeError(_);for(n=0;n<a;n++,p++)n in i&&c(d,p,i[n])}else{if(p>=h)throw TypeError(_);c(d,p++,i)}return d.length=p,d}})},"99cd":function(e,t){e.exports=function(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===n(i[l],l,i))break}return t}}},"99d3":function(e,t,n){(function(e){var r=n("585a"),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s}).call(this,n("62e4")(e))},"9aff":function(e,t,n){var r=n("9638"),a=n("30c9"),i=n("c098"),o=n("1a8c");e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?a(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},"9bdd":function(e,t,n){var r=n("825a"),a=n("2a62");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){throw a(e),t}}},"9bf2":function(e,t,n){var r=n("83ab"),a=n("0cfb"),i=n("825a"),o=n("c04e"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=o(t,!0),i(n),a)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9e69":function(e,t,n){var r=n("2b3e").Symbol;e.exports=r},"9ed3":function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,a=n("7c73"),i=n("5c6c"),o=n("d44e"),s=n("3f8c"),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=a(r,{next:i(1,n)}),o(e,c,!1,!0),s[c]=l,e}},"9f26":function(e,t,n){!function(e){"use strict";var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,a=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];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("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,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:"[Aujourdhui à] 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",w:"une semaine",ww:"%d semaines",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}})}(n("c1df"))},"9f7f":function(e,t,n){"use strict";var r=n("d039");function a(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a2be:function(e,t,n){var r=n("d612"),a=n("4284"),i=n("c584");e.exports=function(e,t,n,o,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),m=l.get(t);if(p&&m)return p==t&&m==e;var f=-1,h=!0,_=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var v=e[f],g=t[f];if(o)var y=c?o(g,v,f,t,e,l):o(v,g,f,e,t,l);if(void 0!==y){if(y)continue;h=!1;break}if(_){if(!a(t,(function(e,t){if(!i(_,t)&&(v===e||s(v,e,n,o,l)))return _.push(t)}))){h=!1;break}}else if(v!==g&&!s(v,g,n,o,l)){h=!1;break}}return l.delete(e),l.delete(t),h}},a356:function(e,t,n){!function(e){"use strict";var t=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 عام"]},r=function(e){return function(r,a,i,o){var s=t(r),l=n[e][t(r)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,r)}},a=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{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,n){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")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n("c1df"))},a434:function(e,t,n){"use strict";var r=n("23e7"),a=n("23cb"),i=n("a691"),o=n("50c4"),s=n("7b0b"),l=n("65f0"),c=n("8418"),u=n("1dde"),d=n("ae40"),p=u("splice"),m=d("splice",{ACCESSORS:!0,0:0,1:2}),f=Math.max,h=Math.min,_=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!p||!m},{splice:function(e,t){var n,r,u,d,p,m,g=s(this),y=o(g.length),b=a(e,y),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=y-b):(n=w-2,r=h(f(i(t),0),y-b)),y+n-r>_)throw TypeError(v);for(u=l(g,r),d=0;d<r;d++)(p=b+d)in g&&c(u,d,g[p]);if(u.length=r,n<r){for(d=b;d<y-r;d++)m=d+n,(p=d+r)in g?g[m]=g[p]:delete g[m];for(d=y;d>y-r+n;d--)delete g[d-1]}else if(n>r)for(d=y-r;d>b;d--)m=d+n-1,(p=d+r-1)in g?g[m]=g[p]:delete g[m];for(d=0;d<n;d++)g[d+b]=arguments[d+2];return g.length=y-r+n,u}})},a454:function(e,t,n){var r=n("72f0"),a=n("3b4a"),i=n("cd9d"),o=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=o},a4d3:function(e,t,n){"use strict";var r=n("23e7"),a=n("da84"),i=n("d066"),o=n("c430"),s=n("83ab"),l=n("4930"),c=n("fdbf"),u=n("d039"),d=n("5135"),p=n("e8b5"),m=n("861d"),f=n("825a"),h=n("7b0b"),_=n("fc6a"),v=n("c04e"),g=n("5c6c"),y=n("7c73"),b=n("df75"),w=n("241c"),x=n("057f"),k=n("7418"),D=n("06cf"),M=n("9bf2"),S=n("d1e7"),C=n("9112"),L=n("6eeb"),T=n("5692"),O=n("f772"),E=n("d012"),A=n("90e3"),j=n("b622"),$=n("e538"),P=n("746f"),Y=n("d44e"),N=n("69f3"),z=n("b727").forEach,I=O("hidden"),F="Symbol",H=j("toPrimitive"),R=N.set,B=N.getterFor(F),q=Object.prototype,V=a.Symbol,W=i("JSON","stringify"),U=D.f,K=M.f,Z=x.f,G=S.f,J=T("symbols"),X=T("op-symbols"),Q=T("string-to-symbol-registry"),ee=T("symbol-to-string-registry"),te=T("wks"),ne=a.QObject,re=!ne||!ne.prototype||!ne.prototype.findChild,ae=s&&u((function(){return 7!=y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=U(q,t);r&&delete q[t],K(e,t,n),r&&e!==q&&K(q,t,r)}:K,ie=function(e,t){var n=J[e]=y(V.prototype);return R(n,{type:F,tag:e,description:t}),s||(n.description=t),n},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof V},se=function(e,t,n){e===q&&se(X,t,n),f(e);var r=v(t,!0);return f(n),d(J,r)?(n.enumerable?(d(e,I)&&e[I][r]&&(e[I][r]=!1),n=y(n,{enumerable:g(0,!1)})):(d(e,I)||K(e,I,g(1,{})),e[I][r]=!0),ae(e,r,n)):K(e,r,n)},le=function(e,t){f(e);var n=_(t),r=b(n).concat(pe(n));return z(r,(function(t){s&&!ce.call(n,t)||se(e,t,n[t])})),e},ce=function(e){var t=v(e,!0),n=G.call(this,t);return!(this===q&&d(J,t)&&!d(X,t))&&(!(n||!d(this,t)||!d(J,t)||d(this,I)&&this[I][t])||n)},ue=function(e,t){var n=_(e),r=v(t,!0);if(n!==q||!d(J,r)||d(X,r)){var a=U(n,r);return!a||!d(J,r)||d(n,I)&&n[I][r]||(a.enumerable=!0),a}},de=function(e){var t=Z(_(e)),n=[];return z(t,(function(e){d(J,e)||d(E,e)||n.push(e)})),n},pe=function(e){var t=e===q,n=Z(t?X:_(e)),r=[];return z(n,(function(e){!d(J,e)||t&&!d(q,e)||r.push(J[e])})),r};l||(L((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=A(e),n=function(e){this===q&&n.call(X,e),d(this,I)&&d(this[I],t)&&(this[I][t]=!1),ae(this,t,g(1,e))};return s&&re&&ae(q,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",(function(){return B(this).tag})),L(V,"withoutSetter",(function(e){return ie(A(e),e)})),S.f=ce,M.f=se,D.f=ue,w.f=x.f=de,k.f=pe,$.f=function(e){return ie(j(e),e)},s&&(K(V.prototype,"description",{configurable:!0,get:function(){return B(this).description}}),o||L(q,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),z(b(te),(function(e){P(e)})),r({target:F,stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(Q,t))return Q[t];var n=V(t);return Q[t]=n,ee[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(d(ee,e))return ee[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?y(e):le(y(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:de,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:u((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(h(e))}}),W&&r({target:"JSON",stat:!0,forced:!l||u((function(){var e=V();return"[null]"!=W([e])||"{}"!=W({a:e})||"{}"!=W(Object(e))}))},{stringify:function(e,t,n){for(var r,a=[e],i=1;arguments.length>i;)a.push(arguments[i++]);if(r=t,(m(t)||void 0!==e)&&!oe(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),a[1]=t,W.apply(null,a)}}),V.prototype[H]||C(V.prototype,H,V.prototype.valueOf),Y(V,F),E[I]=!0},a524:function(e,t,n){var r=n("4245");e.exports=function(e){return r(this,e).has(e)}},a566:function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return 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 a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));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=4)}([function(e,t,n){var r=n(2),a=n(8);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,a,i=e[1]||"",o=e[3];if(!o)return i;if(t&&"function"==typeof btoa){var s=(n=o,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(a," */")),l=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[i].concat(l).concat([s]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(r)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(a[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&a[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";var r,a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],a=0;a<e.length;a++){var i=e[a],l=t.base?i[0]+t.base:i[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(o[d].references++,o[d].updater(p)):o.push({identifier:u,updater:_(p,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var a=n.nc;a&&(r.nonce=a)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=i(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function p(e,t,n,r){var a=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function m(e,t,n){var r=n.css,a=n.media,i=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),i&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var f=null,h=0;function _(e,t){var n,r,a;if(t.singleton){var i=h++;n=f||(f=c(t)),r=p.bind(null,n,i,!1),a=p.bind(null,n,i,!0)}else n=c(t),r=m.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var a=s(n[r]);o[a].references--}for(var i=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=i}}}},function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="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})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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 r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(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 s(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 l="undefined"!=typeof window&&void 0!==window.document,c=l?window:{},u=!(!l||!c.document.documentElement)&&"ontouchstart"in c.document.documentElement,d=!!l&&"PointerEvent"in c,p="".concat("cropper","-crop"),m="".concat("cropper","-disabled"),f="".concat("cropper","-hidden"),h="".concat("cropper","-hide"),_="".concat("cropper","-invisible"),v="".concat("cropper","-modal"),g="".concat("cropper","-move"),y="".concat("cropper","Action"),b="".concat("cropper","Preview"),w=d?"pointerdown":u?"touchstart":"mousedown",x=d?"pointermove":u?"touchmove":"mousemove",k=d?"pointerup pointercancel":u?"touchend touchcancel":"mouseup",D=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,M=/^data:/,S=/^data:image\/jpeg;base64,/,C=/^img|canvas$/i,L={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},T=Number.isNaN||c.isNaN;function O(e){return"number"==typeof e&&!T(e)}var E=function(e){return e>0&&e<1/0};function A(e){return void 0===e}function j(t){return"object"===e(t)&&null!==t}var $=Object.prototype.hasOwnProperty;function P(e){if(!j(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&$.call(n,"isPrototypeOf")}catch(e){return!1}}function Y(e){return"function"==typeof e}var N=Array.prototype.slice;function z(e){return Array.from?Array.from(e):N.call(e)}function I(e,t){return e&&Y(t)&&(Array.isArray(e)||O(e.length)?z(e).forEach((function(n,r){t.call(e,n,r,e)})):j(e)&&Object.keys(e).forEach((function(n){t.call(e,e[n],n,e)}))),e}var F=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return j(e)&&n.length>0&&n.forEach((function(t){j(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},H=/\.\d*(?:0|9){12}\d*$/;function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return H.test(e)?Math.round(e*t)/t:e}var B=/^width|height|left|top|marginLeft|marginTop$/;function q(e,t){var n=e.style;I(t,(function(e,t){B.test(t)&&O(e)&&(e="".concat(e,"px")),n[t]=e}))}function V(e,t){if(t)if(O(e.length))I(e,(function(e){V(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function W(e,t){t&&(O(e.length)?I(e,(function(e){W(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function U(e,t,n){t&&(O(e.length)?I(e,(function(e){U(e,t,n)})):n?V(e,t):W(e,t))}var K=/([a-z\d])([A-Z])/g;function Z(e){return e.replace(K,"$1-$2").toLowerCase()}function G(e,t){return j(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Z(t)))}function J(e,t,n){j(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(Z(t)),n)}var X=/\s\s*/,Q=function(){var e=!1;if(l){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});c.addEventListener("test",n,r),c.removeEventListener("test",n,r)}return e}();function ee(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=n;t.trim().split(X).forEach((function(t){if(!Q){var i=e.listeners;i&&i[t]&&i[t][n]&&(a=i[t][n],delete i[t][n],0===Object.keys(i[t]).length&&delete i[t],0===Object.keys(i).length&&delete e.listeners)}e.removeEventListener(t,a,r)}))}function te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=n;t.trim().split(X).forEach((function(t){if(r.once&&!Q){var i=e.listeners,o=void 0===i?{}:i;a=function(){delete o[t][n],e.removeEventListener(t,a,r);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];n.apply(e,s)},o[t]||(o[t]={}),o[t][n]&&e.removeEventListener(t,o[t][n],r),o[t][n]=a,e.listeners=o}e.addEventListener(t,a,r)}))}function ne(e,t,n){var r;return Y(Event)&&Y(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function re(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var ae=c.location,ie=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function oe(e){var t=e.match(ie);return null!==t&&(t[1]!==ae.protocol||t[2]!==ae.hostname||t[3]!==ae.port)}function se(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function le(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,a=e.translateX,i=e.translateY,o=[];O(a)&&0!==a&&o.push("translateX(".concat(a,"px)")),O(i)&&0!==i&&o.push("translateY(".concat(i,"px)")),O(t)&&0!==t&&o.push("rotate(".concat(t,"deg)")),O(n)&&1!==n&&o.push("scaleX(".concat(n,")")),O(r)&&1!==r&&o.push("scaleY(".concat(r,")"));var s=o.length?o.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function ce(e,t){var n=e.pageX,r=e.pageY,a={endX:n,endY:r};return t?a:i({startX:n,startY:r},a)}function ue(e){var t=e.aspectRatio,n=e.height,r=e.width,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",i=E(r),o=E(n);if(i&&o){var s=n*t;"contain"===a&&s>r||"cover"===a&&s<r?n=r/t:r=n*t}else i?n=r/t:o&&(r=n*t);return{width:r,height:n}}function de(e,t,n,r){var a=t.aspectRatio,i=t.naturalWidth,s=t.naturalHeight,l=t.rotate,c=void 0===l?0:l,u=t.scaleX,d=void 0===u?1:u,p=t.scaleY,m=void 0===p?1:p,f=n.aspectRatio,h=n.naturalWidth,_=n.naturalHeight,v=r.fillColor,g=void 0===v?"transparent":v,y=r.imageSmoothingEnabled,b=void 0===y||y,w=r.imageSmoothingQuality,x=void 0===w?"low":w,k=r.maxWidth,D=void 0===k?1/0:k,M=r.maxHeight,S=void 0===M?1/0:M,C=r.minWidth,L=void 0===C?0:C,T=r.minHeight,O=void 0===T?0:T,E=document.createElement("canvas"),A=E.getContext("2d"),j=ue({aspectRatio:f,width:D,height:S}),$=ue({aspectRatio:f,width:L,height:O},"cover"),P=Math.min(j.width,Math.max($.width,h)),Y=Math.min(j.height,Math.max($.height,_)),N=ue({aspectRatio:a,width:D,height:S}),z=ue({aspectRatio:a,width:L,height:O},"cover"),I=Math.min(N.width,Math.max(z.width,i)),F=Math.min(N.height,Math.max(z.height,s)),H=[-I/2,-F/2,I,F];return E.width=R(P),E.height=R(Y),A.fillStyle=g,A.fillRect(0,0,P,Y),A.save(),A.translate(P/2,Y/2),A.rotate(c*Math.PI/180),A.scale(d,m),A.imageSmoothingEnabled=b,A.imageSmoothingQuality=x,A.drawImage.apply(A,[e].concat(o(H.map((function(e){return Math.floor(R(e))}))))),A.restore(),E}var pe=String.fromCharCode,me=/^data:.*,/;function fe(e){var t,n=new DataView(e);try{var r,a,i;if(255===n.getUint8(0)&&216===n.getUint8(1))for(var o=n.byteLength,s=2;s+1<o;){if(255===n.getUint8(s)&&225===n.getUint8(s+1)){a=s;break}s+=1}if(a){var l=a+10;if("Exif"===function(e,t,n){var r="";n+=t;for(var a=t;a<n;a+=1)r+=pe(e.getUint8(a));return r}(n,a+4,4)){var c=n.getUint16(l);if(((r=18761===c)||19789===c)&&42===n.getUint16(l+2,r)){var u=n.getUint32(l+4,r);u>=8&&(i=l+u)}}}if(i){var d,p,m=n.getUint16(i,r);for(p=0;p<m;p+=1)if(d=i+12*p+2,274===n.getUint16(d,r)){d+=8,t=n.getUint16(d,r),n.setUint16(d,1,r);break}}}catch(e){t=1}return t}var he={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper;V(r,f),W(e,f);var a={width:Math.max(n.offsetWidth,Number(t.minContainerWidth)||200),height:Math.max(n.offsetHeight,Number(t.minContainerHeight)||100)};this.containerData=a,q(r,{width:a.width,height:a.height}),V(e,f),W(r,f)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,a=r?t.naturalHeight:t.naturalWidth,i=r?t.naturalWidth:t.naturalHeight,o=a/i,s=e.width,l=e.height;e.height*o>e.width?3===n?s=e.height*o:l=e.width/o:3===n?l=e.width/o:s=e.height*o;var c={aspectRatio:o,naturalWidth:a,naturalHeight:i,width:s,height:l};c.left=(e.width-s)/2,c.top=(e.height-l)/2,c.oldLeft=c.left,c.oldTop=c.top,this.canvasData=c,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=F({},t),this.initialCanvasData=F({},c)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,a=this.canvasData,i=this.cropBoxData,o=n.viewMode,s=a.aspectRatio,l=this.cropped&&i;if(e){var c=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;o>1?(c=Math.max(c,r.width),u=Math.max(u,r.height),3===o&&(u*s>c?c=u*s:u=c/s)):o>0&&(c?c=Math.max(c,l?i.width:0):u?u=Math.max(u,l?i.height:0):l&&(c=i.width,(u=i.height)*s>c?c=u*s:u=c/s));var d=ue({aspectRatio:s,width:c,height:u});c=d.width,u=d.height,a.minWidth=c,a.minHeight=u,a.maxWidth=1/0,a.maxHeight=1/0}if(t)if(o>(l?0:1)){var p=r.width-a.width,m=r.height-a.height;a.minLeft=Math.min(0,p),a.minTop=Math.min(0,m),a.maxLeft=Math.max(0,p),a.maxTop=Math.max(0,m),l&&this.limited&&(a.minLeft=Math.min(i.left,i.left+(i.width-a.width)),a.minTop=Math.min(i.top,i.top+(i.height-a.height)),a.maxLeft=i.left,a.maxTop=i.top,2===o&&(a.width>=r.width&&(a.minLeft=Math.min(0,p),a.maxLeft=Math.max(0,p)),a.height>=r.height&&(a.minTop=Math.min(0,m),a.maxTop=Math.max(0,m))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=r.width,a.maxTop=r.height},renderCanvas:function(e,t){var n=this.canvasData,r=this.imageData;if(t){var a=function(e){var t=e.width,n=e.height,r=e.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:t};var a=r%90*Math.PI/180,i=Math.sin(a),o=Math.cos(a),s=t*o+n*i,l=t*i+n*o;return r>90?{width:l,height:s}:{width:s,height:l}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),i=a.width,o=a.height,s=n.width*(i/n.naturalWidth),l=n.height*(o/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(l-n.height)/2,n.width=s,n.height=l,n.aspectRatio=i/o,n.naturalWidth=i,n.naturalHeight=o,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,q(this.canvas,F({width:n.width,height:n.height},le({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),a=n.naturalHeight*(t.height/t.naturalHeight);F(n,{width:r,height:a,left:(t.width-r)/2,top:(t.height-a)/2}),q(this.image,F({width:n.width,height:n.height},le(F({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,a={width:t.width,height:t.height};n&&(t.height*n>t.width?a.height=a.width/n:a.width=a.height*n),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*r),a.height=Math.max(a.minHeight,a.height*r),a.left=t.left+(t.width-a.width)/2,a.top=t.top+(t.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=F({},a)},limitCropBox:function(e,t){var n=this.options,r=this.containerData,a=this.canvasData,i=this.cropBoxData,o=this.limited,s=n.aspectRatio;if(e){var l=Number(n.minCropBoxWidth)||0,c=Number(n.minCropBoxHeight)||0,u=o?Math.min(r.width,a.width,a.width+a.left,r.width-a.left):r.width,d=o?Math.min(r.height,a.height,a.height+a.top,r.height-a.top):r.height;l=Math.min(l,r.width),c=Math.min(c,r.height),s&&(l&&c?c*s>l?c=l/s:l=c*s:l?c=l/s:c&&(l=c*s),d*s>u?d=u/s:u=d*s),i.minWidth=Math.min(l,u),i.minHeight=Math.min(c,d),i.maxWidth=u,i.maxHeight=d}t&&(o?(i.minLeft=Math.max(0,a.left),i.minTop=Math.max(0,a.top),i.maxLeft=Math.min(r.width,a.left+a.width)-i.width,i.maxTop=Math.min(r.height,a.top+a.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=r.width-i.width,i.maxTop=r.height-i.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&J(this.face,y,n.width>=t.width&&n.height>=t.height?"move":"all"),q(this.cropBox,F({width:n.width,height:n.height},le({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),ne(this.element,"crop",this.getData())}},_e={initPreview:function(){var e=this.element,t=this.crossOrigin,n=this.options.preview,r=t?this.crossOriginUrl:this.url,a=e.alt||"The image to preview",i=document.createElement("img");if(t&&(i.crossOrigin=t),i.src=r,i.alt=a,this.viewBox.appendChild(i),this.viewBoxImage=i,n){var o=n;"string"==typeof n?o=e.ownerDocument.querySelectorAll(n):n.querySelector&&(o=[n]),this.previews=o,I(o,(function(e){var n=document.createElement("img");J(e,b,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(n.crossOrigin=t),n.src=r,n.alt=a,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(n)}))}},resetPreview:function(){I(this.previews,(function(e){var t=G(e,b);q(e,{width:t.width,height:t.height}),e.innerHTML=t.html,function(e,t){if(j(e[t]))try{delete e[t]}catch(n){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(n){e.dataset[t]=void 0}else e.removeAttribute("data-".concat(Z(t)))}(e,b)}))},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,r=n.width,a=n.height,i=e.width,o=e.height,s=n.left-t.left-e.left,l=n.top-t.top-e.top;this.cropped&&!this.disabled&&(q(this.viewBoxImage,F({width:i,height:o},le(F({translateX:-s,translateY:-l},e)))),I(this.previews,(function(t){var n=G(t,b),c=n.width,u=n.height,d=c,p=u,m=1;r&&(p=a*(m=c/r)),a&&p>u&&(d=r*(m=u/a),p=u),q(t,{width:d,height:p}),q(t.getElementsByTagName("img")[0],F({width:i*m,height:o*m},le(F({translateX:-s*m,translateY:-l*m},e))))})))}},ve={bind:function(){var e=this.element,t=this.options,n=this.cropper;Y(t.cropstart)&&te(e,"cropstart",t.cropstart),Y(t.cropmove)&&te(e,"cropmove",t.cropmove),Y(t.cropend)&&te(e,"cropend",t.cropend),Y(t.crop)&&te(e,"crop",t.crop),Y(t.zoom)&&te(e,"zoom",t.zoom),te(n,w,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&te(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&te(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),te(e.ownerDocument,x,this.onCropMove=this.cropMove.bind(this)),te(e.ownerDocument,k,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&te(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;Y(t.cropstart)&&ee(e,"cropstart",t.cropstart),Y(t.cropmove)&&ee(e,"cropmove",t.cropmove),Y(t.cropend)&&ee(e,"cropend",t.cropend),Y(t.crop)&&ee(e,"crop",t.crop),Y(t.zoom)&&ee(e,"zoom",t.zoom),ee(n,w,this.onCropStart),t.zoomable&&t.zoomOnWheel&&ee(n,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&ee(n,"dblclick",this.onDblclick),ee(e.ownerDocument,x,this.onCropMove),ee(e.ownerDocument,k,this.onCropEnd),t.responsive&&ee(window,"resize",this.onResize)}},ge={resize:function(){if(!this.disabled){var e,t,n=this.options,r=this.container,a=this.containerData,i=r.offsetWidth/a.width;1===i&&r.offsetHeight===a.height||(n.restore&&(e=this.getCanvasData(),t=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData(I(e,(function(t,n){e[n]=t*i}))),this.setCropBoxData(I(t,(function(e,n){t[n]=e*i})))))}},dblclick:function(){var e,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((e=this.dragBox,t=p,(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)?"move":"crop"))},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t=e.buttons,n=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(O(t)&&1!==t||O(n)&&0!==n||e.ctrlKey))){var r,a=this.options,i=this.pointers;e.changedTouches?I(e.changedTouches,(function(e){i[e.identifier]=ce(e)})):i[e.pointerId||0]=ce(e),r=Object.keys(i).length>1&&a.zoomable&&a.zoomOnTouch?"zoom":G(e.target,y),D.test(r)&&!1!==ne(this.element,"cropstart",{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,V(this.dragBox,v)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var n=this.pointers;e.preventDefault(),!1!==ne(this.element,"cropmove",{originalEvent:e,action:t})&&(e.changedTouches?I(e.changedTouches,(function(e){F(n[e.identifier]||{},ce(e,!0))})):F(n[e.pointerId||0]||{},ce(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,n=this.pointers;e.changedTouches?I(e.changedTouches,(function(e){delete n[e.identifier]})):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,U(this.dragBox,v,this.cropped&&this.options.modal)),ne(this.element,"cropend",{originalEvent:e,action:t}))}}},ye={change:function(e){var t,n=this.options,r=this.canvasData,a=this.containerData,o=this.cropBoxData,s=this.pointers,l=this.action,c=n.aspectRatio,u=o.left,d=o.top,p=o.width,m=o.height,h=u+p,_=d+m,v=0,g=0,y=a.width,b=a.height,w=!0;!c&&e.shiftKey&&(c=p&&m?p/m:1),this.limited&&(v=o.minLeft,g=o.minTop,y=v+Math.min(a.width,r.width,r.left+r.width),b=g+Math.min(a.height,r.height,r.top+r.height));var x=s[Object.keys(s)[0]],k={x:x.endX-x.startX,y:x.endY-x.startY},D=function(e){switch(e){case"e":h+k.x>y&&(k.x=y-h);break;case"w":u+k.x<v&&(k.x=v-u);break;case"n":d+k.y<g&&(k.y=g-d);break;case"s":_+k.y>b&&(k.y=b-_)}};switch(l){case"all":u+=k.x,d+=k.y;break;case"e":if(k.x>=0&&(h>=y||c&&(d<=g||_>=b))){w=!1;break}D("e"),(p+=k.x)<0&&(l="w",u-=p=-p),c&&(m=p/c,d+=(o.height-m)/2);break;case"n":if(k.y<=0&&(d<=g||c&&(u<=v||h>=y))){w=!1;break}D("n"),m-=k.y,d+=k.y,m<0&&(l="s",d-=m=-m),c&&(p=m*c,u+=(o.width-p)/2);break;case"w":if(k.x<=0&&(u<=v||c&&(d<=g||_>=b))){w=!1;break}D("w"),p-=k.x,u+=k.x,p<0&&(l="e",u-=p=-p),c&&(m=p/c,d+=(o.height-m)/2);break;case"s":if(k.y>=0&&(_>=b||c&&(u<=v||h>=y))){w=!1;break}D("s"),(m+=k.y)<0&&(l="n",d-=m=-m),c&&(p=m*c,u+=(o.width-p)/2);break;case"ne":if(c){if(k.y<=0&&(d<=g||h>=y)){w=!1;break}D("n"),m-=k.y,d+=k.y,p=m*c}else D("n"),D("e"),k.x>=0?h<y?p+=k.x:k.y<=0&&d<=g&&(w=!1):p+=k.x,k.y<=0?d>g&&(m-=k.y,d+=k.y):(m-=k.y,d+=k.y);p<0&&m<0?(l="sw",d-=m=-m,u-=p=-p):p<0?(l="nw",u-=p=-p):m<0&&(l="se",d-=m=-m);break;case"nw":if(c){if(k.y<=0&&(d<=g||u<=v)){w=!1;break}D("n"),m-=k.y,d+=k.y,p=m*c,u+=o.width-p}else D("n"),D("w"),k.x<=0?u>v?(p-=k.x,u+=k.x):k.y<=0&&d<=g&&(w=!1):(p-=k.x,u+=k.x),k.y<=0?d>g&&(m-=k.y,d+=k.y):(m-=k.y,d+=k.y);p<0&&m<0?(l="se",d-=m=-m,u-=p=-p):p<0?(l="ne",u-=p=-p):m<0&&(l="sw",d-=m=-m);break;case"sw":if(c){if(k.x<=0&&(u<=v||_>=b)){w=!1;break}D("w"),p-=k.x,u+=k.x,m=p/c}else D("s"),D("w"),k.x<=0?u>v?(p-=k.x,u+=k.x):k.y>=0&&_>=b&&(w=!1):(p-=k.x,u+=k.x),k.y>=0?_<b&&(m+=k.y):m+=k.y;p<0&&m<0?(l="ne",d-=m=-m,u-=p=-p):p<0?(l="se",u-=p=-p):m<0&&(l="nw",d-=m=-m);break;case"se":if(c){if(k.x>=0&&(h>=y||_>=b)){w=!1;break}D("e"),m=(p+=k.x)/c}else D("s"),D("e"),k.x>=0?h<y?p+=k.x:k.y>=0&&_>=b&&(w=!1):p+=k.x,k.y>=0?_<b&&(m+=k.y):m+=k.y;p<0&&m<0?(l="nw",d-=m=-m,u-=p=-p):p<0?(l="sw",u-=p=-p):m<0&&(l="ne",d-=m=-m);break;case"move":this.move(k.x,k.y),w=!1;break;case"zoom":this.zoom(function(e){var t=i({},e),n=[];return I(e,(function(e,r){delete t[r],I(t,(function(t){var r=Math.abs(e.startX-t.startX),a=Math.abs(e.startY-t.startY),i=Math.abs(e.endX-t.endX),o=Math.abs(e.endY-t.endY),s=Math.sqrt(r*r+a*a),l=(Math.sqrt(i*i+o*o)-s)/s;n.push(l)}))})),n.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),n[0]}(s),e),w=!1;break;case"crop":if(!k.x||!k.y){w=!1;break}t=re(this.cropper),u=x.startX-t.left,d=x.startY-t.top,p=o.minWidth,m=o.minHeight,k.x>0?l=k.y>0?"se":"ne":k.x<0&&(u-=p,l=k.y>0?"sw":"nw"),k.y<0&&(d-=m),this.cropped||(W(this.cropBox,f),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}w&&(o.width=p,o.height=m,o.left=u,o.top=d,this.action=l,this.renderCropBox()),I(s,(function(e){e.startX=e.endX,e.startY=e.endY}))}},be={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&V(this.dragBox,v),W(this.cropBox,f),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=F({},this.initialImageData),this.canvasData=F({},this.initialCanvasData),this.cropBoxData=F({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(F(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),W(this.dragBox,v),V(this.cropBox,f)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,I(this.previews,(function(t){t.getElementsByTagName("img")[0].src=e})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,W(this.cropper,m)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,V(this.cropper,m)),this},destroy:function(){var e=this.element;return e.cropper?(e.cropper=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,a=n.top;return this.moveTo(A(e)?e:r+Number(e),A(t)?t:a+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(O(e)&&(n.left=e,r=!0),O(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r=this.options,a=this.canvasData,i=a.width,o=a.height,s=a.naturalWidth,l=a.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&r.zoomable){var c=s*e,u=l*e;if(!1===ne(this.element,"zoom",{ratio:e,oldRatio:i/s,originalEvent:n}))return this;if(n){var d=this.pointers,p=re(this.cropper),m=d&&Object.keys(d).length?function(e){var t=0,n=0,r=0;return I(e,(function(e){var a=e.startX,i=e.startY;t+=a,n+=i,r+=1})),{pageX:t/=r,pageY:n/=r}}(d):{pageX:n.pageX,pageY:n.pageY};a.left-=(c-i)*((m.pageX-p.left-a.left)/i),a.top-=(u-o)*((m.pageY-p.top-a.top)/o)}else P(t)&&O(t.x)&&O(t.y)?(a.left-=(c-i)*((t.x-a.left)/i),a.top-=(u-o)*((t.y-a.top)/o)):(a.left-=(c-i)/2,a.top-=(u-o)/2);a.width=c,a.height=u,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return O(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,O(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(O(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(O(e)&&(n.scaleX=e,r=!0),O(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,a=this.canvasData,i=this.cropBoxData;if(this.ready&&this.cropped){e={x:i.left-a.left,y:i.top-a.top,width:i.width,height:i.height};var o=r.width/r.naturalWidth;if(I(e,(function(t,n){e[n]=t/o})),t){var s=Math.round(e.y+e.height),l=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=l-e.x,e.height=s-e.y}}else e={x:0,y:0,width:0,height:0};return n.rotatable&&(e.rotate=r.rotate||0),n.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(e){var t=this.options,n=this.imageData,r=this.canvasData,a={};if(this.ready&&!this.disabled&&P(e)){var i=!1;t.rotatable&&O(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,i=!0),t.scalable&&(O(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,i=!0),O(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,i=!0)),i&&this.renderCanvas(!0,!0);var o=n.width/n.naturalWidth;O(e.x)&&(a.left=e.x*o+r.left),O(e.y)&&(a.top=e.y*o+r.top),O(e.width)&&(a.width=e.width*o),O(e.height)&&(a.height=e.height*o),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?F({},this.containerData):{}},getImageData:function(){return this.sized?F({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&I(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){t[n]=e[n]})),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&P(e)&&(O(e.left)&&(t.left=e.left),O(e.top)&&(t.top=e.top),O(e.width)?(t.width=e.width,t.height=e.width/n):O(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,a=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&P(e)&&(O(e.left)&&(r.left=e.left),O(e.top)&&(r.top=e.top),O(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),O(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),a&&(t?r.height=r.width/a:n&&(r.width=r.height*a)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=de(this.image,this.imageData,t,e);if(!this.cropped)return n;var r=this.getData(),a=r.x,i=r.y,s=r.width,l=r.height,c=n.width/Math.floor(t.naturalWidth);1!==c&&(a*=c,i*=c,s*=c,l*=c);var u=s/l,d=ue({aspectRatio:u,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),p=ue({aspectRatio:u,width:e.minWidth||0,height:e.minHeight||0},"cover"),m=ue({aspectRatio:u,width:e.width||(1!==c?n.width:s),height:e.height||(1!==c?n.height:l)}),f=m.width,h=m.height;f=Math.min(d.width,Math.max(p.width,f)),h=Math.min(d.height,Math.max(p.height,h));var _=document.createElement("canvas"),v=_.getContext("2d");_.width=R(f),_.height=R(h),v.fillStyle=e.fillColor||"transparent",v.fillRect(0,0,f,h);var g=e.imageSmoothingEnabled,y=void 0===g||g,b=e.imageSmoothingQuality;v.imageSmoothingEnabled=y,b&&(v.imageSmoothingQuality=b);var w,x,k,D,M,S,C=n.width,L=n.height,T=a,O=i;T<=-s||T>C?(T=0,w=0,k=0,M=0):T<=0?(k=-T,T=0,M=w=Math.min(C,s+T)):T<=C&&(k=0,M=w=Math.min(s,C-T)),w<=0||O<=-l||O>L?(O=0,x=0,D=0,S=0):O<=0?(D=-O,O=0,S=x=Math.min(L,l+O)):O<=L&&(D=0,S=x=Math.min(l,L-O));var E=[T,O,w,x];if(M>0&&S>0){var A=f/s;E.push(k*A,D*A,M*A,S*A)}return v.drawImage.apply(v,[n].concat(o(E.map((function(e){return Math.floor(R(e))}))))),_},setAspectRatio:function(e){var t=this.options;return this.disabled||A(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var a="crop"===e,i=t.movable&&"move"===e;e=a||i?e:"none",t.dragMode=e,J(n,y,e),U(n,p,a),U(n,g,i),t.cropBoxMovable||(J(r,y,e),U(r,p,a),U(r,g,i))}return this}},we=c.Cropper,xe=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,e),!n||!C.test(n.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=n,this.options=F({},L,P(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var r,a,i;return r=e,i=[{key:"noConflict",value:function(){return window.Cropper=we,e}},{key:"setDefaults",value:function(e){F(L,P(e)&&e)}}],(a=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t.cropper){if(t.cropper=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(M.test(e))S.test(e)?this.read((a=e.replace(me,""),i=atob(a),o=new ArrayBuffer(i.length),I(s=new Uint8Array(o),(function(e,t){s[t]=i.charCodeAt(t)})),o)):this.clone();else{var a,i,o,s,l=new XMLHttpRequest,c=this.clone.bind(this);this.reloading=!0,this.xhr=l,l.onabort=c,l.onerror=c,l.ontimeout=c,l.onprogress=function(){"image/jpeg"!==l.getResponseHeader("content-type")&&l.abort()},l.onload=function(){t.read(l.response)},l.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&oe(e)&&n.crossOrigin&&(e=se(e)),l.open("GET",e),l.responseType="arraybuffer",l.withCredentials="use-credentials"===n.crossOrigin,l.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=fe(e),a=0,i=1,o=1;if(r>1){this.url=function(e,t){for(var n=[],r=new Uint8Array(e);r.length>0;)n.push(pe.apply(null,z(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,"image/jpeg");var s=function(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}(r);a=s.rotate,i=s.scaleX,o=s.scaleY}t.rotatable&&(n.rotate=a),t.scalable&&(n.scaleX=i,n.scaleY=o),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t;this.options.checkCrossOrigin&&oe(t)&&(n||(n="anonymous"),r=se(t)),this.crossOrigin=n,this.crossOriginUrl=r;var a=document.createElement("img");n&&(a.crossOrigin=n),a.src=r||t,a.alt=e.alt||"The image to crop",this.image=a,a.onload=this.start.bind(this),a.onerror=this.stop.bind(this),V(a,h),e.parentNode.insertBefore(a,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var n=c.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(c.navigator.userAgent),r=function(t,n){F(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||n){var a=document.createElement("img"),i=document.body||document.documentElement;this.sizingImage=a,a.onload=function(){r(a.width,a.height),n||i.removeChild(a)},a.src=t.src,n||(a.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(a))}else r(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,n=this.image,r=e.parentNode,a=document.createElement("div");a.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var i=a.querySelector(".".concat("cropper","-container")),o=i.querySelector(".".concat("cropper","-canvas")),s=i.querySelector(".".concat("cropper","-drag-box")),l=i.querySelector(".".concat("cropper","-crop-box")),c=l.querySelector(".".concat("cropper","-face"));this.container=r,this.cropper=i,this.canvas=o,this.dragBox=s,this.cropBox=l,this.viewBox=i.querySelector(".".concat("cropper","-view-box")),this.face=c,o.appendChild(n),V(e,f),r.insertBefore(i,e.nextSibling),this.isImg||W(n,h),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,V(l,f),t.guides||V(l.getElementsByClassName("".concat("cropper","-dashed")),f),t.center||V(l.getElementsByClassName("".concat("cropper","-center")),f),t.background&&V(i,"".concat("cropper","-bg")),t.highlight||V(c,_),t.cropBoxMovable&&(V(c,g),J(c,y,"all")),t.cropBoxResizable||(V(l.getElementsByClassName("".concat("cropper","-line")),f),V(l.getElementsByClassName("".concat("cropper","-point")),f)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),Y(t.ready)&&te(e,"ready",t.ready,{once:!0}),ne(e,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),W(this.element,f))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&n(r.prototype,a),i&&n(r,i),e}();return F(xe.prototype,he,_e,ve,ge,ye,be),xe}()},function(e,t,n){e.exports=n(9)},function(e,t,n){var r=n(2),a=n(6);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}},function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r)()(!0);a.push([e.i,"/*!\n * Cropper.js v1.5.7\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2020-05-23T05:22:57.283Z\n */\n\n.cropper-container {\n direction: ltr;\n font-size: 0;\n line-height: 0;\n position: relative;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.cropper-container img {\n display: block;\n height: 100%;\n image-orientation: 0deg;\n max-height: none !important;\n max-width: none !important;\n min-height: 0 !important;\n min-width: 0 !important;\n width: 100%;\n}\n\n.cropper-wrap-box,\n.cropper-canvas,\n.cropper-drag-box,\n.cropper-crop-box,\n.cropper-modal {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.cropper-wrap-box,\n.cropper-canvas {\n overflow: hidden;\n}\n\n.cropper-drag-box {\n background-color: #fff;\n opacity: 0;\n}\n\n.cropper-modal {\n background-color: #000;\n opacity: 0.5;\n}\n\n.cropper-view-box {\n display: block;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n overflow: hidden;\n width: 100%;\n}\n\n.cropper-dashed {\n border: 0 dashed #eee;\n display: block;\n opacity: 0.5;\n position: absolute;\n}\n\n.cropper-dashed.dashed-h {\n border-bottom-width: 1px;\n border-top-width: 1px;\n height: calc(100% / 3);\n left: 0;\n top: calc(100% / 3);\n width: 100%;\n}\n\n.cropper-dashed.dashed-v {\n border-left-width: 1px;\n border-right-width: 1px;\n height: 100%;\n left: calc(100% / 3);\n top: 0;\n width: calc(100% / 3);\n}\n\n.cropper-center {\n display: block;\n height: 0;\n left: 50%;\n opacity: 0.75;\n position: absolute;\n top: 50%;\n width: 0;\n}\n\n.cropper-center::before,\n.cropper-center::after {\n background-color: #eee;\n content: ' ';\n display: block;\n position: absolute;\n}\n\n.cropper-center::before {\n height: 1px;\n left: -3px;\n top: 0;\n width: 7px;\n}\n\n.cropper-center::after {\n height: 7px;\n left: 0;\n top: -3px;\n width: 1px;\n}\n\n.cropper-face,\n.cropper-line,\n.cropper-point {\n display: block;\n height: 100%;\n opacity: 0.1;\n position: absolute;\n width: 100%;\n}\n\n.cropper-face {\n background-color: #fff;\n left: 0;\n top: 0;\n}\n\n.cropper-line {\n background-color: #39f;\n}\n\n.cropper-line.line-e {\n cursor: ew-resize;\n right: -3px;\n top: 0;\n width: 5px;\n}\n\n.cropper-line.line-n {\n cursor: ns-resize;\n height: 5px;\n left: 0;\n top: -3px;\n}\n\n.cropper-line.line-w {\n cursor: ew-resize;\n left: -3px;\n top: 0;\n width: 5px;\n}\n\n.cropper-line.line-s {\n bottom: -3px;\n cursor: ns-resize;\n height: 5px;\n left: 0;\n}\n\n.cropper-point {\n background-color: #39f;\n height: 5px;\n opacity: 0.75;\n width: 5px;\n}\n\n.cropper-point.point-e {\n cursor: ew-resize;\n margin-top: -3px;\n right: -3px;\n top: 50%;\n}\n\n.cropper-point.point-n {\n cursor: ns-resize;\n left: 50%;\n margin-left: -3px;\n top: -3px;\n}\n\n.cropper-point.point-w {\n cursor: ew-resize;\n left: -3px;\n margin-top: -3px;\n top: 50%;\n}\n\n.cropper-point.point-s {\n bottom: -3px;\n cursor: s-resize;\n left: 50%;\n margin-left: -3px;\n}\n\n.cropper-point.point-ne {\n cursor: nesw-resize;\n right: -3px;\n top: -3px;\n}\n\n.cropper-point.point-nw {\n cursor: nwse-resize;\n left: -3px;\n top: -3px;\n}\n\n.cropper-point.point-sw {\n bottom: -3px;\n cursor: nesw-resize;\n left: -3px;\n}\n\n.cropper-point.point-se {\n bottom: -3px;\n cursor: nwse-resize;\n height: 20px;\n opacity: 1;\n right: -3px;\n width: 20px;\n}\n\n@media (min-width: 768px) {\n .cropper-point.point-se {\n height: 15px;\n width: 15px;\n }\n}\n\n@media (min-width: 992px) {\n .cropper-point.point-se {\n height: 10px;\n width: 10px;\n }\n}\n\n@media (min-width: 1200px) {\n .cropper-point.point-se {\n height: 5px;\n opacity: 0.75;\n width: 5px;\n }\n}\n\n.cropper-point.point-se::before {\n background-color: #39f;\n bottom: -50%;\n content: ' ';\n display: block;\n height: 200%;\n opacity: 0;\n position: absolute;\n right: -50%;\n width: 200%;\n}\n\n.cropper-invisible {\n opacity: 0;\n}\n\n.cropper-bg {\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');\n}\n\n.cropper-hide {\n display: block;\n height: 0;\n position: absolute;\n width: 0;\n}\n\n.cropper-hidden {\n display: none !important;\n}\n\n.cropper-move {\n cursor: move;\n}\n\n.cropper-crop {\n cursor: crosshair;\n}\n\n.cropper-disabled .cropper-drag-box,\n.cropper-disabled .cropper-face,\n.cropper-disabled .cropper-line,\n.cropper-disabled .cropper-point {\n cursor: not-allowed;\n}\n","",{version:3,sources:["webpack://node_modules/cropperjs/dist/cropper.css"],names:[],mappings:"AAAA;;;;;;;;EAQE;;AAEF;EACE,cAAc;EACd,YAAY;EACZ,cAAc;EACd,kBAAkB;EAClB,sBAAsB;EACtB,kBAAkB;EAClB,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,iBAAiB;AACnB;;AAEA;EACE,cAAc;EACd,YAAY;EACZ,uBAAuB;EACvB,2BAA2B;EAC3B,0BAA0B;EAC1B,wBAAwB;EACxB,uBAAuB;EACvB,WAAW;AACb;;AAEA;;;;;EAKE,SAAS;EACT,OAAO;EACP,kBAAkB;EAClB,QAAQ;EACR,MAAM;AACR;;AAEA;;EAEE,gBAAgB;AAClB;;AAEA;EACE,sBAAsB;EACtB,UAAU;AACZ;;AAEA;EACE,sBAAsB;EACtB,YAAY;AACd;;AAEA;EACE,cAAc;EACd,YAAY;EACZ,uBAAuB;EACvB,uCAAuC;EACvC,gBAAgB;EAChB,WAAW;AACb;;AAEA;EACE,qBAAqB;EACrB,cAAc;EACd,YAAY;EACZ,kBAAkB;AACpB;;AAEA;EACE,wBAAwB;EACxB,qBAAqB;EACrB,sBAAsB;EACtB,OAAO;EACP,mBAAmB;EACnB,WAAW;AACb;;AAEA;EACE,sBAAsB;EACtB,uBAAuB;EACvB,YAAY;EACZ,oBAAoB;EACpB,MAAM;EACN,qBAAqB;AACvB;;AAEA;EACE,cAAc;EACd,SAAS;EACT,SAAS;EACT,aAAa;EACb,kBAAkB;EAClB,QAAQ;EACR,QAAQ;AACV;;AAEA;;EAEE,sBAAsB;EACtB,YAAY;EACZ,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,WAAW;EACX,UAAU;EACV,MAAM;EACN,UAAU;AACZ;;AAEA;EACE,WAAW;EACX,OAAO;EACP,SAAS;EACT,UAAU;AACZ;;AAEA;;;EAGE,cAAc;EACd,YAAY;EACZ,YAAY;EACZ,kBAAkB;EAClB,WAAW;AACb;;AAEA;EACE,sBAAsB;EACtB,OAAO;EACP,MAAM;AACR;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,iBAAiB;EACjB,WAAW;EACX,MAAM;EACN,UAAU;AACZ;;AAEA;EACE,iBAAiB;EACjB,WAAW;EACX,OAAO;EACP,SAAS;AACX;;AAEA;EACE,iBAAiB;EACjB,UAAU;EACV,MAAM;EACN,UAAU;AACZ;;AAEA;EACE,YAAY;EACZ,iBAAiB;EACjB,WAAW;EACX,OAAO;AACT;;AAEA;EACE,sBAAsB;EACtB,WAAW;EACX,aAAa;EACb,UAAU;AACZ;;AAEA;EACE,iBAAiB;EACjB,gBAAgB;EAChB,WAAW;EACX,QAAQ;AACV;;AAEA;EACE,iBAAiB;EACjB,SAAS;EACT,iBAAiB;EACjB,SAAS;AACX;;AAEA;EACE,iBAAiB;EACjB,UAAU;EACV,gBAAgB;EAChB,QAAQ;AACV;;AAEA;EACE,YAAY;EACZ,gBAAgB;EAChB,SAAS;EACT,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;EACnB,WAAW;EACX,SAAS;AACX;;AAEA;EACE,mBAAmB;EACnB,UAAU;EACV,SAAS;AACX;;AAEA;EACE,YAAY;EACZ,mBAAmB;EACnB,UAAU;AACZ;;AAEA;EACE,YAAY;EACZ,mBAAmB;EACnB,YAAY;EACZ,UAAU;EACV,WAAW;EACX,WAAW;AACb;;AAEA;EACE;IACE,YAAY;IACZ,WAAW;EACb;AACF;;AAEA;EACE;IACE,YAAY;IACZ,WAAW;EACb;AACF;;AAEA;EACE;IACE,WAAW;IACX,aAAa;IACb,UAAU;EACZ;AACF;;AAEA;EACE,sBAAsB;EACtB,YAAY;EACZ,YAAY;EACZ,cAAc;EACd,YAAY;EACZ,UAAU;EACV,kBAAkB;EAClB,WAAW;EACX,WAAW;AACb;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,+QAA+Q;AACjR;;AAEA;EACE,cAAc;EACd,SAAS;EACT,kBAAkB;EAClB,QAAQ;AACV;;AAEA;EACE,wBAAwB;AAC1B;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,iBAAiB;AACnB;;AAEA;;;;EAIE,mBAAmB;AACrB",sourcesContent:["/*!\n * Cropper.js v1.5.7\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2020-05-23T05:22:57.283Z\n */\n\n.cropper-container {\n direction: ltr;\n font-size: 0;\n line-height: 0;\n position: relative;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.cropper-container img {\n display: block;\n height: 100%;\n image-orientation: 0deg;\n max-height: none !important;\n max-width: none !important;\n min-height: 0 !important;\n min-width: 0 !important;\n width: 100%;\n}\n\n.cropper-wrap-box,\n.cropper-canvas,\n.cropper-drag-box,\n.cropper-crop-box,\n.cropper-modal {\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.cropper-wrap-box,\n.cropper-canvas {\n overflow: hidden;\n}\n\n.cropper-drag-box {\n background-color: #fff;\n opacity: 0;\n}\n\n.cropper-modal {\n background-color: #000;\n opacity: 0.5;\n}\n\n.cropper-view-box {\n display: block;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n overflow: hidden;\n width: 100%;\n}\n\n.cropper-dashed {\n border: 0 dashed #eee;\n display: block;\n opacity: 0.5;\n position: absolute;\n}\n\n.cropper-dashed.dashed-h {\n border-bottom-width: 1px;\n border-top-width: 1px;\n height: calc(100% / 3);\n left: 0;\n top: calc(100% / 3);\n width: 100%;\n}\n\n.cropper-dashed.dashed-v {\n border-left-width: 1px;\n border-right-width: 1px;\n height: 100%;\n left: calc(100% / 3);\n top: 0;\n width: calc(100% / 3);\n}\n\n.cropper-center {\n display: block;\n height: 0;\n left: 50%;\n opacity: 0.75;\n position: absolute;\n top: 50%;\n width: 0;\n}\n\n.cropper-center::before,\n.cropper-center::after {\n background-color: #eee;\n content: ' ';\n display: block;\n position: absolute;\n}\n\n.cropper-center::before {\n height: 1px;\n left: -3px;\n top: 0;\n width: 7px;\n}\n\n.cropper-center::after {\n height: 7px;\n left: 0;\n top: -3px;\n width: 1px;\n}\n\n.cropper-face,\n.cropper-line,\n.cropper-point {\n display: block;\n height: 100%;\n opacity: 0.1;\n position: absolute;\n width: 100%;\n}\n\n.cropper-face {\n background-color: #fff;\n left: 0;\n top: 0;\n}\n\n.cropper-line {\n background-color: #39f;\n}\n\n.cropper-line.line-e {\n cursor: ew-resize;\n right: -3px;\n top: 0;\n width: 5px;\n}\n\n.cropper-line.line-n {\n cursor: ns-resize;\n height: 5px;\n left: 0;\n top: -3px;\n}\n\n.cropper-line.line-w {\n cursor: ew-resize;\n left: -3px;\n top: 0;\n width: 5px;\n}\n\n.cropper-line.line-s {\n bottom: -3px;\n cursor: ns-resize;\n height: 5px;\n left: 0;\n}\n\n.cropper-point {\n background-color: #39f;\n height: 5px;\n opacity: 0.75;\n width: 5px;\n}\n\n.cropper-point.point-e {\n cursor: ew-resize;\n margin-top: -3px;\n right: -3px;\n top: 50%;\n}\n\n.cropper-point.point-n {\n cursor: ns-resize;\n left: 50%;\n margin-left: -3px;\n top: -3px;\n}\n\n.cropper-point.point-w {\n cursor: ew-resize;\n left: -3px;\n margin-top: -3px;\n top: 50%;\n}\n\n.cropper-point.point-s {\n bottom: -3px;\n cursor: s-resize;\n left: 50%;\n margin-left: -3px;\n}\n\n.cropper-point.point-ne {\n cursor: nesw-resize;\n right: -3px;\n top: -3px;\n}\n\n.cropper-point.point-nw {\n cursor: nwse-resize;\n left: -3px;\n top: -3px;\n}\n\n.cropper-point.point-sw {\n bottom: -3px;\n cursor: nesw-resize;\n left: -3px;\n}\n\n.cropper-point.point-se {\n bottom: -3px;\n cursor: nwse-resize;\n height: 20px;\n opacity: 1;\n right: -3px;\n width: 20px;\n}\n\n@media (min-width: 768px) {\n .cropper-point.point-se {\n height: 15px;\n width: 15px;\n }\n}\n\n@media (min-width: 992px) {\n .cropper-point.point-se {\n height: 10px;\n width: 10px;\n }\n}\n\n@media (min-width: 1200px) {\n .cropper-point.point-se {\n height: 5px;\n opacity: 0.75;\n width: 5px;\n }\n}\n\n.cropper-point.point-se::before {\n background-color: #39f;\n bottom: -50%;\n content: ' ';\n display: block;\n height: 200%;\n opacity: 0;\n position: absolute;\n right: -50%;\n width: 200%;\n}\n\n.cropper-invisible {\n opacity: 0;\n}\n\n.cropper-bg {\n background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');\n}\n\n.cropper-hide {\n display: block;\n height: 0;\n position: absolute;\n width: 0;\n}\n\n.cropper-hidden {\n display: none !important;\n}\n\n.cropper-move {\n cursor: move;\n}\n\n.cropper-crop {\n cursor: crosshair;\n}\n\n.cropper-disabled .cropper-drag-box,\n.cropper-disabled .cropper-face,\n.cropper-disabled .cropper-line,\n.cropper-disabled .cropper-point {\n cursor: not-allowed;\n}\n"],sourceRoot:""}]),t.default=a},function(e,t,n){"use strict";var r=n(0);n.n(r).a},function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r)()(!0);a.push([e.i,".avatar-cropper .avatar-cropper-overlay {\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 99999;\n}\n.avatar-cropper .avatar-cropper-overlay-inline {\n position: initial;\n}\n.avatar-cropper .avatar-cropper-img-input {\n display: none;\n}\n.avatar-cropper .avatar-cropper-close {\n float: right;\n padding: 20px;\n font-size: 3rem;\n color: #fff;\n font-weight: 100;\n text-shadow: 0px 1px rgba(40, 40, 40, 0.3);\n}\n.avatar-cropper .avatar-cropper-mark {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.1);\n}\n.avatar-cropper .avatar-cropper-container {\n background: #fff;\n z-index: 999;\n box-shadow: 1px 1px 5px rgba(100, 100, 100, 0.14);\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-image-container {\n position: relative;\n max-width: 400px;\n height: 300px;\n}\n.avatar-cropper .avatar-cropper-container img {\n max-width: 100%;\n height: 100%;\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-footer {\n display: flex;\n align-items: stretch;\n align-content: stretch;\n justify-content: space-between;\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-footer .avatar-cropper-btn {\n width: 50%;\n padding: 15px 0;\n cursor: pointer;\n border: none;\n background: transparent;\n outline: none;\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-footer .avatar-cropper-btn:hover {\n background-color: #2aabd2;\n color: #fff;\n}\n","",{version:3,sources:["webpack://src/AvatarCropper.vue"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,eAAe;EACf,MAAM;EACN,OAAO;EACP,QAAQ;EACR,SAAS;EACT,cAAc;AAChB;AACA;EACE,iBAAiB;AACnB;AACA;EACE,aAAa;AACf;AACA;EACE,YAAY;EACZ,aAAa;EACb,eAAe;EACf,WAAW;EACX,gBAAgB;EAChB,0CAA0C;AAC5C;AACA;EACE,eAAe;EACf,MAAM;EACN,OAAO;EACP,QAAQ;EACR,SAAS;EACT,8BAA8B;AAChC;AACA;EACE,gBAAgB;EAChB,YAAY;EACZ,iDAAiD;AACnD;AACA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,aAAa;AACf;AACA;EACE,eAAe;EACf,YAAY;AACd;AACA;EACE,aAAa;EACb,oBAAoB;EACpB,sBAAsB;EACtB,8BAA8B;AAChC;AACA;EACE,UAAU;EACV,eAAe;EACf,eAAe;EACf,YAAY;EACZ,uBAAuB;EACvB,aAAa;AACf;AACA;EACE,yBAAyB;EACzB,WAAW;AACb",sourcesContent:[".avatar-cropper .avatar-cropper-overlay {\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 99999;\n}\n.avatar-cropper .avatar-cropper-overlay-inline {\n position: initial;\n}\n.avatar-cropper .avatar-cropper-img-input {\n display: none;\n}\n.avatar-cropper .avatar-cropper-close {\n float: right;\n padding: 20px;\n font-size: 3rem;\n color: #fff;\n font-weight: 100;\n text-shadow: 0px 1px rgba(40, 40, 40, 0.3);\n}\n.avatar-cropper .avatar-cropper-mark {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.1);\n}\n.avatar-cropper .avatar-cropper-container {\n background: #fff;\n z-index: 999;\n box-shadow: 1px 1px 5px rgba(100, 100, 100, 0.14);\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-image-container {\n position: relative;\n max-width: 400px;\n height: 300px;\n}\n.avatar-cropper .avatar-cropper-container img {\n max-width: 100%;\n height: 100%;\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-footer {\n display: flex;\n align-items: stretch;\n align-content: stretch;\n justify-content: space-between;\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-footer .avatar-cropper-btn {\n width: 50%;\n padding: 15px 0;\n cursor: pointer;\n border: none;\n background: transparent;\n outline: none;\n}\n.avatar-cropper .avatar-cropper-container .avatar-cropper-footer .avatar-cropper-btn:hover {\n background-color: #2aabd2;\n color: #fff;\n}\n"],sourceRoot:""}]),t.default=a},function(e,t,n){"use strict";n.r(t),n(5);var r=n(3),a=n.n(r);function i(e){return(i="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)}var o={props:{trigger:{type:[String,Element],required:!0},uploadHandler:{type:Function},uploadUrl:{type:String},requestMethod:{type:String,default:"POST"},uploadHeaders:{type:Object},uploadFormName:{type:String,default:"file"},uploadFormData:{type:Object,default:function(){return{}}},cropperOptions:{type:Object,default:function(){return{aspectRatio:1,autoCropArea:1,viewMode:1,movable:!1,zoomable:!1}}},outputOptions:{type:Object},outputMime:{type:String,default:null},outputQuality:{type:Number,default:.9},mimes:{type:String,default:"image/png, image/gif, image/jpeg, image/bmp, image/x-icon"},labels:{type:Object,default:function(){return{submit:"提交",cancel:"取消"}}},withCredentials:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},data:function(){return{cropper:void 0,dataUrl:void 0,filename:void 0}},methods:{destroy:function(){this.cropper.destroy(),this.$refs.input.value="",this.dataUrl=void 0},submit:function(){this.$emit("submit"),this.uploadUrl?this.uploadImage():this.uploadHandler?this.uploadHandler(this.cropper):this.$emit("error","No upload handler found.","user"),this.destroy()},cancel:function(){this.$emit("cancel"),this.destroy()},pickImage:function(e){this.$refs.input.click(),e.preventDefault(),e.stopPropagation()},createCropper:function(){this.cropper=new a.a(this.$refs.img,this.cropperOptions)},uploadImage:function(){var e=this;this.cropper.getCroppedCanvas(this.outputOptions).toBlob((function(t){var n=new FormData,r=new XMLHttpRequest,a=Object.assign({},e.uploadFormData);for(var i in r.withCredentials=e.withCredentials,a)n.append(i,a[i]);for(var o in n.append(e.uploadFormName,t,e.filename),e.$emit("uploading",n,r),r.open(e.requestMethod,e.uploadUrl,!0),e.uploadHeaders)r.setRequestHeader(o,e.uploadHeaders[o]);r.onreadystatechange=function(){if(4===r.readyState){var t="";try{t=JSON.parse(r.responseText)}catch(e){t=r.responseText}e.$emit("completed",t,n,r),[200,201,204].indexOf(r.status)>-1?e.$emit("uploaded",t,n,r):e.$emit("error","Image upload fail.","upload",r)}},r.send(n)}),this.outputMime,this.outputQuality)}},mounted:function(){var e=this,t="object"==i(this.trigger)?this.trigger:document.querySelector(this.trigger);t?t.addEventListener("click",this.pickImage):this.$emit("error","No avatar make trigger found.","user");var n=this.$refs.input;n.addEventListener("change",(function(){if(null!=n.files&&null!=n.files[0]){if(!e.mimes.split(", ").find((function(e){return e===n.files[0].type})))return void e.$emit("error","File type not correct.","user");var t=new FileReader;t.onload=function(t){e.dataUrl=t.target.result},t.readAsDataURL(n.files[0]),e.filename=n.files[0].name||"unknown",e.mimeType=e.mimeType||n.files[0].type,e.$emit("changed",n.files[0],t)}}))}};n(7);var s=function(e,t,n,r,a,i,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"avatar-cropper"},[e.dataUrl?n("div",{staticClass:"avatar-cropper-overlay",class:{"avatar-cropper-overlay-inline":e.inline}},[e.inline?e._e():n("div",{staticClass:"avatar-cropper-mark"},[n("a",{staticClass:"avatar-cropper-close",attrs:{title:e.labels.cancel,href:"javascript:;"},on:{click:e.cancel}},[e._v("×")])]),e._v(" "),n("div",{staticClass:"avatar-cropper-container"},[n("div",{staticClass:"avatar-cropper-image-container"},[n("img",{ref:"img",attrs:{src:e.dataUrl,alt:""},on:{load:function(t){return t.stopPropagation(),e.createCropper(t)}}})]),e._v(" "),n("div",{staticClass:"avatar-cropper-footer"},[n("button",{staticClass:"avatar-cropper-btn",domProps:{textContent:e._s(e.labels.cancel)},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.cancel(t)}}},[e._v("Cancel")]),e._v(" "),n("button",{staticClass:"avatar-cropper-btn",domProps:{textContent:e._s(e.labels.submit)},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._v("Submit")])])])]):e._e(),e._v(" "),n("input",{ref:"input",staticClass:"avatar-cropper-img-input",attrs:{accept:e.mimes,type:"file"}})])}),[],!1,null,null,null).exports;t.default=s}])},a623:function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").every,i=n("a640"),o=n("ae40"),s=i("every"),l=o("every");r({target:"Array",proto:!0,forced:!s||!l},{every:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},a630:function(e,t,n){var r=n("23e7"),a=n("4df4");r({target:"Array",stat:!0,forced:!n("1c7e")((function(e){Array.from(e)}))},{from:a})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},a7fa:function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},a994:function(e,t,n){var r=n("7d1f"),a=n("32f4"),i=n("ec69");e.exports=function(e){return r(e,i,a)}},a9e3:function(e,t,n){"use strict";var r=n("83ab"),a=n("da84"),i=n("94ca"),o=n("6eeb"),s=n("5135"),l=n("c6b6"),c=n("7156"),u=n("c04e"),d=n("d039"),p=n("7c73"),m=n("241c").f,f=n("06cf").f,h=n("9bf2").f,_=n("58a8").trim,v="Number",g=a.Number,y=g.prototype,b=l(p(y))==v,w=function(e){var t,n,r,a,i,o,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=_(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+c}for(o=(i=c.slice(2)).length,s=0;s<o;s++)if((l=i.charCodeAt(s))<48||l>a)return NaN;return parseInt(i,r)}return+c};if(i(v,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var x,k=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof k&&(b?d((function(){y.valueOf.call(n)})):l(n)!=v)?c(new g(w(t)),n,k):w(t)},D=r?m(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),M=0;D.length>M;M++)s(g,x=D[M])&&!s(k,x)&&h(k,x,f(g,x));k.prototype=y,y.constructor=k,o(a,v,k)}},aaf2:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?a[n][0]:a[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},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, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM 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},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n("c1df"))},ab13:function(e,t,n){var r=n("b622")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),a=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},ac41:function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ada2:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":e+" "+t({ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяціісяців",yy:"рік_роки_років"}[r],+e)}function r(e,t){var n={nominative:"неділя_понеділок_вівторок_середаетвер_пятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середуетвер_пятницю_суботу".split("_"),genitive:"неділі_понеділкаівторка_середи_четверга_пятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative}function a(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_веровт_лист_груд".split("_"),weekdays:r,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:a("[Сьогодні "),nextDay:a("[Завтра "),lastDay:a("[Вчора "),nextWeek:a("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return a("[Минулої] dddd [").call(this);case 1:case 2:case 4:return a("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){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}})}(n("c1df"))},ae40:function(e,t,n){var r=n("83ab"),a=n("d039"),i=n("5135"),o=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(i(s,e))return s[e];t||(t={});var n=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,u=i(t,0)?t[0]:l,d=i(t,1)?t[1]:void 0;return s[e]=!!n&&!a((function(){if(c&&!r)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,d)}))}},ae93:function(e,t,n){"use strict";var r,a,i,o=n("e163"),s=n("9112"),l=n("5135"),c=n("b622"),u=n("c430"),d=c("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(a=o(o(i)))!==Object.prototype&&(r=a):p=!0),null==r&&(r={}),u||l(r,d)||s(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},b041:function(e,t,n){"use strict";var r=n("00ee"),a=n("f5df");e.exports=r?{}.toString:function(){return"[object "+a(this)+"]"}},b047:function(e,t){e.exports=function(e){return function(t){return e(t)}}},b0c0:function(e,t,n){var r=n("83ab"),a=n("9bf2").f,i=Function.prototype,o=i.toString,s=/^\s*function ([^ (]*)/,l="name";r&&!(l in i)&&a(i,l,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(e){return""}}})},b1e5:function(e,t,n){var r=n("a994"),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:a.call(t,p)))return!1}var m=s.get(e),f=s.get(t);if(m&&f)return m==t&&f==e;var h=!0;s.set(e,t),s.set(t,e);for(var _=l;++d<u;){var v=e[p=c[d]],g=t[p];if(i)var y=l?i(g,v,p,t,e,s):i(v,g,p,e,t,s);if(!(void 0===y?v===g||o(v,g,n,i,s):y)){h=!1;break}_||(_="constructor"==p)}if(h&&!_){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return s.delete(e),s.delete(t),h}},b218:function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},b29d:function(e,t,n){!function(e){"use strict";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,n){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}})}(n("c1df"))},b3eb:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}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,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},b469:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}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,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},b4c0:function(e,t,n){var r=n("cb5a");e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},b53d:function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},b540:function(e,t,n){!function(e){"use strict";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,n){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}})}(n("c1df"))},b575:function(e,t,n){var r,a,i,o,s,l,c,u,d=n("da84"),p=n("06cf").f,m=n("2cf4").set,f=n("1cdc"),h=n("605d"),_=d.MutationObserver||d.WebKitMutationObserver,v=d.document,g=d.process,y=d.Promise,b=p(d,"queueMicrotask"),w=b&&b.value;w||(r=function(){var e,t;for(h&&(e=g.domain)&&e.exit();a;){t=a.fn,a=a.next;try{t()}catch(e){throw a?o():i=void 0,e}}i=void 0,e&&e.enter()},!f&&!h&&_&&v?(s=!0,l=v.createTextNode(""),new _(r).observe(l,{characterData:!0}),o=function(){l.data=s=!s}):y&&y.resolve?(c=y.resolve(void 0),u=c.then,o=function(){u.call(c,r)}):o=h?function(){g.nextTick(r)}:function(){m.call(d,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};i&&(i.next=t),a||(a=t,o()),i=t}},b5a7:function(e,t,n){var r=n("0b07")(n("2b3e"),"DataView");e.exports=r},b5b7:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(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;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,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:r,longMonthsParse:r,shortMonthsParse:r,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",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n("c1df"))},b622:function(e,t,n){var r=n("da84"),a=n("5692"),i=n("5135"),o=n("90e3"),s=n("4930"),l=n("fdbf"),c=a("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||o;e.exports=function(e){return i(c,e)||(s&&i(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},b64b:function(e,t,n){var r=n("23e7"),a=n("7b0b"),i=n("df75");r({target:"Object",stat:!0,forced:n("d039")((function(){i(1)}))},{keys:function(e){return i(a(e))}})},b727:function(e,t,n){var r=n("0366"),a=n("44ad"),i=n("7b0b"),o=n("50c4"),s=n("65f0"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,p=7==e,m=5==e||d;return function(f,h,_,v){for(var g,y,b=i(f),w=a(b),x=r(h,_,3),k=o(w.length),D=0,M=v||s,S=t?M(f,k):n||p?M(f,0):void 0;k>D;D++)if((m||D in w)&&(y=x(g=w[D],D,b),e))if(t)S[D]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return D;case 2:l.call(S,g)}else switch(e){case 4:return!1;case 7:l.call(S,g)}return d?-1:c||u?u:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},b760:function(e,t,n){var r=n("872a"),a=n("9638");e.exports=function(e,t,n){(void 0!==n&&!a(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},b7e9:function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},b84c:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,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",w:"ei veke",ww:"%d veker",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}})}(n("c1df"))},b97c:function(e,t,n){!function(e){"use strict";var t={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("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,a){return e+" "+n(t[a],e,r)}function a(e,r,a){return n(t[a],e,r)}function i(e,t){return t?"dažas sekundes":"dažām sekundēm"}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:i,ss:r,m:a,mm:r,h:a,hh:r,d:a,dd:r,M:a,MM:r,y:a,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},bb71:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}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,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},bbc0:function(e,t,n){var r=n("6044"),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},c05f:function(e,t,n){var r=n("7b97"),a=n("1310");e.exports=function e(t,n,i,o,s){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!=t&&n!=n:r(t,n,i,o,e,s))}},c098:function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},c109:function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},c1c9:function(e,t,n){var r=n("a454"),a=n("f3c1")(r);e.exports=a},c1df:function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function a(){return t.apply(null,arguments)}function i(e){t=e}function o(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 l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function u(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function p(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Kn(e,t,n,r,!0).utc()}function _(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(e){return null==e._pf&&(e._pf=_()),e._pf}function g(e){if(null==e._isValid){var t=v(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function y(e){var t=h(NaN);return null!=e?f(v(t),e):v(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=a.momentProperties=[],w=!1;function x(e,t){var n,r,a;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=v(t)),u(t._locale)||(e._locale=t._locale),b.length>0)for(n=0;n<b.length;n++)u(a=t[r=b[n]])||(e[r]=a);return e}function k(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,a.updateOffset(this),w=!1)}function D(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function M(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return f((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var r,i,o,s=[];for(i=0;i<arguments.length;i++){if(r="","object"==typeof arguments[i]){for(o in r+="\n["+i+"] ",arguments[0])l(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[i];s.push(r)}M(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var C,L={};function T(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),L[e]||(M(t),L[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e){var t,n;for(n in e)l(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(e,t){var n,r=f({},e);for(n in t)l(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&s(e[n])&&(r[n]=f({},r[n]));return r}function j(e){null!=e&&this.set(e)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var $={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function P(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}function Y(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},F={};function H(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(F[e]=a),t&&(F[t[0]]=function(){return Y(a.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function R(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,r=e.match(N);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=R(r[t]);return function(t){var a,i="";for(a=0;a<n;a++)i+=O(r[a])?r[a].call(t,e):r[a];return i}}function q(e,t){return e.isValid()?(t=V(t,e.localeData()),I[t]=I[t]||B(t),I[t](e)):e.localeData().invalidDate()}function V(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(z.lastIndex=0;n>=0&&z.test(e);)e=e.replace(z,r),z.lastIndex=0,n-=1;return e}var W={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"};function U(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var K="Invalid date";function Z(){return this._invalidDate}var G="%d",J=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var Q={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var a=this._relativeTime[n];return O(a)?a(e,t,n,r):a.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}var ne={};function re(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function ae(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)l(e,n)&&(t=ae(n))&&(r[t]=e[n]);return r}var oe={};function se(e,t){oe[e]=t}function le(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ce(e){return e%4==0&&e%100!=0||e%400==0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}function pe(e,t){return function(n){return null!=n?(fe(this,e,n),a.updateOffset(this,t),this):me(this,e)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(n=de(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function he(e){return O(this[e=ae(e)])?this[e]():this}function _e(e,t){if("object"==typeof e){var n,r=le(e=ie(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(O(this[e=ae(e)]))return this[e](t);return this}var ve,ge=/\d/,ye=/\d\d/,be=/\d{3}/,we=/\d{4}/,xe=/[+-]?\d{6}/,ke=/\d\d?/,De=/\d\d\d\d?/,Me=/\d\d\d\d\d\d?/,Se=/\d{1,3}/,Ce=/\d{1,4}/,Le=/[+-]?\d{1,6}/,Te=/\d+/,Oe=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,je=/[+-]?\d+(\.\d{1,3})?/,$e=/[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;function Pe(e,t,n){ve[e]=O(t)?t:function(e,r){return e&&n?n:t}}function Ye(e,t){return l(ve,e)?ve[e](t._strict,t._locale):new RegExp(Ne(e))}function Ne(e){return ze(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a})))}function ze(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Ie={};function Fe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),d(t)&&(r=function(e,n){n[t]=de(e)}),n=0;n<e.length;n++)Ie[e[n]]=r}function He(e,t){Fe(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function Re(e,t,n){null!=t&&l(Ie,e)&&Ie[e](t,n._a,n,e)}var Be,qe=0,Ve=1,We=2,Ue=3,Ke=4,Ze=5,Ge=6,Je=7,Xe=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?ce(e)?29:28:31-n%7%2}Be=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},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),H("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),re("month","M"),se("month",8),Pe("M",ke),Pe("MM",ke,ye),Pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),Pe("MMMM",(function(e,t){return t.monthsRegex(e)})),Fe(["M","MM"],(function(e,t){t[Ve]=de(e)-1})),Fe(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[Ve]=a:v(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=$e,it=$e;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function st(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Be.call(this._shortMonthsParse,o))?a:null:-1!==(a=Be.call(this._longMonthsParse,o))?a:null:"MMM"===t?-1!==(a=Be.call(this._shortMonthsParse,o))||-1!==(a=Be.call(this._longMonthsParse,o))?a:null:-1!==(a=Be.call(this._longMonthsParse,o))||-1!==(a=Be.call(this._shortMonthsParse,o))?a:null}function ct(e,t,n){var r,a,i;if(this._monthsParseExact)return lt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ut(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function dt(e){return null!=e?(ut(this,e),a.updateOffset(this,!0),this):me(this,"Month")}function pt(){return et(this.year(),this.month())}function mt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ht.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ht.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ht(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],i=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),i.sort(e),t=0;t<12;t++)r[t]=ze(r[t]),a[t]=ze(a[t]);for(t=0;t<24;t++)i[t]=ze(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function _t(e){return ce(e)?366:365}H("Y",0,0,(function(){var e=this.year();return e<=9999?Y(e,4):"+"+e})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),re("year","y"),se("year",1),Pe("Y",Oe),Pe("YY",ke,ye),Pe("YYYY",Ce,we),Pe("YYYYY",Le,xe),Pe("YYYYYY",Le,xe),Fe(["YYYYY","YYYYYY"],qe),Fe("YYYY",(function(e,t){t[qe]=2===e.length?a.parseTwoDigitYear(e):de(e)})),Fe("YY",(function(e,t){t[qe]=a.parseTwoDigitYear(e)})),Fe("Y",(function(e,t){t[qe]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var vt=pe("FullYear",!0);function gt(){return ce(this.year())}function yt(e,t,n,r,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,i,o),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,a){var i,o,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,a);return s<=0?o=_t(i=e-1)+s:s>_t(e)?(i=e+1,o=s-_t(e)):(i=e,o=s),{year:i,dayOfYear:o}}function kt(e,t,n){var r,a,i=wt(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+Dt(a=e.year()-1,t,n):o>Dt(e.year(),t,n)?(r=o-Dt(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function Dt(e,t,n){var r=wt(e,t,n),a=wt(e+1,t,n);return(_t(e)-r+a)/7}function Mt(e){return kt(e,this._week.dow,this._week.doy).week}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),se("week",5),se("isoWeek",5),Pe("w",ke),Pe("ww",ke,ye),Pe("W",ke),Pe("WW",ke,ye),He(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=de(e)}));var St={dow:0,doy:6};function Ct(){return this._week.dow}function Lt(){return this._week.doy}function Tt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ot(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Et(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function At(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function jt(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),Pe("d",ke),Pe("e",ke),Pe("E",ke),Pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),He(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:v(n).invalidWeekday=e})),He(["d","e","E"],(function(e,t,n,r){t[r]=de(e)}));var $t="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nt=$e,zt=$e,It=$e;function Ft(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?jt(n,this._week.dow):e?n[e.day()]:n}function Ht(e){return!0===e?jt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Rt(e){return!0===e?jt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Bt(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Be.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Be.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=Be.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=Be.call(this._weekdaysParse,o))||-1!==(a=Be.call(this._shortWeekdaysParse,o))||-1!==(a=Be.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Be.call(this._shortWeekdaysParse,o))||-1!==(a=Be.call(this._weekdaysParse,o))||-1!==(a=Be.call(this._minWeekdaysParse,o))?a:null:-1!==(a=Be.call(this._minWeekdaysParse,o))||-1!==(a=Be.call(this._weekdaysParse,o))||-1!==(a=Be.call(this._shortWeekdaysParse,o))?a:null}function qt(e,t,n){var r,a,i;if(this._weekdaysParseExact)return Bt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Et(e,this.localeData()),this.add(e-t,"d")):t}function Wt(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 Ut(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=At(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Nt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=zt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Gt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=It),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=ze(this.weekdaysMin(n,"")),a=ze(this.weekdaysShort(n,"")),i=ze(this.weekdays(n,"")),o.push(r),s.push(a),l.push(i),c.push(r),c.push(a),c.push(i);o.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Xt),H("k",["kk",2],0,Qt),H("hmm",0,0,(function(){return""+Xt.apply(this)+Y(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+Xt.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)})),en("a",!0),en("A",!1),re("hour","h"),se("hour",13),Pe("a",tn),Pe("A",tn),Pe("H",ke),Pe("h",ke),Pe("k",ke),Pe("HH",ke,ye),Pe("hh",ke,ye),Pe("kk",ke,ye),Pe("hmm",De),Pe("hmmss",Me),Pe("Hmm",De),Pe("Hmmss",Me),Fe(["H","HH"],Ue),Fe(["k","kk"],(function(e,t,n){var r=de(e);t[Ue]=24===r?0:r})),Fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Fe(["h","hh"],(function(e,t,n){t[Ue]=de(e),v(n).bigHour=!0})),Fe("hmm",(function(e,t,n){var r=e.length-2;t[Ue]=de(e.substr(0,r)),t[Ke]=de(e.substr(r)),v(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Ue]=de(e.substr(0,r)),t[Ke]=de(e.substr(r,2)),t[Ze]=de(e.substr(a)),v(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var r=e.length-2;t[Ue]=de(e.substr(0,r)),t[Ke]=de(e.substr(r))})),Fe("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Ue]=de(e.substr(0,r)),t[Ke]=de(e.substr(r,2)),t[Ze]=de(e.substr(a))}));var rn=/[ap]\.?m?\.?/i,an=pe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:$,longDateFormat:W,invalidDate:K,ordinal:G,dayOfMonthOrdinalParse:J,relativeTime:Q,months:tt,monthsShort:nt,week:St,weekdays:$t,weekdaysMin:Yt,weekdaysShort:Pt,meridiemParse:rn},cn={},un={};function dn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function pn(e){return e?e.toLowerCase().replace("_","-"):e}function mn(e){for(var t,n,r,a,i=0;i<e.length;){for(t=(a=pn(e[i]).split("-")).length,n=(n=pn(e[i+1]))?n.split("-"):null;t>0;){if(r=fn(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dn(a,n)>=t-1)break;t--}i++}return sn}function fn(t){var r=null;if(void 0===cn[t]&&void 0!==e&&e&&e.exports)try{r=sn._abbr,n("4678")("./"+t),hn(r)}catch(e){cn[t]=null}return cn[t]}function hn(e,t){var n;return e&&((n=u(t)?gn(e):_n(e,t))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function _n(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=cn[e])T("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."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=fn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new j(A(r,t)),un[e]&&un[e].forEach((function(e){_n(e.name,e.config)})),hn(e),cn[e]}return delete cn[e],null}function vn(e,t){if(null!=t){var n,r,a=ln;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(A(cn[e]._config,t)):(null!=(r=fn(e))&&(a=r._config),t=A(a,t),null==r&&(t.abbr=e),(n=new j(t)).parentLocale=cn[e],cn[e]=n),hn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===hn()&&hn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function gn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!o(e)){if(t=fn(e))return t;e=[e]}return mn(e)}function yn(){return C(cn)}function bn(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[Ve]<0||n[Ve]>11?Ve:n[We]<1||n[We]>et(n[qe],n[Ve])?We:n[Ue]<0||n[Ue]>24||24===n[Ue]&&(0!==n[Ke]||0!==n[Ze]||0!==n[Ge])?Ue:n[Ke]<0||n[Ke]>59?Ke:n[Ze]<0||n[Ze]>59?Ze:n[Ge]<0||n[Ge]>999?Ge:-1,v(e)._overflowDayOfYear&&(t<qe||t>We)&&(t=We),v(e)._overflowWeeks&&-1===t&&(t=Je),v(e)._overflowWeekday&&-1===t&&(t=Xe),v(e).overflow=t),e}var wn=/^\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)?)?$/,xn=/^\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)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Dn=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Mn=[["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/]],Sn=/^\/?Date\((-?\d+)/i,Cn=/^(?:(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}))$/,Ln={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tn(e){var t,n,r,a,i,o,s=e._i,l=wn.exec(s)||xn.exec(s);if(l){for(v(e).iso=!0,t=0,n=Dn.length;t<n;t++)if(Dn[t][1].exec(l[1])){a=Dn[t][0],r=!1!==Dn[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=Mn.length;t<n;t++)if(Mn[t][1].exec(l[3])){i=(l[2]||" ")+Mn[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!kn.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=a+(i||"")+(o||""),Hn(e)}else e._isValid=!1}function On(e,t,n,r,a,i){var o=[En(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function En(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function An(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jn(e,t,n){return!e||Pt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function $n(e,t,n){if(e)return Ln[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}function Pn(e){var t,n=Cn.exec(An(e._i));if(n){if(t=On(n[4],n[3],n[2],n[5],n[6],n[7]),!jn(n[1],t,e))return;e._a=t,e._tzm=$n(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Yn(e){var t=Sn.exec(e._i);null===t?(Tn(e),!1===e._isValid&&(delete e._isValid,Pn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Nn(e,t,n){return null!=e?e:null!=t?t:n}function zn(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function In(e){var t,n,r,a,i,o=[];if(!e._d){for(r=zn(e),e._w&&null==e._a[We]&&null==e._a[Ve]&&Fn(e),null!=e._dayOfYear&&(i=Nn(e._a[qe],r[qe]),(e._dayOfYear>_t(i)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=bt(i,0,e._dayOfYear),e._a[Ve]=n.getUTCMonth(),e._a[We]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ue]&&0===e._a[Ke]&&0===e._a[Ze]&&0===e._a[Ge]&&(e._nextDay=!0,e._a[Ue]=0),e._d=(e._useUTC?bt:yt).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ue]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(v(e).weekdayMismatch=!0)}}function Fn(e){var t,n,r,a,i,o,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=Nn(t.GG,e._a[qe],kt(Zn(),1,4).year),r=Nn(t.W,1),((a=Nn(t.E,1))<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,c=kt(Zn(),i,o),n=Nn(t.gg,e._a[qe],c.year),r=Nn(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),r<1||r>Dt(n,i,o)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(s=xt(n,r,a,i,o),e._a[qe]=s.year,e._dayOfYear=s.dayOfYear)}function Hn(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],v(e).empty=!0;var t,n,r,i,o,s,l=""+e._i,c=l.length,u=0;for(r=V(e._f,e._locale).match(N)||[],t=0;t<r.length;t++)i=r[t],(n=(l.match(Ye(i,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&v(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),u+=n.length),F[i]?(n?v(e).empty=!1:v(e).unusedTokens.push(i),Re(i,n,e)):e._strict&&!n&&v(e).unusedTokens.push(i);v(e).charsLeftOver=c-u,l.length>0&&v(e).unusedInput.push(l),e._a[Ue]<=12&&!0===v(e).bigHour&&e._a[Ue]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ue]=Rn(e._locale,e._a[Ue],e._meridiem),null!==(s=v(e).era)&&(e._a[qe]=e._locale.erasConvertYear(s,e._a[qe])),In(e),bn(e)}else Pn(e);else Tn(e)}function Rn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Bn(e){var t,n,r,a,i,o,s=!1;if(0===e._f.length)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)i=0,o=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Hn(t),g(t)&&(o=!0),i+=v(t).charsLeftOver,i+=10*v(t).unusedTokens.length,v(t).score=i,s?i<r&&(r=i,n=t):(null==r||i<r||o)&&(r=i,n=t,o&&(s=!0));f(e,n||t)}function qn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=m([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),In(e)}}function Vn(e){var t=new k(bn(Wn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Wn(e){var t=e._i,n=e._f;return e._locale=e._locale||gn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),D(t)?new k(bn(t)):(p(t)?e._d=t:o(n)?Bn(e):n?Hn(e):Un(e),g(e)||(e._d=null),e))}function Un(e){var t=e._i;u(t)?e._d=new Date(a.now()):p(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Yn(e):o(t)?(e._a=m(t.slice(0),(function(e){return parseInt(e,10)})),In(e)):s(t)?qn(e):d(t)?e._d=new Date(t):a.createFromInputFallback(e)}function Kn(e,t,n,r,a){var i={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&c(e)||o(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=n,i._i=e,i._f=t,i._strict=r,Vn(i)}function Zn(e,t,n,r){return Kn(e,t,n,r,!1)}a.createFromInputFallback=S("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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Gn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Jn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Xn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Zn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Qn(){return Xn("isBefore",[].slice.call(arguments,0))}function er(){return Xn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1;for(t in e)if(l(e,t)&&(-1===Be.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<nr.length;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==de(e[nr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function ir(){return Lr(NaN)}function or(e){var t=ie(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*i,this._months=+a+3*r+12*n,this._data={},this._locale=gn(),this._bubble()}function sr(e){return e instanceof or}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&de(e[r])!==de(t[r]))&&o++;return o+i}function ur(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Y(~~(e/60),2)+t+Y(~~e%60,2)}))}ur("Z",":"),ur("ZZ",""),Pe("Z",Ae),Pe("ZZ",Ae),Fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=pr(Ae,e)}));var dr=/([\+\-]|\d\d)/gi;function pr(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(dr)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?r:-r}function mr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(D(e)||p(e)?e.valueOf():Zn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Zn(e).local()}function fr(e){return-Math.round(e._d.getTimezoneOffset())}function hr(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=pr(Ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=fr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?jr(this,Lr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:fr(this)}function _r(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vr(e){return this.utcOffset(0,e)}function gr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fr(this),"m")),this}function yr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=pr(Ee,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function br(e){return!!this.isValid()&&(e=e?Zn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Wn(t))._a?(e=t._isUTC?h(t._a):Zn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function Dr(){return!!this.isValid()&&this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Sr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Cr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Lr(e,t){var n,r,a,i=e,o=null;return sr(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Sr.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:de(o[We])*n,h:de(o[Ue])*n,m:de(o[Ke])*n,s:de(o[Ze])*n,ms:de(lr(1e3*o[Ge]))*n}):(o=Cr.exec(e))?(n="-"===o[1]?-1:1,i={y:Tr(o[2],n),M:Tr(o[3],n),w:Tr(o[4],n),d:Tr(o[5],n),h:Tr(o[6],n),m:Tr(o[7],n),s:Tr(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(a=Er(Zn(i.from),Zn(i.to)),(i={}).ms=a.milliseconds,i.M=a.months),r=new or(i),sr(e)&&l(e,"_locale")&&(r._locale=e._locale),sr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Tr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Or(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Er(e,t){var n;return e.isValid()&&t.isValid()?(t=mr(t,e),e.isBefore(t)?n=Or(e,t):((n=Or(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ar(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(T(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."),a=n,n=r,r=a),jr(this,Lr(n,r),e),this}}function jr(e,t,n,r){var i=t._milliseconds,o=lr(t._days),s=lr(t._months);e.isValid()&&(r=null==r||r,s&&ut(e,me(e,"Month")+s*n),o&&fe(e,"Date",me(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&a.updateOffset(e,o||s))}Lr.fn=or.prototype,Lr.invalid=ir;var $r=Ar(1,"add"),Pr=Ar(-1,"subtract");function Yr(e){return"string"==typeof e||e instanceof String}function Nr(e){return D(e)||p(e)||Yr(e)||d(e)||Ir(e)||zr(e)||null==e}function zr(e){var t,n,r=s(e)&&!c(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<i.length;t+=1)n=i[t],a=a||l(e,n);return r&&a}function Ir(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Yr(e)})).length),t&&n}function Fr(e){var t,n,r=s(e)&&!c(e),a=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=i[t],a=a||l(e,n);return r&&a}function Hr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Rr(e,t){1===arguments.length&&(arguments[0]?Nr(arguments[0])?(e=arguments[0],t=void 0):Fr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Zn(),r=mr(n,this).startOf("day"),i=a.calendarFormat(this,r)||"sameElse",o=t&&(O(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,Zn(n)))}function Br(){return new k(this)}function qr(e,t){var n=D(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ae(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Vr(e,t){var n=D(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ae(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Wr(e,t,n,r){var a=D(e)?e:Zn(e),i=D(t)?t:Zn(t);return!!(this.isValid()&&a.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))}function Ur(e,t){var n,r=D(e)?e:Zn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ae(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Kr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Zr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Gr(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(!(r=mr(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=ae(t)){case"year":i=Jr(this,r)/12;break;case"month":i=Jr(this,r);break;case"quarter":i=Jr(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:ue(i)}function Jr(e,t){if(e.date()<t.date())return-Jr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Xr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?q(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",q(n,"Z")):q(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ea(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,a="moment",i="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function ta(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=q(this,e);return this.localeData().postformat(t)}function na(e,t){return this.isValid()&&(D(e)&&e.isValid()||Zn(e).isValid())?Lr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ra(e){return this.from(Zn(),e)}function aa(e,t){return this.isValid()&&(D(e)&&e.isValid()||Zn(e).isValid())?Lr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ia(e){return this.to(Zn(),e)}function oa(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gn(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sa=S("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)}));function la(){return this._locale}var ca=1e3,ua=60*ca,da=60*ua,pa=3506328*da;function ma(e,t){return(e%t+t)%t}function fa(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-pa:new Date(e,t,n).valueOf()}function ha(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-pa:Date.UTC(e,t,n)}function _a(e){var t,n;if(void 0===(e=ae(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ha:fa,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ma(t+(this._isUTC?0:this.utcOffset()*ua),da);break;case"minute":t=this._d.valueOf(),t-=ma(t,ua);break;case"second":t=this._d.valueOf(),t-=ma(t,ca)}return this._d.setTime(t),a.updateOffset(this,!0),this}function va(e){var t,n;if(void 0===(e=ae(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ha:fa,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=da-ma(t+(this._isUTC?0:this.utcOffset()*ua),da)-1;break;case"minute":t=this._d.valueOf(),t+=ua-ma(t,ua)-1;break;case"second":t=this._d.valueOf(),t+=ca-ma(t,ca)-1}return this._d.setTime(t),a.updateOffset(this,!0),this}function ga(){return this._d.valueOf()-6e4*(this._offset||0)}function ya(){return Math.floor(this.valueOf()/1e3)}function ba(){return new Date(this.valueOf())}function wa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xa(){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 ka(){return this.isValid()?this.toISOString():null}function Da(){return g(this)}function Ma(){return f({},v(this))}function Sa(){return v(this).overflow}function Ca(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function La(e,t){var n,r,i,o=this._eras||gn("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=a(o[n].since).startOf("day"),o[n].since=i.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=a(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}}return o}function Ta(e,t,n){var r,a,i,o,s,l=this.eras();for(e=e.toUpperCase(),r=0,a=l.length;r<a;++r)if(i=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([i,o,s].indexOf(e)>=0)return l[r]}function Oa(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n}function Ea(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Aa(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function ja(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function $a(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-a(i[e].since).year())*n+i[e].offset;return this.year()}function Pa(e){return l(this,"_erasNameRegex")||Ra.call(this),e?this._erasNameRegex:this._erasRegex}function Ya(e){return l(this,"_erasAbbrRegex")||Ra.call(this),e?this._erasAbbrRegex:this._erasRegex}function Na(e){return l(this,"_erasNarrowRegex")||Ra.call(this),e?this._erasNarrowRegex:this._erasRegex}function za(e,t){return t.erasAbbrRegex(e)}function Ia(e,t){return t.erasNameRegex(e)}function Fa(e,t){return t.erasNarrowRegex(e)}function Ha(e,t){return t._eraYearOrdinalRegex||Te}function Ra(){var e,t,n=[],r=[],a=[],i=[],o=this.eras();for(e=0,t=o.length;e<t;++e)r.push(ze(o[e].name)),n.push(ze(o[e].abbr)),a.push(ze(o[e].narrow)),i.push(ze(o[e].name)),i.push(ze(o[e].abbr)),i.push(ze(o[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Ba(e,t){H(0,[e,e.length],0,t)}function qa(e){return Ga.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Va(e){return Ga.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wa(){return Dt(this.year(),1,4)}function Ua(){return Dt(this.isoWeekYear(),1,4)}function Ka(){var e=this.localeData()._week;return Dt(this.year(),e.dow,e.doy)}function Za(){var e=this.localeData()._week;return Dt(this.weekYear(),e.dow,e.doy)}function Ga(e,t,n,r,a){var i;return null==e?kt(this,r,a).year:(t>(i=Dt(e,r,a))&&(t=i),Ja.call(this,e,t,n,r,a))}function Ja(e,t,n,r,a){var i=xt(e,t,n,r,a),o=bt(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Xa(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Pe("N",za),Pe("NN",za),Pe("NNN",za),Pe("NNNN",Ia),Pe("NNNNN",Fa),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?v(n).era=a:v(n).invalidEra=e})),Pe("y",Te),Pe("yy",Te),Pe("yyy",Te),Pe("yyyy",Te),Pe("yo",Ha),Fe(["y","yy","yyy","yyyy"],qe),Fe(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[qe]=n._locale.eraYearOrdinalParse(e,a):t[qe]=parseInt(e,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ba("gggg","weekYear"),Ba("ggggg","weekYear"),Ba("GGGG","isoWeekYear"),Ba("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),Pe("G",Oe),Pe("g",Oe),Pe("GG",ke,ye),Pe("gg",ke,ye),Pe("GGGG",Ce,we),Pe("gggg",Ce,we),Pe("GGGGG",Le,xe),Pe("ggggg",Le,xe),He(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=de(e)})),He(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),re("quarter","Q"),se("quarter",7),Pe("Q",ge),Fe("Q",(function(e,t){t[Ve]=3*(de(e)-1)})),H("D",["DD",2],"Do","date"),re("date","D"),se("date",9),Pe("D",ke),Pe("DD",ke,ye),Pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Fe(["D","DD"],We),Fe("Do",(function(e,t){t[We]=de(e.match(ke)[0])}));var Qa=pe("Date",!0);function ei(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}H("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),se("dayOfYear",4),Pe("DDD",Se),Pe("DDDD",be),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=de(e)})),H("m",["mm",2],0,"minute"),re("minute","m"),se("minute",14),Pe("m",ke),Pe("mm",ke,ye),Fe(["m","mm"],Ke);var ti=pe("Minutes",!1);H("s",["ss",2],0,"second"),re("second","s"),se("second",15),Pe("s",ke),Pe("ss",ke,ye),Fe(["s","ss"],Ze);var ni,ri,ai=pe("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),re("millisecond","ms"),se("millisecond",16),Pe("S",Se,ge),Pe("SS",Se,ye),Pe("SSS",Se,be),ni="SSSS";ni.length<=9;ni+="S")Pe(ni,Te);function ii(e,t){t[Ge]=de(1e3*("0."+e))}for(ni="S";ni.length<=9;ni+="S")Fe(ni,ii);function oi(){return this._isUTC?"UTC":""}function si(){return this._isUTC?"Coordinated Universal Time":""}ri=pe("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var li=k.prototype;function ci(e){return Zn(1e3*e)}function ui(){return Zn.apply(null,arguments).parseZone()}function di(e){return e}li.add=$r,li.calendar=Rr,li.clone=Br,li.diff=Gr,li.endOf=va,li.format=ta,li.from=na,li.fromNow=ra,li.to=aa,li.toNow=ia,li.get=he,li.invalidAt=Sa,li.isAfter=qr,li.isBefore=Vr,li.isBetween=Wr,li.isSame=Ur,li.isSameOrAfter=Kr,li.isSameOrBefore=Zr,li.isValid=Da,li.lang=sa,li.locale=oa,li.localeData=la,li.max=Jn,li.min=Gn,li.parsingFlags=Ma,li.set=_e,li.startOf=_a,li.subtract=Pr,li.toArray=wa,li.toObject=xa,li.toDate=ba,li.toISOString=Qr,li.inspect=ea,"undefined"!=typeof Symbol&&null!=Symbol.for&&(li[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),li.toJSON=ka,li.toString=Xr,li.unix=ya,li.valueOf=ga,li.creationData=Ca,li.eraName=Ea,li.eraNarrow=Aa,li.eraAbbr=ja,li.eraYear=$a,li.year=vt,li.isLeapYear=gt,li.weekYear=qa,li.isoWeekYear=Va,li.quarter=li.quarters=Xa,li.month=dt,li.daysInMonth=pt,li.week=li.weeks=Tt,li.isoWeek=li.isoWeeks=Ot,li.weeksInYear=Ka,li.weeksInWeekYear=Za,li.isoWeeksInYear=Wa,li.isoWeeksInISOWeekYear=Ua,li.date=Qa,li.day=li.days=Vt,li.weekday=Wt,li.isoWeekday=Ut,li.dayOfYear=ei,li.hour=li.hours=an,li.minute=li.minutes=ti,li.second=li.seconds=ai,li.millisecond=li.milliseconds=ri,li.utcOffset=hr,li.utc=vr,li.local=gr,li.parseZone=yr,li.hasAlignedHourOffset=br,li.isDST=wr,li.isLocal=kr,li.isUtcOffset=Dr,li.isUtc=Mr,li.isUTC=Mr,li.zoneAbbr=oi,li.zoneName=si,li.dates=S("dates accessor is deprecated. Use date instead.",Qa),li.months=S("months accessor is deprecated. Use month instead",dt),li.years=S("years accessor is deprecated. Use year instead",vt),li.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",_r),li.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var pi=j.prototype;function mi(e,t,n,r){var a=gn(),i=h().set(r,t);return a[n](i,e)}function fi(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return mi(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=mi(e,r,n,"month");return a}function hi(e,t,n,r){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var a,i=gn(),o=e?i._week.dow:0,s=[];if(null!=n)return mi(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=mi(t,(a+o)%7,r,"day");return s}function _i(e,t){return fi(e,t,"months")}function vi(e,t){return fi(e,t,"monthsShort")}function gi(e,t,n){return hi(e,t,n,"weekdays")}function yi(e,t,n){return hi(e,t,n,"weekdaysShort")}function bi(e,t,n){return hi(e,t,n,"weekdaysMin")}pi.calendar=P,pi.longDateFormat=U,pi.invalidDate=Z,pi.ordinal=X,pi.preparse=di,pi.postformat=di,pi.relativeTime=ee,pi.pastFuture=te,pi.set=E,pi.eras=La,pi.erasParse=Ta,pi.erasConvertYear=Oa,pi.erasAbbrRegex=Ya,pi.erasNameRegex=Pa,pi.erasNarrowRegex=Na,pi.months=ot,pi.monthsShort=st,pi.monthsParse=ct,pi.monthsRegex=ft,pi.monthsShortRegex=mt,pi.week=Mt,pi.firstDayOfYear=Lt,pi.firstDayOfWeek=Ct,pi.weekdays=Ft,pi.weekdaysMin=Rt,pi.weekdaysShort=Ht,pi.weekdaysParse=qt,pi.weekdaysRegex=Kt,pi.weekdaysShortRegex=Zt,pi.weekdaysMinRegex=Gt,pi.isPM=nn,pi.meridiem=on,hn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=S("moment.lang is deprecated. Use moment.locale instead.",hn),a.langData=S("moment.langData is deprecated. Use moment.localeData instead.",gn);var wi=Math.abs;function xi(){var e=this._data;return this._milliseconds=wi(this._milliseconds),this._days=wi(this._days),this._months=wi(this._months),e.milliseconds=wi(e.milliseconds),e.seconds=wi(e.seconds),e.minutes=wi(e.minutes),e.hours=wi(e.hours),e.months=wi(e.months),e.years=wi(e.years),this}function ki(e,t,n,r){var a=Lr(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Di(e,t){return ki(this,e,t,1)}function Mi(e,t){return ki(this,e,t,-1)}function Si(e){return e<0?Math.floor(e):Math.ceil(e)}function Ci(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,l=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*Si(Ti(s)+o),o=0,s=0),l.milliseconds=i%1e3,e=ue(i/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,n=ue(t/60),l.hours=n%24,o+=ue(n/24),s+=a=ue(Li(o)),o-=Si(Ti(a)),r=ue(s/12),s%=12,l.days=o,l.months=s,l.years=r,this}function Li(e){return 4800*e/146097}function Ti(e){return 146097*e/4800}function Oi(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ae(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Li(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ti(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ei(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN}function Ai(e){return function(){return this.as(e)}}var ji=Ai("ms"),$i=Ai("s"),Pi=Ai("m"),Yi=Ai("h"),Ni=Ai("d"),zi=Ai("w"),Ii=Ai("M"),Fi=Ai("Q"),Hi=Ai("y");function Ri(){return Lr(this)}function Bi(e){return e=ae(e),this.isValid()?this[e+"s"]():NaN}function qi(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vi=qi("milliseconds"),Wi=qi("seconds"),Ui=qi("minutes"),Ki=qi("hours"),Zi=qi("days"),Gi=qi("months"),Ji=qi("years");function Xi(){return ue(this.days()/7)}var Qi=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function to(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function no(e,t,n,r){var a=Lr(e).abs(),i=Qi(a.as("s")),o=Qi(a.as("m")),s=Qi(a.as("h")),l=Qi(a.as("d")),c=Qi(a.as("M")),u=Qi(a.as("w")),d=Qi(a.as("y")),p=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),(p=p||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+e>0,p[4]=r,to.apply(null,p)}function ro(e){return void 0===e?Qi:"function"==typeof e&&(Qi=e,!0)}function ao(e,t){return void 0!==eo[e]&&(void 0===t?eo[e]:(eo[e]=t,"s"===e&&(eo.ss=t-1),!0))}function io(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,i=eo;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(i=Object.assign({},eo,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=no(this,!a,i,n=this.localeData()),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var oo=Math.abs;function so(e){return(e>0)-(e<0)||+e}function lo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,i,o,s,l=oo(this._milliseconds)/1e3,c=oo(this._days),u=oo(this._months),d=this.asSeconds();return d?(e=ue(l/60),t=ue(e/60),l%=60,e%=60,n=ue(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",i=so(this._months)!==so(d)?"-":"",o=so(this._days)!==so(d)?"-":"",s=so(this._milliseconds)!==so(d)?"-":"",a+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var co=or.prototype;return co.isValid=ar,co.abs=xi,co.add=Di,co.subtract=Mi,co.as=Oi,co.asMilliseconds=ji,co.asSeconds=$i,co.asMinutes=Pi,co.asHours=Yi,co.asDays=Ni,co.asWeeks=zi,co.asMonths=Ii,co.asQuarters=Fi,co.asYears=Hi,co.valueOf=Ei,co._bubble=Ci,co.clone=Ri,co.get=Bi,co.milliseconds=Vi,co.seconds=Wi,co.minutes=Ui,co.hours=Ki,co.days=Zi,co.weeks=Xi,co.months=Gi,co.years=Ji,co.humanize=io,co.toISOString=lo,co.toString=lo,co.toJSON=lo,co.locale=oa,co.localeData=la,co.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),co.lang=sa,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Pe("x",Oe),Pe("X",je),Fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Fe("x",(function(e,t,n){n._d=new Date(de(e))})),a.version="2.29.1",i(Zn),a.fn=li,a.min=Qn,a.max=er,a.now=tr,a.utc=h,a.unix=ci,a.months=_i,a.isDate=p,a.locale=hn,a.invalid=y,a.duration=Lr,a.isMoment=D,a.weekdays=gi,a.parseZone=ui,a.localeData=gn,a.isDuration=sr,a.monthsShort=vi,a.weekdaysMin=bi,a.defineLocale=_n,a.updateLocale=vn,a.locales=yn,a.weekdaysShort=yi,a.normalizeUnits=ae,a.relativeTimeRounding=ro,a.relativeTimeThreshold=ao,a.calendarFormat=Hr,a.prototype=li,a.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"},a}()}).call(this,n("62e4")(e))},c430:function(e,t){e.exports=!1},c584:function(e,t){e.exports=function(e,t){return e.has(t)}},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),a=n("ce4e"),i="__core-js_shared__",o=r[i]||a(i,{});e.exports=o},c740:function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").findIndex,i=n("44d2"),o=n("ae40"),s="findIndex",l=!0,c=o(s);s in[]&&Array(1).findIndex((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!c},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},c7aa:function(e,t,n){!function(e){"use strict";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,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n("c1df"))},c869:function(e,t,n){var r=n("0b07")(n("2b3e"),"Set");e.exports=r},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var r=n("d039"),a=n("5899");e.exports=function(e){return r((function(){return!!a[e]()||"…"!="…"[e]()||a[e].name!==e}))}},c8f3:function(e,t,n){!function(e){"use strict";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,n){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}})}(n("c1df"))},c8fe:function(e,t,n){var r=n("f8af");e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},c975:function(e,t,n){"use strict";var r=n("23e7"),a=n("4d64").indexOf,i=n("a640"),o=n("ae40"),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),u=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?s.apply(this,arguments)||0:a(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var r=n("5135"),a=n("fc6a"),i=n("4d64").indexOf,o=n("d012");e.exports=function(e,t){var n,s=a(e),l=0,c=[];for(n in s)!r(o,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},caad:function(e,t,n){"use strict";var r=n("23e7"),a=n("4d64").includes,i=n("44d2");r({target:"Array",proto:!0,forced:!n("ae40")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cb5a:function(e,t,n){var r=n("9638");e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},cc12:function(e,t,n){var r=n("da84"),a=n("861d"),i=r.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},cd9d:function(e,t){e.exports=function(e){return e}},cdf9:function(e,t,n){var r=n("825a"),a=n("861d"),i=n("f069");e.exports=function(e,t){if(r(e),a(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},ce4e:function(e,t,n){var r=n("da84"),a=n("9112");e.exports=function(e,t){try{a(r,e,t)}catch(n){r[e]=t}return t}},cf1e:function(e,t,n){!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,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};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:"D. M. 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}})}(n("c1df"))},cf51:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={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 r||t?a[n][0]:a[n][1]}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,n){return e>11?n?"d'o":"D'O":n?"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}})}(n("c1df"))},cf75:function(e,t,n){!function(e){"use strict";var t="pagh_wa_cha_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(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 r(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 a(e,t,n,r){var a=i(e);switch(n){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}function i(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),a=e%10,i="";return n>0&&(i+=t[n]+"vatlh"),r>0&&(i+=(""!==i?" ":"")+t[r]+"maH"),a>0&&(i+=(""!==i?" ":"")+t[a]),""===i?"pagh":i}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 wamaH_tera jar wamaH wa_tera jar wamaH cha".split("_"),monthsShort:"jar wa_jar cha_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wamaH_jar wamaH wa_jar wamaH 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:"[waleS] LT",nextWeek:"LLL",lastDay:"[waHu] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:r,s:"puS lup",ss:a,m:"wa tup",mm:a,h:"wa rep",hh:a,d:"wa jaj",dd:a,M:"wa jar",MM:a,y:"wa DIS",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("c1df"))},d012:function(e,t){e.exports={}},d02c:function(e,t,n){var r=n("5e2e"),a=n("79bc"),i=n("7b83");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},d066:function(e,t,n){var r=n("428f"),a=n("da84"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(a[e]):r[e]&&r[e][t]||a[e]&&a[e][t]}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,i=a&&!r.call({1:2},1);t.f=i?function(e){var t=a(this,e);return!!t&&t.enumerable}:r},d26a:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,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:"[བདུན་ཕྲག་རྗེས་མ], 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 n[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,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n("c1df"))},d28b:function(e,t,n){n("746f")("iterator")},d2bb:function(e,t,n){var r=n("825a"),a=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),a(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},d2d4:function(e,t,n){!function(e){"use strict";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º",invalidDate:"Data inválida"})}(n("c1df"))},d327:function(e,t){e.exports=function(){return[]}},d370:function(e,t,n){var r=n("253c"),a=n("1310"),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},d3b7:function(e,t,n){var r=n("00ee"),a=n("6eeb"),i=n("b041");r||a(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,a=n("5135"),i=n("b622")("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},d58f:function(e,t,n){var r=n("1c0b"),a=n("7b0b"),i=n("44ad"),o=n("50c4"),s=function(e){return function(t,n,s,l){r(n);var c=a(t),u=i(c),d=o(c.length),p=e?d-1:0,m=e?-1:1;if(s<2)for(;;){if(p in u){l=u[p],p+=m;break}if(p+=m,e?p<0:d<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:d>p;p+=m)p in u&&(l=n(l,u[p],p,c));return l}};e.exports={left:s(!1),right:s(!0)}},d612:function(e,t,n){var r=n("7b83"),a=n("7ed2"),i=n("dc0f");function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=a,o.prototype.has=i,e.exports=o},d69a:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{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}})}(n("c1df"))},d6b6:function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},d716:function(e,t,n){!function(e){"use strict";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 n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("c1df"))},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),a=n("d039"),i=n("b622"),o=n("9263"),s=n("9112"),l=i("species"),c=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u="$0"==="a".replace(/./,"$0"),d=i("replace"),p=!!/./[d]&&""===/./[d]("a","$0"),m=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var f=i(e),h=!a((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),_=h&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!h||!_||"replace"===e&&(!c||!u||p)||"split"===e&&!m){var v=/./[f],g=n(f,""[e],(function(e,t,n,r,a){return t.exec===o?h&&!a?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),y=g[0],b=g[1];r(String.prototype,e,y),r(RegExp.prototype,f,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}d&&s(RegExp.prototype[f],"sham",!0)}},d81d:function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").map,i=n("1dde"),o=n("ae40"),s=i("map"),l=o("map");r({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},d9f8:function(e,t,n){!function(e){"use strict";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:"[Aujourdhui à] 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")}}})}(n("c1df"))},da03:function(e,t,n){var r=n("2b3e")["__core-js_shared__"];e.exports=r},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},db29:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^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],a=/^(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;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,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:r,longMonthsParse:r,shortMonthsParse:r,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}})}(n("c1df"))},dbb4:function(e,t,n){var r=n("23e7"),a=n("83ab"),i=n("56ef"),o=n("fc6a"),s=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),a=s.f,c=i(r),u={},d=0;c.length>d;)void 0!==(n=a(r,t=c[d++]))&&l(u,t,n);return u}})},dc0f:function(e,t){e.exports=function(e){return this.__data__.has(e)}},dc4d:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],a=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".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 बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:a,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,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 n[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,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n("c1df"))},dc57:function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},dcbe:function(e,t,n){var r=n("30c9"),a=n("1310");e.exports=function(e){return a(e)&&r(e)}},ddb0:function(e,t,n){var r=n("da84"),a=n("fdbc"),i=n("e260"),o=n("9112"),s=n("b622"),l=s("iterator"),c=s("toStringTag"),u=i.values;for(var d in a){var p=r[d],m=p&&p.prototype;if(m){if(m[l]!==u)try{o(m,l,u)}catch(e){m[l]=u}if(m[c]||o(m,c,d),a[d])for(var f in i)if(m[f]!==i[f])try{o(m,f,i[f])}catch(e){m[f]=i[f]}}}},df75:function(e,t,n){var r=n("ca84"),a=n("7839");e.exports=Object.keys||function(e){return r(e,a)}},e01a:function(e,t,n){"use strict";var r=n("23e7"),a=n("83ab"),i=n("da84"),o=n("5135"),s=n("861d"),l=n("9bf2").f,c=n("e893"),u=i.Symbol;if(a&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(p,u);var m=p.prototype=u.prototype;m.constructor=p;var f=m.toString,h="Symbol(test)"==String(u("test")),_=/^Symbol\((.*)\)[^)]+$/;l(m,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=f.call(e);if(o(d,e))return"";var n=h?t.slice(7,-1):t.replace(_,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},e0c5:function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:""},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","":"0"};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 n[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,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n("c1df"))},e163:function(e,t,n){var r=n("5135"),a=n("7b0b"),i=n("f772"),o=n("e177"),s=i("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=a(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1d3:function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},e24b:function(e,t,n){var r=n("49f4"),a=n("1efc"),i=n("bbc0"),o=n("7a48"),s=n("2524");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},e260:function(e,t,n){"use strict";var r=n("fc6a"),a=n("44d2"),i=n("3f8c"),o=n("69f3"),s=n("7dd0"),l="Array Iterator",c=o.set,u=o.getterFor(l);e.exports=s(Array,"Array",(function(e,t){c(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},e2cc:function(e,t,n){var r=n("6eeb");e.exports=function(e,t,n){for(var a in t)r(e,a,t[a],n);return e}},e37d:function(e,t,n){"use strict";(function(e){var r=n("f0bd"),a=n("63ea"),i=n.n(a),o=n("252c"),s=n("42454"),l=n.n(s);function c(e){return(c="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)}function u(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 d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(){};function h(e){return"string"==typeof e&&(e=e.split(" ")),e}function _(e,t){var n,r=h(t);n=e.className instanceof f?h(e.className.baseVal):h(e.className),r.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}function v(e,t){var n,r=h(t);n=e.className instanceof f?h(e.className.baseVal):h(e.className),r.forEach((function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}"undefined"!=typeof window&&(f=window.SVGAnimatedString);var g=!1;if("undefined"!=typeof window){g=!1;try{var y=Object.defineProperty({},"passive",{get:function(){g=!0}});window.addEventListener("test",null,y)}catch(e){}}var b={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0},w=[],x=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"_events",[]),d(this,"_setTooltipNodeEvent",(function(e,t,n,a){var i=e.relatedreference||e.toElement||e.relatedTarget;return!!r._tooltipNode.contains(i)&&(r._tooltipNode.addEventListener(e.type,(function n(i){var o=i.relatedreference||i.toElement||i.relatedTarget;r._tooltipNode.removeEventListener(e.type,n),t.contains(o)||r._scheduleHide(t,a.delay,a,i)})),!0)})),n=m(m({},b),n),t.jquery&&(t=t[0]),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.reference=t,this.options=n,this._isOpen=!1,this._init()}var t,n,a;return t=e,(n=[{key:"show",value:function(){this._show(this.reference,this.options)}},{key:"hide",value:function(){this._hide()}},{key:"dispose",value:function(){this._dispose()}},{key:"toggle",value:function(){return this._isOpen?this.hide():this.show()}},{key:"setClasses",value:function(e){this._classes=e}},{key:"setContent",value:function(e){this.options.title=e,this._tooltipNode&&this._setContent(e,this.options)}},{key:"setOptions",value:function(e){var t=!1,n=e&&e.classes||E.options.defaultClass;i()(this._classes,n)||(this.setClasses(n),t=!0),e=S(e);var r=!1,a=!1;for(var o in this.options.offset===e.offset&&this.options.placement===e.placement||(r=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(a=!0),e)this.options[o]=e[o];if(this._tooltipNode)if(a){var s=this._isOpen;this.dispose(),this._init(),s&&this.show()}else r&&this.popperInstance.update()}},{key:"_init",value:function(){var e="string"==typeof this.options.trigger?this.options.trigger.split(" "):[];this._isDisposed=!1,this._enableDocumentTouch=-1===e.indexOf("manual"),e=e.filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})),this._setEventListeners(this.reference,e,this.options),this.$_originalTitle=this.reference.getAttribute("title"),this.reference.removeAttribute("title"),this.reference.setAttribute("data-original-title",this.$_originalTitle)}},{key:"_create",value:function(e,t){var n=this,r=window.document.createElement("div");r.innerHTML=t.trim();var a=r.childNodes[0];return a.id=this.options.ariaId||"tooltip_".concat(Math.random().toString(36).substr(2,10)),a.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(a.addEventListener("mouseenter",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)})),a.addEventListener("click",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)}))),a}},{key:"_setContent",value:function(e,t){var n=this;this.asyncContent=!1,this._applyContent(e,t).then((function(){n.popperInstance&&n.popperInstance.update()}))}},{key:"_applyContent",value:function(e,t){var n=this;return new Promise((function(r,a){var i=t.html,o=n._tooltipNode;if(o){var s=o.querySelector(n.options.innerSelector);if(1===e.nodeType){if(i){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(e)}}else{if("function"==typeof e){var l=e();return void(l&&"function"==typeof l.then?(n.asyncContent=!0,t.loadingClass&&_(o,t.loadingClass),t.loadingContent&&n._applyContent(t.loadingContent,t),l.then((function(e){return t.loadingClass&&v(o,t.loadingClass),n._applyContent(e,t)})).then(r).catch(a)):n._applyContent(l,t).then(r).catch(a))}i?s.innerHTML=e:s.innerText=e}r()}}))}},{key:"_show",value:function(e,t){if(!t||"string"!=typeof t.container||document.querySelector(t.container)){clearTimeout(this._disposeTimer),delete(t=Object.assign({},t)).offset;var n=!0;this._tooltipNode&&(_(this._tooltipNode,this._classes),n=!1);var r=this._ensureShown(e,t);return n&&this._tooltipNode&&_(this._tooltipNode,this._classes),_(e,["v-tooltip-open"]),r}}},{key:"_ensureShown",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,w.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(t.title,t),this;var a=e.getAttribute("title")||t.title;if(!a)return this;var i=this._create(e,t.template);this._tooltipNode=i,e.setAttribute("aria-describedby",i.id);var o=this._findContainer(t.container,e);this._append(i,o);var s=m(m({},t.popperOptions),{},{placement:t.placement});return s.modifiers=m(m({},s.modifiers),{},{arrow:{element:this.options.arrowSelector}}),t.boundariesElement&&(s.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new r.a(e,i,s),this._setContent(a,t),requestAnimationFrame((function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame((function(){n._isDisposed?n.dispose():n._isOpen&&i.setAttribute("aria-hidden","false")}))):n.dispose()})),this}},{key:"_noLongerOpen",value:function(){var e=w.indexOf(this);-1!==e&&w.splice(e,1)}},{key:"_hide",value:function(){var e=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var t=E.options.disposeTimeout;return null!==t&&(this._disposeTimer=setTimeout((function(){e._tooltipNode&&(e._tooltipNode.removeEventListener("mouseenter",e.hide),e._tooltipNode.removeEventListener("click",e.hide),e._removeTooltipNode())}),t)),v(this.reference,["v-tooltip-open"]),this}},{key:"_removeTooltipNode",value:function(){if(this._tooltipNode){var e=this._tooltipNode.parentNode;e&&(e.removeChild(this._tooltipNode),this.reference.removeAttribute("aria-describedby")),this._tooltipNode=null}}},{key:"_dispose",value:function(){var e=this;return this._isDisposed=!0,this.reference.removeAttribute("data-original-title"),this.$_originalTitle&&this.reference.setAttribute("title",this.$_originalTitle),this._events.forEach((function(t){var n=t.func,r=t.event;e.reference.removeEventListener(r,n)})),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:"_findContainer",value:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(e,t,n){var r=this,a=[],i=[];t.forEach((function(e){switch(e){case"hover":a.push("mouseenter"),i.push("mouseleave"),r.options.hideOnTargetClick&&i.push("click");break;case"focus":a.push("focus"),i.push("blur"),r.options.hideOnTargetClick&&i.push("click");break;case"click":a.push("click"),i.push("click")}})),a.forEach((function(t){var a=function(t){!0!==r._isOpen&&(t.usedByTooltip=!0,r._scheduleShow(e,n.delay,n,t))};r._events.push({event:t,func:a}),e.addEventListener(t,a)})),i.forEach((function(t){var a=function(t){!0!==t.usedByTooltip&&r._scheduleHide(e,n.delay,n,t)};r._events.push({event:t,func:a}),e.addEventListener(t,a)}))}},{key:"_onDocumentTouch",value:function(e){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,e)}},{key:"_scheduleShow",value:function(e,t,n){var r=this,a=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){return r._show(e,n)}),a)}},{key:"_scheduleHide",value:function(e,t,n,r){var a=this,i=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){if(!1!==a._isOpen&&a._tooltipNode.ownerDocument.body.contains(a._tooltipNode)){if("mouseleave"===r.type&&a._setTooltipNodeEvent(r,e,t,n))return;a._hide(e,n)}}),i)}}])&&u(t.prototype,n),a&&u(t,a),e}();"undefined"!=typeof document&&document.addEventListener("touchstart",(function(e){for(var t=0;t<w.length;t++)w[t]._onDocumentTouch(e)}),!g||{passive:!0,capture:!0});var k={enabled:!0},D=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],M={defaultPlacement:"top",defaultClass:"vue-tooltip-theme",defaultTargetClass:"has-tooltip",defaultHtml:!0,defaultTemplate:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',defaultArrowSelector:".tooltip-arrow, .tooltip__arrow",defaultInnerSelector:".tooltip-inner, .tooltip__inner",defaultDelay:0,defaultTrigger:"hover focus",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:"tooltip-loading",defaultLoadingContent:"...",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:"bottom",defaultClass:"vue-popover-theme",defaultBaseClass:"tooltip popover",defaultWrapperClass:"wrapper",defaultInnerClass:"tooltip-inner popover-inner",defaultArrowClass:"tooltip-arrow popover-arrow",defaultOpenClass:"open",defaultDelay:0,defaultTrigger:"click",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function S(e){var t={placement:void 0!==e.placement?e.placement:E.options.defaultPlacement,delay:void 0!==e.delay?e.delay:E.options.defaultDelay,html:void 0!==e.html?e.html:E.options.defaultHtml,template:void 0!==e.template?e.template:E.options.defaultTemplate,arrowSelector:void 0!==e.arrowSelector?e.arrowSelector:E.options.defaultArrowSelector,innerSelector:void 0!==e.innerSelector?e.innerSelector:E.options.defaultInnerSelector,trigger:void 0!==e.trigger?e.trigger:E.options.defaultTrigger,offset:void 0!==e.offset?e.offset:E.options.defaultOffset,container:void 0!==e.container?e.container:E.options.defaultContainer,boundariesElement:void 0!==e.boundariesElement?e.boundariesElement:E.options.defaultBoundariesElement,autoHide:void 0!==e.autoHide?e.autoHide:E.options.autoHide,hideOnTargetClick:void 0!==e.hideOnTargetClick?e.hideOnTargetClick:E.options.defaultHideOnTargetClick,loadingClass:void 0!==e.loadingClass?e.loadingClass:E.options.defaultLoadingClass,loadingContent:void 0!==e.loadingContent?e.loadingContent:E.options.defaultLoadingContent,popperOptions:m({},void 0!==e.popperOptions?e.popperOptions:E.options.defaultPopperOptions)};if(t.offset){var n=c(t.offset),r=t.offset;("number"===n||"string"===n&&-1===r.indexOf(","))&&(r="0, ".concat(r)),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:r}}return t.trigger&&-1!==t.trigger.indexOf("click")&&(t.hideOnTargetClick=!1),t}function C(e,t){for(var n=e.placement,r=0;r<D.length;r++){var a=D[r];t[a]&&(n=a)}return n}function L(e){var t=c(e);return"string"===t?e:!(!e||"object"!==t)&&e.content}function T(e){e._tooltip&&(e._tooltip.dispose(),delete e._tooltip,delete e._tooltipOldShow),e._tooltipTargetClasses&&(v(e,e._tooltipTargetClasses),delete e._tooltipTargetClasses)}function O(e,t){var n,r=t.value,a=(t.oldValue,t.modifiers),i=L(r);i&&k.enabled?(e._tooltip?((n=e._tooltip).setContent(i),n.setOptions(m(m({},r),{},{placement:C(r,a)}))):n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=L(t),a=void 0!==t.classes?t.classes:E.options.defaultClass,i=m({title:r},S(m(m({},"object"===c(t)?t:{}),{},{placement:C(t,n)}))),o=e._tooltip=new x(e,i);o.setClasses(a),o._vueEl=e;var s=void 0!==t.targetClasses?t.targetClasses:E.options.defaultTargetClass;return e._tooltipTargetClasses=s,_(e,s),o}(e,r,a),void 0!==r.show&&r.show!==e._tooltipOldShow&&(e._tooltipOldShow=r.show,r.show?n.show():n.hide())):T(e)}var E={options:M,bind:O,update:O,unbind:function(e){T(e)}};function A(e){e.addEventListener("click",$),e.addEventListener("touchstart",P,!!g&&{passive:!0})}function j(e){e.removeEventListener("click",$),e.removeEventListener("touchstart",P),e.removeEventListener("touchend",Y),e.removeEventListener("touchcancel",N)}function $(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function P(e){if(1===e.changedTouches.length){var t=e.currentTarget;t.$_vclosepopover_touch=!0;var n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",Y),t.addEventListener("touchcancel",N)}}function Y(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function N(e){e.currentTarget.$_vclosepopover_touch=!1}var z={bind:function(e,t){var n=t.value,r=t.modifiers;e.$_closePopoverModifiers=r,(void 0===n||n)&&A(e)},update:function(e,t){var n=t.value,r=t.oldValue,a=t.modifiers;e.$_closePopoverModifiers=a,n!==r&&(void 0===n||n?A(e):j(e))},unbind:function(e){j(e)}};function I(e){var t=E.options.popover[e];return void 0===t?E.options[e]:t}var F=!1;"undefined"!=typeof window&&"undefined"!=typeof navigator&&(F=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var H=[],R=function(){};"undefined"!=typeof window&&(R=window.Element);var B={name:"VPopover",components:{ResizeObserver:o.a},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return I("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return I("defaultDelay")}},offset:{type:[String,Number],default:function(){return I("defaultOffset")}},trigger:{type:String,default:function(){return I("defaultTrigger")}},container:{type:[String,Object,R,Boolean],default:function(){return I("defaultContainer")}},boundariesElement:{type:[String,R],default:function(){return I("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return I("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return I("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return E.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return E.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return E.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return E.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return E.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return E.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return E.options.popover.defaultOpenClass}},ariaId:{default:null}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return d({},this.openClass,this.isOpen)},popoverId:function(){return"popover_".concat(null!=this.ariaId?this.ariaId:this.id)}},watch:{open:function(e){e?this.show():this.hide()},disabled:function(e,t){e!==t&&(e?this.hide():this.open&&this.show())},container:function(e){if(this.isOpen&&this.popperInstance){var t=this.$refs.popover,n=this.$refs.trigger,r=this.$_findContainer(this.container,n);if(!r)return void console.warn("No container for popover",this);r.appendChild(t),this.popperInstance.scheduleUpdate()}},trigger:function(e){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(e){var t=this;this.$_updatePopper((function(){t.popperInstance.options.placement=e}))},offset:"$_restartPopper",boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e),this.$_init(),this.open&&this.show()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event,r=(t.skipDelay,t.force),a=void 0!==r&&r;!a&&this.disabled||(this.$_scheduleShow(n),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame((function(){e.$_beingShowed=!1}))},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event;e.skipDelay,this.$_scheduleHide(t),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var e=this,t=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var a=this.$_findContainer(this.container,t);if(!a)return void console.warn("No container for popover",this);a.appendChild(n),this.$_mounted=!0,this.isOpen=!1,this.popperInstance&&requestAnimationFrame((function(){e.hidden||(e.isOpen=!0)}))}if(!this.popperInstance){var i=m(m({},this.popperOptions),{},{placement:this.placement});if(i.modifiers=m(m({},i.modifiers),{},{arrow:m(m({},i.modifiers&&i.modifiers.arrow),{},{element:this.$refs.arrow})}),this.offset){var o=this.$_getOffset();i.modifiers.offset=m(m({},i.modifiers&&i.modifiers.offset),{},{offset:o})}this.boundariesElement&&(i.modifiers.preventOverflow=m(m({},i.modifiers&&i.modifiers.preventOverflow),{},{boundariesElement:this.boundariesElement})),this.popperInstance=new r.a(t,n,i),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();!e.$_isDisposed&&e.popperInstance?(e.popperInstance.scheduleUpdate(),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();e.$_isDisposed?e.dispose():e.isOpen=!0}))):e.dispose()}))}var s=this.openGroup;if(s)for(var l,c=0;c<H.length;c++)(l=H[c]).openGroup!==s&&(l.hide(),l.$emit("close-group"));H.push(this),this.$emit("apply-show")}},$_hide:function(){var e=this;if(this.isOpen){var t=H.indexOf(this);-1!==t&&H.splice(t,1),this.isOpen=!1,this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this.$_disposeTimer);var n=E.options.popover.disposeTimeout||E.options.disposeTimeout;null!==n&&(this.$_disposeTimer=setTimeout((function(){var t=e.$refs.popover;t&&(t.parentNode&&t.parentNode.removeChild(t),e.$_mounted=!1)}),n)),this.$emit("apply-hide")}},$_findContainer:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e},$_getOffset:function(){var e=c(this.offset),t=this.offset;return("number"===e||"string"===e&&-1===t.indexOf(","))&&(t="0, ".concat(t)),t},$_addEventListeners:function(){var e=this,t=this.$refs.trigger,n=[],r=[];("string"==typeof this.trigger?this.trigger.split(" ").filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})):[]).forEach((function(e){switch(e){case"hover":n.push("mouseenter"),r.push("mouseleave");break;case"focus":n.push("focus"),r.push("blur");break;case"click":n.push("click"),r.push("click")}})),n.forEach((function(n){var r=function(t){e.isOpen||(t.usedByTooltip=!0,!e.$_preventOpen&&e.show({event:t}),e.hidden=!1)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)})),r.forEach((function(n){var r=function(t){t.usedByTooltip||(e.hide({event:t}),e.hidden=!0)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)}))},$_scheduleShow:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),e)this.$_show();else{var t=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),t)}},$_scheduleHide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var r=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout((function(){if(e.isOpen){if(t&&"mouseleave"===t.type&&e.$_setTooltipNodeEvent(t))return;e.$_hide()}}),r)}},$_setTooltipNodeEvent:function(e){var t=this,n=this.$refs.trigger,r=this.$refs.popover,a=e.relatedreference||e.toElement||e.relatedTarget;return!!r.contains(a)&&(r.addEventListener(e.type,(function a(i){var o=i.relatedreference||i.toElement||i.relatedTarget;r.removeEventListener(e.type,a),n.contains(o)||t.hide({event:i})})),!0)},$_removeEventListeners:function(){var e=this.$refs.trigger;this.$_events.forEach((function(t){var n=t.func,r=t.event;e.removeEventListener(r,n)})),this.$_events=[]},$_updatePopper:function(e){this.popperInstance&&(e(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var e=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),e&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventOpen=!0,setTimeout((function(){t.$_preventOpen=!1}),300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};function q(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var r=H[n];if(r.$refs.popover){var a=r.$refs.popover.contains(e.target);requestAnimationFrame((function(){(e.closeAllPopover||e.closePopover&&a||r.autoHide&&!a)&&r.$_handleGlobalClose(e,t)}))}},r=0;r<H.length;r++)n(r)}function V(e,t,n,r,a,i,o,s,l,c){"boolean"!=typeof o&&(l=s,s=o,o=!1);const u="function"==typeof n?n.options:n;let d;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,a&&(u.functional=!0)),r&&(u._scopeId=r),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=d):t&&(d=o?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(u.functional){const e=u.render;u.render=function(t,n){return d.call(n),e(t,n)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,d):[d]}return n}"undefined"!=typeof document&&"undefined"!=typeof window&&(F?document.addEventListener("touchend",(function(e){q(e,!0)}),!g||{passive:!0,capture:!0}):window.addEventListener("click",(function(e){q(e)}),!0));var W=B,U=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-popover",class:e.cssClass},[n("div",{ref:"trigger",staticClass:"trigger",staticStyle:{display:"inline-block"},attrs:{"aria-describedby":e.isOpen?e.popoverId:void 0,tabindex:-1!==e.trigger.indexOf("focus")?0:void 0}},[e._t("default")],2),e._v(" "),n("div",{ref:"popover",class:[e.popoverBaseClass,e.popoverClass,e.cssClass],style:{visibility:e.isOpen?"visible":"hidden"},attrs:{id:e.popoverId,"aria-hidden":e.isOpen?"false":"true",tabindex:e.autoHide?0:void 0},on:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.autoHide&&e.hide()}}},[n("div",{class:e.popoverWrapperClass},[n("div",{ref:"inner",class:e.popoverInnerClass,staticStyle:{position:"relative"}},[n("div",[e._t("popover",null,{isOpen:e.isOpen})],2),e._v(" "),e.handleResize?n("ResizeObserver",{on:{notify:e.$_handleResize}}):e._e()],1),e._v(" "),n("div",{ref:"arrow",class:e.popoverArrowClass})])])])};U._withStripped=!0;var K=V({render:U,staticRenderFns:[]},void 0,W,void 0,!1,void 0,!1,void 0,void 0,void 0);!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".resize-observer[data-v-8859cc6c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-8859cc6c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}");var Z={install:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0;var r={};l()(r,M,n),Z.options=r,E.options=r,t.directive("tooltip",E),t.directive("close-popover",z),t.component("VPopover",K)}},get enabled(){return k.enabled},set enabled(e){k.enabled=e}},G=null;"undefined"!=typeof window?G=window.Vue:void 0!==e&&(G=e.Vue),G&&G.use(Z),t.a=Z}).call(this,n("c8ba"))},e439:function(e,t,n){var r=n("23e7"),a=n("d039"),i=n("fc6a"),o=n("06cf").f,s=n("83ab"),l=a((function(){o(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})},e538:function(e,t,n){var r=n("b622");t.f=r},e5383:function(e,t,n){(function(e){var r=n("2b3e"),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n("62e4")(e))},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},e67d:function(e,t){function n(e){return"function"==typeof e.value||(console.warn("[Vue-click-outside:] provided expression",e.expression,"is not a function."),!1)}function r(e){return void 0!==e.componentInstance&&e.componentInstance.$isServer}e.exports={bind:function(e,t,a){if(!n(t))return;function i(t){if(a.context){var n=t.path||t.composedPath&&t.composedPath();n&&n.length>0&&n.unshift(t.target),e.contains(t.target)||function(e,t){if(!e||!t)return!1;for(var n=0,r=t.length;n<r;n++)try{if(e.contains(t[n]))return!0;if(t[n].contains(e))return!1}catch(e){return!1}return!1}(a.context.popupItem,n)||e.__vueClickOutside__.callback(t)}}e.__vueClickOutside__={handler:i,callback:t.value};const o="ontouchstart"in document.documentElement?"touchstart":"click";!r(a)&&document.addEventListener(o,i)},update:function(e,t){n(t)&&(e.__vueClickOutside__.callback=t.value)},unbind:function(e,t,n){const a="ontouchstart"in document.documentElement?"touchstart":"click";!r(n)&&e.__vueClickOutside__&&document.removeEventListener(a,e.__vueClickOutside__.handler),delete e.__vueClickOutside__}}},e6cf:function(e,t,n){"use strict";var r,a,i,o,s=n("23e7"),l=n("c430"),c=n("da84"),u=n("d066"),d=n("fea9"),p=n("6eeb"),m=n("e2cc"),f=n("d44e"),h=n("2626"),_=n("861d"),v=n("1c0b"),g=n("19aa"),y=n("8925"),b=n("2266"),w=n("1c7e"),x=n("4840"),k=n("2cf4").set,D=n("b575"),M=n("cdf9"),S=n("44de"),C=n("f069"),L=n("e667"),T=n("69f3"),O=n("94ca"),E=n("b622"),A=n("605d"),j=n("2d00"),$=E("species"),P="Promise",Y=T.get,N=T.set,z=T.getterFor(P),I=d,F=c.TypeError,H=c.document,R=c.process,B=u("fetch"),q=C.f,V=q,W=!!(H&&H.createEvent&&c.dispatchEvent),U="function"==typeof PromiseRejectionEvent,K="unhandledrejection",Z=O(P,(function(){if(y(I)===String(I)){if(66===j)return!0;if(!A&&!U)return!0}if(l&&!I.prototype.finally)return!0;if(j>=51&&/native code/.test(I))return!1;var e=I.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[$]=t,!(e.then((function(){}))instanceof t)})),G=Z||!w((function(e){I.all(e).catch((function(){}))})),J=function(e){var t;return!(!_(e)||"function"!=typeof(t=e.then))&&t},X=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;D((function(){for(var r=e.value,a=1==e.state,i=0;n.length>i;){var o,s,l,c=n[i++],u=a?c.ok:c.fail,d=c.resolve,p=c.reject,m=c.domain;try{u?(a||(2===e.rejection&&ne(e),e.rejection=1),!0===u?o=r:(m&&m.enter(),o=u(r),m&&(m.exit(),l=!0)),o===c.promise?p(F("Promise-chain cycle")):(s=J(o))?s.call(o,d,p):d(o)):p(r)}catch(e){m&&!l&&m.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ee(e)}))}},Q=function(e,t,n){var r,a;W?((r=H.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!U&&(a=c["on"+e])?a(r):e===K&&S("Unhandled promise rejection",n)},ee=function(e){k.call(c,(function(){var t,n=e.facade,r=e.value;if(te(e)&&(t=L((function(){A?R.emit("unhandledRejection",r,n):Q(K,n,r)})),e.rejection=A||te(e)?2:1,t.error))throw t.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e){k.call(c,(function(){var t=e.facade;A?R.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},re=function(e,t,n){return function(r){e(t,r,n)}},ae=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X(e,!0))},ie=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw F("Promise can't be resolved itself");var r=J(t);r?D((function(){var n={done:!1};try{r.call(t,re(ie,n,e),re(ae,n,e))}catch(t){ae(n,t,e)}})):(e.value=t,e.state=1,X(e,!1))}catch(t){ae({done:!1},t,e)}}};Z&&(I=function(e){g(this,I,P),v(e),r.call(this);var t=Y(this);try{e(re(ie,t),re(ae,t))}catch(e){ae(t,e)}},(r=function(e){N(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=m(I.prototype,{then:function(e,t){var n=z(this),r=q(x(this,I));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=A?R.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&X(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r,t=Y(e);this.promise=e,this.resolve=re(ie,t),this.reject=re(ae,t)},C.f=q=function(e){return e===I||e===i?new a(e):V(e)},l||"function"!=typeof d||(o=d.prototype.then,p(d.prototype,"then",(function(e,t){var n=this;return new I((function(e,t){o.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof B&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return M(I,B.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:Z},{Promise:I}),f(I,P,!1,!0),h(P),i=u(P),s({target:P,stat:!0,forced:Z},{reject:function(e){var t=q(this);return t.reject.call(void 0,e),t.promise}}),s({target:P,stat:!0,forced:l||Z},{resolve:function(e){return M(l&&this===i?I:this,e)}}),s({target:P,stat:!0,forced:G},{all:function(e){var t=this,n=q(t),r=n.resolve,a=n.reject,i=L((function(){var n=v(t.resolve),i=[],o=0,s=1;b(e,(function(e){var l=o++,c=!1;i.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,i[l]=e,--s||r(i))}),a)})),--s||r(i)}));return i.error&&a(i.value),n.promise},race:function(e){var t=this,n=q(t),r=n.reject,a=L((function(){var a=v(t.resolve);b(e,(function(e){a.call(t,e).then(n.resolve,r)}))}));return a.error&&r(a.value),n.promise}})},e81d:function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};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,n){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 n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n("c1df"))},e893:function(e,t,n){var r=n("5135"),a=n("56ef"),i=n("06cf"),o=n("9bf2");e.exports=function(e,t){for(var n=a(t),s=o.f,l=i.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e95a:function(e,t,n){var r=n("b622"),a=n("3f8c"),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||o[i]===e)}},eac5:function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},ebe4:function(e,t,n){!function(e){"use strict";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,n){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}})}(n("c1df"))},ec18:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={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?a[n][2]?a[n][2]:a[n][1]:r?a[n][0]:a[n][1]}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}})}(n("c1df"))},ec2e:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{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:0,doy:6}})}(n("c1df"))},ec69:function(e,t,n){var r=n("6fcd"),a=n("03dd"),i=n("30c9");e.exports=function(e){return i(e)?r(e):a(e)}},ec8c:function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},eda5:function(e,t,n){!function(e){"use strict";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,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n("c1df"))},edfa:function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},efb6:function(e,t,n){var r=n("5e2e");e.exports=function(){this.__data__=new r,this.size=0}},f069:function(e,t,n){"use strict";var r=n("1c0b"),a=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}},f0bd:function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),a=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function l(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=o(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)?e:l(s(e))}function c(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?u:10===e?d:u||d}function m(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===o(n,"position")?m(n):n:e?e.ownerDocument.documentElement:document.documentElement}function f(e){return null!==e.parentNode?f(e.parentNode):e}function h(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,a=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(a,0);var o,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(a))return"BODY"===(s=(o=l).nodeName)||"HTML"!==s&&m(o.firstElementChild)!==o?m(l):l;var c=f(e);return c.host?h(c.host,t):h(e,f(t).host)}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var a=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||a;return i[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=_(t,"top"),a=_(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=a*i,e.right+=a*i,e}function g(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function b(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},x=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),k=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function M(e){return D({},e,{right:e.left+e.width,bottom:e.top+e.height})}function S(e){var t={};try{if(p(10)){t=e.getBoundingClientRect();var n=_(e,"top"),r=_(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?b(e.ownerDocument):{},s=i.width||e.clientWidth||a.width,l=i.height||e.clientHeight||a.height,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var d=o(e);c-=g(d,"x"),u-=g(d,"y"),a.width-=c,a.height-=u}return M(a)}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=p(10),a="HTML"===t.nodeName,i=S(e),s=S(t),c=l(e),u=o(t),d=parseFloat(u.borderTopWidth),m=parseFloat(u.borderLeftWidth);n&&a&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=M({top:i.top-s.top-d,left:i.left-s.left-m,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!r&&a){var h=parseFloat(u.marginTop),_=parseFloat(u.marginLeft);f.top-=d-h,f.bottom-=d-h,f.left-=m-_,f.right-=m-_,f.marginTop=h,f.marginLeft=_}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(f=v(f,t)),f}function L(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=C(e,n),a=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:_(n),s=t?0:_(n,"left"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:a,height:i};return M(l)}function T(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===o(e,"position"))return!0;var n=s(e);return!!n&&T(n)}function O(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===o(t,"transform");)t=t.parentElement;return t||document.documentElement}function E(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},o=a?O(e):h(e,c(t));if("viewport"===r)i=L(o,a);else{var u=void 0;"scrollParent"===r?"BODY"===(u=l(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var d=C(u,o,a);if("HTML"!==u.nodeName||T(o))i=d;else{var p=b(e.ownerDocument),m=p.height,f=p.width;i.top+=d.top-d.marginTop,i.bottom=m+d.top,i.left+=d.left-d.marginLeft,i.right=f+d.left}}var _="number"==typeof(n=n||0);return i.left+=_?n:n.left||0,i.top+=_?n:n.top||0,i.right-=_?n:n.right||0,i.bottom-=_?n:n.bottom||0,i}function A(e){return e.width*e.height}function j(e,t,n,r,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=E(n,r,i,a),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map((function(e){return D({key:e},s[e],{area:A(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function $(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=r?O(t):h(t,c(n));return C(n,a,r)}function P(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Y(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function N(e,t,n){n=n.split("-")[0];var r=P(e),a={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),o=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return a[o]=t[o]+t[l]/2-r[l]/2,a[s]=n===s?t[s]-r[c]:t[Y(s)],a}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function I(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=z(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=M(t.offsets.popper),t.offsets.reference=M(t.offsets.reference),t=n(t,e))})),t}function F(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=$(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=j(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=I(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function H(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function R(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var a=t[r],i=a?""+a+n:e;if(void 0!==document.body.style[i])return i}return null}function B(){return this.state.isDestroyed=!0,H(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function V(e,t,n,r){var a="BODY"===e.nodeName,i=a?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),a||V(l(i.parentNode),t,n,r),r.push(i)}function W(e,t,n,r){n.updateBound=r,q(e).addEventListener("resize",n.updateBound,{passive:!0});var a=l(e);return V(a,"scroll",n.updateBound,n.scrollParents),n.scrollElement=a,n.eventsEnabled=!0,n}function U(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function K(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Z(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function G(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Z(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var J=n&&/Firefox/i.test(navigator.userAgent);function X(e,t,n){var r=z(e,(function(e){return e.name===t})),a=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!a){var i="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return a}var Q=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ee=Q.slice(3);function te(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ee.indexOf(e),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}var ne="flip",re="clockwise",ae="counterclockwise";function ie(e,t,n,r){var a=[0,0],i=-1!==["right","left"].indexOf(r),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(z(o,(function(e){return-1!==e.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return(c=c.map((function(e,r){var a=(1===r?!i:i)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],o=a[2];if(!i)return e;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}return M(s)[t]/100*i}return"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i}(e,a,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){Z(n)&&(a[t]+=n*("-"===e[r-1]?-1:1))}))})),a}var oe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var a=e.offsets,i=a.reference,o=a.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:k({},l,i[l]),end:k({},l,i[l]+i[c]-o[c])};e.offsets.popper=D({},o,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,a=e.offsets,i=a.popper,o=a.reference,s=r.split("-")[0],l=void 0;return l=Z(+n)?[+n,0]:ie(n,i,o,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||m(e.instance.popper);e.instance.reference===n&&(n=m(n));var r=R("transform"),a=e.instance.popper.style,i=a.top,o=a.left,s=a[r];a.top="",a.left="",a[r]="";var l=E(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);a.top=i,a.left=o,a[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),k({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),k({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=D({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,a=e.placement.split("-")[0],i=Math.floor,o=-1!==["top","bottom"].indexOf(a),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],i=e.offsets,s=i.popper,l=i.reference,c=-1!==["left","right"].indexOf(a),u=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),m=c?"left":"top",f=c?"bottom":"right",h=P(r)[u];l[f]-h<s[p]&&(e.offsets.popper[p]-=s[p]-(l[f]-h)),l[p]+h>s[f]&&(e.offsets.popper[p]+=l[p]+h-s[f]),e.offsets.popper=M(e.offsets.popper);var _=l[p]+l[u]/2-h/2,v=o(e.instance.popper),g=parseFloat(v["margin"+d]),y=parseFloat(v["border"+d+"Width"]),b=_-e.offsets.popper[p]-g-y;return b=Math.max(Math.min(s[u]-h,b),0),e.arrowElement=r,e.offsets.arrow=(k(n={},p,Math.round(b)),k(n,m,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(H(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=E(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],a=Y(r),i=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case ne:o=[r,a];break;case re:o=te(r);break;case ae:o=te(r,!0);break;default:o=t.behavior}return o.forEach((function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],a=Y(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),m=d(c.left)<d(n.left),f=d(c.right)>d(n.right),h=d(c.top)<d(n.top),_=d(c.bottom)>d(n.bottom),v="left"===r&&m||"right"===r&&f||"top"===r&&h||"bottom"===r&&_,g=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(g&&"start"===i&&m||g&&"end"===i&&f||!g&&"start"===i&&h||!g&&"end"===i&&_),b=!!t.flipVariationsByContent&&(g&&"start"===i&&f||g&&"end"===i&&m||!g&&"start"===i&&_||!g&&"end"===i&&h),w=y||b;(p||v||w)&&(e.flipped=!0,(p||v)&&(r=o[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=D({},e.offsets.popper,N(e.instance.popper,e.offsets.reference,e.placement)),e=I(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,a=r.popper,i=r.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return a[o?"left":"top"]=i[n]-(s?a[o?"width":"height"]:0),e.placement=Y(t),e.offsets.popper=M(a),e}},hide:{order:800,enabled:!0,fn:function(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=z(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,a=e.offsets.popper,i=z(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==i?i:t.gpuAcceleration,s=m(e.instance.popper),l=S(s),c={position:a.position},u=function(e,t){var n=e.offsets,r=n.popper,a=n.reference,i=Math.round,o=Math.floor,s=function(e){return e},l=i(a.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?i:o:s,m=t?i:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!J),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",f=R("transform"),h=void 0,_=void 0;if(_="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,h="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+h+"px, "+_+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var v="bottom"===d?-1:1,g="right"===p?-1:1;c[d]=_*v,c[p]=h*g,c.willChange=d+", "+p}var y={"x-placement":e.placement};return e.attributes=D({},y,e.attributes),e.styles=D({},c,e.styles),e.arrowStyles=D({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return G(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&G(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,a){var i=$(a,t,e,n.positionFixed),o=j(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),G(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},se=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=a(this.update.bind(this)),this.options=D({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(D({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=D({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return D({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return x(e,[{key:"update",value:function(){return F.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return U.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),e}();se.Utils=("undefined"!=typeof window?window:e).PopperUtils,se.placements=Q,se.Defaults=oe,t.a=se}).call(this,n("c8ba"))},f260:function(e,t,n){!function(e){"use strict";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",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("c1df"))},f3c1:function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var a=n(),i=16-(a-r);if(r=a,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},f3ff:function(e,t,n){!function(e){"use strict";var t={1:"",2:"੨",3:"੩",4:"",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:""},n={"":"1","੨":"2","੩":"3","":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","":"0"};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 n[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,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n("c1df"))},f5df:function(e,t,n){var r=n("00ee"),a=n("c6b6"),i=n("b622")("toStringTag"),o="Arguments"==a(function(){return arguments}());e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?a(t):"Object"==(r=a(t))&&"function"==typeof t.callee?"Arguments":r}},f6b4:function(e,t,n){!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"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],r=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],a=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],i=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:a,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"},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}})}(n("c1df"))},f772:function(e,t,n){var r=n("5692"),a=n("90e3"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},f8af:function(e,t,n){var r=n("2474");e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},f909:function(e,t,n){var r=n("7e64"),a=n("b760"),i=n("72af"),o=n("4f50"),s=n("1a8c"),l=n("9934"),c=n("8adb");e.exports=function e(t,n,u,d,p){t!==n&&i(n,(function(i,l){if(p||(p=new r),s(i))o(t,n,l,u,e,d,p);else{var m=d?d(c(t,l),i,l+"",t,n,p):void 0;void 0===m&&(m=i),a(t,l,m)}}),l)}},fa21:function(e,t,n){var r=n("7530"),a=n("2dcb"),i=n("eac5");e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(a(e))}},facd:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^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],a=/^(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;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,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:r,longMonthsParse:r,shortMonthsParse:r,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",w:"één week",ww:"%d weken",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}})}(n("c1df"))},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!=typeof window){var r=window.document.currentScript,a=n("8875");r=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n("4160"),n("b64b"),n("159b"),n("a4d3"),n("4de4"),n("e439"),n("dbb4");var c={classes:{avatarContainer:"relative flex items-center justify-center w-32 h-32 p-5 mt-2 bg-transparent border-2 border-dashed rounded-md cursor-pointer avatar-upload border-gray-300",overlay:"absolute top-0 left-0 z-10 flex items-center justify-center w-full h-full opacity-0 overlay",overlayIcon:"mb-2 text-3xl leading-normal text-white",image:"absolute opacity-100 h-20 w-20",previewAvatarClass:"flex flex-col items-center",defaultIcon:"mb-2 text-xl leading-6 text-gray-400",defaultLabel:"text-xs leading-4 text-center text-gray-400"},variants:{}},u={classes:"px-2 py-1 text-sm bg-success text-green-800 uppercase font-normal text-center",variants:{success:"px-2 py-1 text-sm bg-success text-green-800 uppercase font-normal text-center",info:"px-2 py-1 text-sm bg-info text-teal-900 uppercase text-center font-normal",danger:"px-2 py-1 text-sm bg-red-100 text-danger uppercase font-normal text-center",warning:"px-2 py-1 text-sm bg-warning text-indigo-900 uppercase font-normal text-center"}},d={classes:{button:"inline-flex items-center justify-center text-white font-normal transition duration-150 ease-in-out border border-transparent focus:outline-none bg-gray-400 whitespace-nowrap",disabledClass:"cursor-not-allowed",loadingIconContainer:"pr-3",loadingIcon:"text-current animate-spin"},sizes:{xs:{button:"px-2.5 py-1.5 text-xs leading-4 rounded",loadingIcon:"w-3 h-3 -ml-1"},sm:{button:"px-3 py-2 text-sm leading-4 rounded-md",loadingIcon:"w-3 h-3 -ml-2"},md:{button:"py-2 px-4 text-sm leading-5 rounded",loadingIcon:"w-4 h-4 -ml-2"},lg:{button:"py-2 px-4 text-base leading-6 rounded-md",loadingIcon:"w-6 h-6 -ml-2"},xl:{button:"py-3 px-6 text-base leading-6 rounded-md",loadingIcon:"w-6 h-6 -ml-2"}},variants:{primary:{button:"inline-flex items-center justify-center text-white font-normal transition duration-150 ease-in-out border border-transparent focus:outline-none bg-primary-500 hover:bg-opacity-75 whitespace-nowrap"},success:{button:"inline-flex items-center justify-center text-white font-normal transition duration-150 ease-in-out border border-transparent focus:outline-none bg-success hover:bg-opacity-75 whitespace-nowrap"},danger:{button:"inline-flex items-center justify-center text-white transition duration-150 ease-in-out border border-transparent focus:outline-none bg-danger hover:bg-opacity-75 whitespace-nowrap"},primaryLight:{button:"inline-flex items-center justify-center text-white font-normal transition duration-150 ease-in-out border border-transparent focus:outline-none bg-primary-400 hover:bg-opacity-75 whitespace-nowrap"},warning:{button:"inline-flex items-center justify-center text-white font-normal transition duration-150 ease-in-out border border-transparent focus:outline-none bg-warning hover:bg-opacity-75 whitespace-nowrap"},info:{button:"inline-flex items-center justify-center text-white font-normal transition duration-150 ease-in-out border border-transparent focus:outline-none bg-info hover:bg-opacity-75 whitespace-nowrap"},primaryOutline:{button:"inline-flex justify-center items-center focus:outline-none font-normal transition ease-in-out duration-150 border border-transparent border border-solid border-primary-500 text-primary-500 hover:bg-primary-200 shadow-inner whitespace-nowrap"},successOutline:{button:"inline-flex justify-center items-center focus:outline-none font-normal transition ease-in-out duration-150 border border-transparent border border-solid border-success text-success hover:bg-success shadow-inner hover:bg-opacity-25 whitespace-nowrap"},dangerOutline:{button:"inline-flex justify-center items-center focus:outline-none font-normal transition ease-in-out duration-150 border border-transparent border border-solid border-danger text-danger hover:bg-danger shadow-inner hover:bg-opacity-25 whitespace-nowrap"},primaryLightOutline:{button:"inline-flex justify-center items-center focus:outline-none font-normal transition ease-in-out duration-150 border border-transparent border border-solid border-primary-400 text-primary-400 hover:bg-primary-100 shadow-inner whitespace-nowrap"},warningOutline:{button:"inline-flex justify-center items-center focus:outline-none font-normal transition ease-in-out duration-150 border border-transparent border border-solid border-warning text-warning hover:bg-warning shadow-inner hover:bg-opacity-25 whitespace-nowrap"},infoOutline:{button:"inline-flex justify-center items-center focus:outline-none font-normal transition ease-in-out duration-150 border border-transparent border border-solid border-info text-info hover:bg-info shadow-inner hover:bg-opacity-25 whitespace-nowrap"},outline:{button:"inline-flex justify-center items-center focus:outline-none font-normal transition ease-in-out duration-150 border border-transparent border border-solid border-gray-400 text-gray-400 hover:bg-gray-200 shadow-inner whitespace-nowrap"}}},p={classes:{listContainer:"flex flex-wrap py-4 rounded list-reset bg-grey-300 text-grey-500",itemContainer:"pr-2 text-sm",base:"pr-2 m-0 leading-5 text-gray-900 text-sm",separator:"px-1"}},m={classes:{container:"bg-white rounded-lg shadow",header:"px-5 py-4 text-black border-b border-solid border-gray-300",body:"px-4 py-5 sm:p-6",footer:"px-5 py-4 border-t border-solid sm:px-6 border-gray-300"},variants:{danger:{container:"bg-white rounded-lg shadow border border-danger"}}},f={classes:{container:"checkbox flex items-center",label:"cursor-pointer text-primary-800",input:"cursor-pointer flex-shrink-0 inline-block text-primary-500 align-middle bg-white border border-gray-300 rounded outline-none appearance-none select-none transition duration-200 ease-in-out"},variants:{success:{input:"cursor-pointer flex-shrink-0 inline-block text-success align-middle bg-white border border-gray-300 rounded outline-none appearance-none select-none transition duration-200 ease-in-out",label:"cursor-pointer text-primary-800"},danger:{input:"cursor-pointer flex-shrink-0 inline-block text-danger align-middle bg-white border border-gray-300 rounded outline-none appearance-none select-none transition duration-200 ease-in-out",label:"cursor-pointer text-primary-800"},flatTable:{container:"checkbox flex justify-center items-center"}},sizes:{sm:{input:"w-4 h-4",label:"ml-2"},default:{input:"w-6 h-6",label:"ml-3 text-lg"},lg:{input:"w-8 h-8",label:"ml-4 text-xl"}}},h={classes:"w-full text-gray-300",variants:{primary:"w-full text-primary-500",danger:"w-full text-danger"}},_={classes:{container:"relative",activator:"cursor-pointer",divider:"border-t border-solid border-gray-200 my-2 mx-0 overflow-hidden",itemContainer:"z-10 p-2 max-h-60 text-base text-left list-none rounded border-0 shadow bg-white text-black overflow-auto sw-scroll",item:"flex p-2 text-sm font-light text-left text-black bg-transparent rounded cursor-pointer none hover:bg-gray-200 whitespace-nowrap",itemIcon:"w-5 h-5 mr-3 text-secondary"},variants:{}},v={classes:{editorContainer:"relative",editorMenuBar:"editor-container md:flex hidden",menuContainer:"flex flex-wrap space-x-1",icon:"h-4 fill-current cursor-pointer",iconContainer:"flex items-center justify-center h-8 w-8 hover:bg-gray-200",activeIconContainer:"bg-gray-300 flex items-center justify-center h-8 w-8 cursor-pointer",editor:"box-border w-full mt-2 text-sm leading-8 text-left bg-white editor__content relative",proseMirror:"p-2",editorDropdownMenuContainer:"flex justify-end md:hidden",menuDropdown:{container:"flex justify-end md:hidden",activator:"w-6 h-6",menuContainer:"gap-3 grid grid-cols-4 w-48",iconContainer:"flex items-center justify-center h-8 w-8 hover:bg-gray-200",activeIconContainer:"bg-gray-300 flex items-center justify-center h-8 w-8 cursor-pointer",icon:"h-4 fill-current cursor-pointer"}},variants:{headerEditor:{editorContainer:"relative header-editior",editorMenuBar:"absolute w-full bg-white rounded-t top-0 border-gray-400 px-2 py-3 m-1 border-b editor-menu-bar md:flex hidden",menuContainer:"flex space-x-1",icon:"h-4 fill-current cursor-pointer",iconContainer:"flex items-center justify-center h-8 w-8 z-5 hover:bg-gray-200",activeIconContainer:"bg-gray-300 flex items-center justify-center h-8 w-8 cursor-pointer z-5",editor:"box-border w-full mt-2 text-sm leading-8 text-left bg-white editor__content",proseMirror:"p-3 pt-2 md:pt-16"}}},g={classes:{container:"flex flex-col items-center justify-center mt-16",slotContainer:"flex flex-col items-center justify-center",titleContainer:"mt-2",title:"font-medium",descriptionContainer:"mt-2",description:"mt-1 text-base font-extralight text-gray-500 text-center flex",actionsContainer:"mt-8"}},y={classes:{container:"relative z-20 p-8 rounded bg-gray-200",body:"flex flex-col md:flex-row"},variants:{}},b={classes:{container:"relative flex items-center w-full border border-solid rounded-md bg-white",prefixContainer:"flex items-center h-full py-0 pl-2",prefix:"text-black font-medium text-sm whitespace-nowrap",baseInput:"not-italic font-normal leading-tight text-left outline-none rounded-md input-field box-border-2 placeholder-gray-400 text-black w-full h-10 px-3 py-2 text-sm",rightIconInput:"not-italic font-normal leading-tight text-left outline-none rounded-md input-field box-border-2 placeholder-gray-400 text-black w-full h-10 pl-3 pr-1 py-2 text-sm",leftIconInput:"not-italic font-normal leading-tight text-left outline-none rounded-md input-field box-border-2 placeholder-gray-400 text-black w-full h-10 pl-1 pr-3 py-2 text-sm",rightIconContainer:"flex flex-col justify-center align-middle pr-2",leftIconContainer:"flex flex-col justify-center align-middle",containerFocusIn:"border-primary-500",containerFocusOut:"border-gray-300 focus:border-transparent"},variants:{danger:{container:"relative flex items-center w-full border border-solid border-danger rounded-md bg-white",baseInput:"not-italic font-normal leading-tight text-left rounded-md outline-none input-field box-border-2 placeholder-gray-400 text-black w-full h-10 px-3 py-2 text-sm"},disabled:{container:"relative flex items-center w-full border border-solid bg-gray-100 border-gray-300 rounded-md",baseInput:"not-italic font-normal leading-tight text-left rounded-md outline-none input-field box-border-2 placeholder-gray-500 bg-gray-100 text-gray-600 w-full h-10 px-3 py-2 text-sm"},success:{container:"relative flex items-center w-full border border-solid border-success rounded-md bg-white",baseInput:"not-italic font-normal leading-tight text-left rounded-md outline-none input-field box-border-2 placeholder-gray-400 text-black w-full h-10 px-3 py-2 text-sm"}}},w={classes:{container:"w-full relative",label:"text-sm",requiredSign:"text-danger",inputContainer:"mt-1",errorText:"mt-1 text-danger text-sm",tooltipContainer:"absolute top-0 right-0",tooltipIconContainer:"",tooltipIcon:"w-6 h-6 text-current text-gray-400 cursor-pointer",tooltip:"px-2.5 py-1 text-sm text-white rounded bg-black",popoverClass:"",popoverBaseClass:"",popoverWrapperClass:"",popoverArrowClass:"",popoverInnerClass:"",openClass:""},variants:{horizontal:{container:"grid md:grid-cols-12",inputContainer:"col-span-8 md:col-start-5 md:col-ends-12",label:"relative pr-0 pt-1 mr-3 text-sm md:col-span-4 md:text-right"}}},x={classes:"text-sm not-italic font-medium leading-5 text-primary-800",variants:{}},k={classes:{container:"px-4 list-none",itemContainer:"cursor-pointer pb-2 pr-0 text-sm font-medium leading-5 text-gray-500 flex items-center",title:"",iconContainer:"mr-3",listGroup:{container:"p-0 list-none",titleContainer:"flex items-center justify-between pb-2 pr-0 text-sm font-medium leading-5 text-gray-500 cursor-pointer",title:"text-sm",icon:"w-5 h-5 leading-4 transform rotate-90",itemsContainer:"pl-4 list-none",itemContainer:"cursor-pointer pb-2 pr-0 text-sm font-medium leading-5 text-gray-500 flex items-center"},active:{itemContainer:"cursor-pointer pb-2 pr-0 text-sm font-medium flex items-center leading-5 text-primary-500",listGroup:{container:"p-0 list-none",titleContainer:"flex items-center justify-between pb-2 pr-0 text-sm font-medium leading-5 text-primary-500 cursor-pointer",title:"text-sm",icon:"w-5 h-5 leading-4 ",itemsContainer:"pl-4 list-none",itemContainer:"cursor-pointer pb-2 pr-0 text-sm font-medium leading-5 text-gray-500 flex items-center"}}},variants:{sidebar:{container:"p-0 m-0 list-none mt-10 first:mt-6",itemContainer:"cursor-pointer px-0 py-3 flex items-center block border-l-3 border-solid border-gray-100",title:"text-sm not-italic font-medium leading-5 text-black",iconContainer:"inline-block overflow-visible h-5 w-5 ml-6 text-sm text-gray-500 mr-5",active:{itemContainer:"cursor-pointer px-0 py-3 text-primary-500 flex items-center border-l-3 border-solid border-primary-500 bg-gray-100 ",title:"text-sm not-italic font-medium leading-5 text-black text-primary-500",iconContainer:"inline-block overflow-visible h-5 w-5 ml-6 text-sm text-primary-500 mr-5"}},collapseSidebar:{container:"",itemContainer:"flex flex-row items-center h-10 text-sm px-4 hover:bg-gray-300 cursor-pointer text-gray-700 font-medium",title:"text-sm",iconContainer:"mr-4",listGroup:{container:"",titleContainer:"flex flex-row items-center h-10 text-sm px-4 hover:bg-gray-300 cursor-pointer text-gray-700 font-medium",title:"text-sm",icon:"h-4 w-4 transform rotate-90",itemsContainer:"transition-all duration-150 bg-gray-100",itemContainer:"flex flex-row items-center h-10 text-sm pl-12 hover:bg-gray-300 cursor-pointer"},active:{itemContainer:"flex flex-row items-center h-10 text-sm px-4 hover:bg-gray-300 cursor-pointer text-primary-500",title:"text-sm",iconContainer:"mr-4",listGroup:{container:"",titleContainer:"flex flex-row items-center h-10 text-sm px-4 hover:bg-gray-300 cursor-pointer font-medium text-primary-500",title:"",icon:"h-4 w-4",itemsContainer:"transition-all duration-150 bg-gray-100",itemContainer:"flex flex-row items-center h-10 text-sm pl-12 hover:bg-gray-300 cursor-pointer text-primary-500"}}}}},D={classes:{overlayContainer:"fixed z-50 inset-0 overflow-y-auto bg-black bg-opacity-25 flex justify-center min-h-screen items-center sm:p-0",base:"inline-block w-11/12 md:w-2/6 align-bottom bg-white rounded text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle m-6 sm:m-0",header:"py-4 px-6 text-black font-medium text-lg border-b border-solid border-gray-200 flex justify-between items-center",body:"modal body px-6 py-4 text-sm sw-scroll overflow-y-auto max-h-130",footer:"border-t border-solid border-gray-200 py-4 px-6 flex justify-end"},variants:{lg:{base:"inline-block align-bottom bg-white rounded text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle m-6 sm:m-0"}}},M={classes:"not-italic leading-tight text-left border border-solid rounded-md outline-none input-field placeholder-gray-400 border-gray-300 focus:border-primary-400 text-black w-full h-10 px-3 py-3 text-sm font-normal",variants:{danger:"not-italic leading-tight text-left border border-solid rounded-md outline-none input-field placeholder-gray-400 border-danger w-full h-10 px-3 py-3 text-sm font-normal",disabled:"not-italic leading-tight text-left border border-solid rounded-md outline-none input-field placeholder-gray-400 bg-gray-300 text-gray-600 w-full h-10 px-3 py-3 text-sm font-normal"}},S={classes:{container:"flex flex-wrap justify-between",pageTitle:"sw-page-title",actionsContainer:"flex items-center"}},C={classes:{container:"relative w-full",activator:"relative w-full cursor-pointer p-1",base:"flex flex-col absolute w-full top-0 bg-white rounded z-10 shadow-xl px-6 py-4",above:"bottom-full top-unset"}},L={classes:{container:"radio mt-2",label:"cursor-pointer text-primary-800",input:"cursor-pointer flex-shrink-0 inline-block text-primary-500 align-middle bg-white border border-gray-300 rounded-full outline-none appearance-none select-none transition duration-200 ease-in-out"},variants:{success:{input:"cursor-pointer flex-shrink-0 inline-block text-success align-middle bg-white border border-gray-300 rounded-full outline-none appearance-none select-none transition duration-200 ease-in-out",label:"cursor-pointer text-primary-800"},danger:{input:"cursor-pointer flex-shrink-0 inline-block text-danger align-middle bg-white border border-gray-300 rounded-full outline-none appearance-none select-none transition duration-200 ease-in-out",label:"cursor-pointer text-primary-800"}},sizes:{sm:{input:"w-4 h-4",label:"ml-2"},default:{input:"w-6 h-6",label:"ml-3 text-lg"},lg:{input:"w-8 h-8",label:"ml-4 text-xl"}}},T={classes:{container:"switch-container",switch:"switch",label:"relative block h-4 bg-white border border-solid cursor-pointer border-gray switch-label"}},O={classes:{tabNavContainer:"flex w-full pl-0 list-none border-b border-solid base-tabs border-gray-300",tabNavItem:"px-4 py-2 text-sm border-b-3 border-solid font-normal cursor-pointer md:px-8 hover:border-gray-500 text-gray-500 border-transparent transition ease-in-out duration-300 flex items-center",tabNavItemActive:"px-4 py-2 text-sm border-b-3 font-medium border-solid cursor-pointer md:px-8 text-black border-primary-500 transition ease-in-out duration-300 flex items-center"},variants:{}},E={classes:"text-left border border-solid box-border rounded not-italic leading-snug placeholder-gray-400 bg-white border-gray-300 focus:border-primary-400 outline-none w-full py-2 px-3 font-normal text-sm text-black",variants:{danger:"text-left border border-solid box-border rounded not-italic leading-snug placeholder-gray-400 border-danger outline-none w-full py-2 px-3 font-normal text-sm text-black",disabled:"text-left border border-solid box-border rounded not-italic leading-snug placeholder-gray-300 bg-gray-300 text-gray-900 w-full py-2 px-3 font-normal text-sm"}},A={classes:{enter:"opacity-0",enterTo:"opacity-100",enterActive:"transition-all duration-500 ease-in-out",leave:"opacity-100",leaveTo:"opacity-0",leaveActive:"transition-all ease-in-out"},variants:{dropdown:{enter:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",enterActive:"transition duration-100 ease-out",leave:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",leaveActive:"transition duration-75 ease-out"}}},j={classes:{tableComponentContainer:"flex flex-col relative mt-6 table-component",tableComponentFilterClear:"absolute cursor-pointer top-0 right-0 bottom-0 flex items-center justify-center pr-2 font-bold w-4",tableComponentTableWrapper:"w-full",baseTableStyle:"w-full border-separate table-auto mb-0 sw-border-gap-15",tableCaption:"absolute top-auto overflow-hidden",emptyTableMessage:"text-center text-gray-400 pt-3",thStyles:"relative px-4 py-3 text-gray-800 text-left align-middle tracking-widest uppercase whitespace-nowrap text-sm font-medium",thSortStyles:"cursor-pointer select-none",tdStyles:"text-left text-base h-20 px-4 py-6 align-middle bg-white font-light first:rounded-bl-md first:rounded-tl-md last:rounded-br-md last:rounded-tr-md",trStyles:"transition duration-300 ease-in-out hover:shadow-lg",paginationContainer:"flex justify-end",paginationDisabled:"cursor-auto pointer-events-none text-gray-400",paginationLeftIcon:"left chevron icon block px-3 py-2 not-italic cursor-pointer leading-tight bg-white border border-solid border-gray-100",pageItem:"left chevron icon block px-3 py-2 not-italic cursor-pointer leading-tight bg-white border border-solid border-gray-100",activePageItem:"bg-primary-500 text-white",paginationRightIcon:"right chevron icon block px-3 py-2 not-italic cursor-pointer leading-tight bg-white border border-solid border-gray-100",filterInput:"py-1 pl-3 pr-5 border border-solid border-gray-100 rounded-sm text-sm focus:border-primary-500 outline-none"},variants:{flatRows:{tableComponentContainer:"flex flex-col relative mt-6 table-component bg-white rounded-md flat-table",tableComponentFilterClear:"absolute cursor-pointer top-0 right-0 bottom-0 flex items-center justify-center pr-2 font-bold w-4",tableComponentTableWrapper:"w-full",baseTableStyle:"w-full border-separate table-auto mb-0 sw-border-gap-0",tableCaption:"absolute top-auto overflow-hidden",emptyTableMessage:"text-center text-gray-400 pt-3",thStyles:"relative pt-6 pb-4 pl-2 pr-3 text-gray-600 text-left align-middle tracking-widest uppercase whitespace-nowrap text-sm font-medium",thSortStyles:"cursor-pointer select-none",tdStyles:"text-left text-base h-8 px-2 py-3 align-middle font-light first:rounded-bl-md md:first:border-b-0 md:border-b border-solid border-gray-200",trStyles:"transition duration-300 ease-in-out bg-white hover:bg-primary-50",paginationContainer:"flex justify-end",paginationDisabled:"cursor-auto pointer-events-none text-gray-400",paginationLeftIcon:"left chevron icon block px-3 py-2 not-italic cursor-pointer leading-tight bg-white border border-solid border-gray-100",pageItem:"left chevron icon block px-3 py-2 not-italic cursor-pointer leading-tight bg-white border border-solid border-gray-100",activePageItem:"bg-primary-500 text-white",paginationRightIcon:"right chevron icon block px-3 py-2 not-italic cursor-pointer leading-tight bg-white border border-solid border-gray-100",filterInput:"py-1 pl-3 pr-5 border border-solid border-gray-100 rounded-sm text-sm focus:border-primary-500 outline-none"},settingsTable:{tableComponentContainer:"flex flex-col relative mt-6 table-component",tableComponentFilterClear:"absolute cursor-pointer top-0 right-0 bottom-0 flex items-center justify-center pr-2 font-bold w-4",tableComponentTableWrapper:"w-full",baseTableStyle:"w-full border-separate table-auto mb-0 sw-border-gap-15",tableCaption:"absolute top-auto overflow-hidden",emptyTableMessage:"text-center text-gray-400 pt-3",thStyles:"relative p-3 text-gray-800 text-left align-middle tracking-widest uppercase whitespace-nowrap text-sm font-medium",thSortStyles:"cursor-pointer select-none",tdStyles:"text-left text-base h-20 px-4 py-6 align-middle font-light bg-gray-100 first:rounded-bl-md first:rounded-tl-md last:rounded-br-md last:rounded-tr-md",trStyles:"transition duration-300 ease-in-out hover:shadow-lg",paginationContainer:"flex justify-end",paginationDisabled:"cursor-auto pointer-events-none text-gray-400",paginationLeftIcon:"left chevron icon block px-3 py-2 not-italic cursor-pointer leading-tight bg-white border border-solid border-gray-100",pageItem:"left chevron icon block px-3 py-2 not-italic cursor-pointer leading-tight bg-white border border-solid border-gray-100",activePageItem:"bg-primary-500 text-white",paginationRightIcon:"right chevron icon block px-3 py-2 not-italic cursor-pointer leading-tight bg-white border border-solid border-gray-100",filterInput:"py-1 pl-3 pr-5 border border-solid border-gray-100 rounded-sm text-sm focus:border-primary-500 outline-none"}}},$={classes:{wizardContainer:"wizard",wizardStepsContainer:"relative flex items-center justify-center",navigationContainer:"flex flex-col items-center justify-between h-32 step-indicator",progressesContainer:"box-border relative flex justify-around mt-16 border-4 border-gray-200 border-solid rounded-md indicator-line",progressesSubContainer:"absolute flex justify-between center",progress:"rounded-full steps cursor-pointer",currentStep:"bg-white border-primary-500",previousStep:"bg-primary-500 border-primary-500 flex justify-center items-center",nextStep:"border-gray-200 bg-white",icon:"flex items-center justify-center w-full h-full text-sm font-black text-center text-white",stepContainer:"w-full mb-8 bg-white border border-gray-200 border-solid rounded p-8 lg:w-9/12 md:w-full",stepHeadingContainer:"heading-section",stepTitle:"text-2xl not-italic font-semibold leading-7 text-black",stepDescription:"w-full mt-2.5 mb-8 text-sm not-italic leading-snug text-gray-500 lg:w-7/12 md:w-7/12 sm:w-7/12"},variants:{}},P={SwAvatar:c,SwBadge:u,SwBreadcrumb:p,SwTab:O,SwButton:d,SwCard:m,SwCheckbox:f,SwDivider:h,SwDropdown:_,SwEditor:v,SwEmptyTablePlaceholder:g,SwFilterWrapper:y,SwInput:b,SwInputGroup:w,SwLabel:x,SwList:k,SwModal:D,SwMoney:M,SwPageHeader:S,SwPopup:C,SwRadio:L,SwSwitch:T,SwTextarea:E,SwTransition:A,SwTable:j,SwWizard:$},Y=(n("c740"),n("b0c0"),n("ac1f"),n("5319"),n("42454")),N=n.n(Y),z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=n.props;Object.keys(t).forEach((function(e){var n={default:function(){return t[e]}};r[e]=n})),e.component(n.name,l(l({},n),{props:r}))},I=function(e,t,n,r,a,i){var o=function(e,t){var n=[{name:"SwDropdownItem",themeName:"SwDropdown"},{name:"SwDropdownDivider",themeName:"SwDropdown"},{name:"SwTableComponent",themeName:"SwTable"},{name:"SwTableColumn",themeName:"SwTable"},{name:"Pagination",themeName:"SwTable"}],r=n.findIndex((function(e){return e.name==t}));return r>=0?e[n[r].themeName]:e[t]}(t,n),s=a[n],c=N()(s,o),u=r[n].props;return Object.keys(c).forEach((function(e){var t={default:function(){return c[e]}};u[e]=t})),e.extend(l(l({},r[n]),l({props:u},i)))},F=function(e,t){for(var n in t)if(n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z])(?=[a-z])/g,"$1-$2").toLowerCase()==e)return t[n]},H=(n("a9e3"),n("a566")),R=c.classes,B=c.variants;function q(e,t,n,r,a,i,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var V=q({components:{AvatarCropper:n.n(H).a},install:function(e,t){z(e,t,this)},props:{classes:{type:Object,default:function(){return R}},labels:{type:Object,default:function(){return{submit:"Submit",cancel:"Cancel"}}},enableCropper:{type:Boolean,default:!0},trigger:{type:String,default:"#pick-avatar"},previewAvatar:{type:String,default:null},cropperOptions:{type:Object,default:function(){return{autoCropArea:1,viewMode:1,movable:!0,zoomable:!0}}},outputQuality:{type:Number,default:.8},cropperOutputOptions:{type:Object,default:function(){return{width:150,height:150}}},label:{type:String,default:"Choose File"},variant:{type:String,required:!1,default:null},variants:{type:Object,default:function(){return B}}},data:function(){return{selectedImage:null}},computed:{avatarStyle:function(){var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},hasTrigger:function(){return void 0!==this.$options.propsData.trigger},hasIconSlot:function(){return!!this.$slots.icon},classesTheme:function(){return this.$theme&&this.$theme.SwAvatar?l(l({},this.classes),this.$theme.SwAvatar.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwAvatar?l(l({},this.variants),this.$theme.SwAvatar.variants):this.variants}},watch:{previewAvatar:function(e){this.selectedImage=e}},mounted:function(){if(!this.enableCropper&&this.hasTrigger){var e=document.querySelector(this.trigger);e?e.addEventListener("click",this.pickImage):this.$emit("error","No avatar make trigger found.","user")}},methods:{onFileChange:function(e){var t=this,n=e.target;if(this.file=n.files[0],n.files&&n.files[0]){var r=new FileReader;r.onload=function(e){t.selectedImage=e.target.result,t.$emit("changed",{file:t.file,image:t.selectedImage})},r.readAsDataURL(n.files[0])}},pickImage:function(e){this.$refs.file.click(),e.preventDefault(),e.stopPropagation()}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.enableCropper?n("div",[e.hasTrigger?e._e():n("div",{class:e.avatarStyle.avatarContainer,attrs:{id:"pick-avatar"}},[e.selectedImage?n("img",{class:e.avatarStyle.image,staticStyle:{animation:"fadeIn 2s ease"},attrs:{src:e.selectedImage}}):e._e(),e.selectedImage?e._e():n("div",{class:e.avatarStyle.previewAvatarClass},[e.hasIconSlot?n("div",{class:e.avatarStyle.defaultIcon},[e._t("icon")],2):e._e(),n("p",{class:e.avatarStyle.defaultLabel},[e._t("default",[e._v(e._s(e.label))])],2)])]),n("avatar-cropper",{attrs:{labels:e.labels,"cropper-options":e.cropperOptions,"output-options":e.cropperOutputOptions,"output-quality":e.outputQuality,"upload-handler":function(t){return e.$emit("uploadHandler",t)},trigger:e.trigger},on:{changed:function(t){return e.$emit("changed",t)},error:function(t){return e.$emit("handleUploadError",t)}}})],1):n("div",[e.hasTrigger?e._e():n("div",{class:e.avatarStyle.avatarContainer,on:{click:function(t){return e.$refs.file.click()}}},[e.selectedImage?n("img",{class:e.avatarStyle.image,staticStyle:{animation:"fadeIn 2s ease"},attrs:{src:e.selectedImage}}):e._e(),e.selectedImage?e._e():n("div",{class:e.avatarStyle.previewAvatarClass},[e.hasIconSlot?n("div",{class:e.avatarStyle.defaultIcon},[e._t("icon")],2):e._e(),n("p",{class:e.avatarStyle.defaultLabel},[e._t("default",[e._v(e._s(e.label))])],2)])]),n("input",{ref:"file",staticClass:"hidden",attrs:{type:"file"},on:{change:e.onFileChange}})])}),[],!1,null,null,null).exports,W=u.variants,U=q({name:"SwBadge",install:function(e,t){z(e,t,this)},props:{variants:{type:Object,default:function(){return W}},variant:{type:String,required:!1,default:""},classes:{type:String,default:u.classes},bgColor:{type:String,default:null},color:{type:String,default:null}},computed:{currentClass:function(){var e=F(this.variant,this.variantsTheme);return e||this.classesTheme},classesTheme:function(){return this.$theme&&this.$theme.SwBadge?l(l({},this.classes),this.$theme.SwBadge.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwBadge?l(l({},this.variants),this.$theme.SwBadge.variants):this.variants}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{class:e.currentClass,style:{backgroundColor:e.bgColor,color:e.color}},[e._t("default")],2)}),[],!1,null,null,null).exports,K=p.classes,Z=q({name:"SwBreadcrumb",install:function(e,t){z(e,t,this)},props:{classes:{type:Object,default:function(){return K}}},data:function(){return{breadcrumbItems:[]}},computed:{classesTheme:function(){return this.$theme&&this.$theme.SwBreadcrumb?l(l({},this.classes),this.$theme.SwBreadcrumb.classes):this.classes}},mounted:function(){this.breadcrumbItems=this.$children,this.setChilds()},methods:{setChilds:function(){var e=this;this.breadcrumbItems.forEach((function(t){t.classes=e.classesTheme}))}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",[n("ol",{class:e.classesTheme.listContainer},[e._t("default")],2)])}),[],!1,null,null,null).exports,G=q({name:"SwBreadcrumbItem",install:function(e,t){z(e,t,this)},props:{title:{type:String,default:String},to:{type:String,default:"#"},active:{type:Boolean,default:!1,required:!1}},data:function(){return{classes:{itemContainer:"",base:"",separator:""}}},computed:{hasRouteLink:function(){return!!this.$router}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{class:e.classes.itemContainer},[e.hasRouteLink?n("router-link",{class:e.classes.base,attrs:{to:e.to}},[e._v(" "+e._s(e.title)+" ")]):n("a",{class:e.classes.base,attrs:{href:e.to}},[e._v(e._s(e.title))]),e.active?e._e():n("span",{class:e.classes.separator},[e._v("/")])],1)}),[],!1,null,null,null).exports,J=q({functional:!0,props:{tag:{type:String,default:"button",required:!0}},render:function(e,t){return e(t.props.tag,t.data,t.children)}},void 0,void 0,!1,null,null,null).exports,X=d.classes,Q=d.variants,ee=d.sizes,te=q({name:"SwButton",components:{SwCustomTag:J},inheritAttrs:!1,install:function(e,t){z(e,t,this)},props:{tagName:{type:String,default:"button"},classes:{type:Object,default:function(){return X}},size:{type:String,required:!1,default:"md"},sizes:{type:Object,default:function(){return ee}},loading:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},variant:{type:String,required:!1,default:"primary"},variants:{type:Object,default:function(){return Q}}},computed:{isAnIntertiaLink:function(){return void 0!==this.href&&this.isInertiaLinkComponentAvailable},isARouterLink:function(){return!!this.$router},getRenderElement:function(){if(this.to){if(this.isARouterLink)return"router-link";if(this.isAnIntertiaLink)return this.$options.components.InertiaLink}return this.href?"a":this.tagName},iconStyle:function(){var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},buttonStyle:function(){var e=[],t=F(this.variant,this.variantsTheme),n=F(this.size,this.sizes);return e.push(t?t.button:this.classesTheme.button),n&&n.button&&e.push(n.button),this.disabled&&e.push(t&&t.disabledClass?t.disabledClass:this.classesTheme.disabledClass),e},loadingIconStyle:function(){var e=[],t=F(this.size,this.sizes);return e.push(this.classesTheme.loadingIcon),t&&t.loadingIcon&&e.push(t.loadingIcon),e},isLoading:function(){return!!this.loading},hasLoaderSlot:function(){return!!this.$slots.loader},classesTheme:function(){return this.$theme&&this.$theme.SwButton?l(l({},this.classes),this.$theme.SwButton.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwButton?l(l({},this.variants),this.$theme.SwButton.variants):this.variants}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-custom-tag",e._g(e._b({class:e.buttonStyle,attrs:{tag:e.getRenderElement,disabled:e.disabled}},"sw-custom-tag",e.$attrs,!1),e.$listeners),[e.isLoading?n("div",{class:e.iconStyle.loadingIconContainer},[e.hasLoaderSlot?e._t("loader"):n("svg",{class:e.loadingIconStyle,attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}},[n("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),n("path",{staticClass:"opacity-75",attrs:{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}})])],2):e._e(),e._t("default")],2)}),[],!1,null,null,null).exports,ne=m.classes,re=m.variants,ae=q({name:"SwCard",install:function(e,t){z(e,t,this)},props:{classes:{type:Object,default:function(){return ne}},variants:{type:Object,default:function(){return re}},variant:{type:String,default:null}},computed:{cardStyle:function(){var e={};return this.variant&&(e=F(this.variant,this.variantsTheme)),l(l({},this.classesTheme),e)},hasHeaderSlot:function(){return!!this.$slots.header},hasFooterSlot:function(){return!!this.$slots.footer},classesTheme:function(){return this.$theme&&this.$theme.SwCard?l(l({},this.classes),this.$theme.SwCard.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwCard?l(l({},this.variants),this.$theme.SwCard.variants):this.variants}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.cardStyle.container},[e.hasHeaderSlot?n("div",{class:e.cardStyle.header},[e._t("header")],2):e._e(),n("div",{class:e.cardStyle.body},[e._t("default")],2),e.hasFooterSlot?n("div",{class:e.cardStyle.footer},[e._t("footer")],2):e._e()])}),[],!1,null,null,null).exports;function ie(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 oe(e,t){if(e){if("string"==typeof e)return ie(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)?ie(e,t):void 0}}function se(e){return function(e){if(Array.isArray(e))return ie(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||oe(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.")}()}n("caad"),n("c975"),n("a434"),n("d3b7"),n("25f0"),n("2532"),n("e01a"),n("d28b"),n("a630"),n("e260"),n("3ca3"),n("ddb0"),n("fb6a");var le=f.classes,ce=f.variants,ue=f.sizes,de=q({name:"SwCheckbox",inheritAttrs:!1,model:{prop:"modelValue",event:"change"},install:function(e,t){z(e,t,this)},props:{value:{type:[Boolean,Number,String]},modelValue:{default:!1},trueValue:{default:!0},falseValue:{default:!1},classes:{type:Object,default:function(){return le}},variants:{type:Object,default:function(){return ce}},sizes:{type:Object,default:function(){return ue}},label:{type:String,default:null},size:{type:String,required:!1,default:"default"},variant:{type:String,required:!1,default:""},id:{type:[String,Number],required:!1,default:function(){return"sw_".concat(Math.random().toString(36).substr(2,9))}}},computed:{shouldBeChecked:function(){return this.modelValue instanceof Array?this.modelValue.includes(this.value):this.modelValue===this.trueValue},checkBoxStyle:function(){var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},lebelStyle:function(){var e=F(this.size,this.sizes);return[this.checkBoxStyle.label,e.label]},inputStyle:function(){var e=F(this.size,this.sizes);return[this.checkBoxStyle.input,e.input]}},methods:{updateInput:function(e){var t=e.target.checked;if(this.modelValue instanceof Array){var n=se(this.modelValue);t?n.push(this.value):n.splice(n.indexOf(this.value),1),this.$emit("change",n)}else this.$emit("change",t?this.trueValue:this.falseValue)},classesTheme:function(){return this.$theme&&this.$theme.SwCheckbox?l(l({},this.classes),this.$theme.SwCheckbox.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwCheckbox?l(l({},this.variants),this.$theme.SwCheckbox.variants):this.variants}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.checkBoxStyle.container},[n("input",e._b({class:e.inputStyle,attrs:{id:e.id,type:"checkbox"},domProps:{checked:e.shouldBeChecked,value:e.value},on:{change:e.updateInput,keyup:function(t){return e.$emit("keyup",t)},blur:function(t){return e.$emit("blur",t)}}},"input",e.$attrs,!1)),e.label?n("label",{class:e.lebelStyle,attrs:{for:e.id}},[e._v(e._s(e.label))]):e._e()])}),[],!1,null,null,null).exports,pe=h.classes,me=h.variants,fe=q({name:"SwDivider",install:function(e,t){z(e,t,this)},props:{classes:{type:String,default:function(){return pe}},variants:{type:Object,default:function(){return me}},variant:{type:String,default:""}},computed:{dividerStyle:function(){var e=this.classesTheme;return this.variant&&(e=F(this.variant,this.variantsTheme)),e},classesTheme:function(){return this.$theme&&this.$theme.SwDivider?l(l({},this.classes),this.$theme.SwDivider.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwDivider?l(l({},this.variants),this.$theme.SwDivider.variants):this.variants}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("hr",{class:e.dividerStyle})}),[],!1,null,null,null).exports,he=n("e67d"),_e=n.n(he);function ve(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function ge(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ye(e){var t=ge(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function be(e){return e instanceof ge(e).Element||e instanceof Element}function we(e){return e instanceof ge(e).HTMLElement||e instanceof HTMLElement}function xe(e){return e?(e.nodeName||"").toLowerCase():null}function ke(e){return((be(e)?e.ownerDocument:e.document)||window.document).documentElement}function De(e){return ve(ke(e)).left+ye(e).scrollLeft}function Me(e){return ge(e).getComputedStyle(e)}function Se(e){var t=Me(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Ce(e,t,n){void 0===n&&(n=!1);var r,a,i=ke(t),o=ve(e),s=we(t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!n)&&(("body"!==xe(t)||Se(i))&&(l=(r=t)!==ge(r)&&we(r)?{scrollLeft:(a=r).scrollLeft,scrollTop:a.scrollTop}:ye(r)),we(t)?((c=ve(t)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=De(i))),{x:o.left+l.scrollLeft-c.x,y:o.top+l.scrollTop-c.y,width:o.width,height:o.height}}function Le(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Te(e){return"html"===xe(e)?e:e.assignedSlot||e.parentNode||e.host||ke(e)}function Oe(e){return["html","body","#document"].indexOf(xe(e))>=0?e.ownerDocument.body:we(e)&&Se(e)?e:Oe(Te(e))}function Ee(e,t){void 0===t&&(t=[]);var n=Oe(e),r="body"===xe(n),a=ge(n),i=r?[a].concat(a.visualViewport||[],Se(n)?n:[]):n,o=t.concat(i);return r?o:o.concat(Ee(Te(i)))}function Ae(e){return["table","td","th"].indexOf(xe(e))>=0}function je(e){if(!we(e)||"fixed"===Me(e).position)return null;var t=e.offsetParent;if(t){var n=ke(t);if("body"===xe(t)&&"static"===Me(t).position&&"static"!==Me(n).position)return n}return t}function $e(e){for(var t=ge(e),n=je(e);n&&Ae(n)&&"static"===Me(n).position;)n=je(n);return n&&"body"===xe(n)&&"static"===Me(n).position?t:n||function(e){for(var t=Te(e);we(t)&&["html","body"].indexOf(xe(t))<0;){var n=Me(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}var Pe="top",Ye="bottom",Ne="right",ze="left",Ie="auto",Fe=[Pe,Ye,Ne,ze],He="start",Re="end",Be="viewport",qe="popper",Ve=Fe.reduce((function(e,t){return e.concat([t+"-"+He,t+"-"+Re])}),[]),We=[].concat(Fe,[Ie]).reduce((function(e,t){return e.concat([t,t+"-"+He,t+"-"+Re])}),[]),Ue=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ke(e){var t=new Map,n=new Set,r=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&a(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||a(e)})),r}var Ze={placement:"bottom",modifiers:[],strategy:"absolute"};function Ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Je(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,a=t.defaultOptions,i=void 0===a?Ze:a;return function(e,t,n){void 0===n&&(n=i);var a,o,s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Ze),i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){d(),s.options=Object.assign(Object.assign(Object.assign({},i),s.options),n),s.scrollParents={reference:be(e)?Ee(e):e.contextElement?Ee(e.contextElement):[],popper:Ee(t)};var a=function(e){var t=Ke(e);return Ue.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{},{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));return s.orderedModifiers=a.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var i=a({state:s,name:t,instance:u,options:r}),o=function(){};l.push(i||o)}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Ge(t,n)){s.rects={reference:Ce(t,$e(n),"fixed"===s.options.strategy),popper:Le(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var a=s.orderedModifiers[r],i=a.fn,o=a.options,l=void 0===o?{}:o,d=a.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(a=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(a())}))}))),o}),destroy:function(){d(),c=!0}};if(!Ge(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Xe={passive:!0};function Qe(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function tt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nt(e){var t,n=e.reference,r=e.element,a=e.placement,i=a?Qe(a):null,o=a?et(a):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Pe:t={x:s,y:n.y-r.height};break;case Ye:t={x:s,y:n.y+n.height};break;case Ne:t={x:n.x+n.width,y:l};break;case ze:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?tt(i):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case He:t[c]=Math.floor(t[c])-Math.floor(n[u]/2-r[u]/2);break;case Re:t[c]=Math.floor(t[c])+Math.ceil(n[u]/2-r[u]/2)}}return t}var rt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function at(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.offsets,o=e.position,s=e.gpuAcceleration,l=e.adaptive,c=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(i),u=c.x,d=c.y,p=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),f=ze,h=Pe,_=window;if(l){var v=$e(n);v===ge(n)&&(v=ke(n)),a===Pe&&(h=Ye,d-=v.clientHeight-r.height,d*=s?1:-1),a===ze&&(f=Ne,u-=v.clientWidth-r.width,u*=s?1:-1)}var g,y=Object.assign({position:o},l&&rt);return s?Object.assign(Object.assign({},y),{},((g={})[h]=m?"0":"",g[f]=p?"0":"",g.transform=(_.devicePixelRatio||1)<2?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",g)):Object.assign(Object.assign({},y),{},((t={})[h]=m?d+"px":"",t[f]=p?u+"px":"",t.transform="",t))}var it={left:"right",right:"left",bottom:"top",top:"bottom"};function ot(e){return e.replace(/left|right|bottom|top/g,(function(e){return it[e]}))}var st={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,(function(e){return st[e]}))}function ct(e,t){var n,r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&((n=r)instanceof ge(n).ShadowRoot||n instanceof ShadowRoot)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function ut(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dt(e,t){return t===Be?ut(function(e){var t=ge(e),n=ke(e),r=t.visualViewport,a=n.clientWidth,i=n.clientHeight,o=0,s=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:a,height:i,x:o+De(e),y:s}}(e)):we(t)?function(e){var t=ve(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ut(function(e){var t=ke(e),n=ye(e),r=e.ownerDocument.body,a=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+De(e),s=-n.scrollTop;return"rtl"===Me(r||t).direction&&(o+=Math.max(t.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:o,y:s}}(ke(e)))}function pt(e,t,n){var r="clippingParents"===t?function(e){var t=Ee(Te(e)),n=["absolute","fixed"].indexOf(Me(e).position)>=0&&we(e)?$e(e):e;return be(n)?t.filter((function(e){return be(e)&&ct(e,n)&&"body"!==xe(e)})):[]}(e):[].concat(t),a=[].concat(r,[n]),i=a[0],o=a.reduce((function(t,n){var r=dt(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),dt(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function mt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function ft(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ht(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=void 0===r?e.placement:r,i=n.boundary,o=void 0===i?"clippingParents":i,s=n.rootBoundary,l=void 0===s?Be:s,c=n.elementContext,u=void 0===c?qe:c,d=n.altBoundary,p=void 0!==d&&d,m=n.padding,f=void 0===m?0:m,h=mt("number"!=typeof f?f:ft(f,Fe)),_=u===qe?"reference":qe,v=e.elements.reference,g=e.rects.popper,y=e.elements[p?_:u],b=pt(be(y)?y:y.contextElement||ke(e.elements.popper),o,l),w=ve(v),x=nt({reference:w,element:g,strategy:"absolute",placement:a}),k=ut(Object.assign(Object.assign({},g),x)),D=u===qe?k:w,M={top:b.top-D.top+h.top,bottom:D.bottom-b.bottom+h.bottom,left:b.left-D.left+h.left,right:D.right-b.right+h.right},S=e.modifiersData.offset;if(u===qe&&S){var C=S[a];Object.keys(M).forEach((function(e){var t=[Ne,Ye].indexOf(e)>=0?1:-1,n=[Pe,Ye].indexOf(e)>=0?"y":"x";M[e]+=C[n]*t}))}return M}function _t(e,t,n){return Math.max(e,Math.min(t,n))}function vt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function gt(e){return[Pe,Ne,Ye,ze].some((function(t){return e[t]>=0}))}var yt=Je({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=void 0===a||a,o=r.resize,s=void 0===o||o,l=ge(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,Xe)})),s&&l.addEventListener("resize",n.update,Xe),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Xe)})),s&&l.removeEventListener("resize",n.update,Xe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=nt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=void 0===r||r,i=n.adaptive,o=void 0===i||i,s={placement:Qe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),at(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),at(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},a=t.elements[e];we(a)&&xe(a)&&(Object.assign(a.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],a=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});we(r)&&xe(r)&&(Object.assign(r.style,i),Object.keys(a).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=void 0===a?[0,0]:a,o=We.reduce((function(e,n){return e[n]=function(e,t,n){var r=Qe(e),a=[ze,Pe].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[ze,Ne].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}(n,t.rects,i),e}),{}),s=o[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=void 0===a||a,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,f=void 0===m||m,h=n.allowedAutoPlacements,_=t.options.placement,v=Qe(_),g=l||(v!==_&&f?function(e){if(Qe(e)===Ie)return[];var t=ot(e);return[lt(e),t,lt(t)]}(_):[ot(_)]),y=[_].concat(g).reduce((function(e,n){return e.concat(Qe(n)===Ie?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?We:l,u=et(r),d=u?s?Ve:Ve.filter((function(e){return et(e)===u})):Fe,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var m=p.reduce((function(t,n){return t[n]=ht(e,{placement:n,boundary:a,rootBoundary:i,padding:o})[Qe(n)],t}),{});return Object.keys(m).sort((function(e,t){return m[e]-m[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:h}):n)}),[]),b=t.rects.reference,w=t.rects.popper,x=new Map,k=!0,D=y[0],M=0;M<y.length;M++){var S=y[M],C=Qe(S),L=et(S)===He,T=[Pe,Ye].indexOf(C)>=0,O=T?"width":"height",E=ht(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),A=T?L?Ne:ze:L?Ye:Pe;b[O]>w[O]&&(A=ot(A));var j=ot(A),$=[];if(i&&$.push(E[C]<=0),s&&$.push(E[A]<=0,E[j]<=0),$.every((function(e){return e}))){D=S,k=!1;break}x.set(S,$)}if(k)for(var P=function(e){var t=y.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},Y=f?3:1;Y>0&&"break"!==P(Y);Y--);t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=void 0===a||a,o=n.altAxis,s=void 0!==o&&o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,m=void 0===p||p,f=n.tetherOffset,h=void 0===f?0:f,_=ht(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Qe(t.placement),g=et(t.placement),y=!g,b=tt(v),w="x"===b?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,D=t.rects.popper,M="function"==typeof h?h(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):h,S={x:0,y:0};if(x){if(i){var C="y"===b?Pe:ze,L="y"===b?Ye:Ne,T="y"===b?"height":"width",O=x[b],E=x[b]+_[C],A=x[b]-_[L],j=m?-D[T]/2:0,$=g===He?k[T]:D[T],P=g===He?-D[T]:-k[T],Y=t.elements.arrow,N=m&&Y?Le(Y):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=z[C],F=z[L],H=_t(0,k[T],N[T]),R=y?k[T]/2-j-H-I-M:$-H-I-M,B=y?-k[T]/2+j+H+F+M:P+H+F+M,q=t.elements.arrow&&$e(t.elements.arrow),V=q?"y"===b?q.clientTop||0:q.clientLeft||0:0,W=t.modifiersData.offset?t.modifiersData.offset[t.placement][b]:0,U=x[b]+R-W-V,K=x[b]+B-W,Z=_t(m?Math.min(E,U):E,O,m?Math.max(A,K):A);x[b]=Z,S[b]=Z-O}if(s){var G="x"===b?Pe:ze,J="x"===b?Ye:Ne,X=x[w],Q=_t(X+_[G],X,X-_[J]);x[w]=Q,S[w]=Q-X}t.modifiersData[r]=S}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=n.elements.arrow,i=n.modifiersData.popperOffsets,o=Qe(n.placement),s=tt(o),l=[ze,Ne].indexOf(o)>=0?"height":"width";if(a&&i){var c=n.modifiersData[r+"#persistent"].padding,u=Le(a),d="y"===s?Pe:ze,p="y"===s?Ye:Ne,m=n.rects.reference[l]+n.rects.reference[s]-i[s]-n.rects.popper[l],f=i[s]-n.rects.reference[s],h=$e(a),_=h?"y"===s?h.clientHeight||0:h.clientWidth||0:0,v=m/2-f/2,g=c[d],y=_-u[l]-c[p],b=_/2-u[l]/2+v,w=_t(g,b,y),x=s;n.modifiersData[r]=((t={})[x]=w,t.centerOffset=w-b,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,a=n.element,i=void 0===a?"[data-popper-arrow]":a,o=n.padding,s=void 0===o?0:o;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&ct(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[r+"#persistent"]={padding:mt("number"!=typeof s?s:ft(s,Fe))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=ht(t,{elementContext:"reference"}),s=ht(t,{altBoundary:!0}),l=vt(o,r),c=vt(s,a,i),u=gt(l),d=gt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),bt=_.classes,wt=_.variants,xt=q({name:"SwDrodown",directives:{ClickOutside:_e.a},components:{},props:{variant:{type:String,default:null},variants:{type:Object,default:function(){return wt}},classes:{type:Object,default:function(){return bt}},position:{type:String,default:"bottom-end"},show:{type:Boolean,default:!1},transitionType:{type:String,default:"dropdown"},modifiers:{type:[Array,Object],default:function(){return[{name:"offset",options:{offset:[0,4]}}]}}},data:function(){return{toggle:this.show,children:[],activatorID:"sw_activator_id_".concat(Math.random().toString(36).substr(2,9)),itemsId:"sw_items_id_".concat(Math.random().toString(36).substr(2,9)),popperInstance:null,isOpenThroughShow:!1}},computed:{dropdownStyle:function(){var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},classesTheme:function(){return this.$theme&&this.$theme.SwDrodown?l(l({},this.classes),this.$theme.SwDrodown.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwDrodown?l(l({},this.variants),this.$theme.SwDrodown.variants):this.variants}},watch:{show:function(e){if(e)return this.isOpenThroughShow=!0,this.toggle=!0,this.createPopperInstance(),!0;this.isOpenThroughShow=!1,this.destroyPopperInstance()},variant:function(){var e=this;this.children.forEach((function(t){t.theme=e.dropdownStyle}))}},mounted:function(){var e=this;this.show&&this.createPopperInstance(),this.$children.forEach((function(t){t.theme=e.dropdownStyle})),document.addEventListener("click",(function(t){t.target.closest("#".concat(e.itemsId))&&e.destroyPopperInstance()}),!1)},methods:{createPopperInstance:function(){var e=document.querySelector("#".concat(this.activatorID)),t=document.querySelector("#".concat(this.itemsId));this.popperInstance=yt(e,t,{placement:this.position,modifiers:this.modifiers})},destroyPopperInstance:function(){if(this.isOpenThroughShow)return this.isOpenThroughShow=!1,!0;this.toggle=!1,this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},showDropdown:function(){if(this.toggle)return this.toggle=!this.toggle,this.popperInstance.destroy(),this.popperInstance=null,!0;this.toggle=!this.toggle,this.createPopperInstance()}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.destroyPopperInstance,expression:"destroyPopperInstance"}],class:e.dropdownStyle.container},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.toggle,expression:"toggle"}],class:e.dropdownStyle.itemContainer,attrs:{id:e.itemsId,"aria-describedby":"tooltip"}},[e._t("default")],2),n("div",{attrs:{id:e.activatorID,role:"tooltip"},on:{click:e.showDropdown}},[e._t("activator")],2)])}),[],!1,null,null,null).exports,kt=_.classes,Dt=q({name:"SwDropdownItem",components:{SwCustomTag:J},inheritAttrs:!1,install:function(e,t){z(e,t,this)},props:{tagName:{type:String,required:!1,default:"div"}},data:function(){return{theme:null}},computed:{getDropdownItemStyle:function(){return l(l({},kt),this.theme)}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("sw-custom-tag",e._g(e._b({class:e.getDropdownItemStyle.item,attrs:{tag:e.tagName}},"sw-custom-tag",e.$attrs,!1),e.$listeners),[e._t("default")],2)}),[],!1,null,null,null).exports,Mt=_.classes,St=q({name:"SwDropdownDivider",props:{variants:{type:Object,default:function(){return null}}},data:function(){return{theme:Mt}},computed:{getDropdownDividerStyle:function(){var e=this.classes||{};return l(l({},this.theme),e)}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:e.getDropdownDividerStyle.divider})}),[],!1,null,null,null).exports,Ct=g.classes,Lt=q({name:"SwEmptyTablePlaceholder",install:function(e,t){z(e,t,this)},props:{itemIcon:{type:String,required:!1,default:""},title:{type:String,default:String},description:{type:String,default:String},classes:{type:Object,default:function(){return Ct}}},computed:{classesTheme:function(){return this.$theme&&this.$theme.SwEmptyTablePlaceholder?l(l({},this.classes),this.$theme.SwEmptyTablePlaceholder.classes):this.classes}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.classesTheme.container},[n("div",{class:e.classesTheme.slotContainer},[e._t("default")],2),n("div",{class:e.classesTheme.titleContainer},[n("label",{class:e.classesTheme.title},[e._v(e._s(e.title))])]),n("div",{class:e.classesTheme.descriptionContainer},[n("label",{class:e.classesTheme.description},[e._v(" "+e._s(e.description)+" ")])]),n("div",{class:e.classesTheme.actionsContainer},[e._t("actions")],2)])}),[],!1,null,null,null).exports,Tt=y.classes,Ot=y.variants,Et=q({name:"SwFilterWrapper",install:function(e,t){z(e,t,this)},props:{isShow:{type:Boolean,default:!1},classes:{type:Object,default:function(){return Tt}},variant:{type:String,default:null},variants:{type:Object,default:function(){return Ot}}},computed:{filterWrapperStyle:function(){var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},classesTheme:function(){return this.$theme&&this.$theme.SwFilterWrapper?l(l({},this.classes),this.$theme.SwFilterWrapper.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwFilterWrapper?l(l({},this.variants),this.$theme.SwFilterWrapper.variants):this.variants}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"isShow"}],class:e.filterWrapperStyle.container},[e._t("filter-header"),n("div",{class:e.filterWrapperStyle.body},[e._t("default")],2)],2)])}),[],!1,null,null,null).exports,At=b.variants,jt=b.classes,$t=q({name:"SwInput",inheritAttrs:!1,install:function(e,t){z(e,t,this)},props:{prefix:{type:String,default:null,required:!1},classes:{type:Object,default:function(){return jt}},value:{type:[String,Number],default:""},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},variants:{type:Object,default:function(){return At}},variant:{type:String,required:!1,default:""}},data:function(){return{inputValue:this.value,focus:!1,isFocused:!1}},computed:{isFieldValid:function(){return this.invalid},inputStyle:function(){var e={};return this.variant&&(e=F(this.variant,this.variantsTheme)),this.invalid&&(e=F("danger",this.variantsTheme)),this.disabled&&(e=F("disabled",this.variantsTheme)),l(l({},this.classesTheme),e)},getBaseInputStyle:function(){return this.hasLeftIconSlot||this.prefix?this.inputStyle.leftIconInput:this.hasRightIconSlot?this.inputStyle.rightIconInput:this.inputStyle.baseInput},isAlignLeftIcon:function(){return"left"===this.alignIcon},containerStyle:function(){var e=[this.inputStyle.container];return this.isFocused?e.push(this.inputStyle.containerFocusIn):e.push(this.inputStyle.containerFocusOut),e},hasLeftIconSlot:function(){return!!this.$slots.leftIcon},hasRightIconSlot:function(){return!!this.$slots.rightIcon},classesTheme:function(){return this.$theme&&this.$theme.SwInput?l(l({},this.classes),this.$theme.SwInput.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwInput?l(l({},this.variants),this.$theme.SwInput.variants):this.variants}},watch:{value:function(){this.inputValue=this.value},focus:function(){this.focusInput()}},mounted:function(){this.focusInput()},methods:{focusInput:function(){this.focus&&this.$refs.baseInput.focus()},handleInput:function(){this.$emit("input",this.inputValue)},handleChange:function(){this.$emit("change",this.inputValue)},handleKeyupEnter:function(){this.$emit("keyup",this.inputValue)},handleKeyDownEnter:function(e){this.$emit("keydown",e,this.inputValue)},handleFocusOut:function(){this.isFocused=!1,this.$emit("blur",this.inputValue)},handleFocus:function(){this.isFocused=!0,this.$emit("handleFocus",this.inputValue)},handleEnter:function(){this.$emit("handleEnter",this.inputValue)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.containerStyle},[e.hasLeftIconSlot?n("div",{class:e.inputStyle.leftIconContainer},[e._t("leftIcon")],2):e._e(),e.prefix?n("p",{class:e.inputStyle.prefixContainer},[n("span",{class:e.inputStyle.prefix},[e._v(e._s(e.prefix))])]):e._e(),"checkbox"===e.$attrs.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"baseInput",class:e.getBaseInputStyle,attrs:{disabled:e.disabled,type:"checkbox"},domProps:{value:e.value,checked:Array.isArray(e.inputValue)?e._i(e.inputValue,e.value)>-1:e.inputValue},on:{input:e.handleInput,change:[function(t){var n=e.inputValue,r=t.target,a=!!r.checked;if(Array.isArray(n)){var i=e.value,o=e._i(n,i);r.checked?o<0&&(e.inputValue=n.concat([i])):o>-1&&(e.inputValue=n.slice(0,o).concat(n.slice(o+1)))}else e.inputValue=a},e.handleChange],keyup:[e.handleKeyupEnter,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}],keydown:e.handleKeyDownEnter,blur:e.handleFocusOut,focus:e.handleFocus}},"input",e.$attrs,!1)):"radio"===e.$attrs.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"baseInput",class:e.getBaseInputStyle,attrs:{disabled:e.disabled,type:"radio"},domProps:{value:e.value,checked:e._q(e.inputValue,e.value)},on:{input:e.handleInput,change:[function(t){e.inputValue=e.value},e.handleChange],keyup:[e.handleKeyupEnter,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}],keydown:e.handleKeyDownEnter,blur:e.handleFocusOut,focus:e.handleFocus}},"input",e.$attrs,!1)):n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],ref:"baseInput",class:e.getBaseInputStyle,attrs:{disabled:e.disabled,type:e.$attrs.type},domProps:{value:e.value,value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value)},e.handleInput],change:e.handleChange,keyup:[e.handleKeyupEnter,function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}],keydown:e.handleKeyDownEnter,blur:e.handleFocusOut,focus:e.handleFocus}},"input",e.$attrs,!1)),e.hasRightIconSlot?n("div",{class:e.inputStyle.rightIconContainer},[e._t("rightIcon")],2):e._e()])}),[],!1,null,null,null).exports,Pt=x.variants,Yt=q({name:"SwLabel",install:function(e,t){z(e,t,this)},props:{classes:{type:String,default:x.classes},variants:{type:Object,default:function(){return Pt}},variant:{type:String,default:""}},computed:{labelStyle:function(){var e=null;return this.variant&&(e=F(this.variant,this.variantsTheme)),e||this.classesTheme},classesTheme:function(){return this.$theme&&this.$theme.SwLabel?l(l({},this.classes),this.$theme.SwLabel.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwLabel?l(l({},this.variants),this.$theme.SwLabel.variants):this.variants}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("label",{class:e.labelStyle},[e._t("default")],2)}),[],!1,null,null,null).exports,Nt=w.classes,zt=w.variants,It=q({name:"SwInputGroup",install:function(e,t){z(e,t,this)},components:{SwLabel:Yt},props:{color:{type:String,default:""},required:{type:Boolean,default:!1},error:{type:String,default:null},label:{type:String,default:null},classes:{type:Object,default:function(){return Nt}},variants:{type:Object,default:function(){return zt}},variant:{type:String,default:""},tooltipTrigger:{type:String,default:"hover"},tooltipShow:{type:Boolean,default:!1},tooltipPlacement:{type:String,default:"auto"},tooltip:{type:String,default:null},labelVariant:{type:String,default:null}},computed:{inputGroupStyle:function(){var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},hasTooltipIconSlot:function(){return!!this.$slots.tooltipIcon},classesTheme:function(){return this.$theme&&this.$theme.SwInputGroup?l(l({},this.classes),this.$theme.SwInputGroup.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwInputGroup?l(l({},this.variants),this.$theme.SwInputGroup.variants):this.variants}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.inputGroupStyle.container},[e.label?n("sw-label",{class:e.inputGroupStyle.label,attrs:{variant:e.labelVariant}},[e._v(" "+e._s(e.label)+" "),n("span",{directives:[{name:"show",rawName:"v-show",value:e.required,expression:"required"}],class:e.inputGroupStyle.requiredSign},[e._v(" *")]),e.tooltip?n("v-popover",{class:e.inputGroupStyle.tooltipContainer,attrs:{trigger:e.tooltipTrigger,show:e.tooltipShow,placement:e.tooltipPlacement,"popover-class":e.inputGroupStyle.popoverClass,"popover-base-class":e.inputGroupStyle.popoverBaseClass,"popover-wrapper-class":e.inputGroupStyle.popoverWrapperClass,"popover-arrow-class":e.inputGroupStyle.popoverArrowClass,"popover-inner-class":e.inputGroupStyle.popoverInnerClass,"open-class":e.inputGroupStyle.openClass}},[n("div",{class:e.inputGroupStyle.tooltipIconContainer},[e.hasTooltipIconSlot?e._t("tooltipIcon"):n("svg",{class:e.inputGroupStyle.tooltipIcon,attrs:{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"}})])],2),n("template",{slot:"popover"},[n("span",{class:e.inputGroupStyle.tooltip},[e._v(" "+e._s(e.tooltip)+" ")])])],2):e._e()],1):e._e(),"horizontal"!==e.variant||e.label?e._e():n("sw-label",{class:e.inputGroupStyle.label}),n("div",{class:e.inputGroupStyle.inputContainer},[e._t("default"),e.error?n("span",{class:e.inputGroupStyle.errorText},[e._v(" "+e._s(e.error)+" ")]):e._e()],2)],1)}),[],!1,null,null,null).exports,Ft=k.classes,Ht=k.variants,Rt=q({name:"SwList",install:function(e,t){z(e,t,this)},props:{classes:{type:Object,default:function(){return Ft}},variants:{type:Object,default:function(){return Ht}},variant:{type:String,required:!1,default:""}},data:function(){return{items:[]}},computed:{listStyle:function(){this.setChilds();var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},classesTheme:function(){return this.$theme&&this.$theme.SwList?l(l({},this.classes),this.$theme.SwList.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwList?l(l({},this.variants),this.$theme.SwList.variants):this.variants}},mounted:function(){this.items=this.$children,this.setChilds()},methods:{setChilds:function(){var e=this;this.items.forEach((function(t){t.classes=e.classesTheme,t.variants=e.variantsTheme,t.variant=e.variant,t.isLoading=!1}))}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:e.listStyle.container},[e._t("default")],2)}),[],!1,null,null,null).exports,Bt=q({name:"SwListItem",install:function(e,t){z(e,t,this)},components:{SwCustomTag:J},inheritAttrs:!1,props:{title:{type:String,required:!1,default:""},active:{type:Boolean,required:!1},tagName:{type:String,required:!1,default:"a"}},data:function(){return{variants:null,classes:null,variant:null,isLoading:!0,isListGroupItem:!1}},computed:{hasIconSlot:function(){return!!this.$slots.icon},listItemStyle:function(){var e=F(this.variant,this.variants);if(e&&this.active){var t={};return this.classes&&this.classes.active&&(t=l(l({},this.classes),this.classes.active)),l(l({},t),e.active)}return(null==e||null==e)&&this.active&&this.classes&&this.classes.active?l(l({},this.classes),this.classes.active):l(l({},this.classes),e)},itemContainerStyle:function(){return this.isListGroupItem?this.listItemStyle.listGroup.itemContainer:this.listItemStyle.itemContainer}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-custom-tag",e._g(e._b({class:e.itemContainerStyle,attrs:{tag:e.tagName}},"sw-custom-tag",e.$attrs,!1),e.$listeners),[e.hasIconSlot?n("span",{class:e.listItemStyle.iconContainer},[e._t("icon")],2):e._e(),n("span",{class:e.listItemStyle.title},[e._v(e._s(e.title))])])}),[],!1,null,null,null).exports,qt=q({name:"SwListGroup",install:function(e,t){z(e,t,this)},props:{title:{type:String,default:null},active:{type:Boolean,required:!1}},data:function(){return{isShow:this.active,variants:null,classes:null,variant:null,items:[]}},computed:{listGroupStyle:function(){var e=F(this.variant,this.variants),t={container:"",titleContainer:"",title:"",icon:"",itemsContainer:"",itemContainer:""};if(e&&this.isShow){var n={};return this.classes&&this.classes.active&&(n=l(l({},this.classes),this.classes.active)),l(l({listGroup:t},n),e.active)}return(null==e||null==e)&&this.isShow&&this.classes&&this.classes.active?l(l({listGroup:t},this.classes),this.classes.active):l(l({listGroup:t},this.classes),e)}},watch:{listGroupStyle:function(){var e=this;this.items.forEach((function(t){t.classes=e.classes,t.variants=e.variants,t.variant=e.variant,t.isListGroupItem=!0}))},active:function(e){this.isShow=e}},mounted:function(){this.items=this.$children},methods:{handleClick:function(){this.isShow=!this.isShow,this.$emit("click")}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.listGroupStyle.listGroup.container},[n("div",{class:e.listGroupStyle.listGroup.titleContainer,on:{click:e.handleClick}},[n("div",{staticClass:"flex flex-row items-center w-full h-full"},[e._t("titleIcon"),n("span",{class:e.listGroupStyle.listGroup.title},[e._v(" "+e._s(e.title)+" ")])],2),n("svg",{class:e.listGroupStyle.listGroup.icon,attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"}})])]),n("transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"isShow"}],class:e.listGroupStyle.listGroup.itemsContainer},[e._t("default")],2)])],1)}),[],!1,null,null,null).exports,Vt=D.classes,Wt=D.variants,Ut=q({install:function(e,t){z(e,t,this)},props:{classes:{type:Object,default:function(){return Vt}},isOpen:{type:Boolean,default:!1,validator:function(e){return-1!==[!0,!1].indexOf(e)}},variants:{type:Object,default:function(){return Wt}},variant:{type:String,default:null}},data:function(){return{isShow:!1}},computed:{hasFooter:function(){return!(!this.$slots||!this.$slots.footer)},hasHeader:function(){return!(!this.$slots||!this.$slots.header)},modalStyle:function(){var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},classesTheme:function(){return this.$theme&&this.$theme.SwModal?l(l({},this.classes),this.$theme.SwModal.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwModal?l(l({},this.variants),this.$theme.SwModal.variants):this.variants}},watch:{isOpen:function(e){this.isShow=e}},methods:{open:function(){this.isShow=!0},close:function(e){this.isShow=!1,this.$emit("close",e)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{"enter-class":"duration-300 ease-out","enter-active-class":"duration-700 translate-y-4 opacity-0 sm:translate-y-0 sm:scale-95","enter-to-class":"duration-700 translate-y-0 opacity-100 sm:scale-100","leave-active-class":"duration-300 ease-in","leave-class":"duration-300 translate-y-0 opacity-100 sm:scale-100","leave-to-class":"duration-300 translate-y-4 opacity-0 sm:translate-y-0 sm:scale-90"}},[e.isShow?n("div",{class:e.modalStyle.overlayContainer},[n("div",{class:e.modalStyle.base},[n("div",{class:e.modalStyle.header},[e._t("header")],2),n("div",{class:e.modalStyle.body},[e._t("default")],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.hasFooter,expression:"hasFooter"}],class:e.modalStyle.footer},[e._t("footer")],2)])]):e._e()])}),[],!1,null,null,null).exports,Kt=n("716b"),Zt=M.variants,Gt=M.classes,Jt=q({name:"SwMoney",install:function(e,t){z(e,t,this)},components:{Money:Kt.Money},props:{value:{type:Number,default:0},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},currency:{type:Object,default:null},classes:{type:String,default:function(){return Gt}},variants:{type:Object,default:function(){return Zt}},variant:{type:String,default:null}},data:function(){return{inputValue:this.value}},computed:{baseStyle:function(){var e=this.classesTheme;return this.variant&&(e=F(this.variant,this.variantsTheme)),this.invalid&&(e=F("danger",this.variantsTheme)),this.disabled&&(e=F("disabled",this.variantsTheme)),e||this.classesTheme},classesTheme:function(){return this.$theme&&this.$theme.SwMoney?l(l({},this.classes),this.$theme.SwMoney.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwMoney?l(l({},this.variants),this.$theme.SwMoney.variants):this.variants}},watch:{value:function(){this.inputValue=this.value}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("money",e._b({class:e.baseStyle,attrs:{disabled:e.disabled},on:{input:function(t){return e.$emit("input",e.inputValue)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}},"money",e.currency,!1))}),[],!1,null,null,null).exports,Xt=S.classes,Qt=q({name:"SwPageHeader",install:function(e,t){z(e,t,this)},props:{title:{type:String,default:null,required:!0},classes:{type:Object,default:function(){return Xt}}},computed:{classesTheme:function(){return this.$theme&&this.$theme.SwPageHeader?l(l({},this.classes),this.$theme.SwPageHeader.classes):this.classes}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.classesTheme.container},[n("div",[n("h3",{class:e.classesTheme.pageTitle},[e._v(" "+e._s(e.title)+" ")]),e._t("breadcrumbs")],2),n("div",{class:e.classesTheme.actionsContainer},[e._t("actions")],2)])}),[],!1,null,null,null).exports,en=C.classes,tn=q({name:"SwPopup",install:function(e,t){z(e,t,this)},directives:{ClickOutside:_e.a},props:{classes:{type:Object,default:function(){return en}},toggle:{type:Boolean,default:!0},openDirection:{type:String,default:""},maxHeight:{type:Number,default:180}},data:function(){return{showMenu:!1,preferredOpenDirection:"below",optimizedHeight:null}},computed:{aboveStyle:function(){return this.classesTheme.above},isAbove:function(){return"above"===this.openDirection||"top"===this.openDirection||"below"!==this.openDirection&&"bottom"!==this.openDirection&&"above"===this.preferredOpenDirection},baseStyle:function(){var e=[this.classesTheme.base];return this.isAbove&&e.push(this.classesTheme.above),e},classesTheme:function(){return this.$theme&&this.$theme.SwPopup?l(l({},this.classes),this.$theme.SwPopup.classes):this.classes}},methods:{toggleSearchMenu:function(){this.adjustPosition(),this.toggle?this.showMenu=!this.showMenu:this.showMenu=!0},clickOutsideMenu:function(){this.showMenu=!1},open:function(){this.showMenu=!0},close:function(){this.showMenu=!1},adjustPosition:function(){if("undefined"!=typeof window){var e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||"below"===this.openDirection||"bottom"===this.openDirection?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-20,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-20,this.maxHeight))}}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.clickOutsideMenu,expression:"clickOutsideMenu"}],class:e.classesTheme.container},[n("div",{class:e.classesTheme.activator,on:{click:e.toggleSearchMenu}},[e._t("activator")],2),n("transition",{attrs:{"enter-class":"duration-200 ease-out","enter-active-class":"duration-300 translate-y-4 opacity-0 sm:translate-y-0 sm:scale-95","enter-to-class":"duration-300 translate-y-0 opacity-100 sm:scale-100","leave-active-class":"duration-200 ease-in","leave-class":"duration-200 translate-y-0 opacity-100 sm:scale-100","leave-to-class":"duration-200 translate-y-4 opacity-0 sm:translate-y-0 sm:scale-90"}},[e.showMenu?n("div",{class:e.baseStyle},[e._t("default")],2):e._e()])],1)}),[],!1,null,null,null).exports,nn=n("92c3"),rn=q({components:{vueDropzone:n.n(nn).a},inheritAttrs:!1,install:function(e,t){z(e,t,this)},props:{options:{type:Object,default:function(){}}},data:function(){return{defaultOptions:{previewTemplate:this.template()}}},computed:{getOptions:function(){return l(l({},this.defaultOptions),this.options)}},methods:{template:function(){return'\n <div class="relative inline-block m-4 align-top dz-preview dz-file-preview">\n <div class="flex items-center justify-center w-full mb-2">\n <div class="relative w-24 h-24">\n <div class="z-10 block w-full h-full overflow-hidden bg-gray-500 rounded bg-gradient-to-b from-gray-300 to-gray-400 dz-image">\n <img\n class="block"\n data-dz-thumbnail=""\n alt=".png" />\n </div>\n <a class="absolute z-20 flex justify-center block p-3 text-sm text-center border-none rounded-full cursor-pointer dz-remove hover:underline" href="javascript:undefined;" data-dz-remove="">\n <svg class="w-6 h-6 bg-white rounded-full cursor-pointer text-danger" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"></path>\n </svg>\n </a>\n </div>\n </div>\n \n <div class="absolute block w-32 px-2 py-5 text-sm text-white transition-opacity duration-300 ease-in rounded-lg opacity-0 pointer-events-none bg-danger bg-gradient-to-b from-red-500 to-red-600 hover:opacity-100 dz-error-message">\n <span class="absolute w-0 h-0 border-b-4 border-l-4 border-r-4 border-transparent dz-error-message-after"></span>\n <span data-dz-errormessage=""></span>\n </div>\n <div class="absolute block dz-success-mark">\n <svg\n class="block w-12 h-12"\n viewBox="0 0 54 54"\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"\n >\n <title>Check</title>\n <defs></defs>\n <g\n id="Page-1"\n stroke="none"\n stroke-width="1"\n fill="none"\n fill-rule="evenodd"\n sketch:type="MSPage"\n >\n <path\n d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"\n id="Oval-2"\n stroke-opacity="0.198794158"\n stroke="#747474"\n fill-opacity="0.816519475"\n fill="#FFFFFF"\n sketch:type="MSShapeGroup"\n ></path>\n </g>\n </svg>\n </div>\n <div class="absolute block opacity-0 pointer-events-none dz-error-mark">\n <svg\n class="block w-12 h-12"\n viewBox="0 0 54 54"\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"\n >\n <title>Error</title>\n <defs></defs>\n <g\n id="Page-1"\n stroke="none"\n stroke-width="1"\n fill="none"\n fill-rule="evenodd"\n sketch:type="MSPage"\n >\n <g\n id="Check-+-Oval-2"\n sketch:type="MSLayerGroup"\n stroke="#747474"\n stroke-opacity="0.198794158"\n fill="#FFFFFF"\n fill-opacity="0.816519475"\n >\n <path\n d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"\n id="Oval-2"\n sketch:type="MSShapeGroup"\n ></path>\n </g>\n </g>\n </svg>\n </div>\n \n <div class="w-full text-base text-center whitespace-nowrap dz-filename">\n <span class="w-full" data-dz-name=""></span>\n </div>\n <div class="w-full mb-2 text-xs text-center dz-size">\n <span class="w-full" data-dz-size=""></span>\n </div>\n <div class="relative w-20 h-1 overflow-hidden scale-100 rounded opacity-100 pointer-events-none bg-primary-200 dz-progress">\n <span\n class="absolute inset-0 w-0 bg-gray-700 dz-upload bg-primary-500"\n data-dz-uploadprogress=""\n style="width: 100%;"\n ></span>\n </div>\n </div>\n '},thumbnail:function(e,t){var n,r,a,i;if(e.previewElement){for(e.previewElement.classList.remove("dz-file-preview"),n=0,r=(a=e.previewElement.querySelectorAll("[data-dz-thumbnail-bg]")).length;n<r;n++)(i=a[n]).alt=e.name,i.style.width=this.options.thumbnailWidth+"px",i.style.height=this.options.thumbnailHeight+"px",i.style["object-fit"]="contain",i.style.backgroundImage='url("'+t+'")';return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},uploadprogress:function(e,t){if(e.previewElement){var n=e.previewElement.querySelector("[data-dz-uploadprogress]");n.style.width=t+"%",100==t&&(n.style.width="0%")}}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("vue-dropzone",e._g(e._b({ref:"myVueDropzone",staticClass:"p-10 border-2 border-dashed",attrs:{options:e.getOptions,"accepted-files":"application/pdf","use-custom-slot":!0},on:{"vdropzone-thumbnail":e.thumbnail}},"vue-dropzone",e.$attrs,!1),e.$listeners))}),[],!1,null,null,null).exports,an=L.classes,on=L.variants,sn=L.sizes,ln=q({name:"SwRadio",inheritAttrs:!1,model:{prop:"modelValue",event:"change"},install:function(e,t){z(e,t,this)},props:{value:{type:[Boolean,Number,String],required:!1,default:!1},modelValue:{default:""},classes:{type:Object,default:function(){return an}},variants:{type:Object,default:function(){return on}},sizes:{type:Object,default:function(){return sn}},label:{type:String,default:null},size:{type:String,required:!1,default:"default"},variant:{type:String,required:!1,default:""},id:{type:[String,Number],required:!1,default:function(){return"sw_".concat(Math.random().toString(36).substr(2,9))}}},computed:{radioButtonStyle:function(){var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},lebelStyle:function(){var e=F(this.size,this.sizes);return[this.radioButtonStyle.label,e.label]},inputStyle:function(){var e=F(this.size,this.sizes);return[this.radioButtonStyle.input,e.input]},shouldBeChecked:function(){return this.modelValue==this.value},classesTheme:function(){return this.$theme&&this.$theme.SwRadio?l(l({},this.classes),this.$theme.SwRadio.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwRadio?l(l({},this.variants),this.$theme.SwRadio.variants):this.variants}},methods:{updateInput:function(){this.$emit("change",this.value)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.radioButtonStyle.container},[n("input",e._b({class:e.inputStyle,attrs:{id:e.id,type:"radio"},domProps:{checked:e.shouldBeChecked,value:e.value},on:{change:e.updateInput,keyup:function(t){return e.$emit("keyup",t)},blur:function(t){return e.$emit("blur",t)}}},"input",e.$attrs,!1)),e.label?n("label",{class:e.lebelStyle,attrs:{for:e.id}},[e._v(e._s(e.label))]):e._e()])}),[],!1,null,null,null).exports,cn=T.classes,un=q({name:"SwSwitch",install:function(e,t){z(e,t,this)},props:{value:{type:[Boolean,Number],required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},classes:{type:Object,default:function(){return cn}}},data:function(){return{id:null,checkValue:this.value}},computed:{uniqueId:function(){return"_"+Math.random().toString(36).substr(2,9)},classesTheme:function(){return this.$theme&&this.$theme.SwSwitch?l(l({},this.classes),this.$theme.SwSwitch.classes):this.classes}},watch:{value:function(){this.checkValue=this.value}},methods:{handleInput:function(e){this.$emit("input",e.target.checked)},handleChange:function(){this.$emit("change",this.checkValue)},handleKeyupEnter:function(){this.$emit("keyup",this.checkValue)},handleFocusOut:function(){this.$emit("blur",this.checkValue)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.classesTheme.container},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.checkValue,expression:"checkValue"}],class:e.classesTheme.switch,attrs:{id:e.uniqueId,type:"checkbox",disabled:e.disabled},domProps:{checked:Array.isArray(e.checkValue)?e._i(e.checkValue,null)>-1:e.checkValue},on:{input:e.handleInput,change:[function(t){var n=e.checkValue,r=t.target,a=!!r.checked;if(Array.isArray(n)){var i=e._i(n,null);r.checked?i<0&&(e.checkValue=n.concat([null])):i>-1&&(e.checkValue=n.slice(0,i).concat(n.slice(i+1)))}else e.checkValue=a},e.handleChange],keyup:e.handleKeyupEnter,blur:e.handleFocusOut}}),n("label",{class:e.classesTheme.label,attrs:{for:e.uniqueId}},[n("span",{staticClass:"switch-circle"})])])}),[],!1,null,null,null).exports,dn={baseSelectContainer:"base-select multiselect min-h-10 box-content block relative w-full text-left",activeBaseSelectContainer:"multiselect--active z-10",disabledBaseSelectContainer:"pointer-events-none opacity-50",multiSelect:"multiselect__select h-10 m-0 py-1 px-2 right-0 no-underline text-center cursor-pointer leading-5 block absolute box-border w-8",disabledMultiSelect:"bg-gray-200 text-gray-400",multiSelectTags:"multiselect__tags min-h-10 block pt-1.5 pr-10 pb-0 pl-2 rounded border border-solid text-sm ",multiSelectTagsDefaultColor:"border-gray-300 bg-white",multiSelectTagsInvalid:"border-danger bg-white",disabledMultiSelectTags:"bg-gray-200 text-gray-400",multiselectTagsWrap:"multiselect__tags-wrap inline",multiselectTag:"multiselect__tag relative inline-block pt-1 pr-6 pb-1 pl-2 rounded mr-2 text-white leading-none my-0.5 whitespace-nowrap overflow-hidden max-w-full bg-primary-500",multiselectTagIcon:"multiselect__tag-icon cursor-pointer ml-2 absolute right-0 top-0 bottom-0 font-bold w-5 text-center leading-5 transition-all ease-in-out rounded hover:bg-primary-400",multiselectStrong:"mb-2 leading-5 inline-block align-top",multiselectSpinner:"multiselect__spinner absolute w-12 h-8 bg-white block top-1/2",multiselectInput:"multiselect__input p-1 relative inline-block border-none leading-5 rounded pl-1 w-full box-border align-top text-sm outline-none",multiselectSingle:"multiselect__single relative inline-block border-none leading-5 rounded text-gray-800 w-full box-border align-top pl-1 pt-1 mb-2 text-sm",multiselectContentWrapper:"multiselect__content-wrapper z-10 absolute block bg-white w-full overflow-auto border border-solid border-gray-300 border-t-0 rounded-bl rounded-br",multiselectContent:"multiselect__content list-none inline-block p-0 m-0 min-w-full align-top",multiselectOption:"multiselect__option block p-3 no-underline leading-4 normal-case align-middle relative cursor-pointer whitespace-nowrap text-sm",multiselectElement:"multiselect__element block"};function pn(e){return(pn="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)}function mn(e){return!(0===e||(!Array.isArray(e)||0!==e.length)&&e)}function fn(e,t,n,r){return e.filter((function(e){return a=r(e,n),i=t,void 0===a&&(a="undefined"),null===a&&(a="null"),!1===a&&(a="false"),-1!==a.toString().toLowerCase().indexOf(i.trim());var a,i}))}function hn(e){return e.filter((function(e){return!e.$isLabel}))}function _n(e,t){return function(n){return n.reduce((function(n,r){return r[e]&&r[e].length?(n.push({$groupLabel:r[t],$isLabel:!0}),n.concat(r[e])):n}),[])}}n("99af"),n("a623"),n("7db0"),n("d81d"),n("13d5"),n("841c"),n("498a");var vn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce((function(e,t){return t(e)}),e)}},gn={data:function(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{initialSearch:{type:String,default:""},internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},value:{type:null,default:function(){return[]}},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default:function(e,t){return mn(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default:function(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1}},mounted:function(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0]),this.initialSearch&&(this.search=this.initialSearch)},computed:{internalValue:function(){return this.value||0===this.value?Array.isArray(this.value)?this.value:[this.value]:[]},filteredOptions:function(){var e,t=this.search||"",n=t.toLowerCase().trim(),r=this.options.concat();return r=this.internalSearch?this.groupValues?this.filterAndFlat(r,n,this.label):fn(r,n,this.label,this.customLabel):this.groupValues?_n(this.groupValues,this.groupLabel)(r):r,r=this.hideSelected?r.filter((e=this.isSelected,function(){return!e.apply(void 0,arguments)})):r,this.taggable&&n.length&&!this.isExistingOption(n)&&("bottom"===this.tagPosition?r.push({isTag:!0,label:t}):r.unshift({isTag:!0,label:t})),r.slice(0,this.optionsLimit)},valueKeys:function(){var e=this;return this.trackBy?this.internalValue.map((function(t){return t[e.trackBy]})):this.internalValue},optionKeys:function(){var e=this;return(this.groupValues?this.flatAndStrip(this.options):this.options).map((function(t){return e.customLabel(t,e.label).toString().toLowerCase()}))},currentOptionLabel:function(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:function(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("input",this.multiple?[]:null))},search:function(){this.$emit("search-change",this.search,this.id)}},methods:{getValue:function(){return this.multiple?this.internalValue:0===this.internalValue.length?null:this.internalValue[0]},filterAndFlat:function(e,t,n){return vn(function(e,t,n,r,a){return function(i){return i.map((function(i){var s;if(!i[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];var l=fn(i[n],e,t,a);return l.length?(o(s={},r,i[r]),o(s,n,l),s):[]}))}}(t,n,this.groupValues,this.groupLabel,this.customLabel),_n(this.groupValues,this.groupLabel))(e)},flatAndStrip:function(e){return vn(_n(this.groupValues,this.groupLabel),hn)(e)},updateSearch:function(e){this.search=e,this.$emit("value",this.search)},isExistingOption:function(e){return!!this.options&&this.optionKeys.indexOf(e)>-1},isSelected:function(e){var t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled:function(e){return!!e.$isDisabled},getOptionLabel:function(e){if(mn(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;var t=this.customLabel(e,this.label);return mn(t)?"":t},select:function(e,t){if(e.$isLabel&&this.groupSelect)this.selectGroup(e);else if(!(-1!==this.blockKeys.indexOf(t)||this.disabled||e.$isDisabled||e.$isLabel)&&(!this.max||!this.multiple||this.internalValue.length!==this.max)&&("Tab"!==t||this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e))return void("Tab"!==t&&this.removeElement(e));this.$emit("select",e,this.id),this.multiple?this.$emit("input",this.internalValue.concat([e]),this.id):this.$emit("input",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup:function(e){var t=this,n=this.options.find((function(n){return n[t.groupLabel]===e.$groupLabel}));if(n)if(this.wholeGroupSelected(n)){this.$emit("remove",n[this.groupValues],this.id);var r=this.internalValue.filter((function(e){return-1===n[t.groupValues].indexOf(e)}));this.$emit("input",r,this.id)}else{var a=n[this.groupValues].filter((function(e){return!(t.isOptionDisabled(e)||t.isSelected(e))}));this.$emit("select",a,this.id),this.$emit("input",this.internalValue.concat(a),this.id)}},wholeGroupSelected:function(e){var t=this;return e[this.groupValues].every((function(e){return t.isSelected(e)||t.isOptionDisabled(e)}))},wholeGroupDisabled:function(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.disabled&&!e.$isDisabled)if(!this.allowEmpty&&this.internalValue.length<=1)this.deactivate();else{var n="object"===pn(e)?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.$emit("remove",e,this.id),this.multiple){var r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("input",r,this.id)}else this.$emit("input",null,this.id);this.closeOnSelect&&t&&this.deactivate()}},removeLastElement:function(){-1===this.blockKeys.indexOf("Delete")&&0===this.search.length&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate:function(){var e=this;this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&0===this.pointer&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.$nextTick((function(){return e.$refs.search&&e.$refs.search.focus()}))):this.$el.focus(),this.$emit("open",this.id))},deactivate:function(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search&&this.$refs.search.blur():this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle:function(){this.isOpen?this.deactivate():this.activate()},adjustPosition:function(){if("undefined"!=typeof window){var e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||"below"===this.openDirection||"bottom"===this.openDirection?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}}},yn=dn,bn={data:function(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40},classes:{type:Object,default:function(){return yn}}},computed:{pointerPosition:function(){return this.pointer*this.optionHeight},visibleElements:function(){return this.optimizedHeight/this.optionHeight},classesTheme:function(){return this.$theme&&this.$theme.SwSelect?l(l({},this.classes),this.$theme.SwSelect.classes):this.classes}},watch:{filteredOptions:function(){this.pointerAdjust()},isOpen:function(){this.pointerDirty=!1},pointer:function(){this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight:function(e,t){return[{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)},this.classesTheme.multiselectOption]},groupHighlight:function(e,t){var n=this;if(!this.groupSelect)return["multiselect__option--group","multiselect__option--disabled",this.classesTheme.multiselectOption];var r=this.options.find((function(e){return e[n.groupLabel]===t.$groupLabel}));return r&&!this.wholeGroupDisabled(r)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(r)},this.classesTheme.multiselectOption]:["multiselect__option--disabled",this.classesTheme.multiselectOption]},addPointerElement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Enter",t=e.key;this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward:function(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward:function(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset:function(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust:function(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet:function(e){this.pointer=e,this.pointerDirty=!0}}},wn=dn,xn=q({name:"VueMultiselect",mixins:[gn,bn],props:{classes:{type:Object,default:function(){return wn}},name:{type:String,default:""},selectLabel:{type:String,default:""},selectGroupLabel:{type:String,default:""},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:function(e){return"and ".concat(e," more")}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},invalid:{type:Boolean,default:!1},maximumOptionsError:{type:String,default:null},listIsEmpty:{type:String,default:null},autoComplete:{type:String,default:"nope"}},computed:{classesTheme:function(){return this.$theme&&this.$theme.SwSelect?l(l({},this.classes),this.$theme.SwSelect.classes):this.classes},isSingleLabelVisible:function(){return(this.singleValue||0===this.singleValue)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible:function(){return!(this.internalValue.length||this.searchable&&this.isOpen)},visibleValues:function(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue:function(){return this.internalValue[0]},deselectLabelText:function(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText:function(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText:function(){return this.showLabels?this.selectLabel:""},selectGroupLabelText:function(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText:function(){return this.showLabels?this.selectedLabel:""},inputStyle:function(){return this.searchable||this.multiple&&this.value&&this.value.length?this.isOpen?{width:"100%"}:this.value?{width:"0",position:"absolute",padding:"0"}:"":""},contentStyle:function(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove:function(){return"above"===this.openDirection||"top"===this.openDirection||"below"!==this.openDirection&&"bottom"!==this.openDirection&&"above"===this.preferredOpenDirection},showSearchInput:function(){return this.searchable&&(!this.hasSingleSelectedSlot||!this.visibleSingleValue&&0!==this.visibleSingleValue||this.isOpen)},multiSelectStyle:function(){var e=[this.classesTheme.baseSelectContainer];return this.isOpen&&e.push(this.classesTheme.activeBaseSelectContainer),this.disabled&&e.push(this.classesTheme.disabledBaseSelectContainer),this.isAbove&&e.push("multiselect--above"),e},multiselectSelectStyle:function(){var e=[this.classesTheme.multiSelect];return this.disabled?e.push(this.classesTheme.disabledMultiSelect):e.push(this.classesTheme.multiSelect),e},multiSelectTagsStyle:function(){var e=[this.classesTheme.multiSelectTags];return this.invalid?e.push(this.classesTheme.multiSelectTagsInvalid):e.push(this.classesTheme.multiSelectTagsDefaultColor),this.disabled&&e.push(this.classesTheme.disabledMultiSelectTags),e.push(this.classesTheme.multiSelectTags),e},multiselectTagsWrapStyle:function(){return[this.classesTheme.multiselectTagsWrap]},multiselectTagStyle:function(){return[this.classesTheme.multiselectTag]},multiselectTagIconStyle:function(){return[this.classesTheme.multiselectTagIcon]},multiselectStrongStyle:function(){return[this.classesTheme.multiselectStrong]},multiselectSpinnerStyle:function(){return[this.classesTheme.multiselectSpinner]},multiselectInputStyle:function(){return[this.classesTheme.multiselectInput]},multiselectSingleStyle:function(){return[this.classesTheme.multiselectSingle]},multiselectContentWrapperStyle:function(){return[this.classesTheme.multiselectContentWrapper]},multiselectContentStyle:function(){return[this.classesTheme.multiselectContent]},multiselectOptionStyle:function(){return[this.classesTheme.multiselectOption]},multiselectElementStyle:function(){return[this.classesTheme.multiselectElement]}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.multiSelectStyle,attrs:{tabindex:e.searchable?-1:e.tabindex,"aria-owns":"listbox-"+e.id,role:"combobox"},on:{focus:function(t){return e.activate()},blur:function(t){!e.searchable&&e.deactivate()},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])||t.target!==t.currentTarget?null:(t.preventDefault(),e.pointerForward())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])||t.target!==t.currentTarget?null:(t.preventDefault(),e.pointerBackward())}],keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:(t.stopPropagation(),t.target!==t.currentTarget?null:e.addPointerElement(t))},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.deactivate()}}},[e._t("caret",[n("div",{class:e.multiselectSelectStyle,on:{mousedown:function(t){return t.preventDefault(),t.stopPropagation(),e.toggle()}}},[n("span",{staticClass:"relative right-0 top-1/2",staticStyle:{color:"'#a5acc1'","margin-top":"4px","border-color":"#a5acc1 transparent transparent","border-style":"solid","border-width":"5px 5px 0",content:"''"}})])],{toggle:e.toggle}),n("div",{ref:"tags",class:e.multiSelectTagsStyle},[e._t("selection",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visibleValues.length>0,expression:"visibleValues.length > 0"}],class:e.multiselectTagsWrapStyle},[e._l(e.visibleValues,(function(t,r){return[e._t("tag",[n("span",{key:r,class:e.multiselectTagStyle},[n("span",{domProps:{textContent:e._s(e.getOptionLabel(t))}}),n("span",{class:e.multiselectTagIconStyle,attrs:{tabindex:"1"},on:{keypress:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:(n.preventDefault(),e.removeElement(t))},mousedown:function(n){return n.preventDefault(),e.removeElement(t)}}},[n("span",{staticClass:"multiselect__tag-icon-after"},[e._v("×")])])])],{option:t,search:e.search,remove:e.removeElement})]}))],2),e.internalValue&&e.internalValue.length>e.limit?[e._t("limit",[n("strong",{class:e.multiselectStrongStyle,domProps:{textContent:e._s(e.limitText(e.internalValue.length-e.limit))}})])]:e._e()],{search:e.search,remove:e.removeElement,values:e.visibleValues,isOpen:e.isOpen}),n("transition",{attrs:{name:"multiselect__loading"}},[e._t("loading",[n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],class:e.multiselectSpinnerStyle},[n("span",{staticClass:"multiselect__spinner-before"}),n("span",{staticClass:"multiselect__spinner-after"})])])])],2),n("input",{ref:"search",class:e.multiselectInputStyle,style:e.inputStyle,attrs:{id:e.id,name:e.name,placeholder:e.placeholder,disabled:e.disabled,tabindex:e.tabindex,"aria-controls":"listbox-"+e.id,type:"text",autocomplete:e.autoComplete,spellcheck:"false"},domProps:{value:e.search},on:{input:function(t){return e.updateSearch(t.target.value)},focus:function(t){return t.preventDefault(),e.activate()},blur:function(t){return t.preventDefault(),e.deactivate()},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.deactivate()},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.pointerForward())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.pointerBackward())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:(t.stopPropagation(),e.removeLastElement())}],keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),t.target!==t.currentTarget?null:e.addPointerElement(t))}}}),e.isSingleLabelVisible?n("span",{class:e.multiselectSingleStyle,on:{mousedown:function(t){return t.preventDefault(),e.toggle(t)}}},[e._t("singleLabel",[[e._v(e._s(e.currentOptionLabel))]],{option:e.singleValue})],2):e._e()],2),n("transition",{attrs:{name:"multiselect"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen,expression:"isOpen"}],ref:"list",class:e.multiselectContentWrapperStyle,style:{maxHeight:e.optimizedHeight+"px"},attrs:{tabindex:"-1"},on:{focus:e.activate,mousedown:function(e){e.preventDefault()}}},[n("ul",{class:e.multiselectContentStyle,style:e.contentStyle,attrs:{id:"listbox-"+e.id,role:"listbox"}},[e._t("beforeList"),e.multiple&&e.max===e.internalValue.length?n("li",[n("span",{class:e.multiselectOptionStyle},[e._t("maxElements",[e._v(" "+e._s(e.maximumOptionsError)+" ")])],2)]):e._e(),!e.max||e.internalValue.length<e.max?e._l(e.filteredOptions,(function(t,r){return n("li",{key:r,class:e.multiselectElementStyle,attrs:{id:e.id+"-"+r,role:t&&(t.$isLabel||t.$isDisabled)?null:"option"}},[t&&(t.$isLabel||t.$isDisabled)?e._e():n("span",{class:e.optionHighlight(r,t),attrs:{"data-select":t&&t.isTag?e.tagPlaceholder:e.selectLabelText,"data-selected":e.selectedLabelText,"data-deselect":e.deselectLabelText},on:{click:function(n){return n.stopPropagation(),e.select(t)},mouseenter:function(t){return t.target!==t.currentTarget?null:e.pointerSet(r)}}},[e._t("option",[n("span",[e._v(e._s(e.getOptionLabel(t)))])],{option:t,search:e.search})],2),t&&(t.$isLabel||t.$isDisabled)?n("span",{class:e.groupHighlight(r,t),attrs:{"data-select":e.groupSelect&&e.selectGroupLabelText,"data-deselect":e.groupSelect&&e.deselectGroupLabelText},on:{mouseenter:function(t){if(t.target!==t.currentTarget)return null;e.groupSelect&&e.pointerSet(r)},mousedown:function(n){return n.preventDefault(),e.selectGroup(t)}}},[e._t("option",[n("span",[e._v(e._s(e.getOptionLabel(t)))])],{option:t,search:e.search})],2):e._e()])})):e._e(),!e.showNoOptions||0!==e.options.length||e.search||e.loading?e._e():n("li",[n("span",{class:e.multiselectOptionStyle},[e._t("noOptions",[e._v(e._s(e.listIsEmpty))])],2)])],2),e._t("afterList")],2)])],2)}),[],!1,null,null,null).exports,kn=q({name:"SwTabItem",install:function(e,t){z(e,t,this)},props:{route:{type:String,default:null},title:{type:String,default:null,required:!0}},data:function(){return{isActive:!1}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}]},[e._t("default")],2)}),[],!1,null,null,null).exports,Dn=O.classes,Mn=O.variants,Sn=q({name:"SwTabs",install:function(e,t){z(e,t,this)},props:{classes:{type:Object,default:function(){return Dn}},activeTab:{type:String,default:null},variant:{type:String,default:null},variants:{type:Object,default:function(){return Mn}}},data:function(){return{tabs:[],currentTab:null}},computed:{getTabStyle:function(){var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},getAllTabs:function(){return this.tabs.filter((function(e){return e.title}))},classesTheme:function(){return this.$theme&&this.$theme.SwTabs?l(l({},this.classes),this.$theme.SwTabs.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwTabs?l(l({},this.variants),this.$theme.SwTabs.variants):this.variants}},watch:{currentTab:function(e,t){this.tabs.map((function(t){return t.isActive=t==e})),null!=t&&this.$emit("update",e)},activeTab:function(e){e&&this.setActiveTab()}},mounted:function(){this.tabs=this.$children,this.setActiveTab()},methods:{setTab:function(e){this.currentTab=e,e&&e.route&&this.$router.push(e.route)},setActiveTab:function(){var e=this;this.currentTab=this.activeTab?this.tabs.find((function(t){return t.title==e.activeTab})):this.tabs[0],this.currentTab.route&&this.$router.push(this.currentTab.route)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ul",{class:e.getTabStyle.tabNavContainer},[e._t("nav",e._l(e.getAllTabs,(function(t,r){return n("li",{key:r,class:t.isActive?e.getTabStyle.tabNavItemActive:e.getTabStyle.tabNavItem,attrs:{"aria-selected":t.isActive},on:{click:function(n){return e.setTab(t)}}},[e._v(" "+e._s(t.title)+" ")])})))],2),e._t("default")],2)}),[],!1,null,null,null).exports,Cn=E.variants,Ln=q({name:"SwTextarea",inheritAttrs:!1,install:function(e,t){z(e,t,this)},props:{classes:{type:String,default:E.classes},variant:{type:String,default:null},variants:{type:Object,default:function(){return Cn}},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{valueWhenFocus:null}},computed:{isFieldValid:function(){return this.invalid},textAreaStyle:function(){var e=null;return this.variant&&(e=F(this.variant,this.variantsTheme)),this.invalid&&(e=F("danger",this.variantsTheme)),this.disabled&&(e=F("disabled",this.variantsTheme)),e||this.classesTheme},classesTheme:function(){return this.$theme&&this.$theme.SwTextarea?l(l({},this.classes),this.$theme.SwTextarea.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwTextarea?l(l({},this.variants),this.$theme.SwTextarea.variants):this.variants}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("textarea",e._b({class:e.textAreaStyle,attrs:{disabled:e.disabled},on:{input:function(t){return e.$emit("input",t.target.value)}}},"textarea",e.$attrs,!1))}),[],!1,null,null,null).exports,Tn=A.classes,On=A.variants,En=q({name:"SwTransition",install:function(e,t){z(e,t,this)},props:{variant:{type:String,default:null},variants:{type:Object,default:function(){return On}},classes:{type:Object,default:function(){return Tn}}},computed:{transitionStyle:function(){var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},classesTheme:function(){return this.$theme&&this.$theme.SwTransition?l(l({},this.classes),this.$theme.SwTransition.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwTransition?l(l({},this.variants),this.$theme.SwTransition.variants):this.variants}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("transition",{attrs:{"enter-active-class":e.transitionStyle.enterActive,"leave-active-class":e.transitionStyle.leave,"enter-class":e.transitionStyle.enter,"enter-to-class":e.transitionStyle.enterTo,"leave-class":e.transitionStyle.leave,"leave-to-class":e.transitionStyle.leaveTo}},[e._t("default")],2)}),[],!1,null,null,null).exports,An=n("5313"),jn=n("304a"),$n=n("0ac0"),Pn={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var Yn=/Edge\/(\d+)/.exec(navigator.userAgent),Nn=/MSIE \d/.test(navigator.userAgent),zn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);Pn.mac=/Mac/.test(navigator.platform);var In=Pn.ie=!!(Nn||zn||Yn);Pn.ie_version=Nn?document.documentMode||6:zn?+zn[1]:Yn?+Yn[1]:null,Pn.gecko=!In&&/gecko\/(\d+)/i.test(navigator.userAgent),Pn.gecko_version=Pn.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var Fn=!In&&/Chrome\/(\d+)/.exec(navigator.userAgent);Pn.chrome=!!Fn,Pn.chrome_version=Fn&&+Fn[1],Pn.ios=!In&&/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),Pn.android=/Android \d/.test(navigator.userAgent),Pn.webkit="webkitFontSmoothing"in document.documentElement.style,Pn.safari=/Apple Computer/.test(navigator.vendor),Pn.webkit_version=Pn.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var Hn=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},Rn=function(e){var t=e.parentNode;return t&&11==t.nodeType?t.host:t},Bn=function(e,t,n){var r=document.createRange();return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},qn=function(e,t,n,r){return n&&(Wn(e,t,n,r,-1)||Wn(e,t,n,r,1))},Vn=/^(img|br|input|textarea|hr)$/i;function Wn(e,t,n,r,a){for(;;){if(e==n&&t==r)return!0;if(t==(a<0?0:Un(e))){var i=e.parentNode;if(1!=i.nodeType||Kn(e)||Vn.test(e.nodeName)||"false"==e.contentEditable)return!1;t=Hn(e)+(a<0?0:1),e=i}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(a<0?-1:0)]).contentEditable)return!1;t=a<0?Un(e):0}}}function Un(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Kn(e){for(var t,n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var Zn=function(e){var t=e.isCollapsed;return t&&Pn.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function Gn(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function Jn(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Xn(e,t){return"number"==typeof e?e:e[t]}function Qn(e){var t=e.getBoundingClientRect();return{left:t.left,right:t.left+e.clientWidth,top:t.top,bottom:t.top+e.clientHeight}}function er(e,t,n){for(var r=e.someProp("scrollThreshold")||0,a=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument,o=n||e.dom;o;o=Rn(o))if(1==o.nodeType){var s=o==i.body||1!=o.nodeType,l=s?Jn(i):Qn(o),c=0,u=0;if(t.top<l.top+Xn(r,"top")?u=-(l.top-t.top+Xn(a,"top")):t.bottom>l.bottom-Xn(r,"bottom")&&(u=t.bottom-l.bottom+Xn(a,"bottom")),t.left<l.left+Xn(r,"left")?c=-(l.left-t.left+Xn(a,"left")):t.right>l.right-Xn(r,"right")&&(c=t.right-l.right+Xn(a,"right")),c||u)if(s)i.defaultView.scrollBy(c,u);else{var d=o.scrollLeft,p=o.scrollTop;u&&(o.scrollTop+=u),c&&(o.scrollLeft+=c);var m=o.scrollLeft-d,f=o.scrollTop-p;t={left:t.left-m,top:t.top-f,right:t.right-m,bottom:t.bottom-f}}if(s)break}}function tr(e){for(var t=[],n=e.ownerDocument;e&&(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e!=n);e=Rn(e));return t}function nr(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=r.dom,i=r.top,o=r.left;a.scrollTop!=i+t&&(a.scrollTop=i+t),a.scrollLeft!=o&&(a.scrollLeft=o)}}var rr=null;function ar(e,t){for(var n,r,a=2e8,i=0,o=t.top,s=t.top,l=e.firstChild,c=0;l;l=l.nextSibling,c++){var u=void 0;if(1==l.nodeType)u=l.getClientRects();else{if(3!=l.nodeType)continue;u=Bn(l).getClientRects()}for(var d=0;d<u.length;d++){var p=u[d];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);var m=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(m<a){n=l,a=m,r=m&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==l.nodeType&&m&&(i=c+(t.left>=(p.left+p.right)/2?1:0));continue}}!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(i=c+1)}}return n&&3==n.nodeType?function(e,t){for(var n=e.nodeValue.length,r=document.createRange(),a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);var i=lr(r,1);if(i.top!=i.bottom&&ir(t,i))return{node:e,offset:a+(t.left>=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}(n,r):!n||a&&1==n.nodeType?{node:e,offset:i}:ar(n,r)}function ir(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function or(e,t,n){var r=e.childNodes.length;if(r&&n.top<n.bottom)for(var a=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),i=a;;){var o=e.childNodes[i];if(1==o.nodeType)for(var s=o.getClientRects(),l=0;l<s.length;l++){var c=s[l];if(ir(t,c))return or(o,t,c)}if((i=(i+1)%r)==a)break}return e}function sr(e,t){var n,r,a,i,o=e.root;if(o.caretPositionFromPoint)try{var s=o.caretPositionFromPoint(t.left,t.top);s&&(a=(n=s).offsetNode,i=n.offset)}catch(e){}if(!a&&o.caretRangeFromPoint){var l=o.caretRangeFromPoint(t.left,t.top);l&&(a=(r=l).startContainer,i=r.startOffset)}var c,u=o.elementFromPoint(t.left,t.top+1);if(!u||!e.dom.contains(1!=u.nodeType?u.parentNode:u)){var d=e.dom.getBoundingClientRect();if(!ir(t,d))return null;if(!(u=or(e.dom,t,d)))return null}if(Pn.safari&&u.draggable&&(a=i=null),u=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(u,t),a){if(Pn.gecko&&1==a.nodeType&&(i=Math.min(i,a.childNodes.length))<a.childNodes.length){var p,m=a.childNodes[i];"IMG"==m.nodeName&&(p=m.getBoundingClientRect()).right<=t.left&&p.bottom>t.top&&i++}a==e.dom&&i==a.childNodes.length-1&&1==a.lastChild.nodeType&&t.top>a.lastChild.getBoundingClientRect().bottom?c=e.state.doc.content.size:0!=i&&1==a.nodeType&&"BR"==a.childNodes[i-1].nodeName||(c=function(e,t,n,r){for(var a=-1,i=t;i!=e.dom;){var o=e.docView.nearestDesc(i,!0);if(!o)return null;if(o.node.isBlock&&o.parent){var s=o.dom.getBoundingClientRect();if(s.left>r.left||s.top>r.top)a=o.posBefore;else{if(!(s.right<r.left||s.bottom<r.top))break;a=o.posAfter}}i=o.dom.parentNode}return a>-1?a:e.docView.posFromDOM(t,n)}(e,a,i,t))}null==c&&(c=function(e,t,n){var r=ar(t,n),a=r.node,i=r.offset,o=-1;if(1==a.nodeType&&!a.firstChild){var s=a.getBoundingClientRect();o=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(a,i,o)}(e,u,t));var f=e.docView.nearestDesc(u,!0);return{pos:c,inside:f?f.posAtStart-f.border:-1}}function lr(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}function cr(e,t){var n=e.docView.domFromPos(t),r=n.node,a=n.offset;if(3==r.nodeType&&(Pn.webkit||Pn.gecko)){var i=lr(Bn(r,a,a),0);if(Pn.gecko&&a&&/\s/.test(r.nodeValue[a-1])&&a<r.nodeValue.length){var o=lr(Bn(r,a-1,a-1),-1);if(o.top==i.top){var s=lr(Bn(r,a,a+1),-1);if(s.top!=i.top)return ur(s,s.left<o.left)}}return i}if(1==r.nodeType&&!e.state.doc.resolve(t).parent.inlineContent){var l,c=!0;if(a<r.childNodes.length){var u=r.childNodes[a];1==u.nodeType&&(l=u.getBoundingClientRect())}if(!l&&a){var d=r.childNodes[a-1];1==d.nodeType&&(l=d.getBoundingClientRect(),c=!1)}return function(e,t){if(0==e.height)return e;var n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}(l||r.getBoundingClientRect(),c)}for(var p=-1;p<2;p+=2)if(p<0&&a){var m=void 0,f=3==r.nodeType?Bn(r,a-1,a):3==(m=r.childNodes[a-1]).nodeType?Bn(m):1==m.nodeType&&"BR"!=m.nodeName?m:null;if(f){var h=lr(f,1);if(h.top<h.bottom)return ur(h,!1)}}else if(p>0&&a<Un(r)){var _=void 0,v=3==r.nodeType?Bn(r,a,a+1):3==(_=r.childNodes[a]).nodeType?Bn(_):1==_.nodeType?_:null;if(v){var g=lr(v,-1);if(g.top<g.bottom)return ur(g,!0)}}return ur(lr(3==r.nodeType?Bn(r):r,0),!1)}function ur(e,t){if(0==e.width)return e;var n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function dr(e,t,n){var r=e.state,a=e.root.activeElement;r!=t&&e.updateState(t),a!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),a!=e.dom&&a&&a.focus()}}var pr=/[\u0590-\u08ac]/,mr=null,fr=null,hr=!1;function _r(e,t,n){return mr==t&&fr==n?hr:(mr=t,fr=n,hr="up"==n||"down"==n?function(e,t,n){var r=t.selection,a="up"==n?r.$anchor.min(r.$head):r.$anchor.max(r.$head);return dr(e,t,(function(){for(var t=e.docView.domFromPos(a.pos).node;;){var r=e.docView.nearestDesc(t,!0);if(!r)break;if(r.node.isBlock){t=r.dom;break}t=r.dom.parentNode}for(var i=cr(e,a.pos),o=t.firstChild;o;o=o.nextSibling){var s=void 0;if(1==o.nodeType)s=o.getClientRects();else{if(3!=o.nodeType)continue;s=Bn(o,0,o.nodeValue.length).getClientRects()}for(var l=0;l<s.length;l++){var c=s[l];if(c.bottom>c.top&&("up"==n?c.bottom<i.top+1:c.top>i.bottom-1))return!1}}return!0}))}(e,t,n):function(e,t,n){var r=t.selection.$head;if(!r.parent.isTextblock)return!1;var a=r.parentOffset,i=!a,o=a==r.parent.content.size,s=getSelection();return pr.test(r.parent.textContent)&&s.modify?dr(e,t,(function(){var t=s.getRangeAt(0),a=s.focusNode,i=s.focusOffset,o=s.caretBidiLevel;s.modify("move",n,"character");var l=!(r.depth?e.docView.domAfterPos(r.before()):e.dom).contains(1==s.focusNode.nodeType?s.focusNode:s.focusNode.parentNode)||a==s.focusNode&&i==s.focusOffset;return s.removeAllRanges(),s.addRange(t),null!=o&&(s.caretBidiLevel=o),l})):"left"==n||"backward"==n?i:o}(e,t,n))}var vr=function(e,t,n,r){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=r,this.dirty=0},gr={beforePosition:{configurable:!0},size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0}};vr.prototype.matchesWidget=function(){return!1},vr.prototype.matchesMark=function(){return!1},vr.prototype.matchesNode=function(){return!1},vr.prototype.matchesHack=function(){return!1},gr.beforePosition.get=function(){return!1},vr.prototype.parseRule=function(){return null},vr.prototype.stopEvent=function(){return!1},gr.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},gr.border.get=function(){return 0},vr.prototype.destroy=function(){this.parent=null,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=null);for(var e=0;e<this.children.length;e++)this.children[e].destroy()},vr.prototype.posBeforeChild=function(e){for(var t=0,n=this.posAtStart;t<this.children.length;t++){var r=this.children[t];if(r==e)return n;n+=r.size}},gr.posBefore.get=function(){return this.parent.posBeforeChild(this)},gr.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},gr.posAfter.get=function(){return this.posBefore+this.size},gr.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},vr.prototype.localPosFromDOM=function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var r,a;if(e==this.contentDOM)r=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.previousSibling}for(;r&&(!(a=r.pmViewDesc)||a.parent!=this);)r=r.previousSibling;return r?this.posBeforeChild(a)+a.size:this.posAtStart}var i,o;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&(!(o=i.pmViewDesc)||o.parent!=this);)i=i.nextSibling;return i?this.posBeforeChild(o):this.posAtEnd}var s;if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))s=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var l=e;;l=l.parentNode){if(l==this.dom){s=!1;break}if(l.parentNode.firstChild!=l)break}if(null==s&&t==e.childNodes.length)for(var c=e;;c=c.parentNode){if(c==this.dom){s=!0;break}if(c.parentNode.lastChild!=c)break}}return(null==s?n>0:s)?this.posAtEnd:this.posAtStart},vr.prototype.nearestDesc=function(e,t){for(var n=!0,r=e;r;r=r.parentNode){var a=this.getDesc(r);if(a&&(!t||a.node)){if(!n||!a.nodeDOM||(1==a.nodeDOM.nodeType?a.nodeDOM.contains(1==e.nodeType?e:e.parentNode):a.nodeDOM==e))return a;n=!1}}},vr.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},vr.prototype.posFromDOM=function(e,t,n){for(var r=e;r;r=r.parentNode){var a=this.getDesc(r);if(a)return a.localPosFromDOM(e,t,n)}return-1},vr.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var r=this.children[t],a=n+r.size;if(n==e&&a!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<a)return r.descAt(e-n-r.border);n=a}},vr.prototype.domFromPos=function(e){if(!this.contentDOM)return{node:this.dom,offset:0};for(var t=0,n=0;;n++){if(t==e){for(;n<this.children.length&&(this.children[n].beforePosition||this.children[n].dom.parentNode!=this.contentDOM);)n++;return{node:this.contentDOM,offset:n==this.children.length?this.contentDOM.childNodes.length:Hn(this.children[n].dom)}}if(n==this.children.length)throw new Error("Invalid position "+e);var r=this.children[n],a=t+r.size;if(e<a)return r.domFromPos(e-t-r.border);t=a}},vr.prototype.parseRange=function(e,t,n){if(void 0===n&&(n=0),0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var r=-1,a=-1,i=n,o=0;;o++){var s=this.children[o],l=i+s.size;if(-1==r&&e<=l){var c=i+s.border;if(e>=c&&t<=l-s.border&&s.node&&s.contentDOM&&this.contentDOM.contains(s.contentDOM))return s.parseRange(e,t,c);e=i;for(var u=o;u>0;u--){var d=this.children[u-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){r=Hn(d.dom)+1;break}e-=d.size}-1==r&&(r=0)}if(r>-1&&(l>t||o==this.children.length-1)){t=l;for(var p=o+1;p<this.children.length;p++){var m=this.children[p];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(-1)){a=Hn(m.dom);break}t+=m.size}-1==a&&(a=this.contentDOM.childNodes.length);break}i=l}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:a}},vr.prototype.emptyChildAt=function(e){if(this.border||!this.contentDOM||!this.children.length)return!1;var t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)},vr.prototype.domAfterPos=function(e){var t=this.domFromPos(e),n=t.node,r=t.offset;if(1!=n.nodeType||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]},vr.prototype.setSelection=function(e,t,n,r){for(var a=Math.min(e,t),i=Math.max(e,t),o=0,s=0;o<this.children.length;o++){var l=this.children[o],c=s+l.size;if(a>s&&i<c)return l.setSelection(e-s-l.border,t-s-l.border,n,r);s=c}var u=this.domFromPos(e),d=this.domFromPos(t),p=n.getSelection(),m=!1;if((Pn.gecko||Pn.safari)&&e==t){var f=u.node.childNodes[u.offset-1];m=f&&("BR"==f.nodeName||"false"==f.contentEditable)}if(r||m&&Pn.safari||!qn(u.node,u.offset,p.anchorNode,p.anchorOffset)||!qn(d.node,d.offset,p.focusNode,p.focusOffset)){var h=!1;if((p.extend||e==t)&&!m){p.collapse(u.node,u.offset);try{e!=t&&p.extend(d.node,d.offset),h=!0}catch(e){if(!(e instanceof DOMException))throw e}}if(!h){if(e>t){var _=u;u=d,d=_}var v=document.createRange();v.setEnd(d.node,d.offset),v.setStart(u.node,u.offset),p.removeAllRanges(),p.addRange(v)}}},vr.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},gr.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},vr.prototype.markDirty=function(e,t){for(var n=0,r=0;r<this.children.length;r++){var a=this.children[r],i=n+a.size;if(n==i?e<=i&&t>=n:e<i&&t>n){var o=n+a.border,s=i-a.border;if(e>=o&&t<=s)return this.dirty=e==n||t==i?2:1,void(e!=o||t!=s||!a.contentLost&&a.dom.parentNode==this.contentDOM?a.markDirty(e-o,t-o):a.dirty=3);a.dirty=3}n=i}this.dirty=2},vr.prototype.markParentsDirty=function(){for(var e=1,t=this.parent;t;t=t.parent,e++){var n=1==e?2:1;t.dirty<n&&(t.dirty=n)}},Object.defineProperties(vr.prototype,gr);var yr=[],br=function(e){function t(t,n,r,a){var i,o=n.type.toDOM;if("function"==typeof o&&(o=o(r,(function(){return i?i.parent?i.parent.posBeforeChild(i):void 0:a}))),!n.type.spec.raw){if(1!=o.nodeType){var s=document.createElement("span");s.appendChild(o),o=s}o.contentEditable=!1,o.classList.add("ProseMirror-widget")}e.call(this,t,yr,o,null),this.widget=n,i=this}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={beforePosition:{configurable:!0}};return n.beforePosition.get=function(){return this.widget.type.side<0},t.prototype.matchesWidget=function(e){return 0==this.dirty&&e.type.eq(this.widget.type)},t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.stopEvent=function(e){var t=this.widget.spec.stopEvent;return!!t&&t(e)},t.prototype.ignoreMutation=function(e){return"selection"!=e.type||this.widget.spec.ignoreSelection},Object.defineProperties(t.prototype,n),t}(vr),wr=function(e){function t(t,n,r,a){e.call(this,t,yr,n,null),this.textDOM=r,this.text=a}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0}};return n.size.get=function(){return this.text.length},t.prototype.localPosFromDOM=function(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t},t.prototype.domFromPos=function(e){return{node:this.textDOM,offset:e}},t.prototype.ignoreMutation=function(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue},Object.defineProperties(t.prototype,n),t}(vr),xr=function(e){function t(t,n,r,a){e.call(this,t,[],r,a),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,r,a){var i=a.nodeViews[n.type.name],o=i&&i(n,a,r);return o&&o.dom||(o=jn.DOMSerializer.renderSpec(document,n.type.spec.toDOM(n,r))),new t(e,n,o.dom,o.contentDOM||o.dom)},t.prototype.parseRule=function(){return{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},t.prototype.matchesMark=function(e){return 3!=this.dirty&&this.mark.eq(e)},t.prototype.markDirty=function(t,n){if(e.prototype.markDirty.call(this,t,n),0!=this.dirty){for(var r=this.parent;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=0}},t.prototype.slice=function(e,n,r){var a=t.create(this.parent,this.mark,!0,r),i=this.children,o=this.size;n<o&&(i=Ir(i,n,o,r)),e>0&&(i=Ir(i,0,e,r));for(var s=0;s<i.length;s++)i[s].parent=a;return a.children=i,a},t}(vr),kr=function(e){function t(t,n,r,a,i,o,s,l,c){e.call(this,t,n.isLeaf?yr:[],i,o),this.nodeDOM=s,this.node=n,this.outerDeco=r,this.innerDeco=a,o&&this.updateChildren(l,c)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0},border:{configurable:!0}};return t.create=function(e,n,r,a,i,o){var s,l,c=i.nodeViews[n.type.name],u=c&&c(n,i,(function(){return l?l.parent?l.parent.posBeforeChild(l):void 0:o}),r),d=u&&u.dom,p=u&&u.contentDOM;if(n.isText)if(d){if(3!=d.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else d=document.createTextNode(n.text);else d||(d=(s=jn.DOMSerializer.renderSpec(document,n.type.spec.toDOM(n))).dom,p=s.contentDOM);p||n.isText||"BR"==d.nodeName||(d.hasAttribute("contenteditable")||(d.contentEditable=!1),n.type.spec.draggable&&(d.draggable=!0));var m=d;return d=$r(d,r,n),u?l=new Cr(e,n,r,a,d,p,m,u,i,o+1):n.isText?new Mr(e,n,r,a,d,m,i):new t(e,n,r,a,d,p,m,i,o+1)},t.prototype.parseRule=function(){var e=this;if(this.node.type.spec.reparseInView)return null;var t={node:this.node.type.name,attrs:this.node.attrs};return this.node.type.spec.code&&(t.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?t.contentElement=this.contentDOM:t.getContent=function(){return e.contentDOM?jn.Fragment.empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&Pr(t,this.outerDeco)&&n.eq(this.innerDeco)},n.size.get=function(){return this.node.nodeSize},n.border.get=function(){return this.node.isLeaf?0:1},t.prototype.updateChildren=function(e,t){var n=this,r=this.node.inlineContent,a=t,i=r&&e.composing&&this.localCompositionNode(e,t),o=new Nr(this,i&&i.node);!function(e,t,n,r){var a=t.locals(e),i=0;if(0!=a.length)for(var o=0,s=[],l=null,c=0;;){if(o<a.length&&a[o].to==i){for(var u=a[o++],d=void 0;o<a.length&&a[o].to==i;)(d||(d=[u])).push(a[o++]);if(d){d.sort(zr);for(var p=0;p<d.length;p++)n(d[p],c,!!l)}else n(u,c,!!l)}var m=void 0,f=void 0;if(l)f=-1,m=l,l=null;else{if(!(c<e.childCount))break;f=c,m=e.child(c++)}for(var h=0;h<s.length;h++)s[h].to<=i&&s.splice(h--,1);for(;o<a.length&&a[o].from<=i&&a[o].to>i;)s.push(a[o++]);var _=i+m.nodeSize;if(m.isText){var v=_;o<a.length&&a[o].from<v&&(v=a[o].from);for(var g=0;g<s.length;g++)s[g].to<v&&(v=s[g].to);v<_&&(l=m.cut(v-i),m=m.cut(0,v-i),_=v,f=-1)}r(m,s.length?m.isInline&&!m.isLeaf?s.filter((function(e){return!e.inline})):s.slice():yr,t.forChild(i,m),f),i=_}else for(var y=0;y<e.childCount;y++){var b=e.child(y);r(b,a,t.forChild(i,b),y),i+=b.nodeSize}}(this.node,this.innerDeco,(function(t,i,s){t.spec.marks?o.syncToMarks(t.spec.marks,r,e):t.type.side>=0&&!s&&o.syncToMarks(i==n.node.childCount?jn.Mark.none:n.node.child(i).marks,r,e),o.placeWidget(t,e,a)}),(function(t,n,i,s){o.syncToMarks(t.marks,r,e),o.findNodeMatch(t,n,i,s)||o.updateNextNode(t,n,i,e,s)||o.addNode(t,n,i,e,a),a+=t.nodeSize})),o.syncToMarks(yr,r,e),this.node.isTextblock&&o.addTextblockHacks(),o.destroyRest(),(o.changed||2==this.dirty)&&(i&&this.protectLocalComposition(e,i),Lr(this.contentDOM,this.children,e),Pn.ios&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){var t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))},t.prototype.localCompositionNode=function(e,t){var n=e.state.selection,r=n.from,a=n.to;if(!(!(e.state.selection instanceof An.TextSelection)||r<t||a>t+this.node.content.size)){var i=e.root.getSelection(),o=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];t=Un(e=e.childNodes[t-1])}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}(i.focusNode,i.focusOffset);if(o&&this.dom.contains(o.parentNode)){var s=o.nodeValue,l=function(e,t,n,r){for(var a=0,i=0;a<e.childCount&&i<=r;){var o=e.child(a++),s=i;if(i+=o.nodeSize,o.isText){for(var l=o.text;a<e.childCount;){var c=e.child(a++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){var u=l.lastIndexOf(t,r-s);if(u>=0&&u+t.length+s>=n)return s+u}}}return-1}(this.node.content,s,r-t,a-t);return l<0?null:{node:o,pos:l,text:s}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,r=t.pos,a=t.text;if(!this.getDesc(n)){for(var i=n;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=null)}var o=new wr(this,i,n,a);e.compositionNodes.push(o),this.children=Ir(this.children,r,r+a.length,e,o)}},t.prototype.update=function(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node)||(this.updateInner(e,t,n,r),0))},t.prototype.updateInner=function(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0},t.prototype.updateOuterDeco=function(e){if(!Pr(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=Ar(this.dom,this.nodeDOM,Er(this.outerDeco,this.node,t),Er(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=e}},t.prototype.selectNode=function(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)},t.prototype.deselectNode=function(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")},Object.defineProperties(t.prototype,n),t}(vr);function Dr(e,t,n,r,a){return $r(r,t,e),new kr(null,e,t,n,r,r,r,a,0)}var Mr=function(e){function t(t,n,r,a,i,o,s){e.call(this,t,n,r,a,i,null,o,s)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.parseRule=function(){for(var e=this.nodeDOM.parentNode;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}},t.prototype.update=function(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node)||(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,0))},t.prototype.inParent=function(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1},t.prototype.domFromPos=function(e){return{node:this.nodeDOM,offset:e}},t.prototype.localPosFromDOM=function(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,r)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,r){var a=this.node.cut(e,n),i=document.createTextNode(a.text);return new t(this.parent,a,this.outerDeco,this.innerDeco,i,i,r)},t}(kr),Sr=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.matchesHack=function(){return 0==this.dirty},t}(vr),Cr=function(e){function t(t,n,r,a,i,o,s,l,c,u){e.call(this,t,n,r,a,i,o,s,c,u),this.spec=l}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.update=function(t,n,r,a){if(3==this.dirty)return!1;if(this.spec.update){var i=this.spec.update(t,n);return i&&this.updateInner(t,n,r,a),i}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,r,a)},t.prototype.selectNode=function(){this.spec.selectNode?this.spec.selectNode():e.prototype.selectNode.call(this)},t.prototype.deselectNode=function(){this.spec.deselectNode?this.spec.deselectNode():e.prototype.deselectNode.call(this)},t.prototype.setSelection=function(t,n,r,a){this.spec.setSelection?this.spec.setSelection(t,n,r):e.prototype.setSelection.call(this,t,n,r,a)},t.prototype.destroy=function(){this.spec.destroy&&this.spec.destroy(),e.prototype.destroy.call(this)},t.prototype.stopEvent=function(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)},t.prototype.ignoreMutation=function(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):e.prototype.ignoreMutation.call(this,t)},t}(kr);function Lr(e,t,n){for(var r=e.firstChild,a=!1,i=0;i<t.length;i++){var o=t[i],s=o.dom;if(s.parentNode==e){for(;s!=r;)r=Yr(r),a=!0;r=r.nextSibling}else a=!0,e.insertBefore(s,r);if(o instanceof xr){var l=r?r.previousSibling:e.lastChild;Lr(o.contentDOM,o.children,n),r=l?l.nextSibling:e.firstChild}}for(;r;)r=Yr(r),a=!0;a&&n.trackWrites==e&&(n.trackWrites=null)}function Tr(e){e&&(this.nodeName=e)}Tr.prototype=Object.create(null);var Or=[new Tr];function Er(e,t,n){if(0==e.length)return Or;for(var r=n?Or[0]:new Tr,a=[r],i=0;i<e.length;i++){var o=e[i].type.attrs,s=r;if(o)for(var l in o.nodeName&&a.push(s=new Tr(o.nodeName)),o){var c=o[l];null!=c&&(n&&1==a.length&&a.push(s=r=new Tr(t.isInline?"span":"div")),"class"==l?s.class=(s.class?s.class+" ":"")+c:"style"==l?s.style=(s.style?s.style+";":"")+c:"nodeName"!=l&&(s[l]=c))}}return a}function Ar(e,t,n,r){if(n==Or&&r==Or)return t;for(var a=t,i=0;i<r.length;i++){var o=r[i],s=n[i];if(i){var l=void 0;s&&s.nodeName==o.nodeName&&a!=e&&(l=a.parentNode)&&l.tagName.toLowerCase()==o.nodeName||((l=document.createElement(o.nodeName)).pmIsDeco=!0,l.appendChild(a),s=Or[0]),a=l}jr(a,s||Or[0],o)}return a}function jr(e,t,n){for(var r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(var a in n)"class"!=a&&"style"!=a&&"nodeName"!=a&&n[a]!=t[a]&&e.setAttribute(a,n[a]);if(t.class!=n.class){for(var i=t.class?t.class.split(" "):yr,o=n.class?n.class.split(" "):yr,s=0;s<i.length;s++)-1==o.indexOf(i[s])&&e.classList.remove(i[s]);for(var l=0;l<o.length;l++)-1==i.indexOf(o[l])&&e.classList.add(o[l])}if(t.style!=n.style){if(t.style)for(var c,u=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;c=u.exec(t.style);)e.style.removeProperty(c[1]);n.style&&(e.style.cssText+=n.style)}}function $r(e,t,n){return Ar(e,e,Or,Er(t,n,1!=e.nodeType))}function Pr(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function Yr(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var Nr=function(e,t){this.top=e,this.lock=t,this.index=0,this.stack=[],this.changed=!1;var n=function(e,t){for(var n=[],r=e.childCount,a=t.length-1;r>0&&a>=0;a--){var i=t[a],o=i.node;if(o){if(o!=e.child(r-1))break;n.push(i),--r}}return{nodes:n.reverse(),offset:r}}(e.node.content,e.children);this.preMatched=n.nodes,this.preMatchOffset=n.offset};function zr(e,t){return e.type.side-t.type.side}function Ir(e,t,n,r,a){for(var i=[],o=0,s=0;o<e.length;o++){var l=e[o],c=s,u=s+=l.size;c>=n||u<=t?i.push(l):(c<t&&i.push(l.slice(0,t-c,r)),a&&(i.push(a),a=null),u>n&&i.push(l.slice(n-c,l.size,r)))}return i}function Fr(e,t){var n=e.root.getSelection(),r=e.state.doc;if(!n.focusNode)return null;var a=e.docView.nearestDesc(n.focusNode),i=a&&0==a.size,o=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(o<0)return null;var s,l,c=r.resolve(o);if(Zn(n)){for(s=c;a&&!a.node;)a=a.parent;if(a&&a.node.isAtom&&An.NodeSelection.isSelectable(a.node)&&a.parent&&(!a.node.isInline||!function(e,t,n){for(var r=0==t,a=t==Un(e);r||a;){if(e==n)return!0;var i=Hn(e);if(!(e=e.parentNode))return!1;r=r&&0==i,a=a&&i==Un(e)}}(n.focusNode,n.focusOffset,a.dom))){var u=a.posBefore;l=new An.NodeSelection(o==u?c:r.resolve(u))}}else{var d=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(d<0)return null;s=r.resolve(d)}return l||(l=Kr(e,s,c,"pointer"==t||e.state.selection.head<c.pos&&!i?1:-1)),l}function Hr(e,t){var n=e.state.selection;if(Wr(e,n),e.editable?e.hasFocus():Zr(e)&&document.activeElement&&document.activeElement.contains(e.dom)){if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){var t=e.root.getSelection(),n=document.createRange(),r=e.cursorWrapper.dom,a="IMG"==r.nodeName;a?n.setEnd(r.parentNode,Hn(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!a&&!e.state.selection.visible&&Pn.ie&&Pn.ie_version<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{var r,a,i=n.anchor,o=n.head;!Rr||n instanceof An.TextSelection||(n.$from.parent.inlineContent||(r=Br(e,n.from)),n.empty||n.$from.parent.inlineContent||(a=Br(e,n.to))),e.docView.setSelection(i,o,e.root,t),Rr&&(r&&Vr(r),a&&Vr(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.hideSelectionGuard);var n=e.root.getSelection(),r=n.anchorNode,a=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==r&&n.anchorOffset==a||(t.removeEventListener("selectionchange",e.hideSelectionGuard),e.dom.classList.remove("ProseMirror-hideselection"))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}Nr.prototype.getPreMatch=function(e){return e>=this.preMatchOffset?this.preMatched[e-this.preMatchOffset]:null},Nr.prototype.destroyBetween=function(e,t){if(e!=t){for(var n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}},Nr.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},Nr.prototype.syncToMarks=function(e,t,n){for(var r=0,a=this.stack.length>>1,i=Math.min(a,e.length);r<i&&(r==a-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning;)r++;for(;r<a;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);for(var o=-1,s=this.index;s<Math.min(this.index+3,this.top.children.length);s++)if(this.top.children[s].matchesMark(e[a])){o=s;break}if(o>-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{var l=xr.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,a++}},Nr.prototype.findNodeMatch=function(e,t,n,r){var a=-1,i=r<0?void 0:this.getPreMatch(r),o=this.top.children;if(i&&i.matchesNode(e,t,n))a=o.indexOf(i);else for(var s=this.index,l=Math.min(o.length,s+5);s<l;s++){var c=o[s];if(c.matchesNode(e,t,n)&&this.preMatched.indexOf(c)<0){a=s;break}}return!(a<0||(this.destroyBetween(this.index,a),this.index++,0))},Nr.prototype.updateNextNode=function(e,t,n,r,a){for(var i=this.index;i<this.top.children.length;i++){var o=this.top.children[i];if(o instanceof kr){var s=this.preMatched.indexOf(o);if(s>-1&&s+this.preMatchOffset!=a)return!1;var l=o.dom;if((!this.lock||!(l==this.lock||1==l.nodeType&&l.contains(this.lock.parentNode))||e.isText&&o.node&&o.node.isText&&o.nodeDOM.nodeValue==e.text&&3!=o.dirty&&Pr(t,o.outerDeco))&&o.update(e,t,n,r))return this.destroyBetween(this.index,i),o.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1},Nr.prototype.addNode=function(e,t,n,r,a){this.top.children.splice(this.index++,0,kr.create(this.top,e,t,n,r,a)),this.changed=!0},Nr.prototype.placeWidget=function(e,t,n){var r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){var a=new br(this.top,e,t,n);this.top.children.splice(this.index++,0,a),this.changed=!0}else this.index++},Nr.prototype.addTextblockHacks=function(){for(var e=this.top.children[this.index-1];e instanceof xr;)e=e.children[e.children.length-1];if(!e||!(e instanceof Mr)||/\n$/.test(e.node.text))if(this.index<this.top.children.length&&this.top.children[this.index].matchesHack())this.index++;else{var t=document.createElement("br");this.top.children.splice(this.index++,0,new Sr(this.top,yr,t,null)),this.changed=!0}};var Rr=Pn.safari||Pn.chrome&&Pn.chrome_version<63;function Br(e,t){var n=e.docView.domFromPos(t),r=n.node,a=n.offset,i=a<r.childNodes.length?r.childNodes[a]:null,o=a?r.childNodes[a-1]:null;if(Pn.safari&&i&&"false"==i.contentEditable)return qr(i);if(!(i&&"false"!=i.contentEditable||o&&"false"!=o.contentEditable)){if(i)return qr(i);if(o)return qr(o)}}function qr(e){return e.contentEditable="true",Pn.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Vr(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Wr(e,t){if(t instanceof An.NodeSelection){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Ur(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Ur(e)}function Ur(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function Kr(e,t,n,r){return e.someProp("createSelectionBetween",(function(r){return r(e,t,n)}))||An.TextSelection.between(t,n,r)}function Zr(e){var t=e.root.getSelection();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function Gr(e,t){var n=e.selection,r=n.$anchor,a=n.$head,i=t>0?r.max(a):r.min(a),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&An.Selection.findFrom(o,t)}function Jr(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Xr(e,t,n){var r=e.state.selection;if(!(r instanceof An.TextSelection)){if(r instanceof An.NodeSelection&&r.node.isInline)return Jr(e,new An.TextSelection(t>0?r.$to:r.$from));var a=Gr(e.state,t);return!!a&&Jr(e,a)}if(!r.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var i=Gr(e.state,t);return!!(i&&i instanceof An.NodeSelection)&&Jr(e,i)}if(!(Pn.mac&&n.indexOf("m")>-1)){var o,s=r.$head,l=s.textOffset?null:t<0?s.nodeBefore:s.nodeAfter;if(!l||l.isText)return!1;var c=t<0?s.pos-l.nodeSize:s.pos;return!!(l.isAtom||(o=e.docView.descAt(c))&&!o.contentDOM)&&(An.NodeSelection.isSelectable(l)?Jr(e,new An.NodeSelection(t<0?e.state.doc.resolve(s.pos-l.nodeSize):s)):!!Pn.webkit&&Jr(e,new An.TextSelection(e.state.doc.resolve(t<0?c:c+l.nodeSize))))}}function Qr(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function ea(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function ta(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){var a,i,o=!1;for(Pn.gecko&&1==n.nodeType&&r<Qr(n)&&ea(n.childNodes[r])&&(o=!0);;)if(r>0){if(1!=n.nodeType)break;var s=n.childNodes[r-1];if(ea(s))a=n,i=--r;else{if(3!=s.nodeType)break;r=(n=s).nodeValue.length}}else{if(ra(n))break;for(var l=n.previousSibling;l&&ea(l);)a=n.parentNode,i=Hn(l),l=l.previousSibling;if(l)r=Qr(n=l);else{if((n=n.parentNode)==e.dom)break;r=0}}o?aa(e,t,n,r):a&&aa(e,t,a,i)}}function na(e){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n){for(var a,i,o=Qr(n);;)if(r<o){if(1!=n.nodeType)break;if(!ea(n.childNodes[r]))break;a=n,i=++r}else{if(ra(n))break;for(var s=n.nextSibling;s&&ea(s);)a=s.parentNode,i=Hn(s)+1,s=s.nextSibling;if(s)r=0,o=Qr(n=s);else{if((n=n.parentNode)==e.dom)break;r=o=0}}a&&aa(e,t,a,i)}}function ra(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function aa(e,t,n,r){if(Zn(t)){var a=document.createRange();a.setEnd(n,r),a.setStart(n,r),t.removeAllRanges(),t.addRange(a)}else t.extend&&t.extend(n,r);e.domObserver.setCurSelection();var i=e.state;setTimeout((function(){e.state==i&&Hr(e)}),50)}function ia(e,t,n){var r=e.state.selection;if(r instanceof An.TextSelection&&!r.empty||n.indexOf("s")>-1)return!1;if(Pn.mac&&n.indexOf("m")>-1)return!1;var a=r.$from,i=r.$to;if(!a.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var o=Gr(e.state,t);if(o&&o instanceof An.NodeSelection)return Jr(e,o)}if(!a.parent.inlineContent){var s=An.Selection.findFrom(t<0?a:i,t);return!s||Jr(e,s)}return!1}function oa(e,t){if(!(e.state.selection instanceof An.TextSelection))return!0;var n=e.state.selection,r=n.$head,a=n.$anchor,i=n.empty;if(!r.sameParent(a))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var o=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(o&&!o.isText){var s=e.state.tr;return t<0?s.delete(r.pos-o.nodeSize,r.pos):s.delete(r.pos,r.pos+o.nodeSize),e.dispatch(s),!0}return!1}function sa(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function la(e,t){var n=t.keyCode,r=function(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);return 8==n||Pn.mac&&72==n&&"c"==r?oa(e,-1)||ta(e):46==n||Pn.mac&&68==n&&"c"==r?oa(e,1)||na(e):13==n||27==n||(37==n?Xr(e,-1,r)||ta(e):39==n?Xr(e,1,r)||na(e):38==n?ia(e,-1,r)||ta(e):40==n?function(e){if(Pn.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(n&&1==n.nodeType&&0==r&&n.firstChild&&"false"==n.firstChild.contentEditable){var a=n.firstChild;sa(e,a,!0),setTimeout((function(){return sa(e,a,!1)}),20)}}}(e)||ia(e,1,r)||na(e):r==(Pn.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function ca(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(Pn.safari&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){var n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}if(e.parentNode.lastChild==e||Pn.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function ua(e,t,n,r,a){if(t<0){var i=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,o=Fr(e,i);if(o&&!e.state.selection.eq(o)){var s=e.state.tr.setSelection(o);"pointer"==i?s.setMeta("pointer",!0):"key"==i&&s.scrollIntoView(),e.dispatch(s)}}else{var l=e.state.doc.resolve(t),c=l.sharedDepth(n);t=l.before(c+1),n=e.state.doc.resolve(n).after(c+1);var u,d,p=e.state.selection,m=function(e,t,n){var r=e.docView.parseRange(t,n),a=r.node,i=r.fromOffset,o=r.toOffset,s=r.from,l=r.to,c=e.root.getSelection(),u=null,d=c.anchorNode;if(d&&e.dom.contains(1==d.nodeType?d:d.parentNode)&&(u=[{node:d,offset:c.anchorOffset}],Zn(c)||u.push({node:c.focusNode,offset:c.focusOffset})),Pn.chrome&&8===e.lastKeyCode)for(var p=o;p>i;p--){var m=a.childNodes[p-1],f=m.pmViewDesc;if("BR"==m.nodeType&&!f){o=p;break}if(!f||f.size)break}var h=e.state.doc,_=e.someProp("domParser")||jn.DOMParser.fromSchema(e.state.schema),v=h.resolve(s),g=null,y=_.parse(a,{topNode:v.parent,topMatch:v.parent.contentMatchAt(v.index()),topOpen:!0,from:i,to:o,preserveWhitespace:!v.parent.type.spec.code||"full",editableContent:!0,findPositions:u,ruleFromNode:ca,context:v});if(u&&null!=u[0].pos){var b=u[0].pos,w=u[1]&&u[1].pos;null==w&&(w=b),g={anchor:b+s,head:w+s}}return{doc:y,sel:g,from:s,to:l}}(e,t,n),f=e.state.doc,h=f.slice(m.from,m.to);8===e.lastKeyCode&&Date.now()-100<e.lastKeyCodeTime?(u=e.state.selection.to,d="end"):(u=e.state.selection.from,d="start"),e.lastKeyCode=null;var _=function(e,t,n,r,a){var i=e.findDiffStart(t,n);if(null==i)return null;var o=e.findDiffEnd(t,n+e.size,n+t.size),s=o.a,l=o.b;return"end"==a&&(r-=s+Math.max(0,i-Math.min(s,l))-i),s<i&&e.size<t.size?(l=(i-=r<=i&&r>=s?i-r:0)+(l-s),s=i):l<i&&(s=(i-=r<=i&&r>=l?i-r:0)+(s-l),l=i),{start:i,endA:s,endB:l}}(h.content,m.doc.content,m.from,u,d);if(!_){if(!(r&&p instanceof An.TextSelection&&!p.empty&&p.$head.sameParent(p.$anchor))||e.composing||m.sel&&m.sel.anchor!=m.sel.head){if(m.sel){var v=da(e,e.state.doc,m.sel);v&&!v.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(v))}return}_={start:p.from,endA:p.to,endB:p.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&_.start==_.endB&&e.state.selection instanceof An.TextSelection&&(_.start>e.state.selection.from&&_.start<=e.state.selection.from+2?_.start=e.state.selection.from:_.endA<e.state.selection.to&&_.endA>=e.state.selection.to-2&&(_.endB+=e.state.selection.to-_.endA,_.endA=e.state.selection.to)),Pn.ie&&Pn.ie_version<=11&&_.endB==_.start+1&&_.endA==_.start&&_.start>m.from&&"  "==m.doc.textBetween(_.start-m.from-1,_.start-m.from+1)&&(_.start--,_.endA--,_.endB--);var g,y=m.doc.resolveNoCache(_.start-m.from),b=m.doc.resolveNoCache(_.endB-m.from),w=y.sameParent(b)&&y.parent.inlineContent;if((Pn.ios&&e.lastIOSEnter>Date.now()-225&&(!w||a.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!w&&y.pos<m.doc.content.size&&(g=An.Selection.findFrom(m.doc.resolve(y.pos+1),1,!0))&&g.head==b.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,Gn(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>_.start&&function(e,t,n,r,a){if(!r.parent.isTextblock||n-t<=a.pos-r.pos||pa(r,!0,!1)<a.pos)return!1;var i=e.resolve(t);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;var o=e.resolve(pa(i,!0,!0));return!(!o.parent.isTextblock||o.pos>n||pa(o,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(o.parent.content)}(f,_.start,_.endA,y,b)&&e.someProp("handleKeyDown",(function(t){return t(e,Gn(8,"Backspace"))})))Pn.android&&Pn.chrome&&e.domObserver.suppressSelectionUpdates();else{Pn.android&&!w&&y.start()!=b.start()&&0==b.parentOffset&&y.depth==b.depth&&m.sel&&m.sel.anchor==m.sel.head&&m.sel.head==_.endA&&(_.endB-=2,b=m.doc.resolveNoCache(_.endB-m.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,Gn(13,"Enter"))}))}),20));var x,k,D,M,S=_.start,C=_.endA;if(w)if(y.pos==b.pos)Pn.ie&&Pn.ie_version<=11&&0==y.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return Hr(e)}),20)),x=e.state.tr.delete(S,C),k=f.resolve(_.start).marksAcross(f.resolve(_.endA));else if(_.endA==_.endB&&(M=f.resolve(_.start))&&(D=function(e,t){for(var n,r,a,i=e.firstChild.marks,o=t.firstChild.marks,s=i,l=o,c=0;c<o.length;c++)s=o[c].removeFromSet(s);for(var u=0;u<i.length;u++)l=i[u].removeFromSet(l);if(1==s.length&&0==l.length)r=s[0],n="add",a=function(e){return e.mark(r.addToSet(e.marks))};else{if(0!=s.length||1!=l.length)return null;r=l[0],n="remove",a=function(e){return e.mark(r.removeFromSet(e.marks))}}for(var d=[],p=0;p<t.childCount;p++)d.push(a(t.child(p)));if(jn.Fragment.from(d).eq(e))return{mark:r,type:n}}(y.parent.content.cut(y.parentOffset,b.parentOffset),M.parent.content.cut(M.parentOffset,_.endA-M.start()))))x=e.state.tr,"add"==D.type?x.addMark(S,C,D.mark):x.removeMark(S,C,D.mark);else if(y.parent.child(y.index()).isText&&y.index()==b.index()-(b.textOffset?0:1)){var L=y.parent.textBetween(y.parentOffset,b.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,S,C,L)})))return;x=e.state.tr.insertText(L,S,C)}if(x||(x=e.state.tr.replace(S,C,m.doc.slice(_.start-m.from,_.endB-m.from))),m.sel){var T=da(e,x.doc,m.sel);T&&!(Pn.chrome&&Pn.android&&e.composing&&T.empty&&(T.head==S||T.head==x.mapping.map(C)-1)||Pn.ie&&T.empty&&T.head==S)&&x.setSelection(T)}k&&x.ensureMarks(k),e.dispatch(x.scrollIntoView())}}}function da(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Kr(e,t.resolve(n.anchor),t.resolve(n.head))}function pa(e,t,n){for(var r=e.depth,a=t?e.end():e.pos;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,a++,t=!1;if(n)for(var i=e.node(r).maybeChild(e.indexAfter(r));i&&!i.isLeaf;)i=i.firstChild,a++;return a}function ma(e,t){for(var n=[],r=t.content,a=t.openStart,i=t.openEnd;a>1&&i>1&&1==r.childCount&&1==r.firstChild.childCount;){a--,i--;var o=r.firstChild;n.push(o.type.name,o.type.hasRequiredAttrs()?o.attrs:null),r=o.content}var s=e.someProp("clipboardSerializer")||jn.DOMSerializer.fromSchema(e.state.schema),l=wa(),c=l.createElement("div");c.appendChild(s.serializeFragment(r,{document:l}));for(var u,d=c.firstChild;d&&1==d.nodeType&&(u=ya[d.nodeName.toLowerCase()]);){for(var p=u.length-1;p>=0;p--){for(var m=l.createElement(u[p]);c.firstChild;)m.appendChild(c.firstChild);c.appendChild(m)}d=c.firstChild}return d&&1==d.nodeType&&d.setAttribute("data-pm-slice",a+" "+i+" "+JSON.stringify(n)),{dom:c,text:e.someProp("clipboardTextSerializer",(function(e){return e(t)}))||t.content.textBetween(0,t.content.size,"\n\n")}}function fa(e,t,n,r,a){var i,o,s=a.parent.type.spec.code;if(!n&&!t)return null;var l=t&&(r||s||!n);if(l){if(e.someProp("transformPastedText",(function(e){t=e(t,s||r)})),s)return new jn.Slice(jn.Fragment.from(e.state.schema.text(t)),0,0);var c=e.someProp("clipboardTextParser",(function(e){return e(t,a,r)}));c?o=c:(i=document.createElement("div"),t.trim().split(/(?:\r\n?|\n)+/).forEach((function(e){i.appendChild(document.createElement("p")).textContent=e})))}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),i=function(e){var t=/(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,r=wa().createElement("div"),a=/(?:<meta [^>]*>)*<([a-z][^>\s]+)/i.exec(e),i=0;(n=a&&ya[a[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join(""),i=n.length),r.innerHTML=e;for(var o=0;o<i;o++)r=r.firstChild;return r}(n);var u=i&&i.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+) (.*)/.exec(u.getAttribute("data-pm-slice"));if(!o){var p=e.someProp("clipboardParser")||e.someProp("domParser")||jn.DOMParser.fromSchema(e.state.schema);o=p.parseSlice(i,{preserveWhitespace:!(!l&&!d),context:a})}return o=d?function(e,t){if(!e.size)return e;var n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}for(var a=e.content,i=e.openStart,o=e.openEnd,s=n.length-2;s>=0;s-=2){var l=r.nodes[n[s]];if(!l||l.hasRequiredAttrs())break;a=jn.Fragment.from(l.create(n[s+1],a)),i++,o++}return new jn.Slice(a,i,o)}(function(e,t,n){return t<e.openStart&&(e=new jn.Slice(ga(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new jn.Slice(ga(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}(o,+d[1],+d[2]),d[3]):jn.Slice.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n=function(n){var r=t.node(n).contentMatchAt(t.index(n)),a=void 0,i=[];if(e.forEach((function(e){if(i){var t,n=r.findWrapping(e.type);if(!n)return i=null;if(t=i.length&&a.length&&_a(n,a,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=va(i[i.length-1],a.length));var o=ha(e,n);i.push(o),r=r.matchType(o.type,o.attrs),a=n}}})),i)return{v:jn.Fragment.from(i)}},r=t.depth;r>=0;r--){var a=n(r);if(a)return a.v}return e}(o.content,a),!1),e.someProp("transformPasted",(function(e){o=e(o)})),o}function ha(e,t,n){void 0===n&&(n=0);for(var r=t.length-1;r>=n;r--)e=t[r].create(null,jn.Fragment.from(e));return e}function _a(e,t,n,r,a){if(a<e.length&&a<t.length&&e[a]==t[a]){var i=_a(e,t,n,r.lastChild,a+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(a==e.length-1?n.type:e[a+1]))return r.copy(r.content.append(jn.Fragment.from(ha(n,e,a+1))))}}function va(e,t){if(0==t)return e;var n=e.content.replaceChild(e.childCount-1,va(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(jn.Fragment.empty,!0);return e.copy(n.append(r))}function ga(e,t,n,r,a,i){var o=t<0?e.firstChild:e.lastChild,s=o.content;return a<r-1&&(s=ga(s,t,n,r,a+1,i)),a>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,e.childCount>1||i<=a).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(jn.Fragment.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}var ya={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},ba=null;function wa(){return ba||(ba=document.implementation.createHTMLDocument("title"))}var xa={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ka=Pn.ie&&Pn.ie_version<=11,Da=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};Da.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},Da.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var Ma=function(e,t){var n=this;this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver((function(e){for(var t=0;t<e.length;t++)n.queue.push(e[t]);Pn.ie&&Pn.ie_version<=11&&e.some((function(e){return"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length}))?n.flushSoon():n.flush()})),this.currentSelection=new Da,ka&&(this.onCharData=function(e){n.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1};Ma.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},Ma.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},Ma.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,xa),ka&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},Ma.prototype.stop=function(){var e=this;if(this.observer){var t=this.observer.takeRecords();if(t.length){for(var n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout((function(){return e.flush()}),20)}this.observer.disconnect()}ka&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},Ma.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},Ma.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},Ma.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},Ma.prototype.onSelectionChange=function(){if((!(e=this.view).editable||e.root.activeElement==e.dom)&&Zr(e)){var e;if(this.suppressingSelectionUpdates)return Hr(this.view);if(Pn.ie&&Pn.ie_version<=11&&!this.view.state.selection.empty){var t=this.view.root.getSelection();if(t.focusNode&&qn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}},Ma.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},Ma.prototype.ignoreSelectionChange=function(e){if(0==e.rangeCount)return!0;var t=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0},Ma.prototype.flush=function(){if(this.view.docView&&!(this.flushingSoon>-1)){var e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);var t=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&Zr(this.view)&&!this.ignoreSelectionChange(t),r=-1,a=-1,i=!1,o=[];if(this.view.editable)for(var s=0;s<e.length;s++){var l=this.registerMutation(e[s],o);l&&(r=r<0?l.from:Math.min(l.from,r),a=a<0?l.to:Math.max(l.to,a),l.typeOver&&(i=!0))}if(Pn.gecko&&o.length>1){var c=o.filter((function(e){return"BR"==e.nodeName}));if(2==c.length){var u=c[0],d=c[1];u.parentNode&&u.parentNode.parentNode==d.parentNode?d.remove():u.remove()}}(r>-1||n)&&(r>-1&&(this.view.docView.markDirty(r,a),p=this.view,Sa||(Sa=!0,"normal"==getComputedStyle(p.dom).whiteSpace&&console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."))),this.handleDOMChange(r,a,i,o),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||Hr(this.view))}var p},Ma.prototype.registerMutation=function(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){var r=e.previousSibling,a=e.nextSibling;if(Pn.ie&&Pn.ie_version<=11&&e.addedNodes.length)for(var i=0;i<e.addedNodes.length;i++){var o=e.addedNodes[i],s=o.previousSibling,l=o.nextSibling;(!s||Array.prototype.indexOf.call(e.addedNodes,s)<0)&&(r=s),(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(a=l)}for(var c=r&&r.parentNode==e.target?Hn(r)+1:0,u=n.localPosFromDOM(e.target,c,-1),d=a&&a.parentNode==e.target?Hn(a):e.target.childNodes.length,p=0;p<e.addedNodes.length;p++)t.push(e.addedNodes[p]);return{from:u,to:n.localPosFromDOM(e.target,d,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}};var Sa=!1,Ca={},La={};function Ta(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function Oa(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return Ea(e,t)})}))}function Ea(e,t){return e.someProp("handleDOMEvents",(function(n){var r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)}))}function Aa(e){return{left:e.clientX,top:e.clientY}}function ja(e,t,n,r,a){if(-1==r)return!1;for(var i=e.state.doc.resolve(r),o=function(r){if(e.someProp(t,(function(t){return r>i.depth?t(e,n,i.nodeAfter,i.before(r),a,!0):t(e,n,i.node(r),i.before(r),a,!1)})))return{v:!0}},s=i.depth+1;s>0;s--){var l=o(s);if(l)return l.v}return!1}function $a(e,t,n){e.focused||e.focus();var r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function Pa(e,t,n,r,a){return ja(e,"handleClickOn",t,n,r)||e.someProp("handleClick",(function(n){return n(e,t,r)}))||(a?function(e,t){if(-1==t)return!1;var n,r,a=e.state.selection;a instanceof An.NodeSelection&&(n=a.node);for(var i=e.state.doc.resolve(t),o=i.depth+1;o>0;o--){var s=o>i.depth?i.nodeAfter:i.node(o);if(An.NodeSelection.isSelectable(s)){r=n&&a.$from.depth>0&&o>=a.$from.depth&&i.before(a.$from.depth+1)==a.$from.pos?i.before(a.$from.depth):i.before(o);break}}return null!=r&&($a(e,An.NodeSelection.create(e.state.doc,r),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&An.NodeSelection.isSelectable(r))&&($a(e,new An.NodeSelection(n),"pointer"),!0)}(e,n))}function Ya(e,t,n,r){return ja(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",(function(n){return n(e,t,r)}))}function Na(e,t,n,r){return ja(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",(function(n){return n(e,t,r)}))||function(e,t){var n=e.state.doc;if(-1==t)return!!n.inlineContent&&($a(e,An.TextSelection.create(n,0,n.content.size),"pointer"),!0);for(var r=n.resolve(t),a=r.depth+1;a>0;a--){var i=a>r.depth?r.nodeAfter:r.node(a),o=r.before(a);if(i.inlineContent)$a(e,An.TextSelection.create(n,o+1,o+1+i.content.size),"pointer");else{if(!An.NodeSelection.isSelectable(i))continue;$a(e,An.NodeSelection.create(n,o),"pointer")}return!0}}(e,n)}function za(e){return Va(e)}La.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!Ha(e,t))if(e.domObserver.forceFlush(),e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!Pn.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",(function(n){return n(e,t)}))||la(e,t)?t.preventDefault():Ta(e,"key");else{var n=Date.now();e.lastIOSEnter=n,e.lastIOSEnterFallbackTimeout=setTimeout((function(){e.lastIOSEnter==n&&(e.someProp("handleKeyDown",(function(t){return t(e,Gn(13,"Enter"))})),e.lastIOSEnter=0)}),200)}},La.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},La.keypress=function(e,t){if(!(Ha(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||Pn.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof An.TextSelection&&n.$from.sameParent(n.$to))){var r=String.fromCharCode(t.charCode);e.someProp("handleTextInput",(function(t){return t(e,n.$from.pos,n.$to.pos,r)}))||e.dispatch(e.state.tr.insertText(r).scrollIntoView()),t.preventDefault()}}};var Ia=Pn.mac?"metaKey":"ctrlKey";Ca.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=za(e),r=Date.now(),a="singleClick";r-e.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(t,e.lastClick)&&!t[Ia]&&("singleClick"==e.lastClick.type?a="doubleClick":"doubleClick"==e.lastClick.type&&(a="tripleClick")),e.lastClick={time:r,x:t.clientX,y:t.clientY,type:a};var i=e.posAtCoords(Aa(t));i&&("singleClick"==a?e.mouseDown=new Fa(e,i,t,n):("doubleClick"==a?Ya:Na)(e,i.pos,i.inside,t)?t.preventDefault():Ta(e,"pointer"))};var Fa=function(e,t,n,r){var a,i,o=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=r,this.selectNode=n[Ia],this.allowDefault=n.shiftKey,t.inside>-1)a=e.state.doc.nodeAt(t.inside),i=t.inside;else{var s=e.state.doc.resolve(t.pos);a=s.parent,i=s.depth?s.before():0}this.mightDrag=null;var l=r?null:n.target,c=l?e.docView.nearestDesc(l,!0):null;this.target=c?c.dom:null,(a.type.spec.draggable&&!1!==a.type.spec.selectable||e.state.selection instanceof An.NodeSelection&&i==e.state.selection.from)&&(this.mightDrag={node:a,pos:i,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&Pn.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((function(){return o.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Ta(e,"pointer")};function Ha(e,t){return!!e.composing||!!(Pn.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}Fa.prototype.done=function(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.view.mouseDown=null},Fa.prototype.up=function(e){if(this.done(),this.view.dom.contains(3==e.target.nodeType?e.target.parentNode:e.target)){var t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Aa(e))),this.allowDefault||!t?Ta(this.view,"pointer"):Pa(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():this.flushed||Pn.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||Pn.chrome&&!(this.view.state.selection instanceof An.TextSelection)&&(t.pos==this.view.state.selection.from||t.pos==this.view.state.selection.to)?($a(this.view,An.Selection.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Ta(this.view,"pointer")}},Fa.prototype.move=function(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),Ta(this.view,"pointer")},Ca.touchdown=function(e){za(e),Ta(e,"pointer")},Ca.contextmenu=function(e){return za(e)};var Ra=Pn.android?5e3:-1;function Ba(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return Va(e)}),t))}function qa(e){for(e.composing=!1;e.compositionNodes.length>0;)e.compositionNodes.pop().markParentsDirty()}function Va(e,t){if(e.domObserver.forceFlush(),qa(e),t||e.docView.dirty){var n=Fr(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}La.compositionstart=La.compositionupdate=function(e){if(!e.composing){e.domObserver.flush();var t=e.state,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((function(e){return!1===e.type.spec.inclusive}))))e.markCursor=e.state.storedMarks||n.marks(),Va(e,!0),e.markCursor=null;else if(Va(e),Pn.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var r=e.root.getSelection(),a=r.focusNode,i=r.focusOffset;a&&1==a.nodeType&&0!=i;){var o=i<0?a.lastChild:a.childNodes[i-1];if(!o)break;if(3==o.nodeType){r.collapse(o,o.nodeValue.length);break}a=o,i=-1}e.composing=!0}Ba(e,Ra)},La.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,Ba(e,20))};var Wa=Pn.ie&&Pn.ie_version<15||Pn.ios&&Pn.webkit_version<604;function Ua(e,t,n,r){var a=fa(e,t,n,e.shiftKey,e.state.selection.$from);if(!e.someProp("handlePaste",(function(t){return t(e,r,a||jn.Slice.empty)}))&&a){var i=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(a),o=i?e.state.tr.replaceSelectionWith(i,e.shiftKey):e.state.tr.replaceSelection(a);e.dispatch(o.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste"))}}Ca.copy=La.cut=function(e,t){var n=e.state.selection,r="cut"==t.type;if(!n.empty){var a=Wa?null:t.clipboardData,i=ma(e,n.content()),o=i.dom,s=i.text;a?(t.preventDefault(),a.clearData(),a.setData("text/html",o.innerHTML),a.setData("text/plain",s)):function(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var r=getSelection(),a=document.createRange();a.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(a),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,o),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},La.paste=function(e,t){var n=Wa?null:t.clipboardData,r=n&&n.getData("text/html"),a=n&&n.getData("text/plain");n&&(r||a||n.files.length)?(Ua(e,a,r,t),t.preventDefault()):function(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout((function(){e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Ua(e,r.value,null,t):Ua(e,r.textContent,r.innerHTML,t)}),50)}}(e,t)};var Ka=function(e,t){this.slice=e,this.move=t},Za=Pn.mac?"altKey":"ctrlKey";for(var Ga in Ca.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var r=e.state.selection,a=r.empty?null:e.posAtCoords(Aa(t));if(a&&a.pos>=r.from&&a.pos<=(r instanceof An.NodeSelection?r.to-1:r.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(An.NodeSelection.create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var i=e.docView.nearestDesc(t.target,!0);if(!i||!i.node.type.spec.draggable||i==e.docView)return;e.dispatch(e.state.tr.setSelection(An.NodeSelection.create(e.state.doc,i.posBefore)))}var o=e.state.selection.content(),s=ma(e,o),l=s.dom,c=s.text;t.dataTransfer.clearData(),t.dataTransfer.setData(Wa?"Text":"text/html",l.innerHTML),Wa||t.dataTransfer.setData("text/plain",c),e.dragging=new Ka(o,!t[Za])}},Ca.dragend=function(e){window.setTimeout((function(){return e.dragging=null}),50)},La.dragover=La.dragenter=function(e,t){return t.preventDefault()},La.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var r=e.posAtCoords(Aa(t));if(r){var a=e.state.doc.resolve(r.pos);if(a){var i=n&&n.slice||fa(e,t.dataTransfer.getData(Wa?"Text":"text/plain"),Wa?null:t.dataTransfer.getData("text/html"),!1,a),o=n&&!t[Za];if(e.someProp("handleDrop",(function(n){return n(e,t,i||jn.Slice.empty,o)})))t.preventDefault();else if(i){t.preventDefault();var s=i?Object($n.h)(e.state.doc,a.pos,i):a.pos;null==s&&(s=a.pos);var l=e.state.tr;o&&l.deleteSelection();var c=l.mapping.map(s),u=0==i.openStart&&0==i.openEnd&&1==i.content.childCount,d=l.doc;if(u?l.replaceRangeWith(c,c,i.content.firstChild):l.replaceRange(c,c,i),!l.doc.eq(d)){var p=l.doc.resolve(c);if(u&&An.NodeSelection.isSelectable(i.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(i.content.firstChild))l.setSelection(new An.NodeSelection(p));else{var m=l.mapping.map(s);l.mapping.maps[l.mapping.maps.length-1].forEach((function(e,t,n,r){return m=r})),l.setSelection(Kr(e,p,l.doc.resolve(m)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}}}}}},Ca.focus=function(e){e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((function(){e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.root.getSelection())&&Hr(e)}),20))},Ca.blur=function(e){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),e.domObserver.currentSelection.set({}),e.focused=!1)},Ca.beforeinput=function(e,t){if(Pn.chrome&&Pn.android&&"deleteContentBackward"==t.inputType){var n=e.domChangeCount;setTimeout((function(){if(e.domChangeCount==n&&(e.dom.blur(),e.focus(),!e.someProp("handleKeyDown",(function(t){return t(e,Gn(8,"Backspace"))})))){var t=e.state.selection.$cursor;t&&t.pos>0&&e.dispatch(e.state.tr.delete(t.pos-1,t.pos).scrollIntoView())}}),50)}},La)Ca[Ga]=La[Ga];function Ja(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var r in t)if(!(r in e))return!1;return!0}var Xa=function(e,t){this.spec=t||ai,this.side=this.spec.side||0,this.toDOM=e};Xa.prototype.map=function(e,t,n,r){var a=e.mapResult(t.from+r,this.side<0?-1:1),i=a.pos;return a.deleted?null:new ti(i-n,i-n,this)},Xa.prototype.valid=function(){return!0},Xa.prototype.eq=function(e){return this==e||e instanceof Xa&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ja(this.spec,e.spec))};var Qa=function(e,t){this.spec=t||ai,this.attrs=e};Qa.prototype.map=function(e,t,n,r){var a=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return a>=i?null:new ti(a,i,this)},Qa.prototype.valid=function(e,t){return t.from<t.to},Qa.prototype.eq=function(e){return this==e||e instanceof Qa&&Ja(this.attrs,e.attrs)&&Ja(this.spec,e.spec)},Qa.is=function(e){return e.type instanceof Qa};var ei=function(e,t){this.spec=t||ai,this.attrs=e};ei.prototype.map=function(e,t,n,r){var a=e.mapResult(t.from+r,1);if(a.deleted)return null;var i=e.mapResult(t.to+r,-1);return i.deleted||i.pos<=a.pos?null:new ti(a.pos-n,i.pos-n,this)},ei.prototype.valid=function(e,t){var n=e.content.findIndex(t.from),r=n.index,a=n.offset;return a==t.from&&a+e.child(r).nodeSize==t.to},ei.prototype.eq=function(e){return this==e||e instanceof ei&&Ja(this.attrs,e.attrs)&&Ja(this.spec,e.spec)};var ti=function(e,t,n){this.from=e,this.to=t,this.type=n},ni={spec:{configurable:!0},inline:{configurable:!0}};ti.prototype.copy=function(e,t){return new ti(e,t,this.type)},ti.prototype.eq=function(e,t){return void 0===t&&(t=0),this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to},ti.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},ti.widget=function(e,t,n){return new ti(e,e,new Xa(t,n))},ti.inline=function(e,t,n,r){return new ti(e,t,new Qa(n,r))},ti.node=function(e,t,n,r){return new ti(e,t,new ei(n,r))},ni.spec.get=function(){return this.type.spec},ni.inline.get=function(){return this.type instanceof Qa},Object.defineProperties(ti.prototype,ni);var ri=[],ai={},ii=function(e,t){this.local=e&&e.length?e:ri,this.children=t&&t.length?t:ri};ii.create=function(e,t){return t.length?di(t,e,0,ai):oi},ii.prototype.find=function(e,t,n){var r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r},ii.prototype.findInner=function(e,t,n,r,a){for(var i=0;i<this.local.length;i++){var o=this.local[i];o.from<=t&&o.to>=e&&(!a||a(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(var s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){var l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,n,r+l,a)}},ii.prototype.map=function(e,t,n){return this==oi||0==e.maps.length?this:this.mapInner(e,t,0,0,n||ai)},ii.prototype.mapInner=function(e,t,n,r,a){for(var i,o=0;o<this.local.length;o++){var s=this.local[o].map(e,n,r);s&&s.type.valid(t,s)?(i||(i=[])).push(s):a.onRemove&&a.onRemove(this.local[o].spec)}return this.children.length?function(e,t,n,r,a,i,o){for(var s=e.slice(),l=function(e,t,n,r){for(var o=0;o<s.length;o+=3){var l=s[o+1],c=void 0;-1==l||e>l+i||(t>=s[o]+i?s[o+1]=-1:n>=a&&(c=r-n-(t-e))&&(s[o]+=c,s[o+1]+=c))}},c=0;c<n.maps.length;c++)n.maps[c].forEach(l);for(var u=!1,d=0;d<s.length;d+=3)if(-1==s[d+1]){var p=n.map(e[d]+i),m=p-a;if(m<0||m>=r.content.size){u=!0;continue}var f=n.map(e[d+1]+i,-1)-a,h=r.content.findIndex(m),_=h.index,v=h.offset,g=r.maybeChild(_);if(g&&v==m&&v+g.nodeSize==f){var y=s[d+2].mapInner(n,g,p+1,e[d]+i+1,o);y!=oi?(s[d]=m,s[d+1]=f,s[d+2]=y):(s[d+1]=-2,u=!0)}else u=!0}if(u){var b=di(function(e,t,n,r,a,i,o){function s(e,t){for(var i=0;i<e.local.length;i++){var l=e.local[i].map(r,a,t);l?n.push(l):o.onRemove&&o.onRemove(e.local[i].spec)}for(var c=0;c<e.children.length;c+=3)s(e.children[c+2],e.children[c]+t+1)}for(var l=0;l<e.length;l+=3)-1==e[l+1]&&s(e[l+2],t[l]+i+1);return n}(s,e,t||[],n,a,i,o),r,0,o);t=b.local;for(var w=0;w<s.length;w+=3)s[w+1]<0&&(s.splice(w,3),w-=3);for(var x=0,k=0;x<b.children.length;x+=3){for(var D=b.children[x];k<s.length&&s[k]<D;)k+=3;s.splice(k,0,b.children[x],b.children[x+1],b.children[x+2])}}return new ii(t&&t.sort(pi),s)}(this.children,i,e,t,n,r,a):i?new ii(i.sort(pi)):oi},ii.prototype.add=function(e,t){return t.length?this==oi?ii.create(e,t):this.addInner(e,t,0):this},ii.prototype.addInner=function(e,t,n){var r,a=this,i=0;e.forEach((function(e,o){var s,l=o+n;if(s=ci(t,e,l)){for(r||(r=a.children.slice());i<r.length&&r[i]<o;)i+=3;r[i]==o?r[i+2]=r[i+2].addInner(e,s,l+1):r.splice(i,0,o,o+e.nodeSize,di(s,e,l+1,ai)),i+=3}}));var o=li(i?ui(t):t,-n);return new ii(o.length?this.local.concat(o).sort(pi):this.local,r||this.children)},ii.prototype.remove=function(e){return 0==e.length||this==oi?this:this.removeInner(e,0)},ii.prototype.removeInner=function(e,t){for(var n=this.children,r=this.local,a=0;a<n.length;a+=3){for(var i=void 0,o=n[a]+t,s=n[a+1]+t,l=0,c=void 0;l<e.length;l++)(c=e[l])&&c.from>o&&c.to<s&&(e[l]=null,(i||(i=[])).push(c));if(i){n==this.children&&(n=this.children.slice());var u=n[a+2].removeInner(i,o+1);u!=oi?n[a+2]=u:(n.splice(a,3),a-=3)}}if(r.length)for(var d=0,p=void 0;d<e.length;d++)if(p=e[d])for(var m=0;m<r.length;m++)r[m].eq(p,t)&&(r==this.local&&(r=this.local.slice()),r.splice(m--,1));return n==this.children&&r==this.local?this:r.length||n.length?new ii(r,n):oi},ii.prototype.forChild=function(e,t){if(this==oi)return this;if(t.isLeaf)return ii.empty;for(var n,r,a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(n=this.children[a+2]);break}for(var i=e+1,o=i+t.content.size,s=0;s<this.local.length;s++){var l=this.local[s];if(l.from<o&&l.to>i&&l.type instanceof Qa){var c=Math.max(i,l.from)-i,u=Math.min(o,l.to)-i;c<u&&(r||(r=[])).push(l.copy(c,u))}}if(r){var d=new ii(r.sort(pi));return n?new si([d,n]):d}return n||oi},ii.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof ii)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(var t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(var n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0},ii.prototype.locals=function(e){return mi(this.localsInner(e))},ii.prototype.localsInner=function(e){if(this==oi)return ri;if(e.inlineContent||!this.local.some(Qa.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof Qa||t.push(this.local[n]);return t};var oi=new ii;ii.empty=oi,ii.removeOverlap=mi;var si=function(e){this.members=e};function li(e,t){if(!t||!e.length)return e;for(var n=[],r=0;r<e.length;r++){var a=e[r];n.push(new ti(a.from+t,a.to+t,a.type))}return n}function ci(e,t,n){if(t.isLeaf)return null;for(var r=n+t.nodeSize,a=null,i=0,o=void 0;i<e.length;i++)(o=e[i])&&o.from>n&&o.to<r&&((a||(a=[])).push(o),e[i]=null);return a}function ui(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function di(e,t,n,r){var a=[],i=!1;t.forEach((function(t,o){var s=ci(e,t,o+n);if(s){i=!0;var l=di(s,t,n+o+1,r);l!=oi&&a.push(o,o+t.nodeSize,l)}}));for(var o=li(i?ui(e):e,-n).sort(pi),s=0;s<o.length;s++)o[s].type.valid(t,o[s])||(r.onRemove&&r.onRemove(o[s].spec),o.splice(s--,1));return o.length||a.length?new ii(o,a):oi}function pi(e,t){return e.from-t.from||e.to-t.to}function mi(e){for(var t=e,n=0;n<t.length-1;n++){var r=t[n];if(r.from!=r.to)for(var a=n+1;a<t.length;a++){var i=t[a];if(i.from!=r.from){i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),fi(t,a,r.copy(i.from,r.to)));break}i.to!=r.to&&(t==e&&(t=e.slice()),t[a]=i.copy(i.from,r.to),fi(t,a+1,i.copy(r.to,i.to)))}}return t}function fi(e,t,n){for(;t<e.length&&pi(n,e[t])>0;)t++;e.splice(t,0,n)}function hi(e){var t=[];return e.someProp("decorations",(function(n){var r=n(e.state);r&&r!=oi&&t.push(r)})),e.cursorWrapper&&t.push(ii.create(e.state.doc,[e.cursorWrapper.deco])),si.from(t)}si.prototype.forChild=function(e,t){if(t.isLeaf)return ii.empty;for(var n=[],r=0;r<this.members.length;r++){var a=this.members[r].forChild(e,t);a!=oi&&(a instanceof si?n=n.concat(a.members):n.push(a))}return si.from(n)},si.prototype.eq=function(e){if(!(e instanceof si)||e.members.length!=this.members.length)return!1;for(var t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0},si.prototype.locals=function(e){for(var t,n=!0,r=0;r<this.members.length;r++){var a=this.members[r].localsInner(e);if(a.length)if(t){n&&(t=t.slice(),n=!1);for(var i=0;i<a.length;i++)t.push(a[i])}else t=a}return t?mi(n?t:t.sort(pi)):ri},si.from=function(e){switch(e.length){case 0:return oi;case 1:return e[0];default:return new si(e)}};var _i=function(e,t){this._props=t,this.state=t.state,this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.trackWrites=null,this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):e.apply?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=bi(this),this.markCursor=null,this.cursorWrapper=null,yi(this),this.nodeViews=wi(this),this.docView=Dr(this.state.doc,gi(this),hi(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,function(e){e.shiftKey=!1,e.mouseDown=null,e.lastKeyCode=null,e.lastKeyCodeTime=0,e.lastClick={time:0,x:0,y:0,type:""},e.lastSelectionOrigin=null,e.lastSelectionTime=0,e.lastIOSEnter=0,e.lastIOSEnterFallbackTimeout=null,e.composing=!1,e.composingTimeout=null,e.compositionNodes=[],e.compositionEndedAt=-2e8,e.domObserver=new Ma(e,(function(t,n,r,a){return ua(e,t,n,r,a)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=Ca[t];e.dom.addEventListener(t,e.eventHandlers[t]=function(t){!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}(e,t)||Ea(e,t)||!e.editable&&t.type in La||n(e,t)})};for(var n in Ca)t(n);Pn.safari&&e.dom.addEventListener("input",(function(){return null})),Oa(e)}(this),this.pluginViews=[],this.updatePluginViews()},vi={props:{configurable:!0},root:{configurable:!0}};function gi(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var r in n)"class"==r?t.class+=" "+n[r]:t[r]||"contenteditable"==r||"nodeName"==r||(t[r]=String(n[r]))})),[ti.node(0,e.state.doc.content.size,t)]}function yi(e){if(e.markCursor){var t=document.createElement("img");t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:ti.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function bi(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function wi(e){var t={};return e.someProp("nodeViews",(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])})),t}vi.props.get=function(){if(this._props.state!=this.state){var e=this._props;for(var t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props},_i.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Oa(this),this._props=e,this.updateStateInner(e.state,!0)},_i.prototype.setProps=function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var r in t.state=this.state,e)t[r]=e[r];this.update(t)},_i.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},_i.prototype.updateStateInner=function(e,t){var n=this,r=this.state,a=!1,i=!1;if(e.storedMarks&&this.composing&&(qa(this),i=!0),this.state=e,t){var o=wi(this);(function(e,t){var n=0,r=0;for(var a in e){if(e[a]!=t[a])return!0;n++}for(var i in t)r++;return n!=r})(o,this.nodeViews)&&(this.nodeViews=o,a=!0),Oa(this)}this.editable=bi(this),yi(this);var s=hi(this),l=gi(this),c=t?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",u=a||!this.docView.matchesNode(e.doc,l,s);!u&&e.selection.eq(r.selection)||(i=!0);var d,p,m,f,h,_,v,g,y,b,w,x="preserve"==c&&i&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,r=e.dom.getBoundingClientRect(),a=Math.max(0,r.top),i=(r.left+r.right)/2,o=a+1;o<Math.min(innerHeight,r.bottom);o+=5){var s=e.root.elementFromPoint(i,o);if(s!=e.dom&&e.dom.contains(s)){var l=s.getBoundingClientRect();if(l.top>=a-20){t=s,n=l.top;break}}}return{refDOM:t,refTop:n,stack:tr(e.dom)}}(this);if(i){this.domObserver.stop();var k=u&&(Pn.ie||Pn.chrome)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&(f=r.selection,h=e.selection,_=Math.min(f.$anchor.sharedDepth(f.head),h.$anchor.sharedDepth(h.head)),f.$anchor.start(_)!=h.$anchor.start(_));if(u){var D=Pn.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!a&&this.docView.update(e.doc,l,s,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Dr(e.doc,l,s,this.dom,this)),D&&!this.trackWrites&&(k=!0)}k||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&(d=this,p=d.docView.domFromPos(d.state.selection.anchor),m=d.root.getSelection(),qn(p.node,p.offset,m.anchorNode,m.anchorOffset)))?Hr(this,k):(Wr(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(r),"reset"==c)this.dom.scrollTop=0;else if("to selection"==c){var M=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(e){return e(n)}))||(e.selection instanceof An.NodeSelection?er(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),M):er(this,this.coordsAtPos(e.selection.head),M))}else x&&(g=(v=x).refDOM,y=v.refTop,b=v.stack,w=g?g.getBoundingClientRect().top:0,nr(b,0==w?0:w-y))},_i.prototype.destroyPluginViews=function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()},_i.prototype.updatePluginViews=function(e){if(e&&e.plugins==this.state.plugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.destroyPluginViews();for(var r=0;r<this.state.plugins.length;r++){var a=this.state.plugins[r];a.spec.view&&this.pluginViews.push(a.spec.view(this))}}},_i.prototype.someProp=function(e,t){var n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;var a=this.state.plugins;if(a)for(var i=0;i<a.length;i++){var o=a[i].props[e];if(null!=o&&(n=t?t(o):o))return n}},_i.prototype.hasFocus=function(){return this.root.activeElement==this.dom},_i.prototype.focus=function(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(rr)return e.focus(rr);var t=tr(e);e.focus(null==rr?{get preventScroll(){return rr={preventScroll:!0},!0}}:void 0),rr||(rr=!1,nr(t,0))}(this.dom),Hr(this),this.domObserver.start()},vi.root.get=function(){var e=this._root;if(null==e)for(var t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=function(){return document.getSelection()}),this._root=t;return e||document},_i.prototype.posAtCoords=function(e){return sr(this,e)},_i.prototype.coordsAtPos=function(e){return cr(this,e)},_i.prototype.domAtPos=function(e){return this.docView.domFromPos(e)},_i.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},_i.prototype.posAtDOM=function(e,t,n){void 0===n&&(n=-1);var r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r},_i.prototype.endOfTextblock=function(e,t){return _r(this,t||this.state,e)},_i.prototype.destroy=function(){this.docView&&(function(e){for(var t in e.domObserver.stop(),e.eventHandlers)e.dom.removeEventListener(t,e.eventHandlers[t]);clearTimeout(e.composingTimeout),clearTimeout(e.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],hi(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},_i.prototype.dispatchEvent=function(e){return function(e,t){Ea(e,t)||!Ca[t.type]||!e.editable&&t.type in La||Ca[t.type](e,t)}(this,e)},_i.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(_i.prototype,vi);var xi=function(e,t){var n=this;this.editorView=e,this.width=t.width||1,this.color=t.color||"black",this.class=t.class,this.cursorPos=null,this.element=null,this.timeout=null,this.handlers=["dragover","dragend","drop","dragleave"].map((function(t){var r=function(e){return n[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}}))};xi.prototype.destroy=function(){var e=this;this.handlers.forEach((function(t){var n=t.name,r=t.handler;return e.editorView.dom.removeEventListener(n,r)}))},xi.prototype.update=function(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&this.updateOverlay()},xi.prototype.setCursor=function(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())},xi.prototype.updateOverlay=function(){var e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){var n=t.nodeBefore,r=t.nodeAfter;if(n||r){var a=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0)).getBoundingClientRect(),i=n?a.bottom:a.top;n&&r&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:a.left,right:a.right,top:i-this.width/2,bottom:i+this.width/2}}}if(!e){var o=this.editorView.coordsAtPos(this.cursorPos);e={left:o.left-this.width/2,right:o.left+this.width/2,top:o.top,bottom:o.bottom}}var s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color);var l=!s||s==document.body&&"static"==getComputedStyle(s).position?{left:-pageXOffset,top:-pageYOffset}:s.getBoundingClientRect();this.element.style.left=e.left-l.left+"px",this.element.style.top=e.top-l.top+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"},xi.prototype.scheduleRemoval=function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.setCursor(null)}),e)},xi.prototype.dragover=function(e){if(this.editorView.editable){var t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY});if(t){var n=t.pos;this.editorView.dragging&&this.editorView.dragging.slice&&null==(n=Object($n.h)(this.editorView.state.doc,n,this.editorView.dragging.slice))&&(n=t.pos),this.setCursor(n),this.scheduleRemoval(5e3)}}},xi.prototype.dragend=function(){this.scheduleRemoval(20)},xi.prototype.drop=function(){this.scheduleRemoval(20)},xi.prototype.dragleave=function(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)};var ki=n("7f06"),Di=n("576a"),Mi=function(e){function t(t){e.call(this,t,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,r){var a=n.resolve(r.map(this.head));return t.valid(a)?new t(a):e.near(a)},t.prototype.content=function(){return jn.Slice.empty},t.prototype.eq=function(e){return e instanceof t&&e.head==this.head},t.prototype.toJSON=function(){return{type:"gapcursor",pos:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new t(e.resolve(n.pos))},t.prototype.getBookmark=function(){return new Si(this.anchor)},t.valid=function(e){var t=e.parent;if(t.isTextblock||!function(e){for(var t=e.depth;t>=0;t--){var n=e.index(t);if(0!=n)for(var r=e.node(t).child(n-1);;r=r.lastChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}(e)||!function(e){for(var t=e.depth;t>=0;t--){var n=e.indexAfter(t),r=e.node(t);if(n!=r.childCount)for(var a=r.child(n);;a=a.firstChild){if(0==a.childCount&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}(e))return!1;var n=t.type.spec.allowGapCursor;if(null!=n)return n;var r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock},t.findFrom=function(e,n,r){e:for(;;){if(!r&&t.valid(e))return e;for(var a=e.pos,i=null,o=e.depth;;o--){var s=e.node(o);if(n>0?e.indexAfter(o)<s.childCount:e.index(o)>0){i=s.child(n>0?e.indexAfter(o):e.index(o)-1);break}if(0==o)return null;a+=n;var l=e.doc.resolve(a);if(t.valid(l))return l}for(;;){var c=n>0?i.firstChild:i.lastChild;if(!c){if(i.isAtom&&!i.isText&&!An.NodeSelection.isSelectable(i)){e=e.doc.resolve(a+i.nodeSize*n),r=!1;continue e}break}i=c,a+=n;var u=e.doc.resolve(a);if(t.valid(u))return u}return null}},t}(An.Selection);Mi.prototype.visible=!1,An.Selection.jsonID("gapcursor",Mi);var Si=function(e){this.pos=e};Si.prototype.map=function(e){return new Si(e.map(this.pos))},Si.prototype.resolve=function(e){var t=e.resolve(this.pos);return Mi.valid(t)?new Mi(t):An.Selection.near(t)};var Ci=Object(ki.a)({ArrowLeft:Li("horiz",-1),ArrowRight:Li("horiz",1),ArrowUp:Li("vert",-1),ArrowDown:Li("vert",1)});function Li(e,t){var n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,a){var i=e.selection,o=t>0?i.$to:i.$from,s=i.empty;if(i instanceof An.TextSelection){if(!a.endOfTextblock(n)||0==o.depth)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}var l=Mi.findFrom(o,t,s);return!!l&&(r&&r(e.tr.setSelection(new Mi(l))),!0)}}function Ti(e,t,n){if(!e.editable)return!1;var r=e.state.doc.resolve(t);if(!Mi.valid(r))return!1;var a=e.posAtCoords({left:n.clientX,top:n.clientY}).inside;return!(a>-1&&An.NodeSelection.isSelectable(e.state.doc.nodeAt(a))||(e.dispatch(e.state.tr.setSelection(new Mi(r))),0))}function Oi(e){if(!(e.selection instanceof Mi))return null;var t=document.createElement("div");return t.className="ProseMirror-gapcursor",Di.b.create(e.doc,[Di.a.widget(e.selection.head,t,{key:"gapcursor"})])}function Ei(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function Ai(e,t){for(;e;e="start"==t?e.firstChild:e.lastChild)if(e.isTextblock)return!0;return!1}function ji(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function $i(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){var n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function Pi(e){for(var t=0;t<e.edgeCount;t++){var n=e.edge(t).type;if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function Yi(e,t){var n=e.selection,r=n.$head,a=n.$anchor;if(!r.parent.type.spec.code||!r.sameParent(a))return!1;var i=r.node(-1),o=r.indexAfter(-1),s=Pi(i.contentMatchAt(o));if(!i.canReplaceWith(o,o,s))return!1;if(t){var l=r.after(),c=e.tr.replaceWith(l,l,s.createAndFill());c.setSelection(An.Selection.near(c.doc.resolve(l),1)),t(c.scrollIntoView())}return!0}function Ni(e,t){var n=e.selection,r=n.$from,a=n.$to;if(e.selection instanceof An.NodeSelection&&e.selection.node.isBlock)return!(!r.parentOffset||!Object($n.g)(e.doc,r.pos)||(t&&t(e.tr.split(r.pos).scrollIntoView()),0));if(!r.parent.isBlock)return!1;if(t){var i=a.parentOffset==a.parent.content.size,o=e.tr;e.selection instanceof An.TextSelection&&o.deleteSelection();var s=0==r.depth?null:Pi(r.node(-1).contentMatchAt(r.indexAfter(-1))),l=i&&s?[{type:s}]:null,c=Object($n.g)(o.doc,o.mapping.map(r.pos),1,l);l||c||!Object($n.g)(o.doc,o.mapping.map(r.pos),1,s&&[{type:s}])||(l=[{type:s}],c=!0),c&&(o.split(o.mapping.map(r.pos),1,l),i||r.parentOffset||r.parent.type==s||!r.node(-1).canReplace(r.index(-1),r.indexAfter(-1),jn.Fragment.from(s.create(),r.parent))||o.setNodeMarkup(o.mapping.map(r.before()),s)),t(o.scrollIntoView())}return!0}function zi(e,t,n){var r,a,i=t.nodeBefore,o=t.nodeAfter;if(i.type.spec.isolating||o.type.spec.isolating)return!1;if(function(e,t,n){var r=t.nodeBefore,a=t.nodeAfter,i=t.index();return!(!(r&&a&&r.type.compatibleContent(a.type))||(!r.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(i,i+1)||!a.isTextblock&&!Object($n.f)(e.doc,t.pos)||(n&&n(e.tr.clearIncompatible(t.pos,r.type,r.contentMatchAt(r.childCount)).join(t.pos).scrollIntoView()),0)))}(e,t,n))return!0;if(t.parent.canReplace(t.index(),t.index()+1)&&(r=(a=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&a.matchType(r[0]||o.type).validEnd){if(n){for(var s=t.pos+o.nodeSize,l=jn.Fragment.empty,c=r.length-1;c>=0;c--)l=jn.Fragment.from(r[c].create(null,l));l=jn.Fragment.from(i.copy(l));var u=e.tr.step(new $n.b(t.pos-1,s,t.pos,s,new jn.Slice(l,1,0),r.length,!0)),d=s+2*r.length;Object($n.f)(u.doc,d)&&u.join(d),n(u.scrollIntoView())}return!0}var p=An.Selection.findFrom(t,1),m=p&&p.$from.blockRange(p.$to),f=m&&Object($n.k)(m);return null!=f&&f>=t.depth&&(n&&n(e.tr.lift(m,f).scrollIntoView()),!0)}function Ii(e,t){return function(n,r){var a=n.selection,i=a.from,o=a.to,s=!1;return n.doc.nodesBetween(i,o,(function(r,a){if(s)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)s=!0;else{var i=n.doc.resolve(a),o=i.index();s=i.parent.canReplaceWith(o,o+1,e)}})),!!s&&(r&&r(n.tr.setBlockType(i,o,e,t).scrollIntoView()),!0)}}function Fi(e,t){return function(n,r){var a=n.selection,i=a.empty,o=a.$cursor,s=a.ranges;if(i&&!o||!function(e,t,n){for(var r=function(r){var a=t[r],i=a.$from,o=a.$to,s=0==i.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(i.pos,o.pos,(function(e){if(s)return!1;s=e.inlineContent&&e.type.allowsMarkType(n)})),s)return{v:!0}},a=0;a<t.length;a++){var i=r(a);if(i)return i.v}return!1}(n.doc,s,e))return!1;if(r)if(o)e.isInSet(n.storedMarks||o.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{for(var l=!1,c=n.tr,u=0;!l&&u<s.length;u++){var d=s[u],p=d.$from,m=d.$to;l=n.doc.rangeHasMark(p.pos,m.pos,e)}for(var f=0;f<s.length;f++){var h=s[f],_=h.$from,v=h.$to;l?c.removeMark(_.pos,v.pos,e):c.addMark(_.pos,v.pos,e.create(t))}r(c.scrollIntoView())}return!0}}function Hi(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t,n,r){for(var a=0;a<e.length;a++)if(e[a](t,n,r))return!0;return!1}}var Ri=Hi(Ei,(function(e,t,n){var r=e.selection.$cursor;if(!r||(n?!n.endOfTextblock("backward",e):r.parentOffset>0))return!1;var a=ji(r);if(!a){var i=r.blockRange(),o=i&&Object($n.k)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)}var s=a.nodeBefore;if(!s.type.spec.isolating&&zi(e,a,t))return!0;if(0==r.parent.content.size&&(Ai(s,"end")||An.NodeSelection.isSelectable(s))){if(t){var l=e.tr.deleteRange(r.before(),r.after());l.setSelection(Ai(s,"end")?An.Selection.findFrom(l.doc.resolve(l.mapping.map(a.pos,-1)),-1):An.NodeSelection.create(l.doc,a.pos-s.nodeSize)),t(l.scrollIntoView())}return!0}return!(!s.isAtom||a.depth!=r.depth-1||(t&&t(e.tr.delete(a.pos-s.nodeSize,a.pos).scrollIntoView()),0))}),(function(e,t,n){var r=e.selection,a=r.$head,i=a;if(!r.empty)return!1;if(a.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):a.parentOffset>0)return!1;i=ji(a)}var o=i&&i.nodeBefore;return!(!o||!An.NodeSelection.isSelectable(o)||(t&&t(e.tr.setSelection(An.NodeSelection.create(e.doc,i.pos-o.nodeSize)).scrollIntoView()),0))})),Bi=Hi(Ei,(function(e,t,n){var r=e.selection.$cursor;if(!r||(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size))return!1;var a=$i(r);if(!a)return!1;var i=a.nodeAfter;if(zi(e,a,t))return!0;if(0==r.parent.content.size&&(Ai(i,"start")||An.NodeSelection.isSelectable(i))){if(t){var o=e.tr.deleteRange(r.before(),r.after());o.setSelection(Ai(i,"start")?An.Selection.findFrom(o.doc.resolve(o.mapping.map(a.pos)),1):An.NodeSelection.create(o.doc,o.mapping.map(a.pos))),t(o.scrollIntoView())}return!0}return!(!i.isAtom||a.depth!=r.depth-1||(t&&t(e.tr.delete(a.pos,a.pos+i.nodeSize).scrollIntoView()),0))}),(function(e,t,n){var r=e.selection,a=r.$head,i=a;if(!r.empty)return!1;if(a.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):a.parentOffset<a.parent.content.size)return!1;i=$i(a)}var o=i&&i.nodeAfter;return!(!o||!An.NodeSelection.isSelectable(o)||(t&&t(e.tr.setSelection(An.NodeSelection.create(e.doc,i.pos)).scrollIntoView()),0))})),qi={Enter:Hi((function(e,t){var n=e.selection,r=n.$head,a=n.$anchor;return!(!r.parent.type.spec.code||!r.sameParent(a)||(t&&t(e.tr.insertText("\n").scrollIntoView()),0))}),(function(e,t){var n=e.selection,r=n.$from,a=n.$to;if(r.parent.inlineContent||a.parent.inlineContent)return!1;var i=Pi(r.parent.contentMatchAt(a.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){var o=(!r.parentOffset&&a.index()<a.parent.childCount?r:a).pos,s=e.tr.insert(o,i.createAndFill());s.setSelection(An.TextSelection.create(s.doc,o+1)),t(s.scrollIntoView())}return!0}),(function(e,t){var n=e.selection.$cursor;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){var r=n.before();if(Object($n.g)(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}var a=n.blockRange(),i=a&&Object($n.k)(a);return null!=i&&(t&&t(e.tr.lift(a,i).scrollIntoView()),!0)}),Ni),"Mod-Enter":Yi,Backspace:Ri,"Mod-Backspace":Ri,Delete:Bi,"Mod-Delete":Bi,"Mod-a":function(e,t){return t&&t(e.tr.setSelection(new An.AllSelection(e.doc))),!0}},Vi={"Ctrl-h":qi.Backspace,"Alt-Backspace":qi["Mod-Backspace"],"Ctrl-d":qi.Delete,"Ctrl-Alt-Backspace":qi["Mod-Delete"],"Alt-Delete":qi["Mod-Delete"],"Alt-d":qi["Mod-Delete"]};for(var Wi in qi)Vi[Wi]=qi[Wi];var Ui=("undefined"!=typeof navigator?/Mac/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform())?Vi:qi,Ki=function(e,t){var n;this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,r,a){var i=n;if(t[1]){var o=t[0].lastIndexOf(t[1]);i+=t[0].slice(o+t[1].length);var s=(r+=o)-a;s>0&&(i=t[0].slice(o-s,o)+i,r=a)}return e.tr.insertText(i,r,a)}):t};function Zi(e,t,n,r,a,i){if(e.composing)return!1;var o=e.state,s=o.doc.resolve(t);if(s.parent.type.spec.code)return!1;for(var l=s.parent.textBetween(Math.max(0,s.parentOffset-500),s.parentOffset,null,"")+r,c=0;c<a.length;c++){var u=a[c].match.exec(l),d=u&&a[c].handler(o,u,t-(u[0].length-r.length),n);if(d)return e.dispatch(d.setMeta(i,{transform:d,from:t,to:n,text:r})),!0}return!1}function Gi(e,t){for(var n=e.plugins,r=0;r<n.length;r++){var a=n[r],i=void 0;if(a.spec.isInputRules&&(i=a.getState(e))){if(t){for(var o=e.tr,s=i.transform,l=s.steps.length-1;l>=0;l--)o.step(s.steps[l].invert(s.docs[l]));var c=o.doc.resolve(i.from).marks();t(o.replaceWith(i.from,i.to,e.schema.text(i.text,c)))}return!0}}return!1}new Ki(/--$/,"—"),new Ki(/\.\.\.$/,"…"),new Ki(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),new Ki(/"$/,"”"),new Ki(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,""),new Ki(/'$/,"");var Ji=n("986d");function Xi(e,t){const{from:n,to:r}=e.selection;let a=[];e.doc.nodesBetween(n,r,(e=>{a=[...a,...e.marks]}));const i=a.find((e=>e.type.name===t.name));return i?i.attrs:{}}function Qi(e,t){const{from:n,to:r}=e.selection;let a=[];e.doc.nodesBetween(n,r,(e=>{a=[...a,e]}));const i=a.reverse().find((e=>e.type.name===t.name));return i?i.attrs:{}}function eo(e=null,t=null){if(!e||!t)return!1;const n=e.parent.childAfter(e.parentOffset);if(!n.node)return!1;const r=n.node.marks.find((e=>e.type===t));if(!r)return!1;let a=e.index(),i=e.start()+n.offset,o=a+1,s=i+n.node.nodeSize;for(;a>0&&r.isInSet(e.parent.child(a-1).marks);)a-=1,i-=e.parent.child(a).nodeSize;for(;o<e.parent.childCount&&r.isInSet(e.parent.child(o).marks);)s+=e.parent.child(o).nodeSize,o+=1;return{from:i,to:s}}function to(e,t,n={}){const r=Object(Ji.findSelectedNodeOfType)(t)(e.selection)||Object(Ji.findParentNode)((e=>e.type===t))(e.selection);return Object.keys(n).length&&r?r.node.hasMarkup(t,{...r.node.attrs,...n}):!!r}var no=n("8bbf"),ro=n.n(no);function ao(e,t){return function(n,r){var a=n.selection,i=a.$from,o=a.$to,s=i.blockRange(o),l=!1,c=s;if(!s)return!1;if(s.depth>=2&&i.node(s.depth-1).type.compatibleContent(e)&&0==s.startIndex){if(0==i.index(s.depth-1))return!1;var u=n.doc.resolve(s.start-2);c=new jn.NodeRange(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new jn.NodeRange(i,n.doc.resolve(o.end(s.depth)),s.depth)),l=!0}var d=Object($n.i)(c,e,t,s);return!!d&&(r&&r(function(e,t,n,r,a){for(var i=jn.Fragment.empty,o=n.length-1;o>=0;o--)i=jn.Fragment.from(n[o].type.create(n[o].attrs,i));e.step(new $n.b(t.start-(r?2:0),t.end,t.start,t.end,new jn.Slice(i,0,0),n.length,!0));for(var s=0,l=0;l<n.length;l++)n[l].type==a&&(s=l+1);for(var c=n.length-s,u=t.start+n.length-(r?2:0),d=t.parent,p=t.startIndex,m=t.endIndex,f=!0;p<m;p++,f=!1)!f&&Object($n.g)(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=d.child(p).nodeSize;return e}(n.tr,s,d,l,e).scrollIntoView()),!0)}}function io(e){return function(t,n){var r=t.selection,a=r.$from,i=r.$to,o=a.blockRange(i,(function(t){return t.childCount&&t.firstChild.type==e}));return!!o&&(!n||(a.node(o.depth-1).type==e?function(e,t,n,r){var a=e.tr,i=r.end,o=r.$to.end(r.depth);return i<o&&(a.step(new $n.b(i-1,o,i,o,new jn.Slice(jn.Fragment.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new jn.NodeRange(a.doc.resolve(r.$from.pos),a.doc.resolve(o),r.depth)),t(a.lift(r,Object($n.k)(r)).scrollIntoView()),!0}(t,n,e,o):function(e,t,n){for(var r=e.tr,a=n.parent,i=n.end,o=n.endIndex-1,s=n.startIndex;o>s;o--)i-=a.child(o).nodeSize,r.delete(i-1,i+1);var l=r.doc.resolve(n.start),c=l.nodeAfter,u=0==n.startIndex,d=n.endIndex==a.childCount,p=l.node(-1),m=l.index(-1);if(!p.canReplace(m+(u?0:1),m+1,c.content.append(d?jn.Fragment.empty:jn.Fragment.from(a))))return!1;var f=l.pos,h=f+c.nodeSize;return r.step(new $n.b(f-(u?1:0),h+(d?1:0),f+1,h-1,new jn.Slice((u?jn.Fragment.empty:jn.Fragment.from(a.copy(jn.Fragment.empty))).append(d?jn.Fragment.empty:jn.Fragment.from(a.copy(jn.Fragment.empty))),u?0:1,d?0:1),u?0:1)),t(r.scrollIntoView()),!0}(t,n,o)))}}function oo(e){return function(t,n){var r=t.selection,a=r.$from,i=r.$to,o=a.blockRange(i,(function(t){return t.childCount&&t.firstChild.type==e}));if(!o)return!1;var s=o.startIndex;if(0==s)return!1;var l=o.parent,c=l.child(s-1);if(c.type!=e)return!1;if(n){var u=c.lastChild&&c.lastChild.type==l.type,d=jn.Fragment.from(u?e.create():null),p=new jn.Slice(jn.Fragment.from(e.create(null,jn.Fragment.from(l.type.create(null,d)))),u?3:1,0),m=o.start,f=o.end;n(t.tr.step(new $n.b(m-(u?3:1),f,m,f,p,1,!0)).scrollIntoView())}return!0}}var so=function(e,t){var n;this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,r,a){var i=n;if(t[1]){var o=t[0].lastIndexOf(t[1]);i+=t[0].slice(o+t[1].length);var s=(r+=o)-a;s>0&&(i=t[0].slice(o-s,o)+i,r=a)}return e.tr.insertText(i,r,a)}):t};function lo(e,t,n,r){return new so(e,(function(e,a,i,o){var s=n instanceof Function?n(a):n,l=e.tr.delete(i,o),c=l.doc.resolve(i).blockRange(),u=c&&Object($n.i)(c,t,s);if(!u)return null;l.wrap(c,u);var d=l.doc.resolve(i-1).nodeBefore;return d&&d.type==t&&Object($n.f)(l.doc,i-1)&&(!r||r(a,d))&&l.join(i-1),l}))}function co(e,t,n){return new so(e,(function(e,r,a,i){var o=e.doc.resolve(a),s=n instanceof Function?n(r):n;return o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t)?e.tr.delete(a,i).setBlockType(a,a,t,s):null}))}function uo(e,t,n){return new so(e,((e,r,a,i)=>{const o=n instanceof Function?n(r):n,{tr:s}=e,l=r.length-1;let c=i,u=a;if(r[l]){const n=a+r[0].indexOf(r[l-1]),o=n+r[l-1].length-1,d=n+r[l-1].lastIndexOf(r[l]),p=d+r[l].length;if(function(e,t,n){let r=[];return n.doc.nodesBetween(e,t,((e,t)=>{r=[...r,...e.marks.map((n=>({start:t,end:t+e.nodeSize,mark:n})))]})),r}(a,i,e).filter((e=>{const{excluded:n}=e.mark.type;return n.find((e=>e.name===t.name))})).filter((e=>e.end>n)).length)return!1;p<o&&s.delete(p,o),d>n&&s.delete(n,d),u=n,c=u+r[l].length}return s.addMark(u,c,t.create(o)),s.removeStoredMark(t),s}))}function po(e,t,n){const r=a=>{const i=[];return a.forEach((a=>{if(a.isText){const{text:r}=a;let o,s=0;do{if(o=e.exec(r),o){const e=o.index,r=e+o[0].length,l=n instanceof Function?n(o[0]):n;e>0&&i.push(a.cut(s,e)),i.push(a.cut(e,r).mark(t.create(l).addToSet(a.marks))),s=r}}while(o);s<r.length&&i.push(a.cut(s))}else i.push(a.copy(r(a.content)))})),jn.Fragment.fromArray(i)};return new An.Plugin({props:{transformPasted:e=>new jn.Slice(r(e.content),e.openStart,e.openEnd)}})}function mo(e,t,n){const r=(a,i)=>{const o=[];return a.forEach((a=>{if(a.isText){const{text:r,marks:s}=a;let l,c=0;const u=!!s.filter((e=>"link"===e.type.name))[0];for(;!u&&null!==(l=e.exec(r));)if(i&&i.type.allowsMarkType(t)&&l[1]){const e=l.index,r=e+l[0].length,i=e+l[0].indexOf(l[1]),s=i+l[1].length,u=n instanceof Function?n(l):n;e>0&&o.push(a.cut(c,e)),o.push(a.cut(i,s).mark(t.create(u).addToSet(a.marks))),c=r}c<r.length&&o.push(a.cut(c))}else o.push(a.copy(r(a.content,a)))})),jn.Fragment.fromArray(o)};return new An.Plugin({props:{transformPasted:e=>new jn.Slice(r(e.content),e.openStart,e.openEnd)}})}function fo(e,t,n={}){return(r,a,i)=>to(r,e,n)?Ii(t)(r,a,i):Ii(e,n)(r,a,i)}function ho(e,t){return e.type===t.nodes.bullet_list||e.type===t.nodes.ordered_list||e.type===t.nodes.todo_list}function _o(e,t){return(n,r,a)=>{const{schema:i,selection:o}=n,{$from:s,$to:l}=o,c=s.blockRange(l);if(!c)return!1;const u=Object(Ji.findParentNode)((e=>ho(e,i)))(o);if(c.depth>=1&&u&&c.depth-u.depth<=1){if(u.node.type===e)return io(t)(n,r,a);if(ho(u.node,i)&&e.validContent(u.node.content)){const{tr:t}=n;return t.setNodeMarkup(u.pos,e),r&&r(t),!1}}return ao(e)(n,r,a)}}function vo(e,t={}){return(n,r,a)=>to(n,e,t)?function(e,t){var n=e.selection,r=n.$from,a=n.$to,i=r.blockRange(a),o=i&&Object($n.k)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)}(n,r):function(e,t){return function(n,r){var a=n.selection,i=a.$from,o=a.$to,s=i.blockRange(o),l=s&&Object($n.i)(s,e,t);return!!l&&(r&&r(n.tr.wrap(s,l).scrollIntoView()),!0)}}(e,t)(n,r,a)}new so(/--$/,"—"),new so(/\.\.\.$/,"…"),new so(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),new so(/"$/,"”"),new so(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,""),new so(/'$/,"");class go{constructor(e,{editor:t,extension:n,parent:r,node:a,view:i,decorations:o,getPos:s}){this.component=e,this.editor=t,this.extension=n,this.parent=r,this.node=a,this.view=i,this.decorations=o,this.isNode=!!this.node.marks,this.isMark=!this.isNode,this.getPos=this.isMark?this.getMarkPos:s,this.captureEvents=!0,this.dom=this.createDOM(),this.contentDOM=this.vm.$refs.content}createDOM(){const e=ro.a.extend(this.component),t={editor:this.editor,node:this.node,view:this.view,getPos:()=>this.getPos(),decorations:this.decorations,selected:!1,options:this.extension.options,updateAttrs:e=>this.updateAttrs(e)};return"function"==typeof this.extension.setSelection&&(this.setSelection=this.extension.setSelection),"function"==typeof this.extension.update&&(this.update=this.extension.update),this.vm=new e({parent:this.parent,propsData:t}).$mount(),this.vm.$el}update(e,t){return e.type===this.node.type&&(e===this.node&&this.decorations===t||(this.node=e,this.decorations=t,this.updateComponentProps({node:e,decorations:t})),!0)}updateComponentProps(e){if(!this.vm._props)return;const t=ro.a.config.silent;ro.a.config.silent=!0,Object.entries(e).forEach((([e,t])=>{this.vm._props[e]=t})),ro.a.config.silent=t}updateAttrs(e){if(!this.view.editable)return;const{state:t}=this.view,{type:n}=this.node,r=this.getPos(),a={...this.node.attrs,...e},i=this.isMark?t.tr.removeMark(r.from,r.to,n).addMark(r.from,r.to,n.create(a)):t.tr.setNodeMarkup(r,null,a);this.view.dispatch(i)}ignoreMutation(e){return!("selection"===e.type||this.contentDOM&&this.contentDOM.contains(e.target))}stopEvent(e){if("function"==typeof this.extension.stopEvent)return this.extension.stopEvent(e);const t=!!this.extension.schema.draggable;if(t&&"mousedown"===e.type){const t=e.target.closest&&e.target.closest("[data-drag-handle]");t&&(this.dom===t||this.dom.contains(t))&&(this.captureEvents=!1,document.addEventListener("dragend",(()=>{this.captureEvents=!0}),{once:!0}))}const n="copy"===e.type,r="paste"===e.type,a="cut"===e.type,i=e.type.startsWith("drag")||"drop"===e.type;return!(t&&i||n||r||a)&&this.captureEvents}selectNode(){this.updateComponentProps({selected:!0})}deselectNode(){this.updateComponentProps({selected:!1})}getMarkPos(){const e=this.view.posAtDOM(this.dom);return eo(this.view.state.doc.resolve(e),this.node.type)}destroy(){this.vm.$destroy()}}class yo{constructor(e={}){this.options={...this.defaultOptions,...e}}init(){return null}bindEditor(e=null){this.editor=e}get name(){return null}get type(){return"extension"}get defaultOptions(){return{}}get plugins(){return[]}inputRules(){return[]}pasteRules(){return[]}keys(){return{}}}class bo{constructor(e=[],t){e.forEach((e=>{e.bindEditor(t),e.init()})),this.extensions=e}get nodes(){return this.extensions.filter((e=>"node"===e.type)).reduce(((e,{name:t,schema:n})=>({...e,[t]:n})),{})}get options(){const{view:e}=this;return this.extensions.reduce(((t,n)=>({...t,[n.name]:new Proxy(n.options,{set(t,n,r){const a=t[n]!==r;return Object.assign(t,{[n]:r}),a&&e.updateState(e.state),!0}})})),{})}get marks(){return this.extensions.filter((e=>"mark"===e.type)).reduce(((e,{name:t,schema:n})=>({...e,[t]:n})),{})}get plugins(){return this.extensions.filter((e=>e.plugins)).reduce(((e,{plugins:t})=>[...e,...t]),[])}keymaps({schema:e}){return[...this.extensions.filter((e=>["extension"].includes(e.type))).filter((e=>e.keys)).map((t=>t.keys({schema:e}))),...this.extensions.filter((e=>["node","mark"].includes(e.type))).filter((e=>e.keys)).map((t=>t.keys({type:e["".concat(t.type,"s")][t.name],schema:e})))].map((e=>Object(ki.b)(e)))}inputRules({schema:e,excludedExtensions:t}){if(!(t instanceof Array)&&t)return[];const n=t instanceof Array?this.extensions.filter((e=>!t.includes(e.name))):this.extensions;return[...n.filter((e=>["extension"].includes(e.type))).filter((e=>e.inputRules)).map((t=>t.inputRules({schema:e}))),...n.filter((e=>["node","mark"].includes(e.type))).filter((e=>e.inputRules)).map((t=>t.inputRules({type:e["".concat(t.type,"s")][t.name],schema:e})))].reduce(((e,t)=>[...e,...t]),[])}pasteRules({schema:e,excludedExtensions:t}){if(!(t instanceof Array)&&t)return[];const n=t instanceof Array?this.extensions.filter((e=>!t.includes(e.name))):this.extensions;return[...n.filter((e=>["extension"].includes(e.type))).filter((e=>e.pasteRules)).map((t=>t.pasteRules({schema:e}))),...n.filter((e=>["node","mark"].includes(e.type))).filter((e=>e.pasteRules)).map((t=>t.pasteRules({type:e["".concat(t.type,"s")][t.name],schema:e})))].reduce(((e,t)=>[...e,...t]),[])}commands({schema:e,view:t}){return this.extensions.filter((e=>e.commands)).reduce(((n,r)=>{const{name:a,type:i}=r,o={},s=r.commands({schema:e,...["node","mark"].includes(i)?{type:e["".concat(i,"s")][a]}:{}}),l=(e,n)=>!!t.editable&&(t.focus(),e(n)(t.state,t.dispatch,t)),c=(e,t)=>{Array.isArray(t)?o[e]=e=>t.forEach((t=>l(t,e))):"function"==typeof t&&(o[e]=e=>l(t,e))};return"object"==typeof s?Object.entries(s).forEach((([e,t])=>{c(e,t)})):c(a,s),{...n,...o}}),{})}}class wo extends yo{constructor(e={}){super(e)}get type(){return"mark"}get view(){return null}get schema(){return null}command(){return()=>{}}}function xo(e=0,t=0,n=0){return Math.min(Math.max(parseInt(e,10),t),n)}class ko extends yo{constructor(e={}){super(e)}get type(){return"node"}get view(){return null}get schema(){return null}command(){return()=>{}}}class Do extends ko{get name(){return"doc"}get schema(){return{content:"block+"}}}class Mo extends ko{get name(){return"paragraph"}get schema(){return{content:"inline*",group:"block",draggable:!1,parseDOM:[{tag:"p"}],toDOM:()=>["p",0]}}commands({type:e}){return()=>Ii(e)}}class So extends ko{get name(){return"text"}get schema(){return{group:"inline"}}}class Co extends class{on(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}emit(e,...t){this._callbacks=this._callbacks||{};const n=this._callbacks[e];return n&&n.forEach((e=>e.apply(this,t))),this}off(e,t){if(arguments.length){const n=this._callbacks?this._callbacks[e]:null;n&&(t?this._callbacks[e]=n.filter((e=>e!==t)):delete this._callbacks[e])}else this._callbacks={};return this}}{constructor(e={}){super(),this.defaultOptions={editorProps:{},editable:!0,autoFocus:null,extensions:[],content:"",topNode:"doc",emptyDocument:{type:"doc",content:[{type:"paragraph"}]},useBuiltInExtensions:!0,disableInputRules:!1,disablePasteRules:!1,dropCursor:{},enableDropCursor:!0,enableGapCursor:!0,parseOptions:{},injectCSS:!0,onInit:()=>{},onTransaction:()=>{},onUpdate:()=>{},onFocus:()=>{},onBlur:()=>{},onPaste:()=>{},onDrop:()=>{}},this.events=["init","transaction","update","focus","blur","paste","drop"],this.init(e)}init(e={}){this.setOptions({...this.defaultOptions,...e}),this.focused=!1,this.selection={from:0,to:0},this.element=document.createElement("div"),this.extensions=this.createExtensions(),this.nodes=this.createNodes(),this.marks=this.createMarks(),this.schema=this.createSchema(),this.plugins=this.createPlugins(),this.keymaps=this.createKeymaps(),this.inputRules=this.createInputRules(),this.pasteRules=this.createPasteRules(),this.view=this.createView(),this.commands=this.createCommands(),this.setActiveNodesAndMarks(),this.options.injectCSS&&function(e){{const t=document.createElement("style");t.type="text/css",t.textContent=e;const{head:n}=document,{firstChild:r}=n;r?n.insertBefore(t,r):n.appendChild(t)}}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n'),null!==this.options.autoFocus&&this.focus(this.options.autoFocus),this.events.forEach((e=>{var t;this.on(e,this.options[(t="on ".concat(e),t.replace(/(?:^\w|[A-Z]|\b\w)/g,((e,t)=>0===t?e.toLowerCase():e.toUpperCase())).replace(/\s+/g,""))]||(()=>{}))})),this.emit("init",{view:this.view,state:this.state}),this.extensions.view=this.view}setOptions(e){this.options={...this.options,...e},this.view&&this.state&&this.view.updateState(this.state)}get builtInExtensions(){return this.options.useBuiltInExtensions?[new Do,new So,new Mo]:[]}get state(){return this.view?this.view.state:null}createExtensions(){return new bo([...this.builtInExtensions,...this.options.extensions],this)}createPlugins(){return this.extensions.plugins}createKeymaps(){return this.extensions.keymaps({schema:this.schema})}createInputRules(){return this.extensions.inputRules({schema:this.schema,excludedExtensions:this.options.disableInputRules})}createPasteRules(){return this.extensions.pasteRules({schema:this.schema,excludedExtensions:this.options.disablePasteRules})}createCommands(){return this.extensions.commands({schema:this.schema,view:this.view})}createNodes(){return this.extensions.nodes}createMarks(){return this.extensions.marks}createSchema(){return new jn.Schema({topNode:this.options.topNode,nodes:this.nodes,marks:this.marks})}createState(){return An.EditorState.create({schema:this.schema,doc:this.createDocument(this.options.content),plugins:[...this.plugins,(t={rules:this.inputRules},n=t.rules,r=new An.Plugin({state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:function(e,t,a,i){return Zi(e,t,a,i,n,r)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var t=e.state.selection.$cursor;t&&Zi(e,t.pos,t.pos,"",n,r)}))}}},isInputRules:!0}),r),...this.pasteRules,...this.keymaps,Object(ki.b)({Backspace:Gi}),Object(ki.b)(Ui),...this.options.enableDropCursor?[(e=this.options.dropCursor,void 0===e&&(e={}),new An.Plugin({view:function(t){return new xi(t,e)}}))]:[],...this.options.enableGapCursor?[new An.Plugin({props:{decorations:Oi,createSelectionBetween:function(e,t,n){if(t.pos==n.pos&&Mi.valid(n))return new Mi(n)},handleClick:Ti,handleKeyDown:Ci}})]:[],new An.Plugin({key:new An.PluginKey("editable"),props:{editable:()=>this.options.editable}}),new An.Plugin({props:{attributes:{tabindex:0},handleDOMEvents:{focus:(e,t)=>{this.focused=!0,this.emit("focus",{event:t,state:e.state,view:e});const n=this.state.tr.setMeta("focused",!0);this.view.dispatch(n)},blur:(e,t)=>{this.focused=!1,this.emit("blur",{event:t,state:e.state,view:e});const n=this.state.tr.setMeta("focused",!1);this.view.dispatch(n)}}}}),new An.Plugin({props:this.options.editorProps})]});var e,t,n,r}createDocument(e,t=this.options.parseOptions){if(null===e)return this.schema.nodeFromJSON(this.options.emptyDocument);if("object"==typeof e)try{return this.schema.nodeFromJSON(e)}catch(t){return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",t),this.schema.nodeFromJSON(this.options.emptyDocument)}if("string"==typeof e){const n="<div>".concat(e,"</div>"),r=(new window.DOMParser).parseFromString(n,"text/html").body.firstElementChild;return jn.DOMParser.fromSchema(this.schema).parse(r,t)}return!1}createView(){return new _i(this.element,{state:this.createState(),handlePaste:(...e)=>{this.emit("paste",...e)},handleDrop:(...e)=>{this.emit("drop",...e)},dispatchTransaction:this.dispatchTransaction.bind(this)})}setParentComponent(e=null){e&&this.view.setProps({nodeViews:this.initNodeViews({parent:e,extensions:[...this.builtInExtensions,...this.options.extensions]})})}initNodeViews({parent:e,extensions:t}){return t.filter((e=>["node","mark"].includes(e.type))).filter((e=>e.view)).reduce(((t,n)=>({...t,[n.name]:(t,r,a,i)=>{const o=n.view;return new go(o,{editor:this,extension:n,parent:e,node:t,view:r,getPos:a,decorations:i})}})),{})}dispatchTransaction(e){const t=this.state.apply(e);this.view.updateState(t),this.selection={from:this.state.selection.from,to:this.state.selection.to},this.setActiveNodesAndMarks(),this.emit("transaction",{getHTML:this.getHTML.bind(this),getJSON:this.getJSON.bind(this),state:this.state,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emitUpdate(e)}emitUpdate(e){this.emit("update",{getHTML:this.getHTML.bind(this),getJSON:this.getJSON.bind(this),state:this.state,transaction:e})}resolveSelection(e=null){if(this.selection&&null===e)return this.selection;if("start"===e||!0===e)return{from:0,to:0};if("end"===e){const{doc:e}=this.state;return{from:e.content.size,to:e.content.size}}return{from:e,to:e}}focus(e=null){if(this.view.focused&&null===e||!1===e)return;const{from:t,to:n}=this.resolveSelection(e);this.setSelection(t,n),setTimeout((()=>this.view.focus()),10)}setSelection(e=0,t=0){const{doc:n,tr:r}=this.state,a=xo(e,0,n.content.size),i=xo(t,0,n.content.size),o=An.TextSelection.create(n,a,i),s=r.setSelection(o);this.view.dispatch(s)}blur(){this.view.dom.blur()}getSchemaJSON(){return JSON.parse(JSON.stringify({nodes:this.extensions.nodes,marks:this.extensions.marks}))}getHTML(){const e=document.createElement("div"),t=jn.DOMSerializer.fromSchema(this.schema).serializeFragment(this.state.doc.content);return e.appendChild(t),e.innerHTML}getJSON(){return this.state.doc.toJSON()}setContent(e={},t=!1,n){const{doc:r,tr:a}=this.state,i=this.createDocument(e,n),o=An.TextSelection.create(r,0,r.content.size),s=a.setSelection(o).replaceSelectionWith(i,!1).setMeta("preventUpdate",!t);this.view.dispatch(s)}clearContent(e=!1){this.setContent(this.options.emptyDocument,e)}setActiveNodesAndMarks(){this.activeMarks=Object.entries(this.schema.marks).reduce(((e,[t,n])=>({...e,[t]:(e={})=>function(e,t){const{from:n,$from:r,to:a,empty:i}=e.selection;return i?!!t.isInSet(e.storedMarks||r.marks()):!!e.doc.rangeHasMark(n,a,t)}(this.state,n)})),{}),this.activeMarkAttrs=Object.entries(this.schema.marks).reduce(((e,[t,n])=>({...e,[t]:Xi(this.state,n)})),{}),this.activeNodes=Object.entries(this.schema.nodes).reduce(((e,[t,n])=>({...e,[t]:(e={})=>to(this.state,n,e)})),{})}getMarkAttrs(e=null){return this.activeMarkAttrs[e]}getNodeAttrs(e=null){return{...Qi(this.state,this.schema.nodes[e])}}get isActive(){return Object.entries({...this.activeMarks,...this.activeNodes}).reduce(((e,[t,n])=>({...e,[t]:(e={})=>n(e)})),{})}registerPlugin(e=null,t){const n="function"==typeof t?t(e,this.state.plugins):[e,...this.state.plugins],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(e=null){if(!e||!this.view.docView)return;const t=this.state.reconfigure({plugins:this.state.plugins.filter((t=>!t.key.startsWith("".concat(e,"$"))))});this.view.updateState(t)}destroy(){this.view&&this.view.destroy()}}var Lo={props:{editor:{default:null,type:Object}},watch:{editor:{immediate:!0,handler(e){e&&e.element&&this.$nextTick((()=>{this.$el.appendChild(e.element.firstChild),e.setParentComponent(this)}))}}},render:e=>e("div"),beforeDestroy(){this.editor.element=this.$el}};class To{constructor({options:e}){this.options=e,this.preventHide=!1,this.mousedownHandler=this.handleClick.bind(this),this.options.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.blurHandler=()=>{this.preventHide?this.preventHide=!1:this.options.editor.emit("menubar:focusUpdate",!1)},this.options.editor.on("blur",this.blurHandler)}handleClick(){this.preventHide=!0}destroy(){this.options.element.removeEventListener("mousedown",this.mousedownHandler),this.options.editor.off("blur",this.blurHandler)}}var Oo={props:{editor:{default:null,type:Object}},data:()=>({focused:!1}),watch:{editor:{immediate:!0,handler(e){e&&this.$nextTick((()=>{var t;e.registerPlugin((t={editor:e,element:this.$el},new An.Plugin({key:new An.PluginKey("menu_bar"),view:e=>new To({editorView:e,options:t})}))),this.focused=e.focused,e.on("focus",(()=>{this.focused=!0})),e.on("menubar:focusUpdate",(e=>{this.focused=e}))}))}}},render(){return this.editor?this.$scopedSlots.default({focused:this.focused,focus:this.editor.focus,commands:this.editor.commands,isActive:this.editor.isActive,getMarkAttrs:this.editor.getMarkAttrs.bind(this.editor),getNodeAttrs:this.editor.getNodeAttrs.bind(this.editor)}):null}};Boolean;var Eo=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M22.5 21.248h-21a1.25 1.25 0 000 2.5h21a1.25 1.25 0 000-2.5zM1.978 2.748h1.363a.25.25 0 01.25.25v8.523a8.409 8.409 0 0016.818 0V3a.25.25 0 01.25-.25h1.363a1.25 1.25 0 000-2.5H16.3a1.25 1.25 0 000 2.5h1.363a.25.25 0 01.25.25v8.523a5.909 5.909 0 01-11.818 0V3a.25.25 0 01.25-.25H7.7a1.25 1.25 0 100-2.5H1.978a1.25 1.25 0 000 2.5z"}})])}),[],!1,null,null,null).exports,Ao=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M17.194 10.962A6.271 6.271 0 0012.844.248H4.3a1.25 1.25 0 000 2.5h1.013a.25.25 0 01.25.25V21a.25.25 0 01-.25.25H4.3a1.25 1.25 0 100 2.5h9.963a6.742 6.742 0 002.93-12.786zm-4.35-8.214a3.762 3.762 0 010 7.523H8.313a.25.25 0 01-.25-.25V3a.25.25 0 01.25-.25zm1.42 18.5H8.313a.25.25 0 01-.25-.25v-7.977a.25.25 0 01.25-.25h5.951a4.239 4.239 0 010 8.477z"}})])}),[],!1,null,null,null).exports,jo=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M9.147 21.552a1.244 1.244 0 01-.895-.378L.84 13.561a2.257 2.257 0 010-3.125l7.412-7.613a1.25 1.25 0 011.791 1.744l-6.9 7.083a.5.5 0 000 .7l6.9 7.082a1.25 1.25 0 01-.9 2.122zm5.707 0a1.25 1.25 0 01-.9-2.122l6.9-7.083a.5.5 0 000-.7l-6.9-7.082a1.25 1.25 0 011.791-1.744l7.411 7.612a2.257 2.257 0 010 3.125l-7.412 7.614a1.244 1.244 0 01-.89.38zm6.514-9.373z"}})])}),[],!1,null,null,null).exports,$o=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M22.5.248h-7.637a1.25 1.25 0 000 2.5h1.086a.25.25 0 01.211.384L4.78 21.017a.5.5 0 01-.422.231H1.5a1.25 1.25 0 000 2.5h7.637a1.25 1.25 0 000-2.5H8.051a.25.25 0 01-.211-.384L19.22 2.98a.5.5 0 01.422-.232H22.5a1.25 1.25 0 000-2.5z"}})])}),[],!1,null,null,null).exports,Po=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M7.75 4.5h15a1 1 0 000-2h-15a1 1 0 000 2zm15 6.5h-15a1 1 0 100 2h15a1 1 0 000-2zm0 8.5h-15a1 1 0 000 2h15a1 1 0 000-2zM2.212 17.248a2 2 0 00-1.933 1.484.75.75 0 101.45.386.5.5 0 11.483.63.75.75 0 100 1.5.5.5 0 11-.482.635.75.75 0 10-1.445.4 2 2 0 103.589-1.648.251.251 0 010-.278 2 2 0 00-1.662-3.111zm2.038-6.5a2 2 0 00-4 0 .75.75 0 001.5 0 .5.5 0 011 0 1.031 1.031 0 01-.227.645L.414 14.029A.75.75 0 001 15.248h2.5a.75.75 0 000-1.5h-.419a.249.249 0 01-.195-.406L3.7 12.33a2.544 2.544 0 00.55-1.582zM4 5.248h-.25A.25.25 0 013.5 5V1.623A1.377 1.377 0 002.125.248H1.5a.75.75 0 000 1.5h.25A.25.25 0 012 2v3a.25.25 0 01-.25.25H1.5a.75.75 0 000 1.5H4a.75.75 0 000-1.5z"}})])}),[],!1,null,null,null).exports,Yo=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("circle",{attrs:{cx:"2.5",cy:"3.998",r:"2.5"}}),t("path",{attrs:{d:"M8.5 5H23a1 1 0 000-2H8.5a1 1 0 000 2z"}}),t("circle",{attrs:{cx:"2.5",cy:"11.998",r:"2.5"}}),t("path",{attrs:{d:"M23 11H8.5a1 1 0 000 2H23a1 1 0 000-2z"}}),t("circle",{attrs:{cx:"2.5",cy:"19.998",r:"2.5"}}),t("path",{attrs:{d:"M23 19H8.5a1 1 0 000 2H23a1 1 0 000-2z"}})])}),[],!1,null,null,null).exports,No=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M22.5.248H7.228a6.977 6.977 0 100 13.954h2.318a.25.25 0 01.25.25V22.5a1.25 1.25 0 002.5 0V3a.25.25 0 01.25-.25h3.682a.25.25 0 01.25.25v19.5a1.25 1.25 0 002.5 0V3a.249.249 0 01.25-.25H22.5a1.25 1.25 0 000-2.5zM9.8 11.452a.25.25 0 01-.25.25H7.228a4.477 4.477 0 110-8.954h2.318A.25.25 0 019.8 3z"}})])}),[],!1,null,null,null).exports,zo=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M18.559 3.932a4.942 4.942 0 100 9.883 4.609 4.609 0 001.115-.141.25.25 0 01.276.368 6.83 6.83 0 01-5.878 3.523 1.25 1.25 0 000 2.5 9.71 9.71 0 009.428-9.95V8.873a4.947 4.947 0 00-4.941-4.941zm-12.323 0a4.942 4.942 0 000 9.883 4.6 4.6 0 001.115-.141.25.25 0 01.277.368 6.83 6.83 0 01-5.878 3.523 1.25 1.25 0 000 2.5 9.711 9.711 0 009.428-9.95V8.873a4.947 4.947 0 00-4.942-4.941z"}})])}),[],!1,null,null,null).exports,Io=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M23.75 12.952A1.25 1.25 0 0022.5 11.7h-8.936a.492.492 0 01-.282-.09c-.722-.513-1.482-.981-2.218-1.432-2.8-1.715-4.5-2.9-4.5-4.863 0-2.235 2.207-2.569 3.523-2.569a4.54 4.54 0 013.081.764 2.662 2.662 0 01.447 1.99v.3a1.25 1.25 0 102.5 0v-.268a4.887 4.887 0 00-1.165-3.777C13.949.741 12.359.248 10.091.248c-3.658 0-6.023 1.989-6.023 5.069 0 2.773 1.892 4.512 4 5.927a.25.25 0 01-.139.458H1.5a1.25 1.25 0 000 2.5h10.977a.251.251 0 01.159.058 4.339 4.339 0 011.932 3.466c0 3.268-3.426 3.522-4.477 3.522-1.814 0-3.139-.405-3.834-1.173a3.394 3.394 0 01-.65-2.7 1.25 1.25 0 00-2.488-.246A5.76 5.76 0 004.4 21.753c1.2 1.324 3.114 2 5.688 2 4.174 0 6.977-2.42 6.977-6.022a6.059 6.059 0 00-.849-3.147.25.25 0 01.216-.377H22.5a1.25 1.25 0 001.25-1.255z"}})])}),[],!1,null,null,null).exports,Fo=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M17.786 3.77a12.542 12.542 0 00-12.965-.865.249.249 0 01-.292-.045L1.937.269A.507.507 0 001.392.16a.5.5 0 00-.308.462v6.7a.5.5 0 00.5.5h6.7a.5.5 0 00.354-.854L6.783 5.115a.253.253 0 01-.068-.228.249.249 0 01.152-.181 10 10 0 019.466 1.1 9.759 9.759 0 01.094 15.809 1.25 1.25 0 001.473 2.016 12.122 12.122 0 005.013-9.961 12.125 12.125 0 00-5.127-9.9z"}})])}),[],!1,null,null,null).exports,Ho=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M22.608.161a.5.5 0 00-.545.108L19.472 2.86a.25.25 0 01-.292.045 12.537 12.537 0 00-12.966.865A12.259 12.259 0 006.1 23.632a1.25 1.25 0 001.476-2.018 9.759 9.759 0 01.091-15.809 10 10 0 019.466-1.1.25.25 0 01.084.409l-1.85 1.85a.5.5 0 00.354.853h6.7a.5.5 0 00.5-.5V.623a.5.5 0 00-.313-.462z"}})])}),[],!1,null,null,null).exports,Ro=q({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M9.147 21.552a1.244 1.244 0 01-.895-.378L.84 13.561a2.257 2.257 0 010-3.125l7.412-7.613a1.25 1.25 0 011.791 1.744l-6.9 7.083a.5.5 0 000 .7l6.9 7.082a1.25 1.25 0 01-.9 2.122zm5.707 0a1.25 1.25 0 01-.9-2.122l6.9-7.083a.5.5 0 000-.7l-6.9-7.082a1.25 1.25 0 011.791-1.744l7.411 7.612a2.257 2.257 0 010 3.125l-7.412 7.614a1.244 1.244 0 01-.89.38zm6.514-9.373z"}})])}),[],!1,null,null,null).exports,Bo=(n("3ce4"),n("55be"));new An.PluginKey("collab");var qo=200,Vo=function(){};Vo.prototype.append=function(e){return e.length?(e=Vo.from(e),!this.length&&e||e.length<qo&&this.leafAppend(e)||this.length<qo&&e.leafPrepend(this)||this.appendInner(e)):this},Vo.prototype.prepend=function(e){return e.length?Vo.from(e).append(this):this},Vo.prototype.appendInner=function(e){return new Uo(this,e)},Vo.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?Vo.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},Vo.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Vo.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},Vo.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(t,n){return r.push(e(t,n))}),t,n),r},Vo.from=function(e){return e instanceof Vo?e:e&&e.length?new Wo(e):Vo.empty};var Wo=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var a=t;a<n;a++)if(!1===e(this.values[a],r+a))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var a=t-1;a>=n;a--)if(!1===e(this.values[a],r+a))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=qo)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=qo)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Vo);Vo.empty=new Wo([]);var Uo=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var a=this.left.length;return!(t<a&&!1===this.left.forEachInner(e,t,Math.min(n,a),r))&&!(n>a&&!1===this.right.forEachInner(e,Math.max(t-a,0),Math.min(this.length,n)-a,r+a))&&void 0},t.prototype.forEachInvertedInner=function(e,t,n,r){var a=this.left.length;return!(t>a&&!1===this.right.forEachInvertedInner(e,t-a,Math.max(n,a)-a,r+a))&&!(n<a&&!1===this.left.forEachInvertedInner(e,Math.min(t,a),n,r))&&void 0},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(Vo),Ko=Vo,Zo=function(e,t){this.items=e,this.eventCount=t};Zo.prototype.popEvent=function(e,t){var n=this;if(0==this.eventCount)return null;for(var r,a,i=this.items.length;;i--)if(this.items.get(i-1).selection){--i;break}t&&(r=this.remapping(i,this.items.length),a=r.maps.length);var o,s,l=e.tr,c=[],u=[];return this.items.forEach((function(e,t){if(!e.step)return r||(r=n.remapping(i,t+1),a=r.maps.length),a--,void u.push(e);if(r){u.push(new Go(e.map));var d,p=e.step.map(r.slice(a));p&&l.maybeStep(p).doc&&(d=l.mapping.maps[l.mapping.maps.length-1],c.push(new Go(d,null,null,c.length+u.length))),a--,d&&r.appendMap(d,a)}else l.maybeStep(e.step);return e.selection?(o=r?e.selection.map(r.slice(a)):e.selection,s=new Zo(n.items.slice(0,i).append(u.reverse().concat(c)),n.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:l,selection:o}},Zo.prototype.addTransform=function(e,t,n,r){for(var a=[],i=this.eventCount,o=this.items,s=!r&&o.length?o.get(o.length-1):null,l=0;l<e.steps.length;l++){var c,u=e.steps[l].invert(e.docs[l]),d=new Go(e.mapping.maps[l],u,t);(c=s&&s.merge(d))&&(d=c,l?a.pop():o=o.slice(0,o.length-1)),a.push(d),t&&(i++,t=null),r||(s=d)}var p,m,f,h=i-n.depth;return h>Xo&&(m=h,(p=o).forEach((function(e,t){if(e.selection&&0==m--)return f=t,!1})),o=p.slice(f),i-=h),new Zo(o.append(a),i)},Zo.prototype.remapping=function(e,t){var n=new $n.a;return this.items.forEach((function(t,r){var a=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,a)}),e,t),n},Zo.prototype.addMaps=function(e){return 0==this.eventCount?this:new Zo(this.items.append(e.map((function(e){return new Go(e)}))),this.eventCount)},Zo.prototype.rebased=function(e,t){if(!this.eventCount)return this;var n=[],r=Math.max(0,this.items.length-t),a=e.mapping,i=e.steps.length,o=this.eventCount;this.items.forEach((function(e){e.selection&&o--}),r);var s=t;this.items.forEach((function(t){var r=a.getMirror(--s);if(null!=r){i=Math.min(i,r);var l=a.maps[r];if(t.step){var c=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(a.slice(s+1,r));u&&o++,n.push(new Go(l,c,u))}else n.push(new Go(l))}}),r);for(var l=[],c=t;c<i;c++)l.push(new Go(a.maps[c]));var u=this.items.slice(0,r).append(l).append(n),d=new Zo(u,o);return d.emptyItemCount()>500&&(d=d.compress(this.items.length-n.length)),d},Zo.prototype.emptyItemCount=function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e},Zo.prototype.compress=function(e){void 0===e&&(e=this.items.length);var t=this.remapping(0,e),n=t.maps.length,r=[],a=0;return this.items.forEach((function(i,o){if(o>=e)r.push(i),i.selection&&a++;else if(i.step){var s=i.step.map(t.slice(n)),l=s&&s.getMap();if(n--,l&&t.appendMap(l,n),s){var c=i.selection&&i.selection.map(t.slice(n));c&&a++;var u,d=new Go(l.invert(),s,c),p=r.length-1;(u=r.length&&r[p].merge(d))?r[p]=u:r.push(d)}}else i.map&&n--}),this.items.length,0),new Zo(Ko.from(r.reverse()),a)},Zo.empty=new Zo(Ko.empty,0);var Go=function(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r};Go.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new Go(t.getMap().invert(),t,this.selection)}};var Jo=function(e,t,n,r){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r},Xo=20;function Qo(e){var t=[];return e.forEach((function(e,n,r,a){return t.push(r,a)})),t}function es(e,t){if(!e)return null;for(var n=[],r=0;r<e.length;r+=2){var a=t.map(e[r],1),i=t.map(e[r+1],-1);a<=i&&n.push(a,i)}return n}function ts(e,t,n,r){var a=as(t),i=is.get(t).spec.config,o=(r?e.undone:e.done).popEvent(t,a);if(o){var s=o.selection.resolve(o.transform.doc),l=(r?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,a),c=new Jo(r?l:o.remaining,r?o.remaining:l,null,0);n(o.transform.setSelection(s).setMeta(is,{redo:r,historyState:c}).scrollIntoView())}}var ns=!1,rs=null;function as(e){var t=e.plugins;if(rs!=t){ns=!1,rs=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){ns=!0;break}}return ns}var is=new An.PluginKey("history"),ss=new An.PluginKey("closeHistory");function ls(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new An.Plugin({key:is,state:{init:function(){return new Jo(Zo.empty,Zo.empty,null,0)},apply:function(t,n,r){return function(e,t,n,r){var a,i=n.getMeta(is);if(i)return i.historyState;n.getMeta(ss)&&(e=new Jo(e.done,e.undone,null,0));var o=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(o&&o.getMeta(is))return o.getMeta(is).redo?new Jo(e.done.addTransform(n,null,r,as(t)),e.undone,Qo(n.mapping.maps[n.steps.length-1]),e.prevTime):new Jo(e.done,e.undone.addTransform(n,null,r,as(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))return(a=n.getMeta("rebased"))?new Jo(e.done.rebased(n,a),e.undone.rebased(n,a),es(e.prevRanges,n.mapping),e.prevTime):new Jo(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),es(e.prevRanges,n.mapping),e.prevTime);var s=0==e.prevTime||!o&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach((function(e,r){for(var a=0;a<t.length;a+=2)e<=t[a+1]&&r>=t[a]&&(n=!0)})),n}(n,e.prevRanges)),l=o?es(e.prevRanges,n.mapping):Qo(n.mapping.maps[n.steps.length-1]);return new Jo(e.done.addTransform(n,s?t.selection.getBookmark():null,r,as(t)),Zo.empty,l,n.time)}(n,r,t,e)}},config:e})}function cs(e,t){var n=is.getState(e);return!(!n||0==n.done.eventCount||(t&&ts(n,e,t,!1),0))}function us(e,t){var n=is.getState(e);return!(!n||0==n.undone.eventCount||(t&&ts(n,e,t,!0),0))}function ds(e){var t=is.getState(e);return t?t.done.eventCount:0}function ps(e){var t=is.getState(e);return t?t.undone.eventCount:0}class ms extends ko{get name(){return"blockquote"}get schema(){return{content:"block*",group:"block",defining:!0,draggable:!1,parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]}}commands({type:e}){return()=>vo(e)}keys({type:e}){return{"Ctrl->":vo(e)}}inputRules({type:e}){return[lo(/^\s*>\s$/,e)]}}class fs extends ko{get name(){return"bullet_list"}get schema(){return{content:"list_item+",group:"block",parseDOM:[{tag:"ul"}],toDOM:()=>["ul",0]}}commands({type:e,schema:t}){return()=>_o(e,t.nodes.list_item)}keys({type:e,schema:t}){return{"Shift-Ctrl-8":_o(e,t.nodes.list_item)}}inputRules({type:e}){return[lo(/^\s*([-+*])\s$/,e)]}}class hs extends ko{get name(){return"code_block"}get schema(){return{content:"text*",marks:"",group:"block",code:!0,defining:!0,draggable:!1,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:()=>["pre",["code",0]]}}commands({type:e,schema:t}){return()=>fo(e,t.nodes.paragraph)}keys({type:e}){return{"Shift-Ctrl-\\":Ii(e)}}inputRules({type:e}){return[co(/^```$/,e)]}}class _s extends ko{get name(){return"hard_break"}get schema(){return{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}}commands({type:e}){return()=>Hi(Yi,((t,n)=>(n(t.tr.replaceSelectionWith(e.create()).scrollIntoView()),!0)))}keys({type:e}){const t=Hi(Yi,((t,n)=>(n(t.tr.replaceSelectionWith(e.create()).scrollIntoView()),!0)));return{"Mod-Enter":t,"Shift-Enter":t}}}class vs extends ko{get name(){return"heading"}get defaultOptions(){return{levels:[1,2,3,4,5,6]}}get schema(){return{attrs:{level:{default:1}},content:"inline*",group:"block",defining:!0,draggable:!1,parseDOM:this.options.levels.map((e=>({tag:"h".concat(e),attrs:{level:e}}))),toDOM:e=>["h".concat(e.attrs.level),0]}}commands({type:e,schema:t}){return n=>fo(e,t.nodes.paragraph,n)}keys({type:e}){return this.options.levels.reduce(((t,n)=>({...t,["Shift-Ctrl-".concat(n)]:Ii(e,{level:n})})),{})}inputRules({type:e}){return this.options.levels.map((t=>co(new RegExp("^(#{1,".concat(t,"})\\s$")),e,(()=>({level:t})))))}}class gs extends ko{get name(){return"list_item"}get schema(){return{content:"paragraph block*",defining:!0,draggable:!1,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]}}keys({type:e}){return{Enter:(t=e,function(e,n){var r=e.selection,a=r.$from,i=r.$to,o=r.node;if(o&&o.isBlock||a.depth<2||!a.sameParent(i))return!1;var s=a.node(-1);if(s.type!=t)return!1;if(0==a.parent.content.size&&a.node(-1).childCount==a.indexAfter(-1)){if(2==a.depth||a.node(-3).type!=t||a.index(-2)!=a.node(-2).childCount-1)return!1;if(n){for(var l=jn.Fragment.empty,c=a.index(-1)>0,u=a.depth-(c?1:2);u>=a.depth-3;u--)l=jn.Fragment.from(a.node(u).copy(l));l=l.append(jn.Fragment.from(t.createAndFill()));var d=e.tr.replace(a.before(c?null:-1),a.after(-3),new jn.Slice(l,c?3:2,2));d.setSelection(e.selection.constructor.near(d.doc.resolve(a.pos+(c?3:2)))),n(d.scrollIntoView())}return!0}var p=i.pos==a.end()?s.contentMatchAt(0).defaultType:null,m=e.tr.delete(a.pos,i.pos),f=p&&[null,{type:p}];return!!Object($n.g)(m.doc,a.pos,2,f)&&(n&&n(m.split(a.pos,2,f).scrollIntoView()),!0)}),Tab:oo(e),"Shift-Tab":io(e)};var t}}class ys extends ko{get name(){return"ordered_list"}get schema(){return{attrs:{order:{default:1}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1})}],toDOM:e=>1===e.attrs.order?["ol",0]:["ol",{start:e.attrs.order},0]}}commands({type:e,schema:t}){return()=>_o(e,t.nodes.list_item)}keys({type:e,schema:t}){return{"Shift-Ctrl-9":_o(e,t.nodes.list_item)}}inputRules({type:e}){return[lo(/^(\d+)\.\s$/,e,(e=>({order:+e[1]})),((e,t)=>t.childCount+t.attrs.order===+e[1]))]}}Object(Bo.tableNodes)({tableGroup:"block",cellContent:"block+",cellAttributes:{background:{default:null,getFromDOM:e=>e.style.backgroundColor||null,setDOMAttr(e,t){if(e){const n={style:"".concat(t.style||"","background-color: ").concat(e,";")};Object.assign(t,n)}}}}});class bs extends ko{get name(){return"todo_item"}get defaultOptions(){return{nested:!1}}get view(){return{props:["node","updateAttrs","view"],methods:{onChange(){this.updateAttrs({done:!this.node.attrs.done})}},template:'\n <li :data-type="node.type.name" :data-done="node.attrs.done.toString()" data-drag-handle>\n <span class="todo-checkbox" contenteditable="false" @click="onChange"></span>\n <div class="todo-content" ref="content" :contenteditable="view.editable.toString()"></div>\n </li>\n '}}get schema(){return{attrs:{done:{default:!1}},draggable:!0,content:this.options.nested?"(paragraph|todo_list)+":"paragraph+",toDOM:e=>{const{done:t}=e.attrs;return["li",{"data-type":this.name,"data-done":t.toString()},["span",{class:"todo-checkbox",contenteditable:"false"}],["div",{class:"todo-content"},0]]},parseDOM:[{priority:51,tag:'[data-type="'.concat(this.name,'"]'),getAttrs:e=>({done:"true"===e.getAttribute("data-done")})}]}}keys({type:e}){return{Enter:(t=e,function(e,n){const{$from:r,$to:a,node:i}=e.selection;if(i&&i.isBlock||r.depth<2||!r.sameParent(a))return!1;const o=r.node(-1);if(o.type!=t)return!1;if(0==r.parent.content.size){if(2==r.depth||r.node(-3).type!=t||r.index(-2)!=r.node(-2).childCount-1)return!1;if(n){let a=jn.Fragment.empty;const i=r.index(-1)>0;for(let e=r.depth-(i?1:2);e>=r.depth-3;e--)a=jn.Fragment.from(r.node(e).copy(a));a=a.append(jn.Fragment.from(t.createAndFill()));const o=e.tr.replace(r.before(i?null:-1),r.after(-3),new jn.Slice(a,i?3:2,2));o.setSelection(e.selection.constructor.near(o.doc.resolve(r.pos+(i?3:2)))),n(o.scrollIntoView())}return!0}const s=a.pos==r.end()?o.contentMatchAt(r.indexAfter(-1)).defaultType:null,l=e.tr.delete(r.pos,a.pos);let c=s&&[{type:t},{type:s}];return c||(c=[{type:t},null]),!!function(e,t,n=1,r){const a=e.resolve(t),i=a.depth-n,o=r&&r[r.length-1]||a.parent;if(i<0||a.parent.type.spec.isolating||!a.parent.canReplace(a.index(),a.parent.childCount)||!o.type.validContent(a.parent.content.cutByIndex(a.index(),a.parent.childCount)))return!1;for(let e=a.depth-1,t=n-2;e>i;e--,t--){const n=a.node(e),i=a.index(e);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(i,n.childCount);const s=r&&r[t]||n;if(s!=n&&(o=o.replaceChild(0,s.type.create(s.attrs))),!n.canReplace(i+1,n.childCount))return!1}const s=a.indexAfter(i),l=r&&r[0];return a.node(i).canReplaceWith(s,s,l?l.type:a.node(i+1).type)}(l.doc,r.pos,2,c)&&(n&&n(l.split(r.pos,2,c).scrollIntoView()),!0)}),Tab:this.options.nested?oo(e):()=>{},"Shift-Tab":io(e)};var t}}class ws extends ko{get name(){return"todo_list"}get schema(){return{group:"block",content:"todo_item+",toDOM:()=>["ul",{"data-type":this.name},0],parseDOM:[{priority:51,tag:'[data-type="'.concat(this.name,'"]')}]}}commands({type:e,schema:t}){return()=>_o(e,t.nodes.todo_item)}inputRules({type:e}){return[lo(/^\s*(\[ \])\s$/,e)]}}class xs extends wo{get name(){return"bold"}get schema(){return{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>["strong",0]}}keys({type:e}){return{"Mod-b":Fi(e)}}commands({type:e}){return()=>Fi(e)}inputRules({type:e}){return[uo(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,e)]}pasteRules({type:e}){return[mo(/(?:\*\*|__)([^*_]+)(?:\*\*|__)/g,e)]}}class ks extends wo{get name(){return"code"}get schema(){return{excludes:"_",parseDOM:[{tag:"code"}],toDOM:()=>["code",0]}}keys({type:e}){return{"Mod-`":Fi(e)}}commands({type:e}){return()=>Fi(e)}inputRules({type:e}){return[uo(/(?:`)([^`]+)(?:`)$/,e)]}pasteRules({type:e}){return[mo(/(?:`)([^`]+)(?:`)/g,e)]}}class Ds extends wo{get name(){return"italic"}get schema(){return{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"}],toDOM:()=>["em",0]}}keys({type:e}){return{"Mod-i":Fi(e)}}commands({type:e}){return()=>Fi(e)}inputRules({type:e}){return[uo(/(?:^|[^_])(_([^_]+)_)$/,e),uo(/(?:^|[^*])(\*([^*]+)\*)$/,e)]}pasteRules({type:e}){return[mo(/_([^_]+)_/g,e),mo(/\*([^*]+)\*/g,e)]}}class Ms extends wo{get name(){return"link"}get defaultOptions(){return{openOnClick:!0,target:null}}get schema(){return{attrs:{href:{default:null},target:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),target:e.getAttribute("target")})}],toDOM:e=>["a",{...e.attrs,rel:"noopener noreferrer nofollow",target:this.options.target},0]}}commands({type:e}){return t=>t.href?function(e,t){return(n,r)=>{const{tr:a,selection:i,doc:o}=n,{ranges:s,empty:l}=i;if(l){const{from:n,to:r}=eo(i.$from,e);o.rangeHasMark(n,r,e)&&a.removeMark(n,r,e),a.addMark(n,r,e.create(t))}else s.forEach((n=>{const{$to:r,$from:i}=n;o.rangeHasMark(i.pos,r.pos,e)&&a.removeMark(i.pos,r.pos,e),a.addMark(i.pos,r.pos,e.create(t))}));return r(a)}}(e,t):function(e){return(t,n)=>{const{tr:r,selection:a}=t;let{from:i,to:o}=a;const{$from:s,empty:l}=a;if(l){const t=eo(s,e);i=t.from,o=t.to}return r.removeMark(i,o,e),n(r)}}(e)}pasteRules({type:e}){return[po(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b([-a-zA-Z0-9@:%_+.~#?&//=,]*)/gi,e,(e=>({href:e})))]}get plugins(){return this.options.openOnClick?[new An.Plugin({props:{handleClick:(e,t,n)=>{const{schema:r}=e.state,a=Xi(e.state,r.marks.link);a.href&&n.target instanceof HTMLAnchorElement&&(n.stopPropagation(),window.open(a.href,a.target))}}})]:[]}}class Ss extends wo{get name(){return"strike"}get schema(){return{parseDOM:[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:e=>"line-through"===e}],toDOM:()=>["s",0]}}keys({type:e}){return{"Mod-d":Fi(e)}}commands({type:e}){return()=>Fi(e)}inputRules({type:e}){return[uo(/~([^~]+)~$/,e)]}pasteRules({type:e}){return[mo(/~([^~]+)~/g,e)]}}class Cs extends wo{get name(){return"underline"}get schema(){return{parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:e=>"underline"===e}],toDOM:()=>["u",0]}}keys({type:e}){return{"Mod-u":Fi(e)}}commands({type:e}){return()=>Fi(e)}}class Ls extends yo{get name(){return"history"}get defaultOptions(){return{depth:"",newGroupDelay:""}}keys(){return{"Mod-z":cs,"Mod-y":us,"Shift-Mod-z":us,"Mod-я":cs,"Shift-Mod-я":us}}get plugins(){return[ls({depth:this.options.depth,newGroupDelay:this.options.newGroupDelay})]}commands(){return{undo:()=>cs,redo:()=>us,undoDepth:()=>ds,redoDepth:()=>ps}}}var Ts=v.classes,Os=v.variants,Es=q({name:"SwEditor",install:function(e,t){z(e,t,this)},components:{EditorContent:Lo,EditorMenuBar:Oo,UnderlineIcon:Eo,BoldIcon:Ao,CodingIcon:jo,ItalicIcon:$o,ListIcon:Po,ListUlIcon:Yo,ParagraphIcon:No,QuoteIcon:zo,StrikethroughIcon:Io,UndoIcon:Fo,RedoIcon:Ho,CodeBlockIcon:Ro,SwDropdown:xt},props:{setEditor:{type:String,default:""},classes:{type:Object,default:function(){return Ts}},variant:{type:String,required:!1,default:null},variants:{type:Object,default:function(){return Os}},dropdownClasses:{type:Object,default:function(){return{container:"relative",activator:"cursor-pointer",divider:"border-t border-solid border-gray-200 my-2 mx-0 overflow-hidden",itemContainer:"z-20 p-2 max-h-60 text-base text-left list-none rounded border-0 shadow bg-white text-black overflow-auto sw-scroll",item:"flex p-2 text-sm font-light text-left text-black bg-transparent rounded cursor-pointer none hover:bg-gray-200 whitespace-nowrap",itemIcon:"w-5 h-5 mr-3 text-secondary"}}}},data:function(){return{editor:null}},computed:{getEditorStyle:function(){var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},classesTheme:function(){return this.$theme&&this.$theme.SwEditor?l(l({},this.classes),this.$theme.SwEditor.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwEditor?l(l({},this.variants),this.$theme.SwEditor.variants):this.variants}},watch:{setEditor:function(e){this.editor.focused||this.editor.setContent(e,!1)}},destroyed:function(){this.editor&&this.editor.destroy()},mounted:function(){this.initEditor()},methods:{initEditor:function(){var e=this;this.editor=new Co({disablePasteRules:!0,disableInputRules:!0,extensions:[new ms,new hs,new _s,new vs({levels:[1,2,3]}),new fs,new ys,new gs,new bs,new ws,new xs,new ks,new Ds,new Ms,new Ss,new Cs,new Ls],content:"",onUpdate:function(t){var n=(0,t.getHTML)();e.$emit("input",n)}}),this.editor.setContent(this.setEditor),setTimeout((function(){for(var t=0;t<e.$refs.myEditor.$el.children.length;t++)e.$refs.myEditor.$el.children[t].className+=" ".concat(e.getEditorStyle.proseMirror)}),200)},getIconContainerStyle:function(e){return e?this.getEditorStyle.activeIconContainer:this.getEditorStyle.iconContainer},mobileMenuIconContainerStyle:function(e){return e?this.getEditorStyle.menuDropdown.activeIconContainer:this.getEditorStyle.menuDropdown.iconContainer}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.getEditorStyle.editorContainer},[n("div",{class:e.getEditorStyle.menuDropdown.container},[n("sw-dropdown",{attrs:{classes:e.dropdownClasses}},[n("div",{attrs:{slot:"activator"},slot:"activator"},[n("svg",{class:e.getEditorStyle.menuDropdown.activator,attrs:{fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"}})])]),n("editor-menu-bar",{attrs:{editor:e.editor},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.commands,a=t.isActive;return[n("div",{class:e.getEditorStyle.menuDropdown.menuContainer},[n("span",{class:e.mobileMenuIconContainerStyle(a.bold()),on:{click:r.bold}},[n("bold-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.italic()),on:{click:r.italic}},[n("italic-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.strike()),on:{click:r.strike}},[n("strikethrough-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.underline()),on:{click:r.underline}},[n("underline-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.code()),on:{click:r.code}},[n("coding-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.paragraph()),on:{click:r.paragraph}},[n("paragraph-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.heading({level:1})),on:{click:function(e){return r.heading({level:1})}}},[e._v(" H1 ")]),n("span",{class:e.mobileMenuIconContainerStyle(a.heading({level:2})),on:{click:function(e){return r.heading({level:2})}}},[e._v(" H2 ")]),n("span",{class:e.mobileMenuIconContainerStyle(a.heading({level:3})),on:{click:function(e){return r.heading({level:3})}}},[e._v(" H3 ")]),n("span",{class:e.mobileMenuIconContainerStyle(a.bullet_list()),on:{click:r.bullet_list}},[n("list-ul-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.ordered_list()),on:{click:r.ordered_list}},[n("list-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.blockquote()),on:{click:r.blockquote}},[n("quote-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(a.code_block()),on:{click:r.code_block}},[n("code-block-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(),on:{click:r.undo}},[n("undo-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(),on:{click:r.redo}},[n("redo-icon",{class:e.getEditorStyle.menuDropdown.icon})],1)])]}}])})],1)],1),n("editor-menu-bar",{class:e.getEditorStyle.editorMenuBar,attrs:{editor:e.editor},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.commands,a=t.isActive;return[n("div",{class:e.getEditorStyle.menuContainer},[n("span",{class:e.getIconContainerStyle(a.bold()),on:{click:r.bold}},[n("bold-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.italic()),on:{click:r.italic}},[n("italic-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.strike()),on:{click:r.strike}},[n("strikethrough-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.underline()),on:{click:r.underline}},[n("underline-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.code()),on:{click:r.code}},[n("coding-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.paragraph()),on:{click:r.paragraph}},[n("paragraph-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.heading({level:1})),on:{click:function(e){return r.heading({level:1})}}},[e._v(" H1 ")]),n("span",{class:e.getIconContainerStyle(a.heading({level:2})),on:{click:function(e){return r.heading({level:2})}}},[e._v(" H2 ")]),n("span",{class:e.getIconContainerStyle(a.heading({level:3})),on:{click:function(e){return r.heading({level:3})}}},[e._v(" H3 ")]),n("span",{class:e.getIconContainerStyle(a.bullet_list()),on:{click:r.bullet_list}},[n("list-ul-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.ordered_list()),on:{click:r.ordered_list}},[n("list-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.blockquote()),on:{click:r.blockquote}},[n("quote-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(a.code_block()),on:{click:r.code_block}},[n("code-block-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(),on:{click:r.undo}},[n("undo-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(),on:{click:r.redo}},[n("redo-icon",{class:e.getEditorStyle.icon})],1)])]}}])}),n("editor-content",{ref:"myEditor",class:e.getEditorStyle.editor,attrs:{editor:e.editor}})],1)}),[],!1,null,null,null).exports,As=$.classes,js=q({props:{currentStep:{type:Number,default:null},steps:{type:Number,default:null},classes:{type:Object,default:function(){return As}}},methods:{stepStyle:function(e){return this.currentStep===e?[this.classes.currentStep,this.classes.progress]:this.currentStep>e?[this.classes.previousStep,this.classes.progress]:this.currentStep<e?[this.classes.nextStep,this.classes.progress]:[this.classes.progress]}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.classes.navigationContainer},[e.steps>0?n("div",{class:e.classes.progressesContainer},[n("div",{class:e.classes.progressesSubContainer},e._l(e.steps,(function(t,r){return n("div",{key:r,class:e.stepStyle(t),on:{click:function(t){return e.$emit("update:currentStep",r+1)}}},[e.currentStep>t?n("svg",{class:e.classes.icon,attrs:{fill:"currentColor",viewBox:"0 0 20 20"},on:{click:function(t){return e.$emit("update:currentStep",r+1)}}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"}})]):e._e()])})),0)]):e._e()])}),[],!1,null,null,null).exports,$s=$.classes,Ps=$.variants,Ys=q({install:function(e,t){z(e,t,this)},components:{WizardNavigation:js},props:{currentStep:{type:Number,default:0},steps:{type:Number,default:0},classes:{type:Object,default:function(){return $s}},variant:{type:String,default:null},variants:{type:Object,default:function(){return Ps}},allowNavigationRedirect:{type:Boolean,default:!1}},computed:{wizardStyle:function(){var e=F(this.variant,this.variantsTheme);return l(l({},this.classesTheme),e)},classesTheme:function(){return this.$theme&&this.$theme.SwWizard?l(l({},this.classes),this.$theme.SwWizard.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwWizard?l(l({},this.variants),this.$theme.SwWizard.variants):this.variants},getCurrentStep:{get:function(){return this.currentStep},set:function(e){this.allowNavigationRedirect&&this.$emit("update:currentStep",e)}}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.wizardStyle.wizardContainer},[e._t("nav",[n("wizard-navigation",{attrs:{"current-step":e.getCurrentStep,steps:e.steps,classes:e.wizardStyle},on:{"update:currentStep":function(t){e.getCurrentStep=t},"update:current-step":function(t){e.getCurrentStep=t}}})]),n("div",{class:e.wizardStyle.wizardStepsContainer},[e._t("default")],2)],2)}),[],!1,null,null,null).exports,Ns=$.classes,zs=q({name:"SwWizardStep",props:{description:{type:String,default:null},title:{type:String,default:null},classes:{type:Object,default:function(){return Ns}}},computed:{classesTheme:function(){return this.$theme&&this.$theme.SwWizard?l(l({},this.classes),this.$theme.SwWizard.classes):this.classes}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.classesTheme.stepContainer},[e.title||e.description?n("div",{class:e.classesTheme.stepHeadingContainer},[e.title?n("p",{class:e.classesTheme.stepTitle},[e._v(" "+e._s(e.title)+" ")]):e._e(),e.description?n("p",{class:e.classesTheme.stepDescription},[e._v(" "+e._s(e.description)+" ")]):e._e()]):e._e(),e._t("default")],2)}),[],!1,null,null,null).exports;function Is(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Fs(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Is(i,r,a,o,s,"next",e)}function s(e){Is(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Hs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rs(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 Bs(e,t,n){return t&&Rs(e.prototype,t),n&&Rs(e,n),e}function qs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}}(e,t)||oe(e,t)||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.")}()}function Vs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return Array.isArray(e)?e:[e]})).reduce((function(e,t){return e.concat(t)}),[])}function Ws(e,t){if(!t)return e;if(null===e||"object"!==pn(e))return e;var n=qs(t.split(/\.(.+)/),2),r=n[0],a=n[1];return Ws(e[r],a)}function Us(e,t){return t.reduce((function(t,n){return t[n]=e[n],t}),{})}n("96cf"),n("e6cf"),n("2ca0"),n("1276");var Ks=function(){function e(t){Hs(this,e);var n=Us(t,["show","label","dataType","sortable","sortBy","filterable","filterOn","hidden","formatter","cellClass","headerClass","sortAs"]);for(var r in n)this[r]=t[r];this.template=t.$scopedSlots.default}return Bs(e,[{key:"isFilterable",value:function(){return this.filterable}},{key:"getFilterFieldName",value:function(){return this.filterOn||this.show}},{key:"isSortable",value:function(){return this.sortable}},{key:"getSortPredicate",value:function(e,t){var n=this.getSortFieldName(),r=t.find((function(e){return e.sortAs===n||e.show===n})).dataType;return r.startsWith("date")||"numeric"===r?function(t,r){var a=t.getSortableValue(n),i=r.getSortableValue(n);return"desc"===e?i<a?-1:1:a<i?-1:1}:function(t,r){var a=t.getSortableValue(n),i=r.getSortableValue(n);return"desc"===e?i.localeCompare(a):a.localeCompare(i)}}},{key:"getSortFieldName",value:function(){return this.sortBy||this.sortAs||this.show}}]),e}(),Zs=new(function(){function e(){Hs(this,e)}return Bs(e,[{key:"get",value:function(e){var t=JSON.parse(localStorage.getItem(e));return t?new Date(t.expires)<new Date?(localStorage.removeItem(e),null):t.value:null}},{key:"has",value:function(e){return null!==this.get(e)}},{key:"set",value:function(e,t,n){var r=(new Date).getTime(),a=new Date(r+6e4*n);localStorage.setItem(e,JSON.stringify({value:t,expires:a}))}}]),e}()),Gs=n("c1df"),Js=n.n(Gs),Xs=function(){function e(t,n){Hs(this,e),this.data=t,this.columns=n}return Bs(e,[{key:"getValue",value:function(e){return Ws(this.data,e)}},{key:"getColumn",value:function(e){return this.columns.find((function(t){return t.show===e||t.sortAs===e}))}},{key:"getFilterableValue",value:function(e){var t=this.getValue(e);return t?t.toString().toLowerCase():""}},{key:"getSortableValue",value:function(e){var t=this.getColumn(e).dataType,n=this.getValue(e);if(null==n)return"";if(n instanceof String&&(n=n.toLowerCase()),t.startsWith("date")){var r=t.replace("date:","");return Js()(n,r).format("YYYYMMDDHHmmss")}return"numeric"===t?n:n.toString()}},{key:"passesFilter",value:function(e){var t=this;return this.columns.filter((function(e){return e.isFilterable()})).map((function(e){return t.getFilterableValue(e.getFilterFieldName())})).filter((function(t){return t.indexOf(e.toLowerCase())>=0})).length}}]),e}(),Qs=j.classes,el=q({props:{column:{type:Object},sort:{type:Object},classes:{type:Object,default:function(){return Qs}}},computed:{ariaDisabled:function(){return!this.column.isSortable()&&"true"},ariaSort:function(){return!!this.column.isSortable()&&((this.column.sortAs||this.column.show)!==this.sort.fieldName?"none":"asc"===this.sort.order?"ascending":"descending")},headerClass:function(){return this.column.isSortable()?(this.column.sortAs||this.column.show)!==this.sort.fieldName?Vs("table-component__th table-component__th--sort",this.column.headerClass,this.headerStyle,this.classesTheme.thSortStyles):Vs("table-component__th table-component__th--sort-".concat(this.sort.order),this.column.headerClass,this.headerStyle,this.classesTheme.thSortStyles):Vs("table-component__th",this.column.headerClass,this.headerStyle)},isVisible:function(){return!this.column.hidden},label:function(){return null===this.column.label?this.column.show:this.column.label},headerStyle:function(){return this.classesTheme.thStyles},classesTheme:function(){return this.$theme&&this.$theme.SwTable?l(l({},this.classes),this.$theme.SwTable.classes):this.classes}},methods:{clicked:function(){this.column.isSortable()&&this.$emit("click",this.column)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return this.isVisible?n("th",{class:e.headerClass,attrs:{"aria-sort":e.ariaSort,"aria-disabled":e.ariaDisabled,role:"columnheader"},on:{click:e.clicked}},[n("span",{staticClass:"asc-direction"},[e._v(" ↑ ")]),n("span",{staticClass:"desc-direction"},[e._v(" ↓ ")]),e._v(" "+e._s(e.label)+" ")]):e._e()}),[],!1,null,null,null).exports,tl=j.classes,nl=j.classes,rl=q({components:{TableCell:{functional:!0,props:{column:{type:Object},row:{type:Object},responsiveLabel:{type:String},classes:{type:Object,default:function(){return tl}}},render:function(e,t){var n=t.props,r={};return n.column.cellClass&&(r.class=n.column.cellClass),r.class+=" ".concat(n.classes.tdStyles),n.column.template?e("td",r,n.column.template(n.row.data)):(r.domProps={},r.domProps.innerHTML=n.column.formatter(n.row.getValue(n.column.show),n.row.data),e("td",{class:n.classes.tdStyles},[e("span",n.responsiveLabel),r.domProps.innerHTML]))}}},props:{columns:{type:[String,Object,Array],default:null},row:{type:[String,Object,Array],default:null},classes:{type:Object,default:function(){return nl}}},computed:{classesTheme:function(){return this.$theme&&this.$theme.SwTable?l(l({},this.classes),this.$theme.SwTable.classes):this.classes},visibleColumns:function(){return this.columns.filter((function(e){return!e.hidden}))},rowStyle:function(){return this.classesTheme.trStyles}},methods:{onClick:function(e){this.$emit("rowClick",{e,row:this.row})}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{class:e.rowStyle,on:{click:e.onClick}},e._l(e.visibleColumns,(function(t){return n("table-cell",{key:t.id,attrs:{row:e.row,column:t,classes:e.classesTheme,"responsive-label":t.label}})})),1)}),[],!1,null,null,null).exports,al={tableClass:"",theadClass:"",tbodyClass:"",headerClass:"",cellClass:"",filterInputClass:"",filterPlaceholder:"Filter table…",filterNoResults:"There are no matching rows"},il=al,ol=j.classes,sl=j.variants,ll=q({props:{pagination:{type:Object,default:function(){return{}}},classes:{type:Object,default:function(){return ol}},variants:{type:Object,default:function(){return sl}},variant:{type:String,default:null}},computed:{classesTheme:function(){return this.$theme&&this.$theme.SwTable?l(l({},this.classes),this.$theme.SwTable.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwTable?l(l({},this.variants),this.$theme.SwTable.variants):this.variants},pages:function(){return void 0===this.pagination.totalPages?[]:this.pageLinks()},hasFirst:function(){return this.pagination.currentPage>=4||this.pagination.totalPages<10},hasLast:function(){return this.pagination.currentPage<=this.pagination.totalPages-3||this.pagination.totalPages<10},hasFirstEllipsis:function(){return this.pagination.currentPage>=4&&this.pagination.totalPages>=10},hasLastEllipsis:function(){return this.pagination.currentPage<=this.pagination.totalPages-3&&this.pagination.totalPages>=10},shouldShowPagination:function(){return void 0!==this.pagination.totalPages&&0!==this.pagination.count&&this.pagination.totalPages>1},paginationContainerStyle:function(){return[this.tableTheme.paginationContainer]},firstPageDisabledStyle:function(){var e=null;return 1===this.pagination.currentPage&&(e=this.tableTheme.paginationDisabled),e},lastPageDisabledStyle:function(){var e=null;return this.pagination.currentPage===this.pagination.totalPages&&(e=this.tableTheme.paginationDisabled),e},paginationLeftIconStyle:function(){return[this.tableTheme.paginationLeftIcon]},paginationRightIconStyle:function(){return[this.tableTheme.paginationRightIcon]},tableTheme:function(){var e={};return this.variant&&(e=F(this.variant,this.variantsTheme)),l(l({},this.classesTheme),e)}},methods:{isActive:function(e){return(this.pagination.currentPage||1)===e},paginationPageClass:function(e){var t="";return t+=" ".concat(this.tableTheme.pageItem),this.isActive(e)&&(t+=" ".concat(this.tableTheme.activePageItem)),t},paginationPageStyle:function(e){var t="";return"..."===e&&(t+=" ".concat(this.tableTheme.paginationDisabled)),t},pageClicked:function(e){"..."===e||e===this.pagination.currentPage||e>this.pagination.totalPages||e<1||this.$emit("pageChange",e)},pageLinks:function(){var e=[],t=2,n=this.pagination.totalPages-1;this.pagination.totalPages>=10&&(t=Math.max(1,this.pagination.currentPage-2),n=Math.min(this.pagination.currentPage+2,this.pagination.totalPages));for(var r=t;r<=n;r++)e.push(r);return e}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.shouldShowPagination?n("nav",[n("ul",{class:e.paginationContainerStyle},[n("li",{class:e.firstPageDisabledStyle},[n("a",{class:e.firstPageDisabledStyle,on:{click:function(t){return e.pageClicked(e.pagination.currentPage-1)}}},[n("i",{class:e.paginationLeftIconStyle},[e._v("«")])])]),e.hasFirst?n("li",{staticClass:"overflow-hidden"},[n("a",{class:e.paginationPageClass(1),style:e.paginationPageStyle(1),on:{click:function(t){return e.pageClicked(1)}}},[e._v("1")])]):e._e(),e.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("…")])]):e._e(),e._l(e.pages,(function(t){return n("li",{key:t},[n("a",{class:e.paginationPageClass(t),style:e.paginationPageStyle(t),on:{click:function(n){return e.pageClicked(t)}}},[e._v(e._s(t))])])})),e.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[e._v("…")])]):e._e(),e.hasLast?n("li",[n("a",{class:e.paginationPageClass(this.pagination.totalPages),style:e.paginationPageStyle(this.pagination.totalPages),on:{click:function(t){return e.pageClicked(e.pagination.totalPages)}}},[e._v(" "+e._s(e.pagination.totalPages)+" ")])]):e._e(),n("li",[n("a",{style:e.lastPageDisabledStyle,on:{click:function(t){return e.pageClicked(e.pagination.currentPage+1)}}},[n("i",{class:e.paginationRightIconStyle},[e._v("»")])])])],2)]):e._e()}),[],!1,null,null,null).exports,cl=j.classes,ul=j.variants,dl=q({components:{TableColumnHeader:el,TableRow:rl,Pagination:ll},props:{data:{default:function(){return[]},type:[Array,Function]},classes:{type:Object,default:function(){return cl}},showFilter:{type:Boolean,default:!1},showCaption:{type:Boolean,default:!1},sortBy:{default:"",type:String},sortOrder:{default:"",type:String},cacheKey:{default:null},cacheLifetime:{default:5},tableClass:{default:function(){return il.tableClass}},theadClass:{default:function(){return il.theadClass}},tbodyClass:{default:function(){return il.tbodyClass}},filterInputClass:{default:function(){return il.filterInputClass}},filterPlaceholder:{default:function(){return il.filterPlaceholder}},filterNoResults:{default:function(){return il.filterNoResults}},variants:{type:Object,default:function(){return ul}},variant:{type:String,default:null}},data:function(){return{columns:[],rows:[],filter:"",sort:{fieldName:"",order:""},pagination:null,loading:!1,localSettings:{}}},computed:{classesTheme:function(){return this.$theme&&this.$theme.SwTable?l(l({},this.classes),this.$theme.SwTable.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwTable?l(l({},this.variants),this.$theme.SwTable.variants):this.variants},fullTableClass:function(){return Vs("table-component__table",this.tableClass)},fullTableHeadClass:function(){return Vs("table-component__table__head",this.theadClass)},fullTableBodyClass:function(){return Vs("table-component__table__body",this.tbodyClass)},fullFilterInputClass:function(){return Vs("table-component__filter__field",this.filterInputClass)},ariaCaption:function(){return""===this.sort.fieldName?"":"Table sorted by ".concat(this.sort.fieldName," ")+("asc"===this.sort.order?"(ascending)":"(descending)")},usesLocalData:function(){return Array.isArray(this.data)},displayedRows:function(){var e=this;return this.usesLocalData&&this.showFilter&&this.columns.filter((function(e){return e.isFilterable()})).length?this.sortedRows.filter((function(t){return t.passesFilter(e.filter)})):this.sortedRows},sortedRows:function(){if(!this.usesLocalData)return this.rows;if(""===this.sort.fieldName)return this.rows;if(0===this.columns.length)return this.rows;var e=this.getColumn(this.sort.fieldName);return e?this.rows.sort(e.getSortPredicate(this.sort.order,this.columns)):this.rows},filterableColumnExists:function(){return this.columns.filter((function(e){return e.isFilterable()})).length>0},storageKey:function(){return this.cacheKey?"vue-table-component.".concat(this.cacheKey):"vue-table-component.".concat(window.location.host).concat(window.location.pathname).concat(this.cacheKey)},tableComponentContainerStyle:function(){return this.tableTheme.tableComponentContainer},filterClearStyle:function(){return this.tableTheme.tableComponentFilterClear},tableWrapperStyle:function(){return this.tableTheme.tableComponentTableWrapper},tableStyle:function(){return this.tableTheme.baseTableStyle},tableCaptionStyle:function(){return this.tableTheme.tableCaption},emptyTableMessageStyle:function(){return this.tableTheme.emptyTableMessage},tableTheme:function(){var e={};return this.variant&&(e=F(this.variant,this.variantsTheme)),l(l({},this.classesTheme),e)}},watch:{filter:function(){this.usesLocalData||this.mapDataToRows(),this.saveState()},data:function(){this.usesLocalData&&this.mapDataToRows()}},created:function(){this.sort.order=this.sortOrder,this.restoreState()},mounted:function(){var e=this;return Fs(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.sort.fieldName=e.sortBy,n=e.$slots.default.filter((function(e){return e.componentInstance})).map((function(e){return e.componentInstance})),e.columns=n.map((function(e){return new Ks(e)})),n.forEach((function(t){Object.keys(t.$options.props).forEach((function(r){return t.$watch(r,(function(){e.columns=n.map((function(e){return new Ks(e)}))}))}))})),t.next=6,e.mapDataToRows();case 6:case"end":return t.stop()}}),t)})))()},methods:{pageChange:function(e){var t=this;return Fs(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.pagination.currentPage=e,n.next=3,t.mapDataToRows();case 3:case"end":return n.stop()}}),n)})))()},mapDataToRows:function(){var e=this;return Fs(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.usesLocalData){t.next=4;break}t.t0=e.prepareLocalData(),t.next=7;break;case 4:return t.next=6,e.fetchServerData();case 6:t.t0=t.sent;case 7:n=t.t0,r=0,e.rows=n.map((function(e){return e.vueTableComponentInternalRowId=r++,e})).map((function(t){return new Xs(t,e.columns)}));case 10:case"end":return t.stop()}}),t)})))()},prepareLocalData:function(){return this.pagination=null,this.data},fetchServerData:function(){var e=this;return Fs(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.pagination&&e.pagination.currentPage||1,e.loading=!0,t.next=4,e.data({filter:e.filter,sort:e.sort,page:n});case 4:return r=t.sent,e.pagination=r.pagination,e.loading=!1,t.abrupt("return",r.data);case 8:case"end":return t.stop()}}),t)})))()},refresh:function(){var e=this;return Fs(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.pagination&&(e.pagination.currentPage=1),t.next=3,e.mapDataToRows();case 3:case"end":return t.stop()}}),t)})))()},changeSorting:function(e){this.sort.fieldName!==(e.sortAs||e.show)?(this.sort.fieldName=e.sortAs||e.show,this.sort.order="asc"):this.sort.order="asc"===this.sort.order?"desc":"asc",this.usesLocalData||this.mapDataToRows(),this.saveState()},getColumn:function(e){return this.columns.find((function(t){return t.show===e}))},saveState:function(){Zs.set(this.storageKey,Us(this.$data,["filter","sort"]),this.cacheLifetime)},restoreState:function(){var e=Zs.get(this.storageKey);null!==e&&(this.sort=e.sort,this.filter=e.filter,this.saveState())},emitRowClick:function(e){this.$emit("rowClick",e),this.$emit("row-click",e)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.tableComponentContainerStyle},[e.showFilter&&e.filterableColumnExists?n("div",{staticClass:"relative self-end"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.filter,expression:"filter"}],class:e.fullFilterInputClass,attrs:{placeholder:e.filterPlaceholder,type:"text"},domProps:{value:e.filter},on:{input:function(t){t.target.composing||(e.filter=t.target.value)}}}),e.filter?n("a",{class:e.filterClearStyle,on:{click:function(t){e.filter=""}}},[e._v("×")]):e._e()]):e._e(),n("div",{class:e.tableWrapperStyle},[e.loading?n("base-loader",{staticClass:"table-loader"}):e._e(),n("table",{class:e.tableStyle},[e.showCaption?n("caption",{class:e.tableCaptionStyle,attrs:{role:"alert","aria-live":"polite"}},[e._v(" "+e._s(e.ariaCaption)+" ")]):e._e(),n("thead",{class:e.fullTableHeadClass},[n("tr",e._l(e.columns,(function(t){return n("table-column-header",{key:t.show||t.show,attrs:{sort:e.sort,column:t,classes:e.tableTheme},on:{click:e.changeSorting}})})),1)]),n("tbody",{class:e.fullTableBodyClass},e._l(e.displayedRows,(function(t){return n("table-row",{key:t.vueTableComponentInternalRowId,attrs:{row:t,columns:e.columns,classes:e.tableTheme},on:{rowClick:e.emitRowClick}})})),1),n("tfoot",[e._t("tfoot",null,{rows:e.rows})],2)])],1),0!==e.displayedRows.length||e.loading?e._e():n("div",{class:e.emptyTableMessageStyle},[e._v(" "+e._s(e.filterNoResults)+" ")]),n("div",{staticStyle:{display:"none"}},[e._t("default")],2),e.pagination&&!e.loading?n("pagination",{attrs:{classes:e.tableTheme,pagination:e.pagination},on:{pageChange:e.pageChange}}):e._e()],1)}),[],!1,null,null,null).exports,pl=q({props:{show:{required:!1,type:String},label:{default:null,type:String},dataType:{default:"string",type:String},sortable:{default:!0,type:Boolean},sortBy:{default:null},filterable:{default:!0,type:Boolean},sortAs:{default:null},filterOn:{default:null},formatter:{default:function(e){return e},type:Function},hidden:{default:!1,type:Boolean},cellClass:{default:il.cellClass},headerClass:{default:il.headerClass}}},(function(){var e=this;e.$createElement;return e._self._c,e._e()}),[],!1,null,null,null).exports,ml=n("e37d"),fl={SwAvatar:V,SwBadge:U,SwBreadcrumb:Z,SwBreadcrumbItem:G,SwButton:te,SwCard:ae,SwCheckbox:de,SwDivider:fe,SwDropdown:xt,SwDropdownItem:Dt,SwDropdownDivider:St,SwEmptyTablePlaceholder:Lt,SwFilterWrapper:Et,SwInput:$t,SwLabel:Yt,SwList:Rt,SwListItem:Bt,SwModal:Ut,SwListGroup:qt,SwMoney:Jt,SwPageHeader:Qt,SwPopup:tn,SwInputGroup:It,SwFileUpload:rn,SwRadio:ln,SwSwitch:un,SwSelect:xn,SwTabItem:kn,SwTableComponent:dl,SwTableColumn:pl,Pagination:ll,SwTabs:Sn,SwTextarea:Ln,SwTransition:En,SwEditor:Es,SwWizard:Ys,SwWizardStep:zs,SwWizardNavigation:js},hl={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.use(ml.a),!this.installed){this.installed=!0;var n=l(l({},P),t.theme||{}),r=l({},t.option||{}),a=t.components||Object.keys(fl);a.forEach((function(t){e.component(t,I(e,n,t,fl,P,r))}))}}};t.default=hl},fb6a:function(e,t,n){"use strict";var r=n("23e7"),a=n("861d"),i=n("e8b5"),o=n("23cb"),s=n("50c4"),l=n("fc6a"),c=n("8418"),u=n("b622"),d=n("1dde"),p=n("ae40"),m=d("slice"),f=p("slice",{ACCESSORS:!0,0:0,1:2}),h=u("species"),_=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!m||!f},{slice:function(e,t){var n,r,u,d=l(this),p=s(d.length),m=o(e,p),f=o(void 0===t?p:t,p);if(i(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!i(n.prototype)?a(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return _.call(d,m,f);for(r=new(void 0===n?Array:n)(v(f-m,0)),u=0;m<f;m++,u++)m in d&&c(r,u,d[m]);return r.length=u,r}})},fba5:function(e,t,n){var r=n("cb5a");e.exports=function(e){return r(this.__data__,e)>-1}},fc6a:function(e,t,n){var r=n("44ad"),a=n("1d80");e.exports=function(e){return r(a(e))}},fd7e:function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var r=n("da84");e.exports=r.Promise},ffff:function(e,t,n){!function(e){"use strict";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}})}(n("c1df"))}})},e.exports=r(n(538))},7751:(e,t,n)=>{"use strict";n.d(t,{Dkj:()=>i,Xki:()=>o,DEq:()=>s,iGq:()=>l,rE2:()=>c,C2q:()=>u,zTD:()=>d,IEm:()=>p,ciH:()=>m,FMB:()=>f,$lS:()=>_,YHR:()=>h,nWS:()=>v,_8t:()=>g,tEF:()=>b,Xl7:()=>y,tvw:()=>w,R0g:()=>x,Pf7:()=>k,Rdq:()=>D,vdY:()=>M,d2U:()=>S,Nae:()=>C,r7p:()=>L,tBG:()=>T,oyc:()=>O});var r=n(6568),a=n.n(r),i={name:"BellIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"}})])}},o={name:"CalculatorIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z"}})])}},s={name:"ChartBarIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"}})])}},l={name:"ChartSquareBarIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 8v8m-4-5v5m-4-2v2m-2 4h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}})])}},c={name:"CheckCircleIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}})])}},u={name:"ClipboardCheckIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}})])}},d={name:"ClipboardListIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"}})])}},p={name:"CogIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}}),e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}})])}},m={name:"CreditCardIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"}})])}},f={name:"CubeIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"}})])}},h={name:"DocumentTextIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}})])}},_={name:"DocumentIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"}})])}},v={name:"DotsHorizontalIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"}})])}},g={name:"DownloadIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"}})])}},y={name:"EyeOffIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"}})])}},b={name:"EyeIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}}),e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}})])}},w={name:"HomeIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"}})])}},x={name:"LogoutIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"}})])}},k={name:"OfficeBuildingIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"}})])}},D={name:"PaperAirplaneIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"}})])}},M={name:"PencilIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}})])}},S={name:"PlusSmIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"}})])}},C={name:"SaveIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"}})])}},L={name:"StarIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"}})])}},T={name:"UserIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"}})])}},O={name:"UsersIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},t.data]),[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"}})])}}},3032:(e,t,n)=>{"use strict";n.d(t,{Y4O:()=>i,LZ3:()=>o,Xki:()=>s,rE2:()=>l,a3z:()=>c,v4q:()=>u,nMW:()=>d,s68:()=>p,IEm:()=>m,ciH:()=>f,VHe:()=>h,eXB:()=>_,$lS:()=>g,YHR:()=>v,nWS:()=>y,_8t:()=>b,tEF:()=>w,k1n:()=>x,ROc:()=>k,jdL:()=>D,xPt:()=>M,bV6:()=>S,$_5:()=>C,Rdq:()=>L,sCx:()=>T,vdY:()=>O,wl8:()=>E,pOD:()=>j,d2U:()=>A,DuK:()=>$,W1M:()=>P,Q1y:()=>Y,TV4:()=>N,mcG:()=>z,XHJ:()=>I,uSF:()=>F,tBG:()=>H,XOb:()=>R,oOx:()=>B,b0D:()=>q});var r=n(6568),a=n.n(r),i={name:"ArrowLeftIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z","clip-rule":"evenodd"}})])}},o={name:"ArrowRightIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z","clip-rule":"evenodd"}})])}},s={name:"CalculatorIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M6 2a2 2 0 00-2 2v12a2 2 0 002 2h8a2 2 0 002-2V4a2 2 0 00-2-2H6zm1 2a1 1 0 000 2h6a1 1 0 100-2H7zm6 7a1 1 0 011 1v3a1 1 0 11-2 0v-3a1 1 0 011-1zm-3 3a1 1 0 100 2h.01a1 1 0 100-2H10zm-4 1a1 1 0 011-1h.01a1 1 0 110 2H7a1 1 0 01-1-1zm1-4a1 1 0 100 2h.01a1 1 0 100-2H7zm2 1a1 1 0 011-1h.01a1 1 0 110 2H10a1 1 0 01-1-1zm4-4a1 1 0 100 2h.01a1 1 0 100-2H13zM9 9a1 1 0 011-1h.01a1 1 0 110 2H10a1 1 0 01-1-1zM7 8a1 1 0 000 2h.01a1 1 0 000-2H7z","clip-rule":"evenodd"}})])}},l={name:"CheckCircleIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"}})])}},c={name:"ChevronDoubleRightIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10.293 15.707a1 1 0 010-1.414L14.586 10l-4.293-4.293a1 1 0 111.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z","clip-rule":"evenodd"}}),e("path",{attrs:{"fill-rule":"evenodd",d:"M4.293 15.707a1 1 0 010-1.414L8.586 10 4.293 5.707a1 1 0 011.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z","clip-rule":"evenodd"}})])}},u={name:"ChevronDownIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"}})])}},d={name:"CloudDownloadIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M2 9.5A3.5 3.5 0 005.5 13H9v2.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 15.586V13h2.5a4.5 4.5 0 10-.616-8.958 4.002 4.002 0 10-7.753 1.977A3.5 3.5 0 002 9.5zm9 3.5H9V8a1 1 0 012 0v5z","clip-rule":"evenodd"}})])}},p={name:"CloudUploadIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M5.5 13a3.5 3.5 0 01-.369-6.98 4 4 0 117.753-1.977A4.5 4.5 0 1113.5 13H11V9.413l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 001.414 1.414L9 9.414V13H5.5z"}}),e("path",{attrs:{d:"M9 13h2v5a1 1 0 11-2 0v-5z"}})])}},m={name:"CogIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z","clip-rule":"evenodd"}})])}},f={name:"CreditCardIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M4 4a2 2 0 00-2 2v1h16V6a2 2 0 00-2-2H4z"}}),e("path",{attrs:{"fill-rule":"evenodd",d:"M18 9H2v5a2 2 0 002 2h12a2 2 0 002-2V9zM4 13a1 1 0 011-1h1a1 1 0 110 2H5a1 1 0 01-1-1zm5-1a1 1 0 100 2h1a1 1 0 100-2H9z","clip-rule":"evenodd"}})])}},h={name:"DatabaseIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M3 12v3c0 1.657 3.134 3 7 3s7-1.343 7-3v-3c0 1.657-3.134 3-7 3s-7-1.343-7-3z"}}),e("path",{attrs:{d:"M3 7v3c0 1.657 3.134 3 7 3s7-1.343 7-3V7c0 1.657-3.134 3-7 3S3 8.657 3 7z"}}),e("path",{attrs:{d:"M17 5c0 1.657-3.134 3-7 3S3 6.657 3 5s3.134-3 7-3 7 1.343 7 3z"}})])}},_={name:"DocumentDuplicateIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M9 2a2 2 0 00-2 2v8a2 2 0 002 2h6a2 2 0 002-2V6.414A2 2 0 0016.414 5L14 2.586A2 2 0 0012.586 2H9z"}}),e("path",{attrs:{d:"M3 8a2 2 0 012-2v10h8a2 2 0 01-2 2H5a2 2 0 01-2-2V8z"}})])}},v={name:"DocumentTextIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z","clip-rule":"evenodd"}})])}},g={name:"DocumentIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z","clip-rule":"evenodd"}})])}},y={name:"DotsHorizontalIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"}})])}},b={name:"DownloadIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z","clip-rule":"evenodd"}})])}},w={name:"EyeIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}}),e("path",{attrs:{"fill-rule":"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z","clip-rule":"evenodd"}})])}},x={name:"FilterIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M3 3a1 1 0 011-1h12a1 1 0 011 1v3a1 1 0 01-.293.707L12 11.414V15a1 1 0 01-.293.707l-2 2A1 1 0 018 17v-5.586L3.293 6.707A1 1 0 013 6V3z","clip-rule":"evenodd"}})])}},k={name:"FolderIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"}})])}},D={name:"HashtagIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M9.243 3.03a1 1 0 01.727 1.213L9.53 6h2.94l.56-2.243a1 1 0 111.94.486L14.53 6H17a1 1 0 110 2h-2.97l-1 4H15a1 1 0 110 2h-2.47l-.56 2.242a1 1 0 11-1.94-.485L10.47 14H7.53l-.56 2.242a1 1 0 11-1.94-.485L5.47 14H3a1 1 0 110-2h2.97l1-4H5a1 1 0 110-2h2.47l.56-2.243a1 1 0 011.213-.727zM9.03 8l-1 4h2.938l1-4H9.031z","clip-rule":"evenodd"}})])}},M={name:"LinkIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z","clip-rule":"evenodd"}})])}},S={name:"MailIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"}}),e("path",{attrs:{d:"M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z"}})])}},C={name:"MinusCircleIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM7 9a1 1 0 000 2h6a1 1 0 100-2H7z","clip-rule":"evenodd"}})])}},L={name:"PaperAirplaneIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M10.894 2.553a1 1 0 00-1.788 0l-7 14a1 1 0 001.169 1.409l5-1.429A1 1 0 009 15.571V11a1 1 0 112 0v4.571a1 1 0 00.725.962l5 1.428a1 1 0 001.17-1.408l-7-14z"}})])}},T={name:"PencilAltIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M17.414 2.586a2 2 0 00-2.828 0L7 10.172V13h2.828l7.586-7.586a2 2 0 000-2.828z"}}),e("path",{attrs:{"fill-rule":"evenodd",d:"M2 6a2 2 0 012-2h4a1 1 0 010 2H4v10h10v-4a1 1 0 112 0v4a2 2 0 01-2 2H4a2 2 0 01-2-2V6z","clip-rule":"evenodd"}})])}},O={name:"PencilIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}})])}},E={name:"PlusCircleIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-11a1 1 0 10-2 0v2H7a1 1 0 100 2h2v2a1 1 0 102 0v-2h2a1 1 0 100-2h-2V7z","clip-rule":"evenodd"}})])}},A={name:"PlusSmIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z","clip-rule":"evenodd"}})])}},j={name:"PlusIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z","clip-rule":"evenodd"}})])}},$={name:"RefreshIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z","clip-rule":"evenodd"}})])}},P={name:"SearchIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"}})])}},Y={name:"ShoppingCartIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}})])}},N={name:"SortAscendingIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h5a1 1 0 000-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM13 16a1 1 0 102 0v-5.586l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 101.414 1.414L13 10.414V16z"}})])}},z={name:"SortDescendingIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h7a1 1 0 100-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM15 8a1 1 0 10-2 0v5.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L15 13.586V8z"}})])}},I={name:"TrashIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule":"evenodd"}})])}},F={name:"UserAddIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M8 9a3 3 0 100-6 3 3 0 000 6zM8 11a6 6 0 016 6H2a6 6 0 016-6zM16 7a1 1 0 10-2 0v1h-1a1 1 0 100 2h1v1a1 1 0 102 0v-1h1a1 1 0 100-2h-1V7z"}})])}},H={name:"UserIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z","clip-rule":"evenodd"}})])}},R={name:"ViewGridIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{d:"M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM11 13a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"}})])}},B={name:"XCircleIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"}})])}},q={name:"XIcon",props:{size:{type:String,default:"24",validator:e=>!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}},functional:!0,render(e,t){const n="x"===t.props.size.slice(-1)?t.props.size.slice(0,t.props.size.length-1)+"em":parseInt(t.props.size)+"px",r=t.data.attrs||{};return r.width=r.width||n,r.height=r.height||n,t.data.attrs=r,e("svg",a()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"}})])}}},6568:e=>{"use strict";function t(){return(t=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}var n=["attrs","props","domProps"],r=["class","style","directives"],a=["on","nativeOn"],i=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=function(e){return e.reduce((function(e,o){for(var s in o)if(e[s])if(-1!==n.indexOf(s))e[s]=t({},e[s],o[s]);else if(-1!==r.indexOf(s)){var l=e[s]instanceof Array?e[s]:[e[s]],c=o[s]instanceof Array?o[s]:[o[s]];e[s]=l.concat(c)}else if(-1!==a.indexOf(s))for(var u in o[s])if(e[s][u]){var d=e[s][u]instanceof Array?e[s][u]:[e[s][u]],p=o[s][u]instanceof Array?o[s][u]:[o[s][u]];e[s][u]=d.concat(p)}else e[s][u]=o[s][u];else if("hook"==s)for(var m in o[s])e[s][m]=e[s][m]?i(e[s][m],o[s][m]):o[s][m];else e[s]=o[s];else e[s]=o[s];return e}),{})}},9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),a=n(6026),i=n(5327),o=n(4097),s=n(4109),l=n(7985),c=n(5061);e.exports=function(e){return new Promise((function(t,u){var d=e.data,p=e.headers;r.isFormData(d)&&delete p["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",h=e.auth.password||"";p.Authorization="Basic "+btoa(f+":"+h)}var _=o(e.baseURL,e.url);if(m.open(e.method.toUpperCase(),i(_,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,m.onreadystatechange=function(){if(m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in m?s(m.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m};a(t,u,r),m=null}},m.onabort=function(){m&&(u(c("Request aborted",e,"ECONNABORTED",m)),m=null)},m.onerror=function(){u(c("Network Error",e,null,m)),m=null},m.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(c(t,e,"ECONNABORTED",m)),m=null},r.isStandardBrowserEnv()){var v=n(4372),g=(e.withCredentials||l(_))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;g&&(p[e.xsrfHeaderName]=g)}if("setRequestHeader"in m&&r.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:m.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),e.responseType)try{m.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){m&&(m.abort(),u(e),m=null)})),void 0===d&&(d=null),m.send(d)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),a=n(1849),i=n(321),o=n(7185);function s(e){var t=new i(e),n=a(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var l=s(n(6419));l.Axios=i,l.create=function(e){return s(o(l.defaults,e))},l.Cancel=n(5263),l.CancelToken=n(4972),l.isCancel=n(6502),l.all=function(e){return Promise.all(e)},l.spread=n(8713),e.exports=l,e.exports.default=l},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),a=n(5327),i=n(782),o=n(3572),s=n(7185);function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,a){return this.request(r.merge(a||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var r=n(4867);function a(){this.handlers=[]}a.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},4097:(e,t,n)=>{"use strict";var r=n(9699),a=n(7303);e.exports=function(e,t){return e&&!r(t)?a(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,a,i){var o=new Error(e);return r(o,t,n,a,i)}},3572:(e,t,n)=>{"use strict";var r=n(4867),a=n(6205),i=n(6502),o=n(6419);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return s(e),t.data=a(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={},a=["url","method","params","data"],i=["headers","auth","proxy"],o=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(a,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(i,(function(a){r.isObject(t[a])?n[a]=r.deepMerge(e[a],t[a]):void 0!==t[a]?n[a]=t[a]:r.isObject(e[a])?n[a]=r.deepMerge(e[a]):void 0!==e[a]&&(n[a]=e[a])})),r.forEach(o,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var s=a.concat(i).concat(o),l=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(l,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var a=n.config.validateStatus;!a||a(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},6205:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},6419:(e,t,n)=>{"use strict";var r=n(4155),a=n(4867),i=n(6016),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!a.isUndefined(e)&&a.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(l=n(5448)),l),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),a.isFormData(e)||a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e)?e:a.isArrayBufferView(e)?e.buffer:a.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):a.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){c.headers[e]=a.merge(o)})),e.exports=c},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var r=n(4867);function a(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(a(t)+"="+a(e))})))})),i=o.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,a,i,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(a)&&s.push("path="+a),r.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9699:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function a(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=a(window.location.href),function(t){var n=r.isString(t)?a(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,o={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(o[t]&&a.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4867:(e,t,n)=>{"use strict";var r=n(1849),a=Object.prototype.toString;function i(e){return"[object Array]"===a.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===a.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:o,isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,a=arguments.length;r<a;r++)c(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,a=arguments.length;r<a;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,a){e[a]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},1865:(e,t,n)=>{"use strict";var r=n(538),a=n(7904),i=n(8074);const o={addClass:function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},hasClass:function(e,t){var n=e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className);return n},formatMoney:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t||(t={precision:2,thousand_separator:",",decimal_separator:".",symbol:"$"}),e/=100;var n=t,r=n.precision,a=n.decimal_separator,i=n.thousand_separator,o=n.symbol;try{r=Math.abs(r),r=isNaN(r)?2:r;var s=e<0?"-":"",l=parseInt(e=Math.abs(Number(e)||0).toFixed(r)).toString(),c=l.length>3?l.length%3:0,u='<span style="font-family: sans-serif">'.concat(o,"</span>");return u+" "+s+(c?l.substr(0,c)+i:"")+l.substr(c).replace(/(\d{3})(?=\d)/g,"$1"+i)+(r?a+Math.abs(e-l).toFixed(r).slice(2):"")}catch(e){console.log(e)}},formatGraphMoney:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t||(t={precision:2,thousand_separator:",",decimal_separator:".",symbol:"$"}),e/=100;var n=t,r=n.precision,a=n.decimal_separator,i=n.thousand_separator,o=n.symbol;try{r=Math.abs(r),r=isNaN(r)?2:r;var s=e<0?"-":"",l=parseInt(e=Math.abs(Number(e)||0).toFixed(r)).toString(),c=l.length>3?l.length%3:0,u="".concat(o);return u+" "+s+(c?l.substr(0,c)+i:"")+l.substr(c).replace(/(\d{3})(?=\d)/g,"$1"+i)+(r?a+Math.abs(e-l).toFixed(r).slice(2):"")}catch(e){console.log(e)}},checkValidUrl:function(e){return!!(e.includes("http://localhost")||e.includes("http://127.0.0.1")||e.includes("https://localhost")||e.includes("https://127.0.0.1"))||!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)},checkValidDomainUrl:function(e){return!!e.includes("localhost")||!!new RegExp("^([0-9A-Za-z-\\.@:%_+~#=]+)+((\\.[a-zA-Z]{2,3})+)(/(.)*)?(\\?(.)*)?").test(e)},fallbackCopyTextToClipboard:function(e){var t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{var n=document.execCommand("copy")?"successful":"unsuccessful";console.log("Fallback: Copying text command was "+n)}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(t)},copyTextToClipboard:function(e){navigator.clipboard?navigator.clipboard.writeText(e).then((function(){return!0}),(function(e){return!1})):this.fallbackCopyTextToClipboard(e)},arrayDifference:function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))},getBadgeStatusColor:function(e){switch(e){case"DRAFT":return{bgColor:"#F8EDCB",color:"#744210"};case"PAID":return{bgColor:"#D5EED0",color:"#276749"};case"UNPAID":return{bgColor:"#F8EDC",color:"#744210"};case"SENT":return{bgColor:"rgba(246, 208, 154, 0.4)",color:"#975a16"};case"REJECTED":return{bgColor:"#E1E0EA",color:"#1A1841"};case"ACCEPTED":return{bgColor:"#D5EED0",color:"#276749"};case"VIEWED":return{bgColor:"#C9E3EC",color:"#2c5282"};case"EXPIRED":return{bgColor:"#FED7D7",color:"#c53030"};case"PARTIALLY PAID":return{bgColor:"#C9E3EC",color:"#2c5282"};case"OVERDUE":return{bgColor:"#FED7D7",color:"#c53030"};case"COMPLETED":return{bgColor:"#D5EED0",color:"#276749"};case"DUE":return{bgColor:"#F8EDCB",color:"#744210"};case"YES":return{bgColor:"#D5EED0",color:"#276749"};case"NO":return{bgColor:"#FED7D7",color:"#c53030"}}},compareVersion:function(e,t,n){var r=n&&n.lexicographical,a=n&&n.zeroExtend,i=e.split("."),o=t.split(".");function s(e){return(r?/^\d+[A-Za-z]*$/:/^\d+$/).test(e)}if(!i.every(s)||!o.every(s))return NaN;if(a){for(;i.length<o.length;)i.push("0");for(;o.length<i.length;)o.push("0")}r||(i=i.map(Number),o=o.map(Number));for(var l=0;l<i.length;++l){if(o.length==l)return 1;if(i[l]!=o[l])return i[l]>o[l]?1:-1}return i.length!=o.length?-1:0}};var s=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function l(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var c=Array.isArray;function u(e){return null!==e&&"object"==typeof e}function d(e){return"string"==typeof e}var p=Object.prototype.toString;function m(e){return"[object Object]"===p.call(e)}function f(e){return null==e}function h(e){return"function"==typeof e}function _(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,r=null;return 1===e.length?u(e[0])||c(e[0])?r=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(u(e[1])||c(e[1]))&&(r=e[1])),{locale:n,params:r}}function v(e){return JSON.parse(JSON.stringify(e))}function g(e,t){return!!~e.indexOf(t)}var y=Object.prototype.hasOwnProperty;function b(e,t){return y.call(e,t)}function w(e){for(var t=arguments,n=Object(e),r=1;r<arguments.length;r++){var a=t[r];if(null!=a){var i=void 0;for(i in a)b(a,i)&&(u(a[i])?n[i]=w(n[i],a[i]):n[i]=a[i])}}return n}function x(e,t){if(e===t)return!0;var n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var a=c(e),i=c(t);if(a&&i)return e.length===t.length&&e.every((function(e,n){return x(e,t[n])}));if(a||i)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return x(e[n],t[n])}))}catch(e){return!1}}function k(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=e[t].replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"))})),e}var D={beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n)if(e.i18n instanceof Q){if(e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){t=w(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(e){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(m(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Q?this.$root.$i18n:null;if(n&&(e.i18n.root=this.$root,e.i18n.formatter=n.formatter,e.i18n.fallbackLocale=n.fallbackLocale,e.i18n.formatFallbackMessages=n.formatFallbackMessages,e.i18n.silentTranslationWarn=n.silentTranslationWarn,e.i18n.silentFallbackWarn=n.silentFallbackWarn,e.i18n.pluralizationRules=n.pluralizationRules,e.i18n.preserveDirectiveContent=n.preserveDirectiveContent),e.__i18n)try{var r=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){r=w(r,JSON.parse(e))})),e.i18n.messages=r}catch(e){0}var a=e.i18n.sharedMessages;a&&m(a)&&(e.i18n.messages=w(e.i18n.messages,a)),this._i18n=new Q(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Q?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Q&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n?(e.i18n instanceof Q||m(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof Q||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof Q)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}},M={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,r=t.parent,a=t.props,i=t.slots,o=r.$i18n;if(o){var s=a.path,l=a.locale,c=a.places,u=i(),d=o.i(s,l,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(u)||c?function(e,t){var n=t?function(e){0;return Array.isArray(e)?e.reduce(C,{}):Object.assign({},e)}(t):{};if(!e)return n;var r=(e=e.filter((function(e){return e.tag||""!==e.text.trim()}))).every(L);0;return e.reduce(r?S:C,n)}(u.default,c):u),p=a.tag&&!0!==a.tag||!1===a.tag?a.tag:"span";return p?e(p,n,d):d}}};function S(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function C(e,t,n){return e[n]=t,e}function L(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var T,O={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,r=t.parent,a=t.data,i=r.$i18n;if(!i)return null;var o=null,l=null;d(n.format)?o=n.format:u(n.format)&&(n.format.key&&(o=n.format.key),l=Object.keys(n.format).reduce((function(e,t){var r;return g(s,t)?Object.assign({},e,((r={})[t]=n.format[t],r)):e}),null));var c=n.locale||i.locale,p=i._ntp(n.value,c,o,l),m=p.map((function(e,t){var n,r=a.scopedSlots&&a.scopedSlots[e.type];return r?r(((n={})[e.type]=e.value,n.index=t,n.parts=p,n)):e.value})),f=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return f?e(f,{attrs:a.attrs,class:a.class,staticClass:a.staticClass},m):m}};function E(e,t,n){$(e,n)&&P(e,t,n)}function A(e,t,n,r){if($(e,n)){var a=n.context.$i18n;(function(e,t){var n=t.context;return e._locale===n.$i18n.locale})(e,n)&&x(t.value,t.oldValue)&&x(e._localeMessage,a.getLocaleMessage(a.locale))||P(e,t,n)}}function j(e,t,n,r){if(n.context){var a=n.context.$i18n||{};t.modifiers.preserve||a.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}else l("Vue instance does not exists in VNode context")}function $(e,t){var n=t.context;return n?!!n.$i18n||(l("VueI18n instance does not exists in Vue instance"),!1):(l("Vue instance does not exists in VNode context"),!1)}function P(e,t,n){var r,a,i=function(e){var t,n,r,a;d(e)?t=e:m(e)&&(t=e.path,n=e.locale,r=e.args,a=e.choice);return{path:t,locale:n,args:r,choice:a}}(t.value),o=i.path,s=i.locale,c=i.args,u=i.choice;if(o||s||c)if(o){var p=n.context;e._vt=e.textContent=null!=u?(r=p.$i18n).tc.apply(r,[o,u].concat(Y(s,c))):(a=p.$i18n).t.apply(a,[o].concat(Y(s,c))),e._locale=p.$i18n.locale,e._localeMessage=p.$i18n.getLocaleMessage(p.$i18n.locale)}else l("`path` is required in v-t directive");else l("value type not supported")}function Y(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||m(t))&&n.push(t),n}function N(e){N.installed=!0;(T=e).version&&Number(T.version.split(".")[0]);(function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var a=this.$i18n;return a._tc.apply(a,[e,a.locale,a._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}})(T),T.mixin(D),T.directive("t",{bind:E,update:A,unbind:j}),T.component(M.name,M),T.component(O.name,O),T.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var z=function(){this._caches=Object.create(null)};z.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,r="";for(;n<e.length;){var a=e[n++];if("{"===a){r&&t.push({type:"text",value:r}),r="";var i="";for(a=e[n++];void 0!==a&&"}"!==a;)i+=a,a=e[n++];var o="}"===a,s=I.test(i)?"list":o&&F.test(i)?"named":"unknown";t.push({value:i,type:s})}else"%"===a?"{"!==e[n]&&(r+=a):r+=a}return r&&t.push({type:"text",value:r}),t}(e),this._caches[e]=n),function(e,t){var n=[],r=0,a=Array.isArray(t)?"list":u(t)?"named":"unknown";if("unknown"===a)return n;for(;r<e.length;){var i=e[r];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===a&&n.push(t[i.value]);break;case"unknown":0}r++}return n}(n,t)};var I=/^(?:\d)+/,F=/^(?:\w)+/;var H=[];H[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},H[1]={ws:[1],".":[2],"[":[4],eof:[7]},H[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},H[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},H[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},H[5]={"'":[4,0],eof:8,else:[5,0]},H[6]={'"':[4,0],eof:8,else:[6,0]};var R=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function B(e){if(null==e)return"eof";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function q(e){var t,n,r,a=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(r=a,R.test(r)?(n=(t=a).charCodeAt(0))!==t.charCodeAt(t.length-1)||34!==n&&39!==n?t:t.slice(1,-1):"*"+a)}var V=function(){this._cache=Object.create(null)};V.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=function(e){var t,n,r,a,i,o,s,l=[],c=-1,u=0,d=0,p=[];function m(){var t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,p[0](),!0}for(p[1]=function(){void 0!==n&&(l.push(n),n=void 0)},p[0]=function(){void 0===n?n=r:n+=r},p[2]=function(){p[0](),d++},p[3]=function(){if(d>0)d--,u=4,p[0]();else{if(d=0,void 0===n)return!1;if(!1===(n=q(n)))return!1;p[1]()}};null!==u;)if(c++,"\\"!==(t=e[c])||!m()){if(a=B(t),8===(i=(s=H[u])[a]||s.else||8))return;if(u=i[0],(o=p[i[1]])&&(r=void 0===(r=i[2])?t:r,!1===o()))return;if(7===u)return l}}(e))&&(this._cache[e]=t),t||[]},V.prototype.getPathValue=function(e,t){if(!u(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var r=n.length,a=e,i=0;i<r;){var o=a[n[i]];if(void 0===o)return null;a=o,i++}return a};var W,U=/<\/?[\w\s="/.':;#-\/]+>/,K=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,Z=/^@(?:\.([a-z]+))?:/,G=/[()]/g,J={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},X=new z,Q=function(e){var t=this;void 0===e&&(e={}),!T&&"undefined"!=typeof window&&window.Vue&&N(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),a=e.messages||{},i=e.dateTimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||X,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new V,this._dataListeners=[],this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,this.getChoiceIndex=function(e,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex)return r.getChoiceIndex.call(t,e,n);var a,i;return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):(a=e,i=n,a=Math.abs(a),2===i?a?a>1?1:0:1:a?Math.min(a,2):0)},this._exist=function(e,n){return!(!e||!n)&&(!f(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(a).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,a[e])})),this._initVM({locale:n,fallbackLocale:r,messages:a,dateTimeFormats:i,numberFormats:o})},ee={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};Q.prototype._checkLocaleMessage=function(e,t,n){var r=function(e,t,n,a){if(m(n))Object.keys(n).forEach((function(i){var o=n[i];m(o)?(a.push(i),a.push("."),r(e,t,o,a),a.pop(),a.pop()):(a.push(i),r(e,t,o,a),a.pop())}));else if(c(n))n.forEach((function(n,i){m(n)?(a.push("["+i+"]"),a.push("."),r(e,t,n,a),a.pop(),a.pop()):(a.push("["+i+"]"),r(e,t,n,a),a.pop())}));else if(d(n)){if(U.test(n)){var i="Detected HTML in message '"+n+"' of keypath '"+a.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?l(i):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(i)}}};r(t,e,n,[])},Q.prototype._initVM=function(e){var t=T.config.silent;T.config.silent=!0,this._vm=new T({data:e}),T.config.silent=t},Q.prototype.destroyVM=function(){this._vm.$destroy()},Q.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},Q.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)e.splice(n,1)}}(this._dataListeners,e)},Q.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=e._dataListeners.length;t--;)T.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},Q.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.$i18n.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},Q.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},ee.vm.get=function(){return this._vm},ee.messages.get=function(){return v(this._getMessages())},ee.dateTimeFormats.get=function(){return v(this._getDateTimeFormats())},ee.numberFormats.get=function(){return v(this._getNumberFormats())},ee.availableLocales.get=function(){return Object.keys(this.messages).sort()},ee.locale.get=function(){return this._vm.locale},ee.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},ee.fallbackLocale.get=function(){return this._vm.fallbackLocale},ee.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},ee.formatFallbackMessages.get=function(){return this._formatFallbackMessages},ee.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},ee.missing.get=function(){return this._missing},ee.missing.set=function(e){this._missing=e},ee.formatter.get=function(){return this._formatter},ee.formatter.set=function(e){this._formatter=e},ee.silentTranslationWarn.get=function(){return this._silentTranslationWarn},ee.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},ee.silentFallbackWarn.get=function(){return this._silentFallbackWarn},ee.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},ee.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},ee.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},ee.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},ee.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},ee.postTranslation.get=function(){return this._postTranslation},ee.postTranslation.set=function(e){this._postTranslation=e},Q.prototype._getMessages=function(){return this._vm.messages},Q.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},Q.prototype._getNumberFormats=function(){return this._vm.numberFormats},Q.prototype._warnDefault=function(e,t,n,r,a,i){if(!f(n))return n;if(this._missing){var o=this._missing.apply(null,[e,t,r,a]);if(d(o))return o}else 0;if(this._formatFallbackMessages){var s=_.apply(void 0,a);return this._render(t,i,s.params,t)}return t},Q.prototype._isFallbackRoot=function(e){return!e&&!f(this._root)&&this._fallbackRoot},Q.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},Q.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},Q.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},Q.prototype._interpolate=function(e,t,n,r,a,i,o){if(!t)return null;var s,l=this._path.getPathValue(t,n);if(c(l)||m(l))return l;if(f(l)){if(!m(t))return null;if(!d(s=t[n])&&!h(s))return null}else{if(!d(l)&&!h(l))return null;s=l}return d(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(e,t,s,r,"raw",i,o)),this._render(s,a,i,n)},Q.prototype._link=function(e,t,n,r,a,i,o){var s=n,l=s.match(K);for(var u in l)if(l.hasOwnProperty(u)){var d=l[u],p=d.match(Z),m=p[0],f=p[1],h=d.replace(m,"").replace(G,"");if(g(o,h))return s;o.push(h);var _=this._interpolate(e,t,h,r,"raw"===a?"string":a,"raw"===a?void 0:i,o);if(this._isFallbackRoot(_)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;_=v._translate(v._getMessages(),v.locale,v.fallbackLocale,h,r,a,i)}_=this._warnDefault(e,h,_,r,c(i)?i:[i],a),this._modifiers.hasOwnProperty(f)?_=this._modifiers[f](_):J.hasOwnProperty(f)&&(_=J[f](_)),o.pop(),s=_?s.replace(d,_):s}return s},Q.prototype._createMessageContext=function(e){var t=c(e)?e:[],n=u(e)?e:{};return{list:function(e){return t[e]},named:function(e){return n[e]}}},Q.prototype._render=function(e,t,n,r){if(h(e))return e(this._createMessageContext(n));var a=this._formatter.interpolate(e,n,r);return a||(a=X.interpolate(e,n,r)),"string"!==t||d(a)?a:a.join("")},Q.prototype._appendItemToChain=function(e,t,n){var r=!1;return g(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},Q.prototype._appendLocaleToChain=function(e,t,n){var r,a=t.split("-");do{var i=a.join("-");r=this._appendItemToChain(e,i,n),a.splice(-1,1)}while(a.length&&!0===r);return r},Q.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,a=0;a<t.length&&"boolean"==typeof r;a++){var i=t[a];d(i)&&(r=this._appendLocaleToChain(e,i,n))}return r},Q.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];for(var r,a=[e];c(a);)a=this._appendBlockToChain(n,a,t);(a=d(r=c(t)?t:u(t)?t.default?t.default:null:t)?[r]:r)&&this._appendBlockToChain(n,a,null),this._localeChainCache[e]=n}return n},Q.prototype._translate=function(e,t,n,r,a,i,o){for(var s,l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(!f(s=this._interpolate(u,e[u],r,a,i,o,[r])))return s}return null},Q.prototype._t=function(e,t,n,r){for(var a,i=[],o=arguments.length-4;o-- >0;)i[o]=arguments[o+4];if(!e)return"";var s=_.apply(void 0,i);this._escapeParameterHtml&&(s.params=k(s.params));var l=s.locale||t,c=this._translate(n,l,this.fallbackLocale,e,r,"string",s.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(a=this._root).$t.apply(a,[e].concat(i))}return c=this._warnDefault(l,e,c,r,i,"string"),this._postTranslation&&null!=c&&(c=this._postTranslation(c,e)),c},Q.prototype.t=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},Q.prototype._i=function(e,t,n,r,a){var i=this._translate(n,t,this.fallbackLocale,e,r,"raw",a);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,a)}return this._warnDefault(t,e,i,r,[a],"raw")},Q.prototype.i=function(e,t,n){return e?(d(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},Q.prototype._tc=function(e,t,n,r,a){for(var i,o=[],s=arguments.length-5;s-- >0;)o[s]=arguments[s+5];if(!e)return"";void 0===a&&(a=1);var l={count:a,n:a},c=_.apply(void 0,o);return c.params=Object.assign(l,c.params),o=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((i=this)._t.apply(i,[e,t,n,r].concat(o)),a)},Q.prototype.fetchChoice=function(e,t){if(!e||!d(e))return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},Q.prototype.tc=function(e,t){for(var n,r=[],a=arguments.length-2;a-- >0;)r[a]=arguments[a+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},Q.prototype._te=function(e,t,n){for(var r=[],a=arguments.length-3;a-- >0;)r[a]=arguments[a+3];var i=_.apply(void 0,r).locale||t;return this._exist(n[i],e)},Q.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},Q.prototype.getLocaleMessage=function(e){return v(this._vm.messages[e]||{})},Q.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},Q.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,w(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?this._vm.messages[e]:{},t))},Q.prototype.getDateTimeFormat=function(e){return v(this._vm.dateTimeFormats[e]||{})},Q.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},Q.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,w(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},Q.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},Q.prototype._localizeDateTime=function(e,t,n,r,a){for(var i=t,o=r[i],s=this._getLocaleChain(t,n),l=0;l<s.length;l++){var c=s[l];if(i=c,!f(o=r[c])&&!f(o[a]))break}if(f(o)||f(o[a]))return null;var u=o[a],d=i+"__"+a,p=this._dateTimeFormatters[d];return p||(p=this._dateTimeFormatters[d]=new Intl.DateTimeFormat(i,u)),p.format(e)},Q.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var r=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return r||""},Q.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,a=null;return 1===t.length?d(t[0])?a=t[0]:u(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(a=t[0].key)):2===t.length&&(d(t[0])&&(a=t[0]),d(t[1])&&(r=t[1])),this._d(e,r,a)},Q.prototype.getNumberFormat=function(e){return v(this._vm.numberFormats[e]||{})},Q.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},Q.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,w(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},Q.prototype._clearNumberFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},Q.prototype._getNumberFormatter=function(e,t,n,r,a,i){for(var o=t,s=r[o],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(o=u,!f(s=r[u])&&!f(s[a]))break}if(f(s)||f(s[a]))return null;var d,p=s[a];if(i)d=new Intl.NumberFormat(o,Object.assign({},p,i));else{var m=o+"__"+a;(d=this._numberFormatters[m])||(d=this._numberFormatters[m]=new Intl.NumberFormat(o,p))}return d},Q.prototype._n=function(e,t,n,r){if(!Q.availabilities.numberFormat)return"";if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).format(e);var a=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),i=a&&a.format(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},r))}return i||""},Q.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,a=null,i=null;return 1===t.length?d(t[0])?a=t[0]:u(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(a=t[0].key),i=Object.keys(t[0]).reduce((function(e,n){var r;return g(s,n)?Object.assign({},e,((r={})[n]=t[0][n],r)):e}),null)):2===t.length&&(d(t[0])&&(a=t[0]),d(t[1])&&(r=t[1])),this._n(e,r,a,i)},Q.prototype._ntp=function(e,t,n,r){if(!Q.availabilities.numberFormat)return[];if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).formatToParts(e);var a=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),i=a&&a.formatToParts(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return i||[]},Object.defineProperties(Q.prototype,ee),Object.defineProperty(Q,"availabilities",{get:function(){if(!W){var e="undefined"!=typeof Intl;W={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return W}}),Q.install=N,Q.version="8.22.4";const te=Q,ne=JSON.parse('{"navigation":{"dashboard":"Dashboard","customers":"Customers","items":"Items","invoices":"Invoices","expenses":"Expenses","estimates":"Estimates","payments":"Payments","reports":"Reports","settings":"Settings","logout":"Logout","users":"Users"},"general":{"add_company":"Add Company","view_pdf":"View PDF","copy_pdf_url":"Copy PDF Url","download_pdf":"Download PDF","save":"Save","create":"Create","cancel":"Cancel","update":"Update","deselect":"Deselect","download":"Download","from_date":"From Date","to_date":"To Date","from":"From","to":"To","sort_by":"Sort By","ascending":"Ascending","descending":"Descending","subject":"Subject","body":"Body","message":"Message","send":"Send","go_back":"Go Back","back_to_login":"Back to Login?","home":"Home","filter":"Filter","delete":"Delete","edit":"Edit","view":"View","add_new_item":"Add New Item","clear_all":"Clear All","showing":"Showing","of":"of","actions":"Actions","subtotal":"SUBTOTAL","discount":"DISCOUNT","fixed":"Fixed","percentage":"Percentage","tax":"TAX","total_amount":"TOTAL AMOUNT","bill_to":"Bill to","ship_to":"Ship to","due":"Due","draft":"Draft","sent":"Sent","all":"All","select_all":"Select All","choose_file":"Click here to choose a file","choose_template":"Choose a template","choose":"Choose","remove":"Remove","powered_by":"Powered by","bytefury":"Bytefury","select_a_status":"Select a status","select_a_tax":"Select a tax","search":"Search","are_you_sure":"Are you sure?","list_is_empty":"List is empty.","no_tax_found":"No tax found!","four_zero_four":"404","you_got_lost":"Whoops! You got Lost!","go_home":"Go Home","test_mail_conf":"Test Mail Configuration","send_mail_successfully":"Mail sent successfully","setting_updated":"Setting updated successfully","select_state":"Select state","select_country":"Select Country","select_city":"Select City","street_1":"Street 1","street_2":"Street 2","action_failed":"Action Failed","retry":"Retry","choose_note":"Choose Note","no_note_found":"No Note Found","insert_note":"Insert Note","copied_pdf_url_clipboard":"Copied PDF url to clipboard!"},"dashboard":{"select_year":"Select year","cards":{"due_amount":"Amount Due","customers":"Customers","invoices":"Invoices","estimates":"Estimates"},"chart_info":{"total_sales":"Sales","total_receipts":"Receipts","total_expense":"Expenses","net_income":"Net Income","year":"Select year"},"weekly_invoices":{"title":"Weekly Invoices"},"monthly_chart":{"title":"Sales & Expenses"},"recent_invoices_card":{"title":"Due Invoices","due_on":"Due On","customer":"Customer","amount_due":"Amount Due","actions":"Actions","view_all":"View All"},"recent_estimate_card":{"title":"Recent Estimates","date":"Date","customer":"Customer","amount_due":"Amount Due","actions":"Actions","view_all":"View All"}},"tax_types":{"name":"Name","description":"Description","percent":"Percent","compound_tax":"Compound Tax"},"global_search":{"search":"Search...","customers":"Customers","users":"Users","no_results_found":"No Results Found"},"customers":{"title":"Customers","add_customer":"Add Customer","contacts_list":"Customer List","name":"Name","mail":"Mail | Mails","statement":"Statement","display_name":"Display Name","primary_contact_name":"Primary Contact Name","contact_name":"Contact Name","amount_due":"Amount Due","email":"Email","address":"Address","phone":"Phone","website":"Website","overview":"Overview","enable_portal":"Enable Portal","country":"Country","state":"State","city":"City","zip_code":"Zip Code","added_on":"Added On","action":"Action","password":"Password","street_number":"Street Number","primary_currency":"Primary Currency","description":"Description","add_new_customer":"Add New Customer","save_customer":"Save Customer","update_customer":"Update Customer","customer":"Customer | Customers","new_customer":"New Customer","edit_customer":"Edit Customer","basic_info":"Basic Info","billing_address":"Billing Address","shipping_address":"Shipping Address","copy_billing_address":"Copy from Billing","no_customers":"No customers yet!","no_customers_found":"No customers found!","list_of_customers":"This section will contain the list of customers.","primary_display_name":"Primary Display Name","select_currency":"Select currency","select_a_customer":"Select a customer","type_or_click":"Type or click to select","new_transaction":"New Transaction","no_matching_customers":"There are no matching customers!","phone_number":"Phone Number","create_date":"Create Date","confirm_delete":"You will not be able to recover this customer and all the related Invoices, Estimates and Payments. | You will not be able to recover these customers and all the related Invoices, Estimates and Payments.","created_message":"Customer created successfully","updated_message":"Customer updated successfully","deleted_message":"Customer deleted successfully | Customers deleted successfully"},"items":{"title":"Items","items_list":"Items List","name":"Name","unit":"Unit","description":"Description","added_on":"Added On","price":"Price","date_of_creation":"Date Of Creation","action":"Action","add_item":"Add Item","save_item":"Save Item","update_item":"Update Item","item":"Item | Items","add_new_item":"Add New Item","new_item":"New Item","edit_item":"Edit Item","no_items":"No items yet!","list_of_items":"This section will contain the list of items.","select_a_unit":"select unit","taxes":"Taxes","item_attached_message":"Cannot delete an item which is already in use","confirm_delete":"You will not be able to recover this Item | You will not be able to recover these Items","created_message":"Item created successfully","updated_message":"Item updated successfully","deleted_message":"Item deleted successfully | Items deleted successfully"},"estimates":{"title":"Estimates","estimate":"Estimate | Estimates","estimates_list":"Estimates List","days":"{days} Days","months":"{months} Month","years":"{years} Year","all":"All","paid":"Paid","unpaid":"Unpaid","customer":"CUSTOMER","ref_no":"REF NO.","number":"NUMBER","amount_due":"AMOUNT DUE","partially_paid":"Partially Paid","total":"Total","discount":"Discount","sub_total":"Sub Total","estimate_number":"Estimate Number","ref_number":"Ref Number","contact":"Contact","add_item":"Add an Item","date":"Date","due_date":"Due Date","expiry_date":"Expiry Date","status":"Status","add_tax":"Add Tax","amount":"Amount","action":"Action","notes":"Notes","tax":"Tax","estimate_template":"Template","convert_to_invoice":"Convert to Invoice","mark_as_sent":"Mark as Sent","send_estimate":"Send Estimate","resend_estimate":"Resend Estimate","record_payment":"Record Payment","add_estimate":"Add Estimate","save_estimate":"Save Estimate","confirm_conversion":"This estimate will be used to create a new Invoice.","conversion_message":"Invoice created successful","confirm_send_estimate":"This estimate will be sent via email to the customer","confirm_mark_as_sent":"This estimate will be marked as sent","confirm_mark_as_accepted":"This estimate will be marked as Accepted","confirm_mark_as_rejected":"This estimate will be marked as Rejected","no_matching_estimates":"There are no matching estimates!","mark_as_sent_successfully":"Estimate marked as sent successfully","send_estimate_successfully":"Estimate sent successfully","errors":{"required":"Field is required"},"accepted":"Accepted","sent":"Sent","draft":"Draft","declined":"Declined","new_estimate":"New Estimate","add_new_estimate":"Add New Estimate","update_Estimate":"Update Estimate","edit_estimate":"Edit Estimate","items":"items","Estimate":"Estimate | Estimates","add_new_tax":"Add New Tax","no_estimates":"No estimates yet!","list_of_estimates":"This section will contain the list of estimates.","mark_as_rejected":"Mark as rejected","mark_as_accepted":"Mark as accepted","marked_as_accepted_message":"Estimate marked as accepted","marked_as_rejected_message":"Estimate marked as rejected","confirm_delete":"You will not be able to recover this Estimate | You will not be able to recover these Estimates","created_message":"Estimate created successfully","updated_message":"Estimate updated successfully","deleted_message":"Estimate deleted successfully | Estimates deleted successfully","user_email_does_not_exist":"User email does not exist","something_went_wrong":"something went wrong","item":{"title":"Item Title","description":"Description","quantity":"Quantity","price":"Price","discount":"Discount","total":"Total","total_discount":"Total Discount","sub_total":"Sub Total","tax":"Tax","amount":"Amount","select_an_item":"Type or click to select an item","type_item_description":"Type Item Description (optional)"}},"invoices":{"title":"Invoices","invoices_list":"Invoices List","days":"{days} Days","months":"{months} Month","years":"{years} Year","all":"All","paid":"Paid","unpaid":"Unpaid","customer":"CUSTOMER","paid_status":"PAID STATUS","ref_no":"REF NO.","number":"NUMBER","amount_due":"AMOUNT DUE","partially_paid":"Partially Paid","total":"Total","discount":"Discount","sub_total":"Sub Total","invoice":"Invoice | Invoices","invoice_number":"Invoice Number","ref_number":"Ref Number","contact":"Contact","add_item":"Add an Item","date":"Date","due_date":"Due Date","status":"Status","add_tax":"Add Tax","amount":"Amount","action":"Action","notes":"Notes","view":"View","send_invoice":"Send Invoice","resend_invoice":"Resend Invoice","invoice_template":"Invoice Template","template":"Template","mark_as_sent":"Mark as sent","confirm_send_invoice":"This invoice will be sent via email to the customer","invoice_mark_as_sent":"This invoice will be marked as sent","confirm_send":"This invoice will be sent via email to the customer","invoice_date":"Invoice Date","record_payment":"Record Payment","add_new_invoice":"Add New Invoice","update_expense":"Update Expense","edit_invoice":"Edit Invoice","new_invoice":"New Invoice","save_invoice":"Save Invoice","update_invoice":"Update Invoice","add_new_tax":"Add New Tax","no_invoices":"No Invoices yet!","list_of_invoices":"This section will contain the list of invoices.","select_invoice":"Select Invoice","no_matching_invoices":"There are no matching invoices!","mark_as_sent_successfully":"Invoice marked as sent successfully","send_invoice_successfully":"Invoice sent successfully","cloned_successfully":"Invoice cloned successfully","clone_invoice":"Clone Invoice","confirm_clone":"This invoice will be cloned into a new Invoice","item":{"title":"Item Title","description":"Description","quantity":"Quantity","price":"Price","discount":"Discount","total":"Total","total_discount":"Total Discount","sub_total":"Sub Total","tax":"Tax","amount":"Amount","select_an_item":"Type or click to select an item","type_item_description":"Type Item Description (optional)"},"payment_attached_message":"One of the selected invoices already have a payment attached to it. Make sure to delete the attached payments first in order to go ahead with the removal","confirm_delete":"You will not be able to recover this Invoice | You will not be able to recover these Invoices","created_message":"Invoice created successfully","updated_message":"Invoice updated successfully","deleted_message":"Invoice deleted successfully | Invoices deleted successfully","marked_as_sent_message":"Invoice marked as sent successfully","user_email_does_not_exist":"User email does not exist","something_went_wrong":"something went wrong","invalid_due_amount_message":"Total Invoice amount cannot be less than total paid amount for this Invoice. Please update the invoice or delete the associated payments to continue."},"credit_notes":{"title":"Credit Notes","credit_notes_list":"Credit Notes List","credit_notes":"Credit Notes","contact":"Contact","date":"Date","amount":"Amount","action":"Action","credit_number":"Credit Number","notes":"Notes","confirm_delete":"Do you want to delete this credit note?","item":{"title":"Item Title","description":"Description","quantity":"Quantity","price":"Price","discount":"Discount","total":"Total","total_discount":"Total Discount","sub_total":"Sub Total","tax":"Tax"}},"payments":{"title":"Payments","payments_list":"Payments List","record_payment":"Record Payment","customer":"Customer","date":"Date","amount":"Amount","action":"Action","payment_number":"Payment Number","payment_mode":"Payment Mode","invoice":"Invoice","note":"Note","add_payment":"Add Payment","new_payment":"New Payment","edit_payment":"Edit Payment","view_payment":"View Payment","add_new_payment":"Add New Payment","send_payment_receipt":"Send Payment Receipt","send_payment":"Send Payment","save_payment":"Save Payment","update_payment":"Update Payment","payment":"Payment | Payments","no_payments":"No payments yet!","no_matching_payments":"There are no matching payments!","list_of_payments":"This section will contain the list of payments.","select_payment_mode":"Select payment mode","confirm_mark_as_sent":"This estimate will be marked as sent","confirm_send_payment":"This payment will be sent via email to the customer","send_payment_successfully":"Payment sent successfully","user_email_does_not_exist":"User email does not exist","something_went_wrong":"something went wrong","confirm_delete":"You will not be able to recover this Payment | You will not be able to recover these Payments","created_message":"Payment created successfully","updated_message":"Payment updated successfully","deleted_message":"Payment deleted successfully | Payments deleted successfully","invalid_amount_message":"Payment amount is invalid"},"expenses":{"title":"Expenses","expenses_list":"Expenses List","select_a_customer":"Select a customer","expense_title":"Title","customer":"Customer","contact":"Contact","category":"Category","from_date":"From Date","to_date":"To Date","expense_date":"Date","description":"Description","receipt":"Receipt","amount":"Amount","action":"Action","note":"Note","category_id":"Category Id","date":"Date","add_expense":"Add Expense","add_new_expense":"Add New Expense","save_expense":"Save Expense","update_expense":"Update Expense","download_receipt":"Download Receipt","edit_expense":"Edit Expense","new_expense":"New Expense","expense":"Expense | Expenses","no_expenses":"No expenses yet!","list_of_expenses":"This section will contain the list of expenses.","confirm_delete":"You will not be able to recover this Expense | You will not be able to recover these Expenses","created_message":"Expense created successfully","updated_message":"Expense updated successfully","deleted_message":"Expense deleted successfully | Expenses deleted successfully","categories":{"categories_list":"Categories List","title":"Title","name":"Name","description":"Description","amount":"Amount","actions":"Actions","add_category":"Add Category","new_category":"New Category","category":"Category | Categories","select_a_category":"Select a category"}},"login":{"email":"Email","password":"Password","forgot_password":"Forgot Password?","or_signIn_with":"or Sign in with","login":"Login","register":"Register","reset_password":"Reset Password","password_reset_successfully":"Password Reset Successfully","enter_email":"Enter email","enter_password":"Enter Password","retype_password":"Retype Password","login_placeholder":"mail@example.com"},"users":{"title":"Users","users_list":"Users List","name":"Name","description":"Description","added_on":"Added On","date_of_creation":"Date Of Creation","action":"Action","add_user":"Add User","save_user":"Save User","update_user":"Update User","user":"User | Users","add_new_user":"Add New User","new_user":"New User","edit_user":"Edit User","no_users":"No users yet!","list_of_users":"This section will contain the list of users.","email":"Email","phone":"Phone","password":"Password","user_attached_message":"Cannot delete an item which is already in use","confirm_delete":"You will not be able to recover this User | You will not be able to recover these Users","created_message":"User created successfully","updated_message":"User updated successfully","deleted_message":"User deleted successfully | User deleted successfully"},"reports":{"title":"Report","from_date":"From Date","to_date":"To Date","status":"Status","paid":"Paid","unpaid":"Unpaid","download_pdf":"Download PDF","view_pdf":"View PDF","update_report":"Update Report","report":"Report | Reports","profit_loss":{"profit_loss":"Profit & Loss","to_date":"To Date","from_date":"From Date","date_range":"Select Date Range"},"sales":{"sales":"Sales","date_range":"Select Date Range","to_date":"To Date","from_date":"From Date","report_type":"Report Type"},"taxes":{"taxes":"Taxes","to_date":"To Date","from_date":"From Date","date_range":"Select Date Range"},"errors":{"required":"Field is required"},"invoices":{"invoice":"Invoice","invoice_date":"Invoice Date","due_date":"Due Date","amount":"Amount","contact_name":"Contact Name","status":"Status"},"estimates":{"estimate":"Estimate","estimate_date":"Estimate Date","due_date":"Due Date","estimate_number":"Estimate Number","ref_number":"Ref Number","amount":"Amount","contact_name":"Contact Name","status":"Status"},"expenses":{"expenses":"Expenses","category":"Category","date":"Date","amount":"Amount","to_date":"To Date","from_date":"From Date","date_range":"Select Date Range"}},"settings":{"menu_title":{"account_settings":"Account Settings","company_information":"Company Information","customization":"Customization","preferences":"Preferences","notifications":"Notifications","tax_types":"Tax Types","expense_category":"Expense Categories","update_app":"Update App","backup":"Backup","file_disk":"File Disk","custom_fields":"Custom Fields","payment_modes":"Payment Modes","notes":"Notes"},"title":"Settings","setting":"Settings | Settings","general":"General","language":"Language","primary_currency":"Primary Currency","timezone":"Time Zone","date_format":"Date Format","currencies":{"title":"Currencies","currency":"Currency | Currencies","currencies_list":"Currencies List","select_currency":"Select Currency","name":"Name","code":"Code","symbol":"Symbol","precision":"Precision","thousand_separator":"Thousand Separator","decimal_separator":"Decimal Separator","position":"Position","position_of_symbol":"Position Of Symbol","right":"Right","left":"Left","action":"Action","add_currency":"Add Currency"},"mail":{"host":"Mail Host","port":"Mail Port","driver":"Mail Driver","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"Mail Password","username":"Mail Username","mail_config":"Mail Configuration","from_name":"From Mail Name","from_mail":"From Mail Address","encryption":"Mail Encryption","mail_config_desc":"Below is the form for Configuring Email driver for sending emails from the app. You can also configure third party providers like Sendgrid, SES etc."},"pdf":{"title":"PDF Setting","footer_text":"Footer Text","pdf_layout":"PDF Layout"},"company_info":{"company_info":"Company info","company_name":"Company Name","company_logo":"Company Logo","section_description":"Information about your company that will be displayed on invoices, estimates and other documents created by Crater.","phone":"Phone","country":"Country","state":"State","city":"City","address":"Address","zip":"Zip","save":"Save","updated_message":"Company information updated successfully"},"custom_fields":{"title":"Custom Fields","section_description":"Customize your Invoices, Estimates & Payment Receipts with your own fields. Make sure to use the below added fields on the address formats on Customization settings page.","add_custom_field":"Add Custom Field","edit_custom_field":"Edit Custom Field","field_name":"Field Name","label":"Label","type":"Type","name":"Name","required":"Required","placeholder":"Placeholder","help_text":"Help Text","default_value":"Default Value","prefix":"Prefix","starting_number":"Starting Number","model":"Model","help_text_description":"Enter some text to help users understand the purpose of this custom field.","suffix":"Suffix","yes":"Yes","no":"No","order":"Order","custom_field_confirm_delete":"You will not be able to recover this Custom Field","already_in_use":"Custom Field is already in use","deleted_message":"Custom Field deleted successfully","options":"options","add_option":"Add Options","add_another_option":"Add another option","sort_in_alphabetical_order":"Sort in Alphabetical Order","add_options_in_bulk":"Add options in bulk","use_predefined_options":"Use Predefined Options","select_custom_date":"Select Custom Date","select_relative_date":"Select Relative Date","ticked_by_default":"Ticked by default","updated_message":"Custom Field updated successfully","added_message":"Custom Field added successfully"},"customization":{"customization":"customization","save":"Save","addresses":{"title":"Addresses","section_description":"You can set Customer Billing Address and Customer Shipping Address Format (Displayed in PDF only). ","customer_billing_address":"Customer Billing Address","customer_shipping_address":"Customer Shipping Address","company_address":"Company Address","insert_fields":"Insert Fields","contact":"Contact","address":"Address","display_name":"Display Name","primary_contact_name":"Primary Contact Name","email":"Email","website":"Website","name":"Name","country":"Country","state":"State","city":"City","company_name":"Company Name","address_street_1":"Address Street 1","address_street_2":"Address Street 2","phone":"Phone","zip_code":"Zip Code","address_setting_updated":"Address Setting updated successfully"},"updated_message":"Company information updated successfully","invoices":{"title":"Invoices","notes":"Notes","invoice_prefix":"Invoice Prefix","default_invoice_email_body":"Default Invoice Email Body","invoice_settings":"Invoice Settings","autogenerate_invoice_number":"Auto-generate Invoice Number","invoice_setting_description":"Disable this, If you don\'t wish to auto-generate invoice numbers each time you create a new invoice.","invoice_email_attachment":"Send invoices as attachments","invoice_email_attachment_setting_description":"Enable this if you want to send invoices as email attachment.","enter_invoice_prefix":"Enter invoice prefix","terms_and_conditions":"Terms and Conditions","company_address_format":"Company Address Format","shipping_address_format":"Shipping Address Format","billing_address_format":"Billing Address Format","invoice_setting_updated":"Invoice Setting updated successfully"},"estimates":{"title":"Estimates","estimate_prefix":"Estimate Prefix","default_estimate_email_body":"Default Estimate Email Body","estimate_settings":"Estimate Settings","autogenerate_estimate_number":"Auto-generate Estimate Number","estimate_setting_description":"Disable this, If you don\'t wish to auto-generate estimate numbers each time you create a new estimate.","estimate_email_attachment":"Send estimates as attachments","estimate_email_attachment_setting_description":"Enable this if you want to send the estimates as an email attachment.","enter_estimate_prefix":"Enter estmiate prefix","estimate_setting_updated":"Estimate Setting updated successfully","company_address_format":"Company Address Format","billing_address_format":"Billing Address Format","shipping_address_format":"Shipping Address Format"},"payments":{"title":"Payments","description":"Modes of transaction for payments","payment_prefix":"Payment Prefix","default_payment_email_body":"Default Payment Email Body","payment_settings":"Payment Settings","autogenerate_payment_number":"Auto-generate Payment Number","payment_setting_description":"Disable this, If you don\'t wish to auto-generate payment numbers each time you create a new payment.","payment_email_attachment":"Send payments as attachments","payment_email_attachment_setting_description":"Enable this if you want to send the payment receipts as an email attachment.","enter_payment_prefix":"Enter Payment Prefix","payment_setting_updated":"Payment Setting updated successfully","payment_modes":"Payment Modes","add_payment_mode":"Add Payment Mode","edit_payment_mode":"Edit Payment Mode","mode_name":"Mode Name","payment_mode_added":"Payment Mode Added","payment_mode_updated":"Payment Mode Updated","payment_mode_confirm_delete":"You will not be able to recover this Payment Mode","already_in_use":"Payment Mode is already in use","deleted_message":"Payment Mode deleted successfully","company_address_format":"Company Address Format","from_customer_address_format":"From Customer Address Format"},"items":{"title":"Items","units":"Units","add_item_unit":"Add Item Unit","edit_item_unit":"Edit Item Unit","unit_name":"Unit Name","item_unit_added":"Item Unit Added","item_unit_updated":"Item Unit Updated","item_unit_confirm_delete":"You will not be able to recover this Item unit","already_in_use":"Item Unit is already in use","deleted_message":"Item Unit deleted successfully"},"notes":{"title":"Notes","description":"Save time by creating notes and reusing them on your invoices, estimates & payments.","notes":"Notes","type":"Type","add_note":"Add Note","add_new_note":"Add New Note","name":"Name","edit_note":"Edit Note","note_added":"Note added successfully","note_updated":"Note Updated successfully","note_confirm_delete":"You will not be able to recover this Note","already_in_use":"Note is already in use","deleted_message":"Note deleted successfully"}},"account_settings":{"profile_picture":"Profile Picture","name":"Name","email":"Email","password":"Password","confirm_password":"Confirm Password","account_settings":"Account Settings","save":"Save","section_description":"You can update your name, email & password using the form below.","updated_message":"Account Settings updated successfully"},"user_profile":{"name":"Name","email":"Email","password":"Password","confirm_password":"Confirm Password"},"notification":{"title":"Notification","email":"Send Notifications to","description":"Which email notifications would you like to receive when something changes?","invoice_viewed":"Invoice viewed","invoice_viewed_desc":"When your customer views the invoice sent via crater dashboard.","estimate_viewed":"Estimate viewed","estimate_viewed_desc":"When your customer views the estimate sent via crater dashboard.","save":"Save","email_save_message":"Email saved successfully","please_enter_email":"Please Enter Email"},"tax_types":{"title":"Tax Types","add_tax":"Add Tax","edit_tax":"Edit Tax","description":"You can add or Remove Taxes as you please. Crater supports Taxes on Individual Items as well as on the invoice.","add_new_tax":"Add New Tax","tax_settings":"Tax Settings","tax_per_item":"Tax Per Item","tax_name":"Tax Name","compound_tax":"Compound Tax","percent":"Percent","action":"Action","tax_setting_description":"Enable this if you want to add taxes to individual invoice items. By default, taxes are added directly to the invoice.","created_message":"Tax type created successfully","updated_message":"Tax type updated successfully","deleted_message":"Tax type deleted successfully","confirm_delete":"You will not be able to recover this Tax Type","already_in_use":"Tax is already in use"},"expense_category":{"title":"Expense Categories","action":"Action","description":"Categories are required for adding expense entries. You can Add or Remove these categories according to your preference.","add_new_category":"Add New Category","add_category":"Add Category","edit_category":"Edit Category","category_name":"Category Name","category_description":"Description","created_message":"Expense Category created successfully","deleted_message":"Expense category deleted successfully","updated_message":"Expense category updated successfully","confirm_delete":"You will not be able to recover this Expense Category","already_in_use":"Category is already in use"},"preferences":{"currency":"Currency","default_language":"Default Language","time_zone":"Time Zone","fiscal_year":"Financial Year","date_format":"Date Format","discount_setting":"Discount Setting","discount_per_item":"Discount Per Item ","discount_setting_description":"Enable this if you want to add Discount to individual invoice items. By default, Discount is added directly to the invoice.","save":"Save","preference":"Preference | Preferences","general_settings":"Default preferences for the system.","updated_message":"Preferences updated successfully","select_language":"Select Language","select_time_zone":"Select Time Zone","select_date_format":"Select Date Format","select_financial_year":"Select Financial Year"},"update_app":{"title":"Update App","description":"You can easily update Crater by checking for a new update by clicking the button below","check_update":"Check for updates","avail_update":"New Update available","next_version":"Next version","requirements":"Requirements","update":"Update Now","update_progress":"Update in progress...","progress_text":"It will just take a few minutes. Please do not refresh the screen or close the window before the update finishes","update_success":"App has been updated! Please wait while your browser window gets reloaded automatically.","latest_message":"No update available! You are on the latest version.","current_version":"Current Version","download_zip_file":"Download ZIP file","unzipping_package":"Unzipping Package","copying_files":"Copying Files","deleting_files":"Deleting Unused files","running_migrations":"Running Migrations","finishing_update":"Finishing Update","update_failed":"Update Failed","update_failed_text":"Sorry! Your update failed on : {step} step"},"backup":{"title":"Backup | Backups","description":"The backup is a zipfile that contains all files in the directories you specify along with a dump of your database","new_backup":"Add New Backup","create_backup":"Create Backup","select_backup_type":"Select Backup Type","backup_confirm_delete":"You will not be able to recover this Backup","path":"path","new_disk":"New Disk","created_at":"created at","size":"size","dropbox":"dropbox","local":"local","healthy":"healthy","amount_of_backups":"amount of backups","newest_backups":"newest backups","used_storage":"used storage","select_disk":"Select Disk","action":"Action","deleted_message":"Backup deleted successfully","created_message":"Backup created successfully","invalid_disk_credentials":"Invalid credential of selected disk"},"disk":{"title":"File Disk | File Disks","description":"By default, Crater will use your local disk for saving backups, avatar and other image files. You can configure more than one disk drivers like DigitalOcean, S3 and Dropbox according to your preference.","created_at":"created at","dropbox":"dropbox","name":"Name","driver":"Driver","disk_type":"Type","disk_name":"Disk Name","new_disk":"Add New Disk","filesystem_driver":"Filesystem Driver","local_driver":"local Driver","local_root":"local Root","public_driver":"Public Driver","public_root":"Public Root","public_url":"Public URL","public_visibility":"Public Visibility","media_driver":"Media Driver","media_root":"Media Root","aws_driver":"AWS Driver","aws_key":"AWS Key","aws_secret":"AWS Secret","aws_region":"AWS Region","aws_bucket":"AWS Bucket","aws_root":"AWS Root","do_spaces_type":"Do Spaces type","do_spaces_key":"Do Spaces key","do_spaces_secret":"Do Spaces Secret","do_spaces_region":"Do Spaces Region","do_spaces_bucket":"Do Spaces Bucket","do_spaces_endpoint":"Do Spaces Endpoint","do_spaces_root":"Do Spaces Root","dropbox_type":"Dropbox Type","dropbox_token":"Dropbox Token","dropbox_key":"Dropbox Key","dropbox_secret":"Dropbox Secret","dropbox_app":"Dropbox App","dropbox_root":"Dropbox Root","default_driver":"Default Driver","is_default":"IS DEFAULT","set_default_disk":"Set Default Disk","set_default_disk_confirm":"This disk will be set as default and all the new PDFs will be saved on this disk","success_set_default_disk":"Disk set as default successfully","save_pdf_to_disk":"Save PDFs to Disk","disk_setting_description":" Enable this, if you wish to save a copy of each Invoice, Estimate & Payment Receipt PDF on your default disk automatically. Turning this option will decrease the load-time when viewing the PDFs.","select_disk":"Select Disk","disk_settings":"Disk Settings","confirm_delete":"Your existing files & folders in the specified disk will not be affected but your disk configuration will be deleted from Crater","action":"Action","edit_file_disk":"Edit File Disk","success_create":"Disk added successfully","success_update":"Disk updated successfully","error":"Disk addition failed","deleted_message":"File Disk deleted successfully","disk_variables_save_successfully":"Disk Configured Successfully","disk_variables_save_error":"Disk configuration failed.","invalid_disk_credentials":"Invalid credential of selected disk"}},"wizard":{"account_info":"Account Information","account_info_desc":"Below details will be used to create the main Administrator account. Also you can change the details anytime after logging in.","name":"Name","email":"Email","password":"Password","confirm_password":"Confirm Password","save_cont":"Save & Continue","company_info":"Company Information","company_info_desc":"This information will be displayed on invoices. Note that you can edit this later on settings page.","company_name":"Company Name","company_logo":"Company Logo","logo_preview":"Logo Preview","preferences":"Preferences","preferences_desc":"Default preferences for the system.","country":"Country","state":"State","city":"City","address":"Address","street":"Street1 | Street2","phone":"Phone","zip_code":"Zip Code","go_back":"Go Back","currency":"Currency","language":"Language","time_zone":"Time Zone","fiscal_year":"Financial Year","date_format":"Date Format","from_address":"From Address","username":"Username","next":"Next","continue":"Continue","skip":"Skip","database":{"database":"Site URL & Database","connection":"Database Connection","host":"Database Host","port":"Database Port","password":"Database Password","app_url":"App URL","app_domain":"App Domain","username":"Database Username","db_name":"Database Name","db_path":"Database Path","desc":"Create a database on your server and set the credentials using the form below."},"permissions":{"permissions":"Permissions","permission_confirm_title":"Are you sure you want to continue?","permission_confirm_desc":"Folder permission check failed","permission_desc":"Below is the list of folder permissions which are required in order for the app to work. If the permission check fails, make sure to update your folder permissions."},"mail":{"host":"Mail Host","port":"Mail Port","driver":"Mail Driver","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"Mail Password","username":"Mail Username","mail_config":"Mail Configuration","from_name":"From Mail Name","from_mail":"From Mail Address","encryption":"Mail Encryption","mail_config_desc":"Below is the form for Configuring Email driver for sending emails from the app. You can also configure third party providers like Sendgrid, SES etc."},"req":{"system_req":"System Requirements","php_req_version":"Php (version {version} required)","check_req":"Check Requirements","system_req_desc":"Crater has a few server requirements. Make sure that your server has the required php version and all the extensions mentioned below."},"errors":{"migrate_failed":"Migrate Failed","database_variables_save_error":"Cannot write configuration to .env file. Please check its file permissions","mail_variables_save_error":"Email configuration failed.","connection_failed":"Database connection failed","database_should_be_empty":"Database should be empty"},"success":{"mail_variables_save_successfully":"Email configured successfully","database_variables_save_successfully":"Database configured successfully."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Super Simple Invoicing","for_freelancer":"for Freelancers &","small_businesses":"Small Businesses ","crater_help":"Crater helps you track expenses, record payments & generate beautiful","invoices_and_estimates":"invoices & estimates with ability to choose multiple templates."},"validation":{"invalid_phone":"Invalid Phone Number","invalid_url":"Invalid url (ex: http://www.crater.com)","invalid_domain_url":"Invalid url (ex: crater.com)","required":"Field is required","email_incorrect":"Incorrect Email.","email_already_taken":"The email has already been taken.","email_does_not_exist":"User with given email doesn\'t exist","item_unit_already_taken":"This item unit name has already been taken","payment_mode_already_taken":"This payment mode name has already been taken","send_reset_link":"Send Reset Link","not_yet":"Not yet? Send it again","password_min_length":"Password must contain {count} characters","name_min_length":"Name must have at least {count} letters.","enter_valid_tax_rate":"Enter valid tax rate","numbers_only":"Numbers Only.","characters_only":"Characters Only.","password_incorrect":"Passwords must be identical","password_length":"Password must be {count} character long.","qty_must_greater_than_zero":"Quantity must be greater than zero.","price_greater_than_zero":"Price must be greater than zero.","payment_greater_than_zero":"Payment must be greater than zero.","payment_greater_than_due_amount":"Entered Payment is more than due amount of this invoice.","quantity_maxlength":"Quantity should not be greater than 20 digits.","price_maxlength":"Price should not be greater than 20 digits.","price_minvalue":"Price should be greater than 0.","amount_maxlength":"Amount should not be greater than 20 digits.","amount_minvalue":"Amount should be greater than 0.","description_maxlength":"Description should not be greater than 65,000 characters.","subject_maxlength":"Subject should not be greater than 100 characters.","message_maxlength":"Message should not be greater than 255 characters.","maximum_options_error":"Maximum of {max} options selected. First remove a selected option to select another.","notes_maxlength":"Notes should not be greater than 65,000 characters.","address_maxlength":"Address should not be greater than 255 characters.","ref_number_maxlength":"Ref Number should not be greater than 255 characters.","prefix_maxlength":"Prefix should not be greater than 5 characters.","something_went_wrong":"something went wrong"},"pdf_estimate_label":"Estimate","pdf_estimate_number":"Estimate Number","pdf_estimate_date":"Estimate Date","pdf_estimate_expire_date":"Expiry date","pdf_invoice_label":"Invoice","pdf_invoice_number":"Invoice Number","pdf_invoice_date":"Invoice Date","pdf_invoice_due_date":"Due date","pdf_notes":"Notes","pdf_items_label":"Items","pdf_quantity_label":"Quantity","pdf_price_label":"Price","pdf_discount_label":"Discount","pdf_amount_label":"Amount","pdf_subtotal":"Subtotal","pdf_total":"Total","pdf_payment_receipt_label":"PAYMENT RECEIPT","pdf_payment_date":"Payment Date","pdf_payment_number":"Payment Number","pdf_payment_mode":"Payment Mode","pdf_payment_amount_received_label":"Amount Received","pdf_expense_report_label":"EXPENSES REPORT","pdf_total_expenses_label":"TOTAL EXPENSE","pdf_profit_loss_label":"PROFIT & LOSS REPORT","pdf_income_label":"INCOME","pdf_net_profit_label":"NET PROFIT","pdf_customer_sales_report":"Sales Report: By Customer","pdf_total_sales_label":"TOTAL SALES","pdf_item_sales_label":"Sales Report: By Item","pdf_tax_report_label":"TAX REPORT","pdf_total_tax_label":"TOTAL TAX","pdf_tax_types_label":"Tax Types","pdf_expenses_label":"Expenses","pdf_bill_to":"Bill to,","pdf_ship_to":"Ship to,","pdf_received_from":"Received from:"}'),re=JSON.parse('{"navigation":{"dashboard":"Tableau de bord","customers":"Clients","items":"Articles","invoices":"Factures","expenses":"Dépenses","estimates":"Devis","payments":"Paiements","reports":"Rapports","settings":"Paramètres","logout":"Se déconnecter","users":"Utilisateurs"},"general":{"add_company":"Ajouter une entreprise","view_pdf":"Voir PDF","copy_pdf_url":"Copier l\'URL du PDF","download_pdf":"Télécharger le PDF","save":"Sauvegarder","create":"Créer","cancel":"Annuler","update":"Mise à jour","deselect":"Retirer","download":"Télécharger","from_date":"A partir de la date","to_date":"À ce jour","from":"De","to":"À","sort_by":"Trier par","ascending":"Ascendant","descending":"Descendant","subject":"matière","body":"Corps du message","message":"Message","send":"Envoyer","go_back":"Retourner","back_to_login":"Retour à l\'écran de connexion ?","home":"Accueil","filter":"Filtre","delete":"Effacer","edit":"Modifier","view":"Voir","add_new_item":"Ajoute un nouvel objet","clear_all":"Tout effacer","showing":"Montant","of":"de","actions":"Actions","subtotal":"SOUS-TOTAL","discount":"REMISE","fixed":"Fixée","percentage":"Pourcentage","tax":"IMPÔT","total_amount":"MONTANT TOTAL","bill_to":"facturer","ship_to":"Envoyez à","due":"Dû","draft":"Brouillon","sent":"Envoyée","all":"Tout","select_all":"Tout sélectionner","choose_file":"Cliquez ici pour choisir un fichier","choose_template":"Choisissez un modèle","choose":"Choisir","remove":"Retirer","powered_by":"Propulsé par","bytefury":"Bytefury","select_a_status":"Sélectionnez un statut","select_a_tax":"Sélectionnez une taxe","search":"Rechercher","are_you_sure":"Êtes-vous sûr ?","list_is_empty":"La liste est vide.","no_tax_found":"Aucune taxe trouvée !","four_zero_four":"404","you_got_lost":"Oups! Vous vous êtes perdus!","go_home":"Retour à l\'accueil","test_mail_conf":"Tester la configuration","send_mail_successfully":"Mail envoyé avec succès","setting_updated":"Paramètres mis à jour avec succès","select_state":"Sélectionnez l\'état","select_country":"Choisissez le pays","select_city":"Sélectionnez une ville","street_1":"Rue 1","street_2":"Rue # 2","action_failed":"Action : échoué","retry":"Réessayez","choose_note":"Choisissez une note","no_note_found":"Aucune note trouvée","insert_note":"Insérer une note"},"dashboard":{"select_year":"Sélectionnez l\'année","cards":{"due_amount":"Montant dû","customers":"Clients","invoices":"Factures","estimates":"Devis"},"chart_info":{"total_sales":"Ventes","total_receipts":"Reçus","total_expense":"Dépenses","net_income":"Revenu net","year":"Sélectionnez l\'année"},"weekly_invoices":{"title":"Factures hebdomadaires"},"monthly_chart":{"title":"Recettes et dépenses"},"recent_invoices_card":{"title":"Factures dûes","due_on":"Due le","customer":"Client","amount_due":"Montant dû","actions":"Actions","view_all":"Voir tout"},"recent_estimate_card":{"title":"Devis récents","date":"Date","customer":"Client","amount_due":"Montant dû","actions":"Actions","view_all":"Voir tout"}},"tax_types":{"name":"Nom","description":"Description","percent":"Pourcent","compound_tax":"Taxe composée"},"global_search":{"search":"Rechercher...","customers":"Les clients","users":"Utilisateurs","no_results_found":"Aucun résultat"},"customers":{"title":"Clients","add_customer":"Ajouter un client","contacts_list":"Liste de clients","name":"Nom","mail":"Email | Emails","statement":"Statement","display_name":"Statut et Nom de la société","primary_contact_name":"Nom du contact principal","contact_name":"Nom du contact","amount_due":"Montant dû","email":"Email","address":"Adresse","phone":"Téléphone","website":"Site Internet","overview":"Aperçu","enable_portal":"Activer le portail","country":"Pays","state":"État","city":"Ville","zip_code":"Code postal","added_on":"Ajouté le","action":"action","password":"Mot de passe","street_number":"Numéro de rue","primary_currency":"Devise principale","description":"Description","add_new_customer":"Ajouter un nouveau client","save_customer":"Enregistrer le client","update_customer":"Mettre à jour le client","customer":"Client | Clients","new_customer":"Nouveau client","edit_customer":"Modifier le client","basic_info":"Informations de base","billing_address":"Adresse de facturation","shipping_address":"Adresse de livraison","copy_billing_address":"Copier depuis l\'adresse de facturation","no_customers":"Vous navez pas encore de clients !","no_customers_found":"Aucun client !","list_of_customers":"Cette section contiendra la liste des clients.","primary_display_name":"Nom d\'affichage principal","select_currency":"Sélectionnez la devise","select_a_customer":"Sélectionnez un client","type_or_click":"Tapez ou cliquez pour sélectionner","new_transaction":"Nouvelle transaction","no_matching_customers":"Il n\'y a aucun client correspondant !","phone_number":"Numéro de téléphone","create_date":"Date de création","confirm_delete":"Vous ne pourrez pas récupérer ce client et les devis, factures et paiements associés. | Vous ne serez pas en mesure de récupérer ces clients et les devis, factures et paiements associés.","created_message":"Client créé avec succès","updated_message":"Client mis à jour avec succès","deleted_message":"Client supprimé avec succès | Les clients supprimés avec succès"},"items":{"title":"Articles","items_list":"Liste d\'articles","name":"Nom","unit":"Unité","description":"Description","added_on":"Ajouté le","price":"Prix","date_of_creation":"Date de création","action":"action","add_item":"Ajouter un article","save_item":"Enregistrer l\'article","update_item":"Mettre à jour l\'article","item":"Article | Articles","add_new_item":"Ajoute un nouvel objet","new_item":"Nouvel article","edit_item":"Modifier larticle","no_items":"Aucun article !","list_of_items":"Cette section contiendra la liste des éléments.","select_a_unit":"Sélectionnez l\'unité","taxes":"Taxes","item_attached_message":"Impossible de supprimer un article déjà utilisé","confirm_delete":"Vous ne pourrez pas récupérer cet article | Vous ne pourrez pas récupérer ces objets","created_message":"Article créé avec succès","updated_message":"Article mis à jour avec succès","deleted_message":"Article supprimé avec succès | Articles supprimés avec succès"},"estimates":{"title":"Devis","estimate":"Devis | Devis","estimates_list":"Liste des devis","days":"{jours} jours","months":"{mois} mois","years":"{années} Année","all":"Tout","paid":"Payé","unpaid":"Non payé","customer":"Client","ref_no":"Réf.","number":"N°","amount_due":"MONTANT DÛ","partially_paid":"Partiellement payé","total":"Total","discount":"Remise","sub_total":"Sous-total","estimate_number":"N°","ref_number":"Numéro de référence","contact":"Contact","add_item":"Ajouter un article","date":"Date","due_date":"Date d\'échéance","expiry_date":"Date d\'expiration","status":"Statut","add_tax":"Ajouter une taxe","amount":"Montant","action":"action","notes":"Remarques","tax":"Taxe","estimate_template":"Modèle de devis","convert_to_invoice":"Convertir en facture","mark_as_sent":"Marquer comme envoyé","send_estimate":"Envoyer le devis","resend_estimate":"Renvoyer le devis","record_payment":"Enregistrer un paiement","add_estimate":"Ajouter un devis","save_estimate":"Sauvegarder le devis","confirm_conversion":"Vous souhaitez convertir ce devis en facture?","conversion_message":"Conversion réussie","confirm_send_estimate":"Ce devis sera envoyée par courrier électronique au client.","confirm_mark_as_sent":"Ce devis sera marqué comme envoyé","confirm_mark_as_accepted":"Ce devis sera marqué comme accepté","confirm_mark_as_rejected":"Ce devis sera marqué comme rejeté","no_matching_estimates":"Aucune estimation correspondante !","mark_as_sent_successfully":"Devis marquée comme envoyée avec succès","send_estimate_successfully":"Devis envoyé avec succès","errors":{"required":"Champ requis"},"accepted":"Accepté","sent":"Envoyé","draft":"Brouillon","declined":"Refusé","new_estimate":"Nouveau devis","add_new_estimate":"Ajouter un devis","update_Estimate":"Mise à jour du devis","edit_estimate":"Modifier le devis","items":"articles","Estimate":"Devis | Devis","add_new_tax":"Ajouter une taxe","no_estimates":"Aucune estimation pour le moment !","list_of_estimates":"Cette section contiendra la liste des devis.","mark_as_rejected":"Marquer comme rejeté","mark_as_accepted":"Marquer comme accepté","marked_as_accepted_message":"Devis marqué comme accepté","marked_as_rejected_message":"Devis marqué comme rejeté","confirm_delete":"Vous ne pourrez pas récupérer ce devis | Vous ne pourrez pas récupérer ces devis","created_message":"Devis créé avec succès","updated_message":"Devis mise à jour avec succès","deleted_message":"Devis supprimé | Devis supprimés","user_email_does_not_exist":"L\'email de l\'utilisateur n\'existe pas","something_went_wrong":"quelque chose a mal tourné","item":{"title":"Titre de l\'article","description":"Description","quantity":"Quantité","price":"Prix","discount":"Remise","total":"Total","total_discount":"Remise totale","sub_total":"Sous-total","tax":"Taxe","amount":"Montant","select_an_item":"Tapez ou cliquez pour sélectionner un article","type_item_description":"Taper la description de l\'article (facultatif)"}},"invoices":{"title":"Factures","invoices_list":"Liste des factures","days":"{jours} jours","months":"{mois} mois","years":"{years} années","all":"Toutes","paid":"Payé","unpaid":"Non payé","customer":"CLIENT","paid_status":"STATUT DU PAIEMENT","ref_no":"Réf.","number":"N°","amount_due":"MONTANT DÛ","partially_paid":"Partiellement payé","total":"Total","discount":"Remise","sub_total":"Sous-total","invoice":"Facture | Factures","invoice_number":"Numéro de facture","ref_number":"Numéro de référence","contact":"Contact","add_item":"Ajouter un article","date":"Date","due_date":"Date d\'échéance","status":"Statut","add_tax":"Ajouter une taxe","amount":"Montant","action":"action","notes":"Remarques","view":"Voir","send_invoice":"Envoyer une facture","resend_invoice":"Renvoyer la facture","invoice_template":"Modèle de facture","template":"Modèle","mark_as_sent":"Marquer comme envoyée","confirm_send_invoice":"Cette facture sera envoyée par email au client","invoice_mark_as_sent":"Cette facture sera marquée comme envoyé","confirm_send":"Cette facture sera envoyée par courrier électronique au client.","invoice_date":"Date de facturation","record_payment":"Enregistrer un paiement","add_new_invoice":"Ajouter une facture","update_expense":"Enregistrer la dépense","edit_invoice":"Modifier la facture","new_invoice":"Nouvelle facture","save_invoice":"Enregistrer la facture","update_invoice":"Mettre à jour la facture","add_new_tax":"Ajouter une taxe","no_invoices":"Aucune facture pour le moment !","list_of_invoices":"Cette section contiendra la liste des factures.","select_invoice":"Sélectionnez facture","no_matching_invoices":"Aucune facture correspondante !","mark_as_sent_successfully":"Facture marquée comme envoyée avec succès","send_invoice_successfully":"Facture envoyée avec succès","cloned_successfully":"Facture clonée avec succès","clone_invoice":"Dupliquer la facture","confirm_clone":"Cette facture sera dupliquée dans une nouvelle facture","item":{"title":"Titre de l\'article","description":"Description","quantity":"Quantité","price":"Prix","discount":"Remise","total":"Total","total_discount":"Remise totale","sub_total":"Sous-total","tax":"Taxe","amount":"Montant","select_an_item":"Tapez ou cliquez pour sélectionner un élément","type_item_description":"Tapez la description de l\'article (facultatif)"},"payment_attached_message":"Un paiement est déjà associé à l\'une des factures sélectionnées. Assurez-vous deffacer dabord les paiements correspondants afin de procéder à la suppression","confirm_delete":"Vous ne pourrez pas récupérer cette facture | Vous ne pourrez pas récupérer ces factures","created_message":"Facture créée avec succès","updated_message":"Facture mise à jour avec succès","deleted_message":"La facture a été supprimée | Les factures ont été supprimées","marked_as_sent_message":"Facture supprimée avec succès | Factures supprimées avec succès","user_email_does_not_exist":"L\'email de l\'utilisateur n\'existe pas","something_went_wrong":"quelque chose a mal tourné","invalid_due_amount_message":"Le paiement entré est supérieur au montant total dû pour cette facture. Veuillez vérifier et réessayer"},"credit_notes":{"title":"Notes de crédit","credit_notes_list":"Liste des notes de crédit","credit_notes":"Notes de crédit","contact":"Contact","date":"Date","amount":"Montant","action":"action","credit_number":"Numéro de crédit","notes":"Remarques","confirm_delete":"Voulez-vous supprimer cet avoir?","item":{"title":"Titre de l\'article","description":"La description","quantity":"Quantité","price":"Prix","discount":"Remise","total":"Total","total_discount":"Remise totale","sub_total":"Sous-total","tax":"Taxe"}},"payments":{"title":"Paiements","payments_list":"Liste de paiements","record_payment":"Enregistrer un paiement","customer":"Client","date":"Date","amount":"Montant","action":"action","payment_number":"N°","payment_mode":"Mode de paiement","invoice":"Facture","note":"Remarque","add_payment":"Ajouter un paiement","new_payment":"Nouveau paiement","edit_payment":"Modifier le paiement","view_payment":"Voir le paiement","add_new_payment":"Ajouter un paiement","send_payment_receipt":"Envoyer le reçu","send_payment":"Envoyer le paiement","save_payment":"Enregistrer le paiement","update_payment":"Mettre à jour le paiement","payment":"Paiement | Paiements","no_payments":"Aucun paiement pour le moment !","no_matching_payments":"Il n\'y a aucun paiement correspondant !","list_of_payments":"Cette section contiendra la liste des paiements","select_payment_mode":"Sélectionnez le moyen de paiement","confirm_mark_as_sent":"Ce devis sera marqué comme envoyé","confirm_send_payment":"Ce paiement sera envoyé par email au client","send_payment_successfully":"Paiement envoyé avec succès","user_email_does_not_exist":"L\'email de l\'utilisateur n\'existe pas","something_went_wrong":"quelque chose a mal tourné","confirm_delete":"Vous ne pourrez pas récupérer ce paiement | Vous ne pourrez pas récupérer ces paiements","created_message":"Paiement créé avec succès","updated_message":"Paiement mis à jour avec succès","deleted_message":"Paiement supprimé avec succès | Paiements supprimés avec succès","invalid_amount_message":"Le montant du paiement est invalide"},"expenses":{"title":"Dépenses","expenses_list":"Liste des dépenses","select_a_customer":"Sélectionnez un client","expense_title":"Titre","customer":"Client","contact":"Contact","category":"Catégorie","from_date":"A partir de la date","to_date":"À ce jour","expense_date":"Date","description":"Description","receipt":"Reçu","amount":"Montant","action":"action","note":"Remarque","category_id":"Identifiant de catégorie","date":"Date","add_expense":"Ajouter une dépense","add_new_expense":"Ajouter une nouvelle dépense","save_expense":"Enregistrer la dépense","update_expense":"Mettre à jour la dépense","download_receipt":"Télécharger le reçu","edit_expense":"Modifier la dépense","new_expense":"Nouvelle dépense","expense":"Dépense | Dépenses","no_expenses":"Pas de dépenses pour le moment !","list_of_expenses":"Cette section contiendra la liste des dépenses.","confirm_delete":"Vous ne pourrez pas récupérer cette dépense | Vous ne pourrez pas récupérer ces dépenses","created_message":"Dépense créée avec succès","updated_message":"Dépense mise à jour avec succès","deleted_message":"Dépense supprimée avec succès | Dépenses supprimées avec succès","categories":{"categories_list":"Liste des catégories","title":"Titre","name":"Nom","description":"Description","amount":"Montant","actions":"Actions","add_category":"Ajouter une catégorie","new_category":"Nouvelle catégorie","category":"Catégorie | Catégories","select_a_category":"Choisissez une catégorie"}},"login":{"email":"Email","password":"Mot de passe","forgot_password":"Mot de passe oublié ?","or_signIn_with":"ou connectez-vous avec","login":"S\'identifier","register":"S\'inscrire","reset_password":"Réinitialiser le mot de passe","password_reset_successfully":"Réinitialisation du mot de passe réussie","enter_email":"Entrer l\'email","enter_password":"Entrer le mot de passe","retype_password":"Retaper le mot de passe","login_placeholder":"email@example.com"},"users":{"title":"Utilisateurs","users_list":"Liste des utilisateurs","name":"Nom","description":"Description","added_on":"Ajouté le","date_of_creation":"Date de création","action":"action","add_user":"Ajouter un utilisateur","save_user":"Enregistrer l\'utilisateur","update_user":"Mettre à jour l\'utilisateur","user":"Utilisateur | Utilisateurs","add_new_user":"Ajouter un nouvel utilisateur","new_user":"Nouvel utilisateur","edit_user":"Modifier l\'utilisateur","no_users":"Pas encore d\'utilisateurs !","list_of_users":"Cette section contiendra la liste des utilisateurs.","email":"Email","phone":"Téléphone","password":"Mot de passe","user_attached_message":"Impossible de supprimer un élément déjà utilisé","confirm_delete":"Vous ne pourrez pas récupérer cet utilisateur | Vous ne pourrez pas récupérer ces utilisateurs","created_message":"L\'utilisateur a été créé avec succès","updated_message":"L\'utilisateur a bien été mis à jour","deleted_message":"Utilisateur supprimé avec succès | Utilisateur a bien été supprimé"},"reports":{"title":"Rapport","from_date":"À partir du","to_date":"Jusqu\'au","status":"Statut","paid":"Payé","unpaid":"Non payé","download_pdf":"Télécharger le PDF","view_pdf":"Voir le PDF","update_report":"Mettre à jour le rapport","report":"Rapport | Rapports","profit_loss":{"profit_loss":"Bénéfices & Pertes","to_date":"Au","from_date":"Du","date_range":"Sélectionner une plage de dates"},"sales":{"sales":"Ventes","date_range":"Sélectionner une plage de dates","to_date":"À ce jour","from_date":"A partir de la date","report_type":"Type de rapport"},"taxes":{"taxes":"Les taxes","to_date":"À ce jour","from_date":"À partir du","date_range":"Sélectionner une plage de dates"},"errors":{"required":"Champ requis"},"invoices":{"invoice":"Facture","invoice_date":"Date de facturation","due_date":"Date déchéance","amount":"Montant ","contact_name":"Nom du contact","status":"Statut"},"estimates":{"estimate":"Devis","estimate_date":"Date du devis","due_date":"Date d\'échéance","estimate_number":"N°","ref_number":"Numéro de référence","amount":"Montant","contact_name":"Nom du contact","status":"Statut"},"expenses":{"expenses":"Dépenses","category":"Catégorie","date":"Date","amount":"Montant","to_date":"Jusqu\'au","from_date":"À partir du","date_range":"Sélectionner une plage de dates"}},"settings":{"menu_title":{"account_settings":"Paramètres du compte","company_information":"Informations sur la société","customization":"Personnalisation","preferences":"Préférences","notifications":"Notifications","tax_types":"Types de taxe","expense_category":"Catégories de dépenses","update_app":"Mise à jour de l\'application","backup":"Sauvegarde","file_disk":"Espace de stockage","custom_fields":"Champs personnalisés","payment_modes":"Moyens de paiement","notes":"Remarques"},"title":"Paramètres","setting":"Paramètres | Paramètres","general":"Paramètres généraux","language":"Langue","primary_currency":"Devise principale","timezone":"Fuseau horaire","date_format":"Format de date","currencies":{"title":"Devises","currency":"Devise | Devises","currencies_list":"Liste des devises","select_currency":"Sélectionnez la devise","name":"Nom","code":"Code ","symbol":"Symbole","precision":"Précision","thousand_separator":"Séparateur de milliers","decimal_separator":"Séparateur décimal","position":"Position","position_of_symbol":"Position du symbole","right":"Droite","left":"Gauche","action":"action","add_currency":"Ajouter une devise"},"mail":{"host":"Adresse du serveur","port":"Port","driver":"Pilote de courrier","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domaine","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"Mot de passe","username":"Nom d\'utilisateur","mail_config":"Configuration des emails","from_name":"Nom de l\'expéditeur","from_mail":"Email de l\'expéditeur","encryption":"Chiffrement","mail_config_desc":"Vous pouvez modifier ci-dessous les paramètres d\'envoi des emails. Vous pourrez modifier à tout moment."},"pdf":{"title":"Paramètre PDF","footer_text":"Pied de page","pdf_layout":"Mise en page PDF"},"company_info":{"company_info":"Information de l\'entreprise","company_name":"Nom de l\'entreprise","company_logo":"Logo de l\'entreprise","section_description":"Informations sur votre entreprise qui figureront sur les factures, devis et autres documents créés par Crater.","phone":"Téléphone","country":"Pays","state":"État","city":"Ville","address":"Adresse","zip":"Code postal","save":"Sauvegarder","updated_message":"Informations sur la société mises à jour avec succès"},"custom_fields":{"title":"Champs personnalisés","section_description":"Personnalisez vos factures, devis et reçus de paiement avec vos propres champs. Assurez-vous d\'utiliser les champs ajoutés ci-dessous sur les formats d\'adresse sur la page des paramètres de personnalisation.","add_custom_field":"Ajouter un champ personnalisé","edit_custom_field":"Modifier un champ personnalisé","field_name":"Nom du champs","label":"Étiquette","type":"Type ","name":"Nom","required":"Obligatoire","placeholder":"Espace réservé","help_text":"Texte d\'aide","default_value":"Valeur par défaut","prefix":"Préfixe","starting_number":"Numéro de départ","model":"Modèle","help_text_description":"Saisissez du texte pour aider les utilisateurs à comprendre l\'objectif de ce champ personnalisé.","suffix":"Suffixe","yes":"Oui","no":"Non","order":"Ordre","custom_field_confirm_delete":"Vous ne pourrez pas récupérer ce champ personnalisé","already_in_use":"Le champ personnalisé est déjà utilisé","deleted_message":"Champ personnalisé supprimé avec succès","options":"les options","add_option":"Ajouter des options","add_another_option":"Ajouter une autre option","sort_in_alphabetical_order":"Trier par ordre alphabétique","add_options_in_bulk":"Ajouter des options en masse","use_predefined_options":"Utiliser des options prédéfinies","select_custom_date":"Sélectionnez une date personnalisée","select_relative_date":"Sélectionnez la date relative","ticked_by_default":"Coché par défaut","updated_message":"Champ personnalisé mis à jour avec succès","added_message":"Champ personnalisé ajouté avec succès"},"customization":{"customization":"Personnalisation","save":"Sauvegarder","addresses":{"title":"Adresses","section_description":"Vous pouvez définir le format de l\'adresse de facturation et de livraison du client (affiché en PDF uniquement). ","customer_billing_address":"Adresse de paiement","customer_shipping_address":"Adresse de livraison","company_address":"Adresse de l\'entreprise","insert_fields":"Ajouter des champs","contact":"Contact","address":"Adresse","display_name":"Nom","primary_contact_name":"Nom du contact principal","email":"Email","website":"Site Internet","name":"Nom","country":"Pays","state":"Etat","city":"Ville","company_name":"Nom de l\'entreprise","address_street_1":"Rue","address_street_2":"Complément","phone":"Téléphone","zip_code":"Code postal","address_setting_updated":"Adresse mise à jour avec succès"},"updated_message":"Informations de l\'entreprise mises à jour","invoices":{"title":"Factures","notes":"Remarques","invoice_prefix":"Préfixe","default_invoice_email_body":"Corps de l\'e-mail de la facture par défaut","invoice_settings":"Paramètres","autogenerate_invoice_number":"Générer automatiquement le numéro de facture","invoice_setting_description":"Désactivez cette option si vous ne souhaitez pas générer automatiquement les numéros de facture à chaque fois que vous en créez une nouvelle.","enter_invoice_prefix":"Ajouter le préfixe de facture","terms_and_conditions":"Termes et conditions","company_address_format":"Format d\'adresse de l\'entreprise","shipping_address_format":"Format d\'adresse d\'expédition","billing_address_format":"Format d\'adresse de facturation","invoice_setting_updated":"Paramètres de facturation mis à jour"},"estimates":{"title":"Devis","estimate_prefix":"Préfixe des devis","default_estimate_email_body":"Corps de l\'e-mail estimé par défaut","estimate_settings":"Paramètre","autogenerate_estimate_number":"Générer automatiquement le numéro de devis","estimate_setting_description":"Désactivez cette option si vous ne souhaitez pas générer automatiquement les numéros de devis à chaque fois que vous en créez un nouveau.","enter_estimate_prefix":"Entrez le préfixe d\'estimation","estimate_setting_updated":"Paramètres de devis mis à jour","company_address_format":"Format d\'adresse de l\'entreprise","billing_address_format":"Format d\'adresse de facturation","shipping_address_format":"Format d\'adresse d\'expédition"},"payments":{"title":"Paiements","description":"Modes de transaction pour les paiements","payment_prefix":"Préfixe","default_payment_email_body":"Corps de l\'e-mail de paiement par défaut","payment_settings":"Paramètres","autogenerate_payment_number":"Générer automatiquement le numéro de paiement","payment_setting_description":"Désactivez cette option si vous ne souhaitez pas générer automatiquement les numéros de paiement à chaque fois que vous en créez un nouveau.","enter_payment_prefix":"Entrez le préfixe de paiement","payment_setting_updated":"Les paramètres de paiement ont bien été mis à jour","payment_modes":"Moyens de paiement","add_payment_mode":"Ajouter un mode de paiement","edit_payment_mode":"Modifier le moyen de paiement","mode_name":"Nom","payment_mode_added":"Moyen de paiement ajouté","payment_mode_updated":"Moyen de paiement mis à jour","payment_mode_confirm_delete":"Êtes-vous sur de supprimer ce moyen de paiement","already_in_use":"Ce moyen de paiement existe déjà","deleted_message":"Moyen de paiement supprimé avec succès","company_address_format":"Format d\'adresse de l\'entreprise","from_customer_address_format":"À partir du format d\'adresse client"},"items":{"title":"Articles","units":"Unités","add_item_unit":"Ajouter une unité","edit_item_unit":"Modifier l\'unité d\'élément","unit_name":"Nom","item_unit_added":"Unité ajoutée","item_unit_updated":"Unité mis à jour","item_unit_confirm_delete":"Êtes-vous sur de supprimer cette unité ?","already_in_use":"Cette unité existe déjà","deleted_message":"Unité supprimée avec succès"},"notes":{"title":"Remarques","description":"Gagnez du temps en créant des notes et en les réutilisant sur vos factures, devis et paiements.","notes":"Remarques","type":"Type ","add_note":"Ajouter une note","add_new_note":"Ajouter une nouvelle note","name":"Nom","edit_note":"Modifier la note","note_added":"Note ajoutée","note_updated":"Note mise à jour","note_confirm_delete":"Vous ne pourrez pas récupérer cette note","already_in_use":"La note est déjà utilisée","deleted_message":"Note supprimée avec succès"}},"account_settings":{"profile_picture":"Image de profil","name":"Nom","email":"Email","password":"Mot de passe","confirm_password":"Confirmez le mot de passe","account_settings":"Paramètres du compte","save":"Sauvegarder","section_description":"Vous pouvez mettre à jour votre nom, votre email et votre mot de passe en utilisant le formulaire ci-dessous.","updated_message":"Paramètres du compte mis à jour avec succès"},"user_profile":{"name":"Nom","email":"Email","password":"Mot de passe","confirm_password":"Confirmez le mot de passe"},"notification":{"title":"Notification","email":"Envoyer des notifications à","description":"Quelles notifications par courrier électronique souhaitez-vous recevoir lorsque quelque chose change?","invoice_viewed":"Facture consultée","invoice_viewed_desc":"Lorsque le client visualise la facture envoyée via le tableau de bord de Neptune.","estimate_viewed":"Devis consulté","estimate_viewed_desc":"Lorsque le client visualise le devis envoyé via le tableau de bord de Neptune.","save":"Sauvegarder","email_save_message":"Email enregistré avec succès","please_enter_email":"Veuillez entrer un email"},"tax_types":{"title":"Types de taxe","add_tax":"Ajouter une taxe","edit_tax":"Modifier la taxe","description":"Vous pouvez ajouter ou supprimer des taxes à votre guise. Crater prend en charge les taxes sur les articles individuels ainsi que sur la facture.","add_new_tax":"Ajouter une nouvelle taxe","tax_settings":"Paramètres de taxe","tax_per_item":"Taxe par article","tax_name":"Nom de la taxe","compound_tax":"Taxe composée","percent":"Pourcentage","action":"action","tax_setting_description":"Activez cette option si vous souhaitez ajouter des taxes à des postes de facture individuels. Par défaut, les taxes sont ajoutées directement à la facture.","created_message":"Type de taxe créé avec succès","updated_message":"Type de taxe mis à jour avec succès","deleted_message":"Type de taxe supprimé avec succès","confirm_delete":"Vous ne pourrez pas récupérer ce type de taxe","already_in_use":"La taxe est déjà utilisée"},"expense_category":{"title":"Catégories de dépenses","action":"action","description":"Des catégories sont requises pour ajouter des entrées de dépenses. Vous pouvez ajouter ou supprimer ces catégories selon vos préférences.","add_new_category":"Ajouter une nouvelle catégorie","add_category":"Ajouter une catégorie","edit_category":"Modifier la catégorie","category_name":"Nom de catégorie","category_description":"Description","created_message":"Catégorie de dépenses créée avec succès","deleted_message":"La catégorie de dépenses a été supprimée avec succès","updated_message":"Catégorie de dépenses mise à jour avec succès","confirm_delete":"Vous ne pourrez pas récupérer cette catégorie de dépenses","already_in_use":"La catégorie est déjà utilisée"},"preferences":{"currency":"Devise","default_language":"Langue par défaut","time_zone":"Fuseau horaire","fiscal_year":"Exercice fiscal","date_format":"Format de date","discount_setting":"Réglage de remise","discount_per_item":"Remise par article","discount_setting_description":"Activez cette option si vous souhaitez ajouter une remise à des postes de facture individuels. Par défaut, les remises sont ajoutées directement à la facture.","save":"Sauvegarder","preference":"Préférence | Préférences","general_settings":"Préférences par défaut pour le système.","updated_message":"Préférences mises à jour avec succès","select_language":"Choisir la langue","select_time_zone":"Sélectionnez le fuseau horaire","select_date_format":"Sélectionnez le format de date","select_financial_year":"sélectionner lexercice"},"update_app":{"title":"Mise à jour de l\'application","description":"Vous pouvez facilement mettre à jour Crater en cliquant sur le bouton ci-dessous","check_update":"Vérifier les mises à jour","avail_update":"Nouvelle mise à jour disponible","next_version":"Version suivante","requirements":"Spécifications requises","update":"Mettre à jour maintenant","update_progress":"Mise à jour en cours...","progress_text":"Cela ne prendra que quelques minutes. Veuillez ne pas actualiser ou fermer la fenêtre avant la fin de la mise à jour","update_success":"App a été mis à jour ! Veuillez patienter pendant le rechargement automatique de la fenêtre de votre navigateur.","latest_message":"Pas de mise a jour disponible ! Vous êtes sur la dernière version.","current_version":"Version actuelle","download_zip_file":"Télécharger le fichier ZIP","unzipping_package":"Dézipper le package","copying_files":"Copie de fichiers en cours","running_migrations":"Migrations en cours","finishing_update":"Finalisation de la mise à jour","update_failed":"Échec de la mise à jour","update_failed_text":"Désolé ! Votre mise à jour a échoué à: {step} étape"},"backup":{"title":"Sauvegarde | Sauvegardes","description":"La sauvegarde est un fichier ZIP qui contient tous les fichiers des répertoires que vous spécifiez, ainsi qu\'un export de la base de données","new_backup":"Ajouter une nouvelle sauvegarde","create_backup":"Créer une sauvegarde","select_backup_type":"Sélectionnez le type de sauvegarde","backup_confirm_delete":"Vous ne pourrez pas récupérer cette sauvegarde","path":"chemin","new_disk":"Nouvel espace de stockage","created_at":"créé à","size":"taille","dropbox":"dropbox","local":"local","healthy":"en bonne santé","amount_of_backups":"nombre de sauvegardes","newest_backups":"dernières sauvegardes","used_storage":"Stockage utilisé","select_disk":"Sélectionnez l\'espace de stockage","action":"action","deleted_message":"Sauvegarde supprimée avec succès","created_message":"Sauvegarde créée avec succès","invalid_disk_credentials":"Informations d\'identification invalides de l\'espace de stockage"},"disk":{"title":"Espace de stockage | Espaces de stockage","description":"Par défaut, Crater utilisera votre disque local pour enregistrer les sauvegardes, l\'avatar et d\'autres fichiers image. Vous pouvez configurer plusieurs pilotes de disque comme DigitalOcean, S3 et Dropbox selon vos préférences.","created_at":"créé à","dropbox":"dropbox","name":"Nom","driver":"Pilote","disk_type":"Type ","disk_name":"Nom","new_disk":"Ajouter un nouvel espace de stockage","filesystem_driver":"Pilote du système de fichiers","local_driver":"pilote local","local_root":"répertoire local","public_driver":"Pilote public","public_root":"Répertoire public","public_url":"URL publique","public_visibility":"Visibilité publique","media_driver":"Pilote multimédia","media_root":"Répertoire média","aws_driver":"Pilote AWS","aws_key":"AWS Key","aws_secret":"AWS Secret","aws_region":"Région AWS","aws_bucket":"Bucket","aws_root":"Répertoire","do_spaces_type":"Type","do_spaces_key":"Key","do_spaces_secret":"Secret","do_spaces_region":"Région","do_spaces_bucket":"Bucket","do_spaces_endpoint":"Endpoint","do_spaces_root":"Répertoire","dropbox_type":"Type","dropbox_token":"Token","dropbox_key":"Key","dropbox_secret":"Secret","dropbox_app":"Application","dropbox_root":"Répertoire","default_driver":"Fournisseur par défaut","is_default":"Par défaut","set_default_disk":"Définir l\'espace par défaut","success_set_default_disk":"L\'espace par défaut défini avec succès","save_pdf_to_disk":"Enregistrer les PDF sur le disque","disk_setting_description":"Activez cette option si vous souhaitez enregistrer automatiquement une copie de chaque facture, devis et reçu de paiement PDF sur votre disque par défaut. L\'activation de cette option réduira le temps de chargement lors de l\'affichage des PDF.","select_disk":"Sélectionnez le stockage","disk_settings":"Paramètres de stockage","confirm_delete":"Vos fichiers et dossiers existants sur le disque spécifié ne seront pas affectés, mais la configuration de votre disque sera supprimée de Crater","action":"action","edit_file_disk":"Modifier le disque de fichiers","success_create":"Disque ajouté avec succès","success_update":"Disque mis à jour avec succès","error":"L\'ajout de disque a échoué","deleted_message":"Stockage supprimé","disk_variables_save_successfully":"Stockage configuré avec succès","disk_variables_save_error":"La configuration du stockage a échoué.","invalid_disk_credentials":"Informations d\'identification non valides du stockage sélectionné"}},"wizard":{"account_info":"Information du compte","account_info_desc":"Les détails ci-dessous seront utilisés pour créer le compte administrateur principal. Aussi, vous pouvez modifier les détails à tout moment après la connexion.","name":"Nom","email":"Email","password":"Mot de passe","confirm_password":"Confirmez le mot de passe","save_cont":"Enregistrer et poursuivre","company_info":"Informations sur la société","company_info_desc":"Ces informations seront affichées sur les factures. Notez que vous pouvez éditer ceci plus tard sur la page des paramètres.","company_name":"Nom de l\'entreprise","company_logo":"Logo de l\'entreprise","logo_preview":"Aperçu du logo","preferences":"Préférences","preferences_desc":"Préférences par défaut du système.","country":"Pays","state":"État","city":"Ville","address":"Adresse","street":"Rue 1 | Rue 2","phone":"Téléphone","zip_code":"Code postal","go_back":"Revenir","currency":"Devise","language":"Langue","time_zone":"Fuseau horaire","fiscal_year":"Exercice fiscal","date_format":"Format de date","from_address":"De l\'adresse","username":"Nom d\'utilisateur","next":"Suivant","continue":"Poursuivre","skip":"Ignorer","database":{"database":"URL du site et base de données","connection":"Connexion à la base de données","host":"Serveur de la base de données","port":"Port de la base de données","password":"Mot de passe de la base de données","app_url":"Application URL","app_domain":"Nom de domaine","username":"Nom d\'utilisateur de la base de données","db_name":"Nom de la base de données","db_path":"Emplacement de la base de données","desc":"Créez une base de données sur votre serveur et définissez les informations d\'identification à l\'aide du formulaire ci-dessous."},"permissions":{"permissions":"Permissions","permission_confirm_title":"Êtes-vous certain de vouloir continuer ?","permission_confirm_desc":"La vérification des permissions du dossier a échoué","permission_desc":"Vous trouverez ci-dessous la liste des permissions de dossier requises pour le fonctionnement de l\'application. Si la vérification des permissions échoue, veillez mettre à jour vos permissions de dossier."},"mail":{"host":"Serveur email","port":"Port","driver":"Fournisseur d\'email","secret":"Secret","mailgun_secret":"Secret","mailgun_domain":"Nom de domaine","mailgun_endpoint":"Endpoint","ses_secret":"Secret","ses_key":"Key","password":"Mot de passe","username":"Nom d\'utilisateur","mail_config":"Configuration des emails","from_name":"Nom de messagerie","from_mail":"Email de l\'expéditeur","encryption":"Chiffrement des emails","mail_config_desc":"Les détails ci-dessous seront utilisés pour mettre à jour le fournisseur de messagerie. Vous pourrez modifier ceux-ci à tout moment après la connexion."},"req":{"system_req":"Configuration requise","php_req_version":"Php (version {version} nécessaire)","check_req":"Vérifier les prérequis","system_req_desc":"Crater a quelques prérequis. Assurez-vous que votre serveur dispose de la version Php requise et de toutes les extensions mentionnées ci-dessous."},"errors":{"migrate_failed":"Échec de la migration","database_variables_save_error":"Impossible de créer le fichier de configuration. Veuillez vérifier les permissions du répertoire","mail_variables_save_error":"La configuration du courrier électronique a échoué.","connection_failed":"La connexion à la base de données a échoué","database_should_be_empty":"La base de données devrait être vide"},"success":{"mail_variables_save_successfully":"Email configuré avec succès","database_variables_save_successfully":"Base de données configurée avec succès."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Facturation très simple","for_freelancer":"pour les indépendants &","small_businesses":"les petites entreprises ","crater_help":"Crater vous aide à suivre vos dépenses, à enregistrer vos paiements et à générer de belles","invoices_and_estimates":"devis et factures, avec la possibilité de choisir entre plusieurs modèles."},"validation":{"invalid_phone":"Numéro de téléphone invalide","invalid_url":"URL invalide (ex: http://www.crater.com)","invalid_domain_url":"URL invalide (ex: crater.com)","required":"Champ requis","email_incorrect":"Adresse Email incorrecte.","email_already_taken":"Un compte est déjà associé à cette adresse e-mail.","email_does_not_exist":"Cet utilisateur n\'existe pas","item_unit_already_taken":"Cette unité est déjà été utilisée","payment_mode_already_taken":"Ce moyen de paiement est déjà utilisé","send_reset_link":"Envoyer le lien de réinitialisation","not_yet":"Pas encore reçu ? Réessayer","password_min_length":"Le mot de passe doit contenir {nombre} caractères","name_min_length":"Le nom doit avoir au moins {count} lettres.","enter_valid_tax_rate":"Entrez un taux de taxe valide","numbers_only":"Chiffres uniquement.","characters_only":"Caractères seulement.","password_incorrect":"Les mots de passe doivent être identiques","password_length":"Le mot de passe doit comporter au moins {count} caractères.","qty_must_greater_than_zero":"La quantité doit être supérieure à zéro.","price_greater_than_zero":"Le prix doit être supérieur à zéro.","payment_greater_than_zero":"Le paiement doit être supérieur à zéro.","payment_greater_than_due_amount":"Le paiement saisi est plus élevé que le montant dû de cette facture.","quantity_maxlength":"La quantité ne doit pas dépasser 20 chiffres.","price_maxlength":"Le prix ne doit pas dépasser 20 chiffres.","price_minvalue":"Le prix doit être supérieur à 0.","amount_maxlength":"Le montant ne doit pas dépasser 20 chiffres.","amount_minvalue":"Le montant doit être supérieur à 0.","description_maxlength":"La description ne doit pas dépasser 255 caractères.","subject_maxlength":"L\'objet ne doit pas dépasser 100 caractères.","message_maxlength":"Le message ne doit pas dépasser 255 caractères.","maximum_options_error":"Maximum de {max} options sélectionnées. Commencez par supprimer une option sélectionnée pour en sélectionner une autre.","notes_maxlength":"Les notes ne doivent pas dépasser 255 caractères.","address_maxlength":"L\'adresse ne doit pas dépasser 255 caractères.","ref_number_maxlength":"Le numéro de référence ne doit pas dépasser 255 caractères.","prefix_maxlength":"Le préfixe ne doit pas dépasser 5 caractères.","something_went_wrong":"quelque chose a mal tourné"},"pdf_estimate_label":"Devis","pdf_estimate_number":"N°","pdf_estimate_date":"Date du devis","pdf_estimate_expire_date":"Date d\'expiration","pdf_invoice_label":"Facture","pdf_invoice_number":"Numéro de facture","pdf_invoice_date":"Date","pdf_invoice_due_date":"Date déchéance","pdf_notes":"Remarques","pdf_items_label":"Articles","pdf_quantity_label":"Quantité","pdf_price_label":"Prix","pdf_discount_label":"Remise","pdf_amount_label":"Montant","pdf_subtotal":"Sous-total","pdf_total":"Total","pdf_payment_receipt_label":"Reçu de paiement","pdf_payment_date":"Date de paiement","pdf_payment_number":"N°","pdf_payment_mode":"Moyen de paiement","pdf_payment_amount_received_label":"Montant reçu","pdf_expense_report_label":"RAPPORT DE DÉPENSES","pdf_total_expenses_label":"TOTAL DES DÉPENSES","pdf_profit_loss_label":"RAPPORT DES BÉNÉFICES ET DES PERTES","pdf_income_label":"REVENU","pdf_net_profit_label":"BÉNÉFICE NET","pdf_customer_sales_report":"Rapport de ventes : par client","pdf_total_sales_label":"TOTAL DES VENTES","pdf_item_sales_label":"Rapport des ventes : par article","pdf_tax_report_label":"RAPPORT DES TAXES","pdf_total_tax_label":"TOTAL DES TAXES","pdf_tax_types_label":"Types de taxe","pdf_expenses_label":"Dépenses","pdf_bill_to":"facturer,","pdf_ship_to":"Envoyer à,","pdf_received_from":"Reçu de :"}'),ae=JSON.parse('{"navigation":{"dashboard":"Tablero","customers":"Clientes","items":"Artículos","invoices":"Facturas","expenses":"Gastos","estimates":"Presupuestos","payments":"Pagos","reports":"Informes","settings":"Configuraciones","logout":"Cerrar sesión","users":"Usuarios"},"general":{"add_company":"Añadir empresa","view_pdf":"Ver PDF","copy_pdf_url":"Copiar dirección URL del archivo PDF","download_pdf":"Descargar PDF","save":"Guardar","create":"Crear","cancel":"Cancelar","update":"Actualizar","deselect":"Deseleccionar","download":"Descargar","from_date":"Desde la fecha","to_date":"Hasta la fecha","from":"De","to":"A","sort_by":"Ordenar por","ascending":"Ascendente","descending":"Descendente","subject":"Sujeta","body":"Cuerpo","message":"Mensaje","send":"Enviar","go_back":"Volver","back_to_login":"¿Volver al inicio de sesión?","home":"Inicio","filter":"Filtrar","delete":"Eliminar","edit":"Editar","view":"Ver","add_new_item":"Agregar ítem nuevo","clear_all":"Limpiar todo","showing":"Mostrando","of":"de","actions":"Acciones","subtotal":"SUBTOTAL","discount":"DESCUENTO","fixed":"Fijo","percentage":"Porcentaje","tax":"IMPUESTO","total_amount":"CANTIDAD TOTAL","bill_to":"Cobrar a","ship_to":"Enviar a","due":"Debido","draft":"Borrador","sent":"Enviado","all":"Todas","select_all":"Seleccionar todo","choose_file":"Haga clic aquí para elegir un archivo","choose_template":"Elige una plantilla","choose":"Escoger","remove":"Eliminar","powered_by":"Impulsado por","bytefury":"Bytefury","select_a_status":"Selecciona un estado","select_a_tax":"Selecciona un impuesto","search":"Buscar","are_you_sure":"¿Estás seguro?","list_is_empty":"La lista esta vacía.","no_tax_found":"¡No se encontraron impuestos!","four_zero_four":"404","you_got_lost":"Whoops! ¡Te perdiste!","go_home":"Volver al Inicio","test_mail_conf":"Probar configuración de correo","send_mail_successfully":"El correo enviado con éxito","setting_updated":"Configuración actualizada con éxito","select_state":"Seleccionar estado","select_country":"Seleccionar país","select_city":"Seleccionar ciudad","street_1":"Calle 1","street_2":"Calle 2","action_failed":"Accion Fallida","retry":"Procesar de nuevo","choose_note":"Elegir nota","no_note_found":"No se encontró ninguna nota","insert_note":"Insertar una nota"},"dashboard":{"select_year":"Seleccionar año","cards":{"due_amount":"Cantidad Debida","customers":"Clientes","invoices":"Facturas","estimates":"Presupuestos"},"chart_info":{"total_sales":"Ventas","total_receipts":"Ingresos","total_expense":"Gastos","net_income":"Ingresos netos","year":"Seleccione año"},"weekly_invoices":{"title":"Facturas semanales"},"monthly_chart":{"title":"Gastos de venta"},"recent_invoices_card":{"title":"Facturas adeudadas","due_on":"Debido a","customer":"Cliente","amount_due":"Cantidad Debida","actions":"Acciones","view_all":"Ver todo"},"recent_estimate_card":{"title":"Presupuestos recientes","date":"Fecha","customer":"Cliente","amount_due":"Cantidad Debida","actions":"Acciones","view_all":"Ver todo"}},"tax_types":{"name":"Nombre","description":"Descripción","percent":"Por ciento","compound_tax":"Impuesto compuesto"},"global_search":{"search":"Buscar...","customers":"Clientes","users":"Usuarios","no_results_found":"No se encontraron resultados"},"customers":{"title":"Clientes","add_customer":"Agregar cliente","contacts_list":"Lista de clientes","name":"Nombre","mail":"Correo | Correos","statement":"Declaración","display_name":"Nombre para mostrar","primary_contact_name":"Nombre de contacto primario","contact_name":"Nombre de contacto","amount_due":"Cantidad Debida","email":"Correo electrónico","address":"Dirección","phone":"Teléfono","website":"Sitio web","overview":"Descripción general","enable_portal":"Habilitar Portal","country":"País","state":"Estado","city":"Ciudad","zip_code":"Código postal","added_on":"Añadido el","action":"Acción","password":"Contraseña","street_number":"Número de calle","primary_currency":"Moneda primaria","description":"Descripción","add_new_customer":"Agregar nuevo cliente","save_customer":"Guardar cliente","update_customer":"Actualizar cliente","customer":"Cliente | Clientes","new_customer":"Nuevo cliente","edit_customer":"Editar cliente","basic_info":"Información básica","billing_address":"Dirección de Facturación","shipping_address":"Dirección de Envío","copy_billing_address":"Copia de facturación","no_customers":"¡Aún no hay clientes!","no_customers_found":"¡No se encontraron clientes!","list_of_customers":"Esta sección contendrá la lista de clientes.","primary_display_name":"Nombre de visualización principal","select_currency":"Seleccione el tipo de moneda","select_a_customer":"Selecciona un cliente","type_or_click":"Escriba o haga clic para seleccionar","new_transaction":"Nueva transacción","no_matching_customers":"¡No hay clientes coincidentes!","phone_number":"Número de teléfono","create_date":"Fecha de Creación","confirm_delete":"No podrá recuperar este cliente y todas las facturas, estimaciones y pagos relacionados. | No podrá recuperar estos clientes y todas las facturas, estimaciones y pagos relacionados.","created_message":"Cliente creado con éxito","updated_message":"Cliente actualizado con éxito","deleted_message":"Cliente eliminado correctamente | Clientes eliminados exitosamente"},"items":{"title":"Artículos","items_list":"Lista de artículos","name":"Nombre","unit":"Unidad","description":"Descripción","added_on":"Añadido","price":"Precio","date_of_creation":"Fecha de creación","action":"Acción","add_item":"Añadir artículo","save_item":"Guardar artículo","update_item":"Actualizar elemento","item":"Artículo | Artículos","add_new_item":"Agregar ítem nuevo","new_item":"Nuevo artículo","edit_item":"Editar elemento","no_items":"¡Aún no hay artículos!","list_of_items":"Esta sección contendrá la lista de artículos.","select_a_unit":"seleccionar unidad","taxes":"Impuestos","item_attached_message":"No se puede eliminar un elemento que ya está en uso.","confirm_delete":"No podrá recuperar este artículo | No podrás recuperar estos elementos","created_message":"Artículo creado con éxito","updated_message":"Artículo actualizado con éxito","deleted_message":"Elemento eliminado con éxito | Elementos eliminados correctamente"},"estimates":{"title":"Presupuestos","estimate":"Presupuesto | Presupuestos","estimates_list":"Lista de presupuestos","days":"{días} Días","months":"{meses} Mes","years":"{años} Año","all":"Todas","paid":"Pagada","unpaid":"No pagado","customer":"CLIENTE","ref_no":"NÚMERO DE REFERENCIA.","number":"NÚMERO","amount_due":"CANTIDAD DEBIDA","partially_paid":"Parcialmente pagado","total":"Total","discount":"Descuento","sub_total":"Subtotal","estimate_number":"Número de Presupuesto","ref_number":"Número de referencia","contact":"Contacto","add_item":"Agregar un artículo","date":"Fecha","due_date":"Fecha de vencimiento","expiry_date":"Fecha de caducidad","status":"Estado","add_tax":"Agregar impuesto","amount":"Cantidad","action":"Acción","notes":"Notas","tax":"Impuesto","estimate_template":"Plantilla de presupuesto","convert_to_invoice":"Convertir a factura","mark_as_sent":"Marcar como enviado","send_estimate":"Enviar presupuesto","resend_estimate":"Reenviar estimado","record_payment":"Registro de pago","add_estimate":"Agregar presupuesto","save_estimate":"Guardar presupuesto","confirm_conversion":"¿Quiere convertir este presupuesto en una factura?","conversion_message":"Conversión exitosa","confirm_send_estimate":"Este presupuesto se enviará por correo electrónico al cliente","confirm_mark_as_sent":"Este presupuesto se marcará como enviado","confirm_mark_as_accepted":"Este presupuesto se marcará como Aceptado","confirm_mark_as_rejected":"Este presupuesto se marcará como Rechazado","no_matching_estimates":"¡No hay presupuestos coincidentes!","mark_as_sent_successfully":"Presupuesto marcado como enviado correctamente","send_estimate_successfully":"Presupuesto enviado con éxito","errors":{"required":"Se requiere campo"},"accepted":"Aceptado","sent":"Enviado","draft":"Borrador","declined":"Rechazado","new_estimate":"Nuevo presupuesto","add_new_estimate":"Añadir nuevo presupuesto","update_Estimate":"Actualizar presupuesto","edit_estimate":"Editar presupuesto","items":"artículos","Estimate":"Presupuestos | Presupuestos","add_new_tax":"Agregar nuevo impuesto","no_estimates":"¡Aún no hay presupuestos!","list_of_estimates":"Esta sección contendrá la lista de presupuestos.","mark_as_rejected":"Marcar como rechazado","mark_as_accepted":"Marcar como aceptado","marked_as_accepted_message":"Presupuesto marcado como aceptado","marked_as_rejected_message":"Presupuesto marcado como rechazado","confirm_delete":"No podrá recuperar este presupuesto | No podrá recuperar estos presupuestos","created_message":"Presupuesto creada con éxito","updated_message":"Presupuesto actualizada con éxito","deleted_message":"Presupuesto eliminada con éxito | Presupuestos eliminadas exitosamente","user_email_does_not_exist":"El email del usuario no existe","something_went_wrong":"Algo fue mal","item":{"title":"Título del artículo","description":"Descripción","quantity":"Cantidad","price":"Precio","discount":"Descuento","total":"Total","total_discount":"Descuento total","sub_total":"Subtotal","tax":"Impuesto","amount":"Cantidad","select_an_item":"Escriba o haga clic para seleccionar un elemento","type_item_description":"Descripción del tipo de elemento(opcional)"}},"invoices":{"title":"Facturas","invoices_list":"Lista de facturas","days":"{días} Días","months":"{meses} Mes","years":"{años} Año","all":"Todas","paid":"Pagada","unpaid":"No pagado","customer":"CLIENTE","paid_status":"ESTADO PAGADO","ref_no":"NÚMERO DE REFERENCIA.","number":"NÚMERO","amount_due":"CANTIDAD DEBIDA","partially_paid":"Parcialmente pagado","total":"Total","discount":"Descuento","sub_total":"Subtotal","invoice":"Factura | Facturas","invoice_number":"Numero de factura","ref_number":"Número de referencia","contact":"Contacto","add_item":"Agregar un artículo","date":"Fecha","due_date":"Fecha de vencimiento","status":"Estado","add_tax":"Agregar impuesto","amount":"Cantidad","action":"Acción","notes":"Notas","view":"Ver","send_invoice":"Enviar la factura","resend_invoice":"Reenviar factura","invoice_template":"Plantilla de factura","template":"Modelo","mark_as_sent":"Marcar como enviada","confirm_send_invoice":"Esta factura será enviada por email al cliente","invoice_mark_as_sent":"Esta factura se marcará como enviada","confirm_send":"Estas facturas se enviarán por correo electrónico al cliente.","invoice_date":"Fecha de la factura","record_payment":"Registro de pago","add_new_invoice":"Añadir nueva factura","update_expense":"Actualizar gasto","edit_invoice":"Editar factura","new_invoice":"Nueva factura","save_invoice":"Guardar factura","update_invoice":"Actualizar factura","add_new_tax":"Agregar nuevo impuesto","no_invoices":"¡Aún no hay facturas!","list_of_invoices":"Esta sección contendrá la lista de facturas.","select_invoice":"Seleccionar factura","no_matching_invoices":"¡No hay facturas coincidentes con la selección!","mark_as_sent_successfully":"Factura marcada como enviada con éxito","send_invoice_successfully":"Factura enviada exitosamente","cloned_successfully":"Factura clonada exitosamente","clone_invoice":"Factura de clonación","confirm_clone":"Esta factura se clonará en una nueva factura.","item":{"title":"Título del artículo","description":"Descripción","quantity":"Cantidad","price":"Precio","discount":"Descuento","total":"Total","total_discount":"Descuento total","sub_total":"Subtotal","tax":"Impuesto","amount":"Cantidad","select_an_item":"Escriba o haga clic para seleccionar un elemento","type_item_description":"Descripción del tipo de elemento (opcional)"},"payment_attached_message":"Una de las facturas seleccionadas ya tiene un pago adjunto. Asegúrese de eliminar primero los pagos adjuntos para continuar con la eliminación","confirm_delete":"No podrá recuperar esta factura | No podrá recuperar estas facturas","created_message":"Factura creada exitosamente","updated_message":"Factura actualizada exitosamente","deleted_message":"Factura eliminada con éxito | Facturas borradas exitosamente","marked_as_sent_message":"Factura marcada como enviada con éxito","user_email_does_not_exist":"El email del usuario no existe","something_went_wrong":"Algo fue mal","invalid_due_amount_message":"El pago ingresado es mayor que la cantidad total debida por esta factura. Por favor verificalo y vuelve a intentarlo"},"credit_notes":{"title":"Notas de credito","credit_notes_list":"Lista de notas de crédito","credit_notes":"Notas de credito","contact":"Contacto","date":"Fecha","amount":"Cantidad","action":"Acción","credit_number":"Número de crédito","notes":"Notas","confirm_delete":"¿Desea eliminar esta nota de crédito?","item":{"title":"Título del artículo","description":"Descripción","quantity":"Cantidad","price":"Precio","discount":"Descuento","total":"Total","total_discount":"Descuento total","sub_total":"Subtotal","tax":"Impuesto"}},"payments":{"title":"Pagos","payments_list":"Lista de pagos","record_payment":"Registro de pago","customer":"Cliente","date":"Fecha","amount":"Cantidad","action":"Acción","payment_number":"Numero de pago","payment_mode":"Modo de pago","invoice":"Factura","note":"Nota","add_payment":"Agregar pago","new_payment":"Nuevo pago","edit_payment":"Editar pago","view_payment":"Ver pago","add_new_payment":"Agregar nuevo pago","send_payment_receipt":"Enviar recibo de pago","send_payment":"Enviar pago","save_payment":"Guardar pago","update_payment":"Actualizar pago","payment":"Pago | Pagos","no_payments":"¡Aún no hay pagos!","no_matching_payments":"¡No hay pagos equivalentes!","list_of_payments":"Esta sección contendrá la lista de pagos.","select_payment_mode":"Seleccionar modo de pago","confirm_mark_as_sent":"Este presupuesto se marcará como enviado","confirm_send_payment":"Este pago se enviará por correo electrónico al cliente","send_payment_successfully":"Pago enviado correctamente","user_email_does_not_exist":"El email del usuario no existe","something_went_wrong":"Algo fue mal","confirm_delete":"No podrá recuperar este pago | No podrá recuperar estos pagos","created_message":"Pago creado con éxito","updated_message":"Pago actualizado con éxito","deleted_message":"Pago eliminado con éxito | Pagos eliminados exitosamente","invalid_amount_message":"El importe del pago no es válido."},"expenses":{"title":"Gastos","expenses_list":"Lista de gastos","select_a_customer":"Selecciona un cliente","expense_title":"Título","customer":"Cliente","contact":"Contacto","category":"Categoría","from_date":"Desde la fecha","to_date":"Hasta la fecha","expense_date":"Fecha","description":"Descripción","receipt":"Recibo","amount":"Cantidad","action":"Acción","note":"Nota","category_id":"Categoria ID","date":"Fecha de gastos","add_expense":"Añadir gastos","add_new_expense":"Añadir nuevo gasto","save_expense":"Guardar gasto","update_expense":"Actualizar gasto","download_receipt":"Descargar recibo","edit_expense":"Editar gasto","new_expense":"Nuevo gasto","expense":"Gastos | Gastos","no_expenses":"¡No hay gastos todavía!","list_of_expenses":"Esta sección contendrá la lista de gastos.","confirm_delete":"No podrá recuperar este gasto | No podrá recuperar estos gastos","created_message":"Gastos creados exitosamente","updated_message":"Gastos actualizados con éxito","deleted_message":"Gastos eliminados con éxito | Gastos eliminados exitosamente","categories":{"categories_list":"Lista de categorías","title":"Título","name":"Nombre","description":"Descripción","amount":"Cantidad","actions":"Comportamiento","add_category":"añadir categoría","new_category":"Nueva categoría","category":"Categoría | Categorias","select_a_category":"Seleccione una categoría"}},"login":{"email":"Correo electrónico","password":"Contraseña","forgot_password":"¿Olvidaste tu contraseña?","or_signIn_with":"o Inicia sesión con","login":"Iniciar sesión","register":"Registro","reset_password":"Restablecer la contraseña","password_reset_successfully":"Contraseña reestablecida con éxito","enter_email":"Escriba el correo electrónico","enter_password":"Escriba la contraseña","retype_password":"Reescriba la contraseña","login_placeholder":"correo@ejemplo.com"},"users":{"title":"Usuarios","users_list":"Lista de usuarios","name":"Nombre","description":"Descripción","added_on":"Añadido","date_of_creation":"Fecha de creación","action":"Acción","add_user":"Agregar usuario","save_user":"Guardar usuario","update_user":"Actualizar usuario","user":"Usuario | Usuarios","add_new_user":"Agregar Nuevo Usuario","new_user":"Nuevo usuario","edit_user":"Editar usuario","no_users":"¡Aún no hay usuarios!","list_of_users":"Esta sección contendrá la lista de usuarios.","email":"Correo","phone":"Teléfono","password":"Contraseña","user_attached_message":"No se puede eliminar un elemento que ya está en uso.","confirm_delete":"No podrá recuperar este Usuario | No podrá recuperar estos Usuarios","created_message":"Usuario creado satisfactoriamente","updated_message":"Usuario actualizado satisfactoriamente","deleted_message":"Usuario eliminado exitosamente | Usuario eliminado correctamente"},"reports":{"title":"Informe","from_date":"A partir de la fecha","to_date":"Hasta la fecha","status":"Estado","paid":"Pagada","unpaid":"No pagado","download_pdf":"Descargar PDF","view_pdf":"Ver PDF","update_report":"Informe de actualización","report":"Informe | Informes","profit_loss":{"profit_loss":"Pérdida de beneficios","to_date":"Hasta la fecha","from_date":"A partir de la fecha","date_range":"Seleccionar rango de fechas"},"sales":{"sales":"Ventas","date_range":"Seleccionar rango de fechas","to_date":"Hasta la fecha","from_date":"A partir de la fecha","report_type":"Tipo de informe"},"taxes":{"taxes":"Impuestos","to_date":"Hasta la fecha","from_date":"A partir de la fecha","date_range":"Seleccionar rango de fechas"},"errors":{"required":"Se requiere campo"},"invoices":{"invoice":"Factura","invoice_date":"Fecha de la factura","due_date":"Fecha de vencimiento","amount":"Cantidad","contact_name":"Nombre de contacto","status":"Estado"},"estimates":{"estimate":"Presupuestar","estimate_date":"Fecha presupuesto","due_date":"Fecha de vencimiento","estimate_number":"Número de Presupuesto","ref_number":"Número de referencia","amount":"Cantidad","contact_name":"Nombre de contacto","status":"Estado"},"expenses":{"expenses":"Gastos","category":"Categoría","date":"Fecha","amount":"Cantidad","to_date":"Hasta la fecha","from_date":"A partir de la fecha","date_range":"Seleccionar rango de fechas"}},"settings":{"menu_title":{"account_settings":"Configuraciones de la cuenta","company_information":"Información de la empresa","customization":"Personalización","preferences":"Preferencias","notifications":"Notificaciones","tax_types":"Tipos de impuestos","expense_category":"Categorías de gastos","update_app":"Actualizar aplicación","backup":"Copias de seguridad","file_disk":"Disco de archivo","custom_fields":"Campos Personalizados","payment_modes":"Modos de pago","notes":"Notas"},"title":"Configuraciones","setting":"Configuraciones | Configuraciones","general":"General","language":"Idioma","primary_currency":"Moneda primaria","timezone":"Zona horaria","date_format":"Formato de fecha","currencies":{"title":"Monedas","currency":"Moneda | Monedas","currencies_list":"Lista de monedas","select_currency":"Seleccione el tipo de moneda","name":"Nombre","code":"Código","symbol":"Símbolo","precision":"Precisión","thousand_separator":"Separador de miles","decimal_separator":"Separador decimal","position":"Posición","position_of_symbol":"Posición del símbolo","right":"Derecho","left":"Izquierda","action":"Acción","add_currency":"Agregar moneda"},"mail":{"host":"Host de correo","port":"Puerto de correo","driver":"Conductor de correo","secret":"Secreto","mailgun_secret":"Mailgun Secreto","mailgun_domain":"Domino","mailgun_endpoint":"Mailgun endpoint","ses_secret":"Secreto SES","ses_key":"Clave SES","password":"Contraseña de correo","username":"Nombre de usuario de correo","mail_config":"Configuración de correo","from_name":"Del nombre del correo","from_mail":"Desde la dirección de correo","encryption":"Cifrado de correo","mail_config_desc":"Los detalles a continuación se utilizarán para actualizar el entorno de correo. También puede cambiar los detalles en cualquier momento después de iniciar sesión."},"pdf":{"title":"Configuración de PDF","footer_text":"Texto de pie de página","pdf_layout":"Diseño PDF"},"company_info":{"company_info":"Información de la compañía","company_name":"Nombre de Empresa","company_logo":"Logo de la compañía","section_description":"Información sobre su empresa que se mostrará en las facturas, presupuestos y otros documentos creados por Crater.","phone":"Teléfono","country":"País","state":"Estado","city":"Ciudad","address":"Dirección","zip":"Código Postal","save":"Guardar","updated_message":"Información de la empresa actualizada con éxito"},"custom_fields":{"title":"Campos Personalizados","section_description":"Personalice sus facturas, estimaciones y recibos de pago en sus propios campos. Asegúrese de usar los siguientes campos añadidos en los formatos de dirección de la página de configuración de personalización.","add_custom_field":"Agregar campo personalizado","edit_custom_field":"Editar campo personalizado","field_name":"Nombre del campo","label":"Etiqueta","type":"Tipo","name":"Nombre","required":"Necesaria","placeholder":"Marcador de posición","help_text":"texto de ayuda","default_value":"Valor por defecto","prefix":"Prefijo","starting_number":"Número inicial","model":"Modelo","help_text_description":"Ingrese un texto para ayudar a los usuarios a comprender el propósito de este campo personalizado.","suffix":"Sufijo","yes":"si","no":"No","order":"Orden","custom_field_confirm_delete":"No podrá recuperar este campo personalizado","already_in_use":"El campo personalizado ya está en uso","deleted_message":"Campo personalizado eliminado correctamente","options":"opciones","add_option":"Agregar opciones","add_another_option":"Agregar otra opción","sort_in_alphabetical_order":"Ordenar en orden alfabético","add_options_in_bulk":"Agregar opciones a granel","use_predefined_options":"Usar opciones predefinidas","select_custom_date":"Seleccionar fecha personalizada","select_relative_date":"Seleccionar fecha relativa","ticked_by_default":"Marcada por defecto","updated_message":"Campo personalizado actualizado correctamente","added_message":"Campo personalizado agregado correctamente"},"customization":{"customization":"Personalización","save":"Guardar","addresses":{"title":"Direcciones","section_description":"Puede configurar la Dirección de facturación del cliente y el Formato de dirección de envío del cliente (solo se muestra en PDF).","customer_billing_address":"Dirección de facturación del cliente","customer_shipping_address":"Dirección de envío del cliente","company_address":"Dirección de la compañia","insert_fields":"Insertar campos","contact":"Contacto","address":"Dirección","display_name":"Nombre para mostrar","primary_contact_name":"Nombre de contacto principal","email":"Correo electrónico","website":"Sitio web","name":"Nombre","country":"País","state":"Estado","city":"Ciudad","company_name":"Nombre de la compañia","address_street_1":"Dirección de la calle 1","address_street_2":"Dirección de la calle 2","phone":"Telefono","zip_code":"Codigo postal","address_setting_updated":"Configuración de dirección actualizada correctamente"},"updated_message":"Información de la empresa actualizada con éxito","invoices":{"title":"Facturas","notes":"Notas","invoice_prefix":"Prefijo de las facturas","default_invoice_email_body":"Cuerpo predeterminado del correo electrónico de la factura","invoice_settings":"Ajustes de facturas","autogenerate_invoice_number":"Autogenerar número de factura","invoice_setting_description":"Desactive esto, si no desea generar automáticamente números de factura cada vez que cree una nueva factura.","enter_invoice_prefix":"Introduzca el prefijo de factura","terms_and_conditions":"Términos y Condiciones","company_address_format":"Formato de dirección de la empresa","shipping_address_format":"Formato de la dirección de envío","billing_address_format":"Formato de dirección de facturación","invoice_setting_updated":"Configuración de factura actualizada correctamente"},"estimates":{"title":"Estimaciones","estimate_prefix":"Prefijo de los presupuestos","default_estimate_email_body":"Cuerpo predeterminado estimado del correo electrónico","estimate_settings":"Ajustes de presupuestos","autogenerate_estimate_number":"Autogenerar número de presupuesto","estimate_setting_description":"Desactive esto, si no desea generar automáticamente números de presupuesto cada vez que cree un nuevo presupuesto.","enter_estimate_prefix":"Introduzca el prefijo de presupuesto","estimate_setting_updated":"Configuración de presupuestos actualizada correctamente","company_address_format":"Formato de dirección de la empresa","billing_address_format":"Formato de la dirección de facturación","shipping_address_format":"Formato de dirección de envío"},"payments":{"title":"Pagos","description":"Modos de transacción de pagos","payment_prefix":"Prefijo de los pagos","default_payment_email_body":"Cuerpo predeterminado del correo electrónico del pago","payment_settings":"Ajustes de pagos","autogenerate_payment_number":"Autogenerar número de pago","payment_setting_description":"Desactive esto, si no desea generar automáticamente números de pago cada vez que cree un nuevo pago.","enter_payment_prefix":"Introduzca el prefijo de pago","payment_setting_updated":"Configuración de pagos actualizada correctamente","payment_modes":"Modos de pago","add_payment_mode":"Agregar modo de pago","edit_payment_mode":"Editar modo de pago","mode_name":"Nombre del modo","payment_mode_added":"Modo de pago agregado","payment_mode_updated":"Modo de pago actualizado","payment_mode_confirm_delete":"No podrá recuperar este modo de pago","already_in_use":"El modo de pago ya está en uso","deleted_message":"Modo de pago eliminado correctamente","company_address_format":"Formato de dirección de la empresa","from_customer_address_format":"Desde el formato de dirección del cliente"},"items":{"title":"Artículos","units":"unidades","add_item_unit":"Agregar unidad de artículo","edit_item_unit":"Editar unidad de artículo","unit_name":"Nombre de la unidad","item_unit_added":"Unidad de artículo agregada","item_unit_updated":"Unidad de artículo actualizada","item_unit_confirm_delete":"No podrás recuperar esta unidad de artículo","already_in_use":"Unidad de artículo ya está en uso","deleted_message":"Unidad de elemento eliminada correctamente"},"notes":{"title":"Notas","description":"Ahorre tiempo creando notas y reutilizándolas en sus facturas, cálculos y pagos.","notes":"Notas","type":"Tipo","add_note":"Agregar nota","add_new_note":"Agregar nueva nota","name":"Nombre","edit_note":"Editar nota","note_added":"Nota agregada correctamente","note_updated":"Nota actualizada correctamente","note_confirm_delete":"No podrá recuperar esta nota","already_in_use":"Nota ya está en uso","deleted_message":"Nota eliminada correctamente"}},"account_settings":{"profile_picture":"Foto de perfil","name":"Nombre","email":"Correo electrónico","password":"Contraseña","confirm_password":"Confirmar contraseña","account_settings":"Configuraciones de la cuenta","save":"Guardar","section_description":"Puede actualizar su nombre, correo electrónico y contraseña utilizando el siguiente formulario.","updated_message":"Configuración de la cuenta actualizada correctamente"},"user_profile":{"name":"Nombre","email":"Correo electrónico","password":"Contraseña","confirm_password":"Confirmar contraseña"},"notification":{"title":"Notificación","email":"Enviar notificaciones a","description":"¿Qué notificaciones por correo electrónico le gustaría recibir cuando algo cambia?","invoice_viewed":"Factura vista","invoice_viewed_desc":"Cuando su cliente vio la factura enviada a través del panel de control de Crater.","estimate_viewed":"Presupuesto visto","estimate_viewed_desc":"Cuando su cliente vio el presupuesto enviado a través del panel de control de Crater.","save":"Guardar","email_save_message":"Correo electrónico guardado con éxito","please_enter_email":"Por favor, introduzca su correo electrónico"},"tax_types":{"title":"Tipos de impuestos","add_tax":"Agregar impuesto","edit_tax":"Editar impuesto","description":"Puede agregar o eliminar impuestos a su gusto. Crater admite impuestos sobre artículos individuales, así como sobre la factura.","add_new_tax":"Agregar nuevo impuesto","tax_settings":"Configuraciones de impuestos","tax_per_item":"Impuesto por artículo","tax_name":"Nombre del impuesto","compound_tax":"Impuesto compuesto","percent":"Porcentaje","action":"Acción","tax_setting_description":"Habilítelo si desea agregar impuestos a artículos de factura de forma individual. Por defecto, los impuestos se agregan directamente a la factura.","created_message":"Tipo de impuesto creado con éxito","updated_message":"Tipo de impuesto actualizado correctamente","deleted_message":"Tipo de impuesto eliminado correctamente","confirm_delete":"No podrá recuperar este tipo de impuesto","already_in_use":"El impuesto ya está en uso."},"expense_category":{"title":"Categorías de gastos","action":"Acción","description":"Se requieren categorías para agregar entradas de gastos. Puede Agregar o Eliminar estas categorías según su preferencia.","add_new_category":"Añadir nueva categoria","add_category":"Añadir categoría","edit_category":"Editar categoria","category_name":"nombre de la categoría","category_description":"Descripción","created_message":"Categoría de gastos creada con éxito","deleted_message":"Categoría de gastos eliminada correctamente","updated_message":"Categoría de gastos actualizada con éxito","confirm_delete":"No podrá recuperar esta categoría de gastos","already_in_use":"La categoría ya está en uso."},"preferences":{"currency":"Moneda","default_language":"Idioma predeterminado","time_zone":"Zona horaria","fiscal_year":"Año financiero","date_format":"Formato de fecha","discount_setting":"Ajuste de descuento","discount_per_item":"Descuento por artículo","discount_setting_description":"Habilítelo si desea agregar Descuento a artículos de factura individuales. Por defecto, los descuentos se agregan directamente a la factura.","save":"Guardar","preference":"Preferencia | Preferencias","general_settings":"Preferencias predeterminadas para el sistema.","updated_message":"Preferencias actualizadas exitosamente","select_language":"seleccione el idioma","select_time_zone":"selecciona la zona horaria","select_date_format":"Seleccionar formato de fecha","select_financial_year":"seleccione año financiero"},"update_app":{"title":"Actualizar aplicación","description":"actualizar la descripción de la aplicación","check_update":"Buscar actualizaciones","avail_update":"Nueva actualización disponible","next_version":"Próxima versión","requirements":"Requisitos","update":"Actualizar","update_progress":"Actualización en progreso...","progress_text":"Solo tomará unos minutos. No actualice la pantalla ni cierre la ventana antes de que finalice la actualización.","update_success":"¡La aplicación ha sido actualizada! Espere mientras la ventana de su navegador se vuelve a cargar automáticamente.","latest_message":"¡Actualización no disponible! Estás en la última versión.","current_version":"Versión actual","download_zip_file":"Descargar archivo ZIP","unzipping_package":"Descomprimir paquete","copying_files":"Copiando documentos","running_migrations":"Ejecutar migraciones","finishing_update":"Actualización final","update_failed":"Actualización fallida","update_failed_text":"¡Lo siento! Su actualización falló el: {step} paso"},"backup":{"title":"Copia de seguridad | Copias de seguridad","description":"La copia de seguridad es un archivo comprimido zip que contiene todos los archivos en los directorios que especifiques junto con tu base de datos","new_backup":"Agregar nueva copia de seguridad","create_backup":"Crear copia de seguridad","select_backup_type":"Seleccione Tipo de Copia de Seguridad","backup_confirm_delete":"No podrá recuperar esta copia de seguridad","path":"ruta","new_disk":"Nuevo Disco","created_at":"creado el","size":"tamaño","dropbox":"dropbox","local":"local","healthy":"saludable","amount_of_backups":"cantidad de copias de seguridad","newest_backups":"copias de seguridad más recientes","used_storage":"almacenamiento utilizado","select_disk":"Seleccionar Disco","action":"Acción","deleted_message":"Copia de seguridad eliminada exitosamente","created_message":"Copia de seguridad creada satisfactoriamente","invalid_disk_credentials":"Credencial no válida del disco seleccionado"},"disk":{"title":"Disco de archivos | Discos de archivos","description":"Por defecto, Crater utilizará su disco local para guardar copias de seguridad, avatar y otros archivos de imagen. Puede configurar varios controladores de disco como DigitalOcean, S3 y Dropbox según sus preferencias.","created_at":"creado el","dropbox":"dropbox","name":"Nombre","driver":"Controlador","disk_type":"Tipo","disk_name":"Nombre del disco","new_disk":"Agregar nuevo disco","filesystem_driver":"Controlador del sistema de archivos","local_driver":"controlador local","local_root":"raíz local","public_driver":"Controlador público","public_root":"Raíz pública","public_url":"URL pública","public_visibility":"Visibilidad pública","media_driver":"Controlador multimedia","media_root":"Raíz multimedia","aws_driver":"Controlador AWS","aws_key":"Clave AWS","aws_secret":"Secreto AWS","aws_region":"Región de AWS","aws_bucket":"Cubo AWS","aws_root":"Raíz AWS","do_spaces_type":"Hacer Espacios tipo","do_spaces_key":"Disponer espacios","do_spaces_secret":"Disponer espacios secretos","do_spaces_region":"Disponer región de espacios","do_spaces_bucket":"Disponer espacios","do_spaces_endpoint":"Disponer espacios extremos","do_spaces_root":"Disponer espacios en la raíz","dropbox_type":"Tipo de Dropbox","dropbox_token":"Token de DropBox","dropbox_key":"Clave Dropbox","dropbox_secret":"Dropbox Secret","dropbox_app":"Aplicación Dropbox","dropbox_root":"Raíz Dropbox","default_driver":"Controlador por defecto","is_default":"ES PREDETERMINADO","set_default_disk":"Establecer disco predeterminado","success_set_default_disk":"Disco establecido correctamente como predeterminado","save_pdf_to_disk":"Guardar PDFs a disco","disk_setting_description":" Habilite esto, si desea guardar automáticamente una copia en formato pdf de cada factura, cálculo y recibo de pago en su disco predeterminado. Al activar esta opción, se reducirá el tiempo de carga al visualizar los archivos PDFs.","select_disk":"Seleccionar Disco","disk_settings":"Configuración del disco","confirm_delete":"Los archivos y carpetas existentes en el disco especificado no se verán afectados, pero su configuración de disco será eliminada de Crater","action":"Acción","edit_file_disk":"Editar disco de ficheros","success_create":"Disco añadido satisfactoriamente","success_update":"Disco actualizado satisfactoriamente","error":"Error al añadir disco","deleted_message":"Disco de archivo borrado correctamente","disk_variables_save_successfully":"Disco configurado correctamente","disk_variables_save_error":"La configuración del disco ha fallado.","invalid_disk_credentials":"Credencial no válida del disco seleccionado"}},"wizard":{"account_info":"Información de la cuenta","account_info_desc":"Los detalles a continuación se utilizarán para crear la cuenta principal de administrador. También puede cambiar los detalles en cualquier momento después de iniciar sesión.","name":"Nombre","email":"Correo","password":"Contraseña","confirm_password":"Confirmar contraseña","save_cont":"Guardar y continuar","company_info":"Información de la empresa","company_info_desc":"Esta información se mostrará en las facturas. Tenga en cuenta que puede editar esto más adelante en la página de configuración.","company_name":"nombre de empresa","company_logo":"Logo de la compañía","logo_preview":"Vista previa del logotipo","preferences":"Preferencias","preferences_desc":"Preferencias predeterminadas para el sistema.","country":"País","state":"Estado","city":"Ciudad","address":"Dirección","street":"Calle1 | Calle2","phone":"Teléfono","zip_code":"Código postal","go_back":"Regresa","currency":"Moneda","language":"Idioma","time_zone":"Zona horaria","fiscal_year":"Año financiero","date_format":"Formato de fecha","from_address":"Desde la Dirección","username":"Nombre de usuario","next":"Siguiente","continue":"Continuar","skip":"Saltar","database":{"database":"URL del sitio y base de datose","connection":"Conexión de base de datos","host":"Host de la base de datos","port":"Puerto de la base de datos","password":"Contraseña de la base de datos","app_url":"URL de la aplicación","app_domain":"Dominio","username":"Nombre de usuario de la base de datos","db_name":"Nombre de la base de datos","db_path":"Ruta de la base de datos","desc":"Cree una base de datos en su servidor y establezca las credenciales utilizando el siguiente formulario."},"permissions":{"permissions":"Permisos","permission_confirm_title":"¿Estás seguro de que quieres continuar?","permission_confirm_desc":"Error de verificación de permisos de carpeta","permission_desc":"A continuación se muestra la lista de permisos de carpeta necesarios para que la aplicación funcione. Si la verificación de permisos falla, asegúrese de actualizar los permisos de su carpeta."},"mail":{"host":"Host de correo","port":"Puerto de correo","driver":"Conductor de correo","secret":"Secreto","mailgun_secret":"Mailgun Secreto","mailgun_domain":"Dominio","mailgun_endpoint":"Mailgun endpoint","ses_secret":"Secreto SES","ses_key":"Clave SES","password":"Contraseña de correo","username":"Nombre de usuario de correo","mail_config":"Configuración de correo","from_name":"Del nombre del correo","from_mail":"Desde la dirección de correo","encryption":"Cifrado de correo","mail_config_desc":"Los detalles a continuación se utilizarán para actualizar el entorno de correo. También puede cambiar los detalles en cualquier momento después de iniciar sesión."},"req":{"system_req":"Requisitos del sistema","php_req_version":"Php (versión {version} necesario)","check_req":"Consultar requisitos","system_req_desc":"Crater tiene algunos requisitos de servidor. Asegúrese de que su servidor tenga la versión de php requerida y todas las extensiones mencionadas a continuación."},"errors":{"migrate_failed":"La migración falló","database_variables_save_error":"No se puede conectar a la base de datos con los valores proporcionados.","mail_variables_save_error":"La configuración del correo electrónico ha fallado.","connection_failed":"Conexión de base de datos fallida","database_should_be_empty":"La base de datos debe estar vacía"},"success":{"mail_variables_save_successfully":"Correo electrónico configurado correctamente","database_variables_save_successfully":"Base de datos configurada con éxito."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Facturación super simple","for_freelancer":"para autónomos y","small_businesses":"pequeñas empresas","crater_help":"Crater te ayuda a rastrear gastos, registrar pagos y generar hermosas","invoices_and_estimates":"facturas y presupuestos con capacidad para elegir múltiples plantillas."},"validation":{"invalid_phone":"Numero de telefono invalido","invalid_url":"URL no válida (por ejemplo, http://www.crater.com)","invalid_domain_url":"URL no válida (por ejemplo, crater.com)","required":"Se requiere campo","email_incorrect":"Email incorrecto.","email_already_taken":"Este email ya está en uso","email_does_not_exist":"El usuario con el correo electrónico dado no existe","item_unit_already_taken":"El nombre de la unidad ya está en uso","payment_mode_already_taken":"El modo de pago ya ha sido tomado","send_reset_link":"Enviar enlace de restablecimiento","not_yet":"¿Aún no? Envíalo de nuevo","password_min_length":"La contraseña debe contener {count} caracteres","name_min_length":"El nombre debe tener al menos {count} letras.","enter_valid_tax_rate":"Ingrese una tasa impositiva válida","numbers_only":"Solo números.","characters_only":"Solo caracteres.","password_incorrect":"Las contraseñas deben ser idénticas","password_length":"La contraseña debe tener 5 caracteres de longitud.","qty_must_greater_than_zero":"La cantidad debe ser mayor que cero.","price_greater_than_zero":"El precio debe ser mayor que cero.","payment_greater_than_zero":"El pago debe ser mayor que cero.","payment_greater_than_due_amount":"El pago ingresado es mayor a la cantidad debida de esta factura.","quantity_maxlength":"La cantidad no debe ser mayor de 20 dígitos.","price_maxlength":"El precio no debe ser mayor de 20 dígitos.","price_minvalue":"El precio debe ser mayor que 0 dígitos","amount_maxlength":"La cantidad no debe ser mayor de 20 dígitos.","amount_minvalue":"La cantidad debe ser mayor que 0 dígitos","description_maxlength":"La descripción no debe tener más de 255 caracteres.","subject_maxlength":"El asunto no debe tener más de 100 caracteres.","message_maxlength":"El mensaje no debe tener más de 255 caracteres.","maximum_options_error":"Máximo de {max} opciones seleccionadas. Primero elimine una opción seleccionada para seleccionar otra.","notes_maxlength":"Las notas no deben tener más de 255 caracteres.","address_maxlength":"La dirección no debe tener más de 255 caracteres.","ref_number_maxlength":"El número de referencia no debe tener más de 255 caracteres.","prefix_maxlength":"El prefijo no debe tener más de 5 caracteres.","something_went_wrong":"Algo fue mal"},"pdf_estimate_label":"Presupuestar","pdf_estimate_number":"Número de Presupuesto","pdf_estimate_date":"Fecha presupuesto","pdf_estimate_expire_date":"Fecha de caducidad","pdf_invoice_label":"Factura","pdf_invoice_number":"Numero de factura","pdf_invoice_date":"Fecha de la factura","pdf_invoice_due_date":"Fecha final","pdf_notes":"Notas","pdf_items_label":"Artículos","pdf_quantity_label":"Cantidad","pdf_price_label":"Precio","pdf_discount_label":"Descuento","pdf_amount_label":"Cantidad","pdf_subtotal":"Subtotal","pdf_total":"Total","pdf_payment_receipt_label":"RECIBO DE PAGO","pdf_payment_date":"Fecha de pago","pdf_payment_number":"Numero de pago","pdf_payment_mode":"Modo de pago","pdf_payment_amount_received_label":"Monto Recibido","pdf_expense_report_label":"INFORME DE GASTOS","pdf_total_expenses_label":"GASTO TOTAL","pdf_profit_loss_label":"INFORME PERDIDAS & GANANCIAS","pdf_income_label":"INGRESO","pdf_net_profit_label":"GANANCIA NETA","pdf_customer_sales_report":"Informe de ventas: Por cliente","pdf_total_sales_label":"VENTAS TOTALES","pdf_item_sales_label":"Informe de ventas: por artículo","pdf_tax_report_label":"INFORME DE IMPUESTOS","pdf_total_tax_label":"TOTAL IMPUESTOS","pdf_tax_types_label":"Tipos de impuestos","pdf_expenses_label":"Gastos","pdf_bill_to":"Cobrar a,","pdf_ship_to":"Enviar a,","pdf_received_from":"Recibido desde:"}'),ie=JSON.parse('{"navigation":{"dashboard":"الرئيسية","customers":"العملاء","items":"الأصناف","invoices":"الفواتير","expenses":"النفقات","estimates":"التقديرات","payments":"المدفوعات","reports":"التقارير","settings":"الإعدادات","logout":"خروج","users":"المستخدمون"},"general":{"add_company":"أضف شركة","view_pdf":"عرض PDF","copy_pdf_url":"Copy PDF Url","download_pdf":"تنزيل PDF","save":"حفظ","create":"خلق","cancel":"إلغاء الأمر","update":"تحديث","deselect":"Deselect","download":"تنزيل","from_date":"من تاريخ","to_date":"إلى تاريخ","from":"من","to":"إلى","sort_by":"ترتيب حسب","ascending":"تصاعدي","descending":"تنازلي","subject":"موضوع","body":"الجسم","message":"رسالة","send":"إرسال","go_back":"إلى الخلف","back_to_login":"العودة إلى تسجيل الدخول؟","home":"الرئيسية","filter":"تصفية","delete":"حذف","edit":"تعديل","view":"عرض","add_new_item":"إضافة صنف جديد","clear_all":"مسح الكل","showing":"عرض","of":"من","actions":"العمليات","subtotal":"المجموع الفرعي","discount":"خصم","fixed":"ثابت","percentage":"نسبة","tax":"ضريبة","total_amount":"المبلغ الإجمالي","bill_to":"مطلوب من","ship_to":"يشحن إلى","due":"واجبة السداد","draft":"مسودة","sent":"مرسلة","all":"الكل","select_all":"تحديد الل","choose_file":"اضغط هنا لاختيار ملف","choose_template":"اختيار القالب","choose":"اختر","remove":"إزالة","powered_by":"تصميم","bytefury":"باترفوري","select_a_status":"اختر الحالة","select_a_tax":"اختر الضريبة","search":"بحث","are_you_sure":"هل أنت متأكد?","list_is_empty":"القائمة فارغة.","no_tax_found":"لا يوجد ضريبة!","four_zero_four":"404","you_got_lost":"عفواً! يبدو أنك قد تهت!","go_home":"عودة إلى الرئيسية","test_mail_conf":"اختبار تكوين البريد","send_mail_successfully":"تم إرسال البريد بنجاح","setting_updated":"تم تحديث الإعدادات بنجاح","select_state":"اختر الولاية/المنطقة","select_country":"اختر الدولة","select_city":"اختر المدينة","street_1":"عنوان الشارع 1","street_2":"عنوان الشارع 2","action_failed":"فشلت العملية","retry":"أعد المحاولة","choose_note":"اختر ملاحظة","no_note_found":"لم يتم العثور على الملاحظة","insert_note":"أدخل ملاحظة"},"dashboard":{"select_year":"اختر السنة","cards":{"due_amount":"المبلغ المطلوب","customers":"العملاء","invoices":"الفواتير","estimates":"التقديرات"},"chart_info":{"total_sales":"المبيعات","total_receipts":"إجمالي الدخل","total_expense":"النفقات","net_income":"صافي الدخل","year":"اختر السنة"},"weekly_invoices":{"title":"الفواتير الأسبوعية"},"monthly_chart":{"title":"المبيعات والنفقات"},"recent_invoices_card":{"title":"فواتير مستحقة","due_on":"مستحقة في","customer":"العميل","amount_due":"المبلغ المطلوب","actions":"العمليات","view_all":"عرض الكل"},"recent_estimate_card":{"title":"أحدث التقديرات","date":"التاريخ","customer":"العميل","amount_due":"المبلغ المطلوب","actions":"العمليات","view_all":"عرض الكل"}},"tax_types":{"name":"الاسم","description":"الوصف","percent":"نسبه مئويه","compound_tax":"الضريبة المركبة"},"global_search":{"search":"بحث...","customers":"العملاء","users":"المستخدمون","no_results_found":"لم يتم العثور على نتائج"},"customers":{"title":"العملاء","add_customer":"إضافة عميل","contacts_list":"قائمة العملاء","name":"الاسم","mail":"البريد","statement":"البيان","display_name":"اسم العرض","primary_contact_name":"اسم التواصل الرئيسي","contact_name":"اسم تواصل آخر","amount_due":"المبلغ المطلوب","email":"البريد الإلكتروني","address":"العنوان","phone":"الهاتف","website":"موقع الإنترنت","overview":"استعراض","enable_portal":"Enable Portal","country":"الدولة","state":"الولاية/المنطقة","city":"المدينة","zip_code":"الرمز البريدي","added_on":"أضيف في","action":"إجراء","password":"كلمة المرور","street_number":"رقم الشارع","primary_currency":"العملة الرئيسية","description":"الوصف","add_new_customer":"إضافة عميل جديد","save_customer":"حفظ العميل","update_customer":"تحديث بيانات العميل","customer":"عميل | عملاء","new_customer":"عميل جديد","edit_customer":"تعديل عميل","basic_info":"معلوات أساسية","billing_address":"عنوان الفوترة","shipping_address":"عنوان الشحن","copy_billing_address":"نسخ من عنوان الفوترة","no_customers":"لا يوجد عملاء حتى الآن!","no_customers_found":"لم يتم الحصول على عملاء!","list_of_customers":"سوف يحتوي هذا القسم على قائمة العملاء.","primary_display_name":"اسم العرض الرئيسي","select_currency":"اختر العملة","select_a_customer":"اختر العميل","type_or_click":"اكتب أو اضغط للاختيار","new_transaction":"معاملة جديدة","no_matching_customers":"لا يوجد عملاء مطابقين!","phone_number":"رقم الهاتف","create_date":"تاريخ الإنشاء","confirm_delete":"لن تتمكن من استرداد هذا العميل وجميع الفواتير والتقديرات والمدفوعات ذات الصلة. | لن تتمكن من استرداد هؤلاء العملاء وجميع الفواتير والتقديرات والمدفوعات ذات الصلة.","created_message":"تم إنشاء العملاء بنجاح","updated_message":"تم تحديث العملاء بنجاح","deleted_message":"تم حذف العملاء بنجاح | تم حذف العميل بنجاح"},"items":{"title":"الأصناف","items_list":"قائمة الأصناف","name":"الاسم","unit":"الوحدة","description":"الوصف","added_on":"أضيف في","price":"السعر","date_of_creation":"تاريخ الإنشاء","action":"إجراء","add_item":"إضافة صنف","save_item":"حفظ الصنف","update_item":"تحديث الصنف","item":"صنف | أصناف","add_new_item":"إضافة صنف جديد","new_item":"جديد صنف","edit_item":"تحديث صنف","no_items":"لا يوجد أصناف حتى الآن!","list_of_items":"هذا القسم سوف يحتوي على قائمة الأصناف.","select_a_unit":"اختر الوحدة","taxes":"الضرائب","item_attached_message":"لا يمكن حذف الصنف قيد الاستخدام","confirm_delete":"لن تتمكن من استرجاع هذا الصنف | لن تتمكن من استرجاع هذه الأصناف","created_message":"تم إنشاء الصنف بنجاح","updated_message":"تم تحديث الصنف بنجاح","deleted_message":"تم حذف الصنف بنجاح | تم حذف الأصناف بنجاح"},"estimates":{"title":"التقديرات","estimate":"تقدير | تقديرات","estimates_list":"قائمة التقديرات","days":"{days} أيام","months":"{months} أشهر","years":"{years} سنوات","all":"الكل","paid":"مدفوع","unpaid":"غير مدفوع","customer":"العميل","ref_no":"رقم المرجع.","number":"الرقم","amount_due":"المبلغ المطلوب","partially_paid":"مدفوع جزئيا","total":"الإجمالي","discount":"الخصم","sub_total":"حاصل الجمع","estimate_number":"رقم تقدير","ref_number":"رقم المرجع","contact":"تواصل","add_item":"إضافة صنف","date":"تاريخ","due_date":"تاريخ الاستحقاق","expiry_date":"تاريخ الصلاحية","status":"الحالة","add_tax":"إضافة ضرية","amount":"المبلغ المطلوب","action":"إجراء","notes":"ملاحظات","tax":"ضريبة","estimate_template":"قالب","convert_to_invoice":"تحويل إلى فاتورة","mark_as_sent":"تحديد كمرسل","send_estimate":"إرسال التقدير","resend_estimate":"إعادة إرسال التقدير","record_payment":"تسجيل مدفوات","add_estimate":"إضافة تقدير","save_estimate":"حفظ التقدير","confirm_conversion":"هل تريد تحويل هذا التقدير إلى فاتورة؟","conversion_message":"تم إنشاء الفاتورة بنجاح","confirm_send_estimate":"سيتم إرسال هذا التقدير بالبريد الإلكتروني إلى العميل","confirm_mark_as_sent":"سيتم التحديد كمرسل على هذا التقدير","confirm_mark_as_accepted":"سيتم التحديد كمقبول على هذا التقدير","confirm_mark_as_rejected":"سيتم التحديد كمرفوض على هذا التقدير","no_matching_estimates":"لا يوجد تقديرات مطابقة!","mark_as_sent_successfully":"تم التحديد كمرسل بنجاح","send_estimate_successfully":"تم إرسال التقدير بنجاح","errors":{"required":"حقل مطلوب"},"accepted":"مقبول","sent":"مرسل","draft":"مسودة","declined":"مرفوض","new_estimate":"تقدير جديد","add_new_estimate":"إضافة تقدير جديد","update_Estimate":"تحديث تقدير","edit_estimate":"تعديل التقدير","items":"الأصناف","Estimate":"تقدير | تقديرات","add_new_tax":"إضافة ضريبة جديدة","no_estimates":"لا يوجد تقديرات حالياً!","list_of_estimates":"هذا القسم سوف يحتوي على التقديرات.","mark_as_rejected":"تحديد كمرفوض","mark_as_accepted":"تحديد كمقروء","marked_as_accepted_message":"تحديد التقدير كمقبول","marked_as_rejected_message":"تحديد التقدير كمرفوض","confirm_delete":"لن تستطيع استرجاع هذا التقدير | لن تستطيع إستعادة هذه التقديرات","created_message":"تم إنشاء التقدير بنجاح","updated_message":"تم تحديث التقدير بنجاح","deleted_message":"تم حذف التقدير بنجاح | تم حذف التقديرات بنجاح","user_email_does_not_exist":"البريد الالكتروني للمستخدم غير موجود","something_went_wrong":"خطأ غير معروف!","item":{"title":"اسم الصنف","description":"الوصف","quantity":"الكمية","price":"السعر","discount":"الخصم","total":"الإجمالي","total_discount":"مجموع الخصم","sub_total":"حاصل الجمع","tax":"الضرية","amount":"المبلغ المطلوب","select_an_item":"اكتب أو اختر الصنف","type_item_description":"اكتب وصف الصنف (اختياري)"}},"invoices":{"title":"الفواتير","invoices_list":"قائمة الفواتير","days":"{days} أيام","months":"{months} أشهر","years":"{years} سنوات","all":"الكل","paid":"مدفوع","unpaid":"غير مدفوع","customer":"العميل","paid_status":"حالة الدفع","ref_no":"رقم المرجع.","number":"الرقم","amount_due":"المبلغ المطلوب","partially_paid":"مدفوع جزئياً","total":"الإجمالي","discount":"الخصم","sub_total":"حاصل الجمع","invoice":"فاتورة | فواتير","invoice_number":"رقم الفاتورة","ref_number":"رقم المرجع","contact":"تواصل","add_item":"إضافة صنف","date":"التاريخ","due_date":"تاريخ الاستحقاق","status":"الحالة","add_tax":"إضافة ضريبة","amount":"المبلغ المطلوب","action":"إجراء","notes":"ملاحظات","view":"عرض","send_invoice":"إرسال الفاتورة","resend_invoice":"إعادة إرسال الفاتورة","invoice_template":"قالب الفاتورة","template":"قالب","mark_as_sent":"تحديد كمرسل","confirm_send_invoice":"سيتم إرسال هذه الفاتورة بالبريد الألكتروني إلى العميل","invoice_mark_as_sent":"سيتم تحديد هذه الفاتورة كمرسلة","confirm_send":"سيتم إرسال هذه الفاتورة بالبريد الألكتروني إلى العميل","invoice_date":"تاريخ الفاتورة","record_payment":"تسجيل مدفوعات","add_new_invoice":"إضافة فاتورة جديدة","update_expense":"تحديث المصروفات","edit_invoice":"تعديل الفاتورة","new_invoice":"فاتورة جديدة","save_invoice":"حفظ الفاتورة","update_invoice":"تحديث الفاتورة","add_new_tax":"إضافة ضريبة جديدة","no_invoices":"لا يوجد فواتير حتى الآن!","list_of_invoices":"قائمة الفواتير .","select_invoice":"اختر الفاتورة","no_matching_invoices":"لا يوجد فواتير مطابقة!","mark_as_sent_successfully":"تم تحديد الفاتورة كمرسلة بنجاح","send_invoice_successfully":"تم إرسال الفاتورة بنجاح","cloned_successfully":"تم استنساخ الفاتورة بنجاح","clone_invoice":"استنساخ الفاتورة","confirm_clone":"سيتم استنساخ هذه الفاتورة في فاتورة جديدة","item":{"title":"اسم الصنف","description":"الوصف","quantity":"الكمية","price":"السعر","discount":"الخصم","total":"الإجمالي","total_discount":"إجمالي الخصم","sub_total":"حاصل الجمع","tax":"الضريبة","amount":"المبلغ المطلوب","select_an_item":"اكتب أو انقر لاختيار صنف","type_item_description":"وصف الصنف (اختياري)"},"payment_attached_message":"هناك مدفوعات مرتبطة بالفعل بإحدى الفواتير المحددة. تأكد من حذف المدفوعات المرتبطة أولاً قبل حذف الفاتورة.","confirm_delete":"لن تتمكن من استرجاع الفاتورة بعد هذه الإجراء | لن تتمكن من استرجاع الفواتير بعد هذا الإجراء","created_message":"تم إنشاء الفاتورة بنجاح","updated_message":"تم تحديث الفاتورة بنجاح","deleted_message":"تم حذف الفاتورة بنجاح | تم حذف الفواتير بنجاح","marked_as_sent_message":"تم إرسال الفاتورة بنجاح","user_email_does_not_exist":"البريد الإلكتروني للمستخدم غير موجود!","something_went_wrong":"خطأ غير معروف!","invalid_due_amount_message":"المبلغ النهائي للفاتورة لا يمكن أن يكون أقل من المبلغ المطلوب لها. رجاءاً حدث الفاتورة أو قم بحذف المدفوعات المرتبطة بها للاستمرار."},"credit_notes":{"title":"ملاحظات إئتمانية","credit_notes_list":"قائمة الملاحظات الإئتمانية","credit_notes":"ملاحظات إئتمانية","contact":"تواصل","date":"التاريخ","amount":"المبلغ المطلوب","action":"إجراء","credit_number":"الرقم الإئتماني","notes":"ملاحظات","confirm_delete":"هل تريد حفذف هذه الملاحظة الإئتمانية؟","item":{"title":"اسم الصنف","description":"الوصف","quantity":"الكمية","price":"السعر","discount":"الخصم","total":"الإجمالي","total_discount":"إجمالي الخصم","sub_total":"حاصل الجمع","tax":"الضريبة"}},"payments":{"title":"المدفوعات","payments_list":"قائمة المدفوعات","record_payment":"تسجيل دفعة","customer":"العميل","date":"التاريخ","amount":"المبلغ المطلوب","action":"إجراء","payment_number":"رقم الدفعة","payment_mode":"نوع الدفعة","invoice":"الفاتورة","note":"ملاحظة","add_payment":"إضافة دفعة","new_payment":"دفعة جديدة","edit_payment":"تعديل الدفعة","view_payment":"عرض الدفعة","add_new_payment":"إضافة دفعة جديدة","send_payment_receipt":"Send Payment Receipt","send_payment":"إرسال الدفعة","save_payment":"حفظ الدفعة","update_payment":"تحديث الدفعة","payment":"دفعة | مدفوعات","no_payments":"لا يوجد مدفوعات حتى الآن!","no_matching_payments":"لا توجد مدفوعات مطابقة!","list_of_payments":"سوف تحتوي هذه القائمة على مدفوعات الفواتير.","select_payment_mode":"اختر طريقة الدفع","confirm_mark_as_sent":"سيتم التحديد كمرسل على هذا التقدير","confirm_send_payment":"This payment will be sent via email to the customer","send_payment_successfully":"Payment sent successfully","user_email_does_not_exist":"البريد الإلكتروني للمستخدم غير موجود!","something_went_wrong":"خطأ غير معروف!","confirm_delete":"لن تكون قادر على استرجاع هذه الدفعة | لن تكون قادراً على استرجاع هذه المدفوعات","created_message":"تم إنشاء الدفعة بنجاح","updated_message":"تم تحديث الدفعة بنجاح","deleted_message":"تم حذف الدفعة بنجاح | تم حذف المدفوعات بنجاح","invalid_amount_message":"قيمة الدفعة غير صحيحة!"},"expenses":{"title":"النفقات","expenses_list":"قائمة النفقات","select_a_customer":"حدد عميلاً","expense_title":"العنوان","customer":"العميل","contact":"تواصل","category":"الفئة","from_date":"من تاريخ","to_date":"حتى تاريخ","expense_date":"التاريخ","description":"الوصف","receipt":"سند القبض","amount":"المبلغ المطلوب","action":"إجراء","note":"ملاحظة","category_id":"رمز الفئة","date":"تاريخ النفقات","add_expense":"أضف نفقات","add_new_expense":"أضف نفقات جديدة","save_expense":"حفظ النفقات","update_expense":"تحديث النفقات","download_receipt":"تنزيل السند","edit_expense":"تعديل النفقات","new_expense":"نفقات جديدة","expense":"إنفاق | نفقات","no_expenses":"لا يوجد نفقات حتى الآن!","list_of_expenses":"هذه القائمة ستحتوي النفقات الخاصة بك","confirm_delete":"لن تتمكن من استرجاع هذا الإنفاق | لن تتمكن من استرجاع هذه النفقات","created_message":"تم إنشاء النفقات بنجاح","updated_message":"تم تحديث النفقات بنجاح","deleted_message":"تم حذف النفقات بنجاح","categories":{"categories_list":"قائمة الفئات","title":"العنوان","name":"الاسم","description":"الوصف","amount":"المبلغ المطلوب","actions":"العمليات","add_category":"إضافة فئمة","new_category":"فئة جديدة","category":"فئة | فئات","select_a_category":"اختر الفئة"}},"login":{"email":"البريد الإلكتروني","password":"كلمة المرور","forgot_password":"نسيت كلمة المرور؟","or_signIn_with":"أو سجل الدخول بواسطة","login":"دخول","register":"تسجيل","reset_password":"إعادة تعيين كلمة المرور","password_reset_successfully":"تم إعادة تعيين كلمة المرور بنجاح","enter_email":"أدخل البريد الالكتروني","enter_password":"أكتب كلمة المرور","retype_password":"أعد كتابة كلمة المرور","login_placeholder":"mail@example.com"},"users":{"title":"المستخدمون","users_list":"قائمة المستخدمين","name":"اسم","description":"وصف","added_on":"وأضاف في","date_of_creation":"تاريخ الخلق","action":"عمل","add_user":"إضافة مستخدم","save_user":"حفظ المستخدم","update_user":"تحديث المستخدم","user":"تحديث المستخدم","add_new_user":"إضافة مستخدم جديد","new_user":"مستخدم جديد","edit_user":"تحرير العضو","no_users":"لا مستخدمين حتى الآن!","list_of_users":"سيحتوي هذا القسم على قائمة المستخدمين.","email":"البريد الإلكتروني","phone":"هاتف","password":"كلمه السر","user_attached_message":"لا يمكن حذف عنصر قيد الاستخدام بالفعل","confirm_delete":"لن تتمكن من استرداد هذا العنصر | لن تتمكن من استرداد هؤلاء المستخدمين","created_message":"تم إنشاء المستخدم بنجاح","updated_message":"تم تحديث المستخدم بنجاح","deleted_message":"تم حذف المستخدم بنجاح | تم حذف المستخدم بنجاح"},"reports":{"title":"تقرير","from_date":"من تاريخ","to_date":"حتى تاريخ","status":"الحالة","paid":"مدفوع","unpaid":"غير مدفوع","download_pdf":"تنزيل PDF","view_pdf":"عرض PDF","update_report":"تحديث التقرير","report":"تقرير | تقارير","profit_loss":{"profit_loss":"الخسائر والأرباح","to_date":"حتى تاريخ","from_date":"من تاريخ","date_range":"اختر مدى التاريخ"},"sales":{"sales":"المبيعات","date_range":"اختر مدى التاريخ","to_date":"حتى تاريخ","from_date":"من تاريخ","report_type":"نوع التقرير"},"taxes":{"taxes":"الضرائب","to_date":"حتى تاريخ","from_date":"من تاريخ","date_range":"اختر مدى التاريخ"},"errors":{"required":"حقل مطلوب"},"invoices":{"invoice":"الفاتورة","invoice_date":"تاريخ الفاتورة","due_date":"تاريخ الاستحقاق","amount":"المبلغ المطلوب","contact_name":"اسم التواصل","status":"الحالة"},"estimates":{"estimate":"تقدير","estimate_date":"تاريخ التقدير","due_date":"مستحق بتاريخ","estimate_number":"رقم مستحق","ref_number":"رقم المرجع","amount":"المبلغ المطلوب","contact_name":"اسم التواصل","status":"الحالة"},"expenses":{"expenses":"النفقات","category":"الفئة","date":"التاريخ","amount":"المبلغ المطلوب","to_date":"حتى تاريخ","from_date":"من تاريخ","date_range":"اختر مدى التاريخ"}},"settings":{"menu_title":{"account_settings":"إعدادات الحساب","company_information":"معلومات المنشأة","customization":"تخصيص","preferences":"تفضيلات","notifications":"تنبيهات","tax_types":"نوع الضريبة","expense_category":"فئات النفقات","update_app":"تحديث النظام","backup":"دعم","file_disk":"قرص الملف","custom_fields":"الحقول المخصصة","payment_modes":"طرق الدفع","notes":"ملاحظات"},"title":"إعدادات","setting":"إعدادات | إعدادات","general":"عام","language":"اللغة","primary_currency":"العملة الرئيسية","timezone":"المنطقة الزمنية","date_format":"صيغة التاريخ","currencies":{"title":"العملات","currency":"العملة | العملات","currencies_list":"قائمة العملات","select_currency":"اختر العملة","name":"الاسم","code":"المرجع","symbol":"الرمز","precision":"الدقة","thousand_separator":"فاصل الآلاف","decimal_separator":"الفاصلة العشرية","position":"الموقع","position_of_symbol":"موقع رمز العملة","right":"يمين","left":"يسار","action":"إجراء","add_currency":"أضف عملة"},"mail":{"host":"خادم البريد","port":"منفذ البريد","driver":"مشغل البريد","secret":"سري","mailgun_secret":"الرمز السري لـ Mailgun","mailgun_domain":"المجال","mailgun_endpoint":"النهاية الطرفية لـ Mailgun","ses_secret":"SES الرمز السري","ses_key":"SES مفتاح","password":"كلمة مرور البريد الالكتروني","username":"اسم المستخدم للبريد الإلكتروني","mail_config":"إعدادات البريد الالكتروني","from_name":"اسم المرسل","from_mail":"عنوان البريد الالكتروني للمرسل","encryption":"صيغة ا لتشفير","mail_config_desc":"أدناه هو نموذج لتكوين برنامج تشغيل البريد الإلكتروني لإرسال رسائل البريد الإلكتروني من التطبيق. يمكنك أيضًا تهيئة موفري الجهات الخارجية مثل Sendgrid و SES إلخ."},"pdf":{"title":"PDF إعدادات","footer_text":"نص التذييل","pdf_layout":"اتجاه صفحة PDF"},"company_info":{"company_info":"معلومات الشركة","company_name":"اسم الشركة","company_logo":"شعار الشركة","section_description":"معلومات عن شركتك سيتم عرضها على الفواتير والتقديرات والمستندات الأخرى.","phone":"الهاتف","country":"الدولة","state":"الولاية/المنطقة","city":"المدينة","address":"العنوان","zip":"الرمز البريدي","save":"حفظ","updated_message":"تم تحديث معلومات الشركة بنجاح"},"custom_fields":{"title":"الحقول المخصصة","section_description":"قم بتخصيص فواتيرك وتقديراتك وإيصالات الدفع باستخدام الحقول الخاصة بك. تأكد من استخدام الحقول المضافة أدناه في تنسيقات العناوين في صفحة إعدادات التخصيص.","add_custom_field":"إضافة حقل مخصص","edit_custom_field":"تحرير الحقل المخصص","field_name":"اسم الحقل","label":"ضع الكلمة المناسبة","type":"نوع","name":"اسم","required":"مطلوب","placeholder":"عنصر نائب","help_text":"نص المساعدة","default_value":"القيمة الافتراضية","prefix":"اختصار","starting_number":"رقم البداية","model":"نموذج","help_text_description":"أدخل بعض النص لمساعدة المستخدمين على فهم الغرض من هذا الحقل المخصص.","suffix":"لاحقة","yes":"نعم","no":"لا","order":"طلب","custom_field_confirm_delete":"لن تتمكن من استعادة هذا الحقل المخصص","already_in_use":"الحقل المخصص قيد الاستخدام بالفعل","deleted_message":"تم حذف الحقل المخصص بنجاح","options":"خيارات","add_option":"أضف خيارات","add_another_option":"أضف خيارًا آخر","sort_in_alphabetical_order":"فرز حسب الترتيب الأبجدي","add_options_in_bulk":"أضف الخيارات بشكل مجمّع","use_predefined_options":"استخدم الخيارات المحددة مسبقًا","select_custom_date":"حدد التاريخ المخصص","select_relative_date":"حدد التاريخ النسبي","ticked_by_default":"يتم تحديده بشكل افتراضي","updated_message":"تم تحديث الحقل المخصص بنجاح","added_message":"تمت إضافة الحقل المخصص بنجاح"},"customization":{"customization":"التخصيص","save":"حفظ","addresses":{"title":"العنوان","section_description":"يمكنك ضبط عنوان إرسال فواتير العملاء وتنسيق عنوان شحن العملاء (معروض في PDF فقط).","customer_billing_address":"عنوان فواتير العميل","customer_shipping_address":"عنوان الشحن للعميل","company_address":"عنوان الشركة","insert_fields":"أضف حقل","contact":"تواصل","address":"العنوان","display_name":"الاسم الظاهر","primary_contact_name":"مسؤول التواصل الرئيسي","email":"البريد الإلكتروني","website":"موقع الإنترنت","name":"الاسم","country":"الدولة","state":"الولاية/المنطقة","city":"المدينة","company_name":"اسم الشركة","address_street_1":"عنوان الشارع 1","address_street_2":"عنوان الشارع 2","phone":"الهاتف","zip_code":"الرمز البريدي","address_setting_updated":"تم تحديث العنوان بنجاح"},"updated_message":"تم تحديث معلومات الشركة بنجاح","invoices":{"title":"الفواتير","notes":"ملاحظات","invoice_prefix":"بادئة رقم الفاتورة","default_invoice_email_body":"نص الفاتورة الافتراضي للبريد الإلكتروني","invoice_settings":"إعدادات الفاتورة","autogenerate_invoice_number":"ترقيم آلي للفاتورة","invoice_setting_description":"تعطيل الترقيم الآلي ، إذا كنت لا ترغب في إنشاء أرقام الفاتورة تلقائيًا في كل مرة تقوم فيها بإنشاء فاتورة جديدة.","enter_invoice_prefix":"أدخل بادئة رقم الفاتورة","terms_and_conditions":"الأحكام والشروط","company_address_format":"تنسيق عنوان الشركة","shipping_address_format":"تنسيق عنوان الشحن","billing_address_format":"تنسيق عنوان الفواتير","invoice_setting_updated":"تم تحديث إعداد الفاتورة بنجاح"},"estimates":{"title":"التقديرات","estimate_prefix":"بادئة رقم التقدير","default_estimate_email_body":"تقدير نص البريد الإلكتروني الافتراضي","estimate_settings":"إعدادت التقدير","autogenerate_estimate_number":"ترقيم آلي للتقدير","estimate_setting_description":"تعطيل الترقيم الآلي ، إذا كنت لا ترغب في إنشاء أرقام التقديرات تلقائيًا في كل مرة تقوم فيها بإنشاء تقدير جديد.","enter_estimate_prefix":"أدخل بادئة رقم التقدير","estimate_setting_updated":"تم تحديث إعدادات التقدير بنجاح","company_address_format":"تنسيق عنوان الشركة","billing_address_format":"تنسيق عنوان الفواتير","shipping_address_format":"تنسيق عنوان الشحن"},"payments":{"title":"المدفوعات","description":"Modes of transaction for payments","payment_prefix":"بادئة رقم الدفعة","default_payment_email_body":"نص البريد الإلكتروني للدفع الافتراضي","payment_settings":"إعدادات الدفعة","autogenerate_payment_number":"ترقيم آلي للمدفوعات","payment_setting_description":"تعطيل الترقيم الآلي ، إذا كنت لا ترغب في إنشاء أرقام الدفعة تلقائيًا في كل مرة تقوم فيها بإنشاء دفعة جديدة.","enter_payment_prefix":"أدخل بادئة رقم الدفعة","payment_setting_updated":"تم تحديث إعدادات الدفعة بنجاح","payment_modes":"طرق الدفع","add_payment_mode":"أضف وضع الدفع","edit_payment_mode":"تحرير وضع الدفع","mode_name":"اسم الوضع","payment_mode_added":"تمت إضافة وضع الدفع","payment_mode_updated":"تم تحديث وضع الدفع","payment_mode_confirm_delete":"لن تتمكن من استعادة وضع الدفع هذا","already_in_use":"وضع الدفع قيد الاستخدام بالفعل","deleted_message":"تم حذف وضع الدفع بنجاح","company_address_format":"تنسيق عنوان الشركة","from_customer_address_format":"من تنسيق عنوان العميل"},"items":{"title":"العناصر","units":"الوحدات","add_item_unit":"إضافة وحدة عنصر","edit_item_unit":"تحرير وحدة العناصر","unit_name":"إسم الوحدة","item_unit_added":"تمت إضافة وحدة العنصر","item_unit_updated":"تم تحديث وحدة العنصر","item_unit_confirm_delete":"لن تتمكن من استرداد وحدة العنصر هذه","already_in_use":"وحدة العنصر قيد الاستخدام بالفعل","deleted_message":"تم حذف وحدة العنصر بنجاح"},"notes":{"title":"ملاحظات","description":"Save time by creating notes and reusing them on your invoices, estimates & payments.","notes":"ملاحظات","type":"نوع","add_note":"اضف ملاحظة","add_new_note":"أضف ملاحظة جديدة","name":"اسم","edit_note":"تحرير مذكرة","note_added":"تمت إضافة الملاحظة","note_updated":"تم تحديث الملاحظة","note_confirm_delete":"لن تتمكن من استعادة هذه الملاحظة","already_in_use":"الملاحظة قيد الاستخدام بالفعل","deleted_message":"تم حذف الملاحظة بنجاح"}},"account_settings":{"profile_picture":"صورة الملف الشخصي","name":"الاسم","email":"البريد الإلكتروني","password":"كلمة المرور","confirm_password":"أعد كتابة كلمة المرور","account_settings":"إعدادات الجساب","save":"حفظ","section_description":"يمكنك تحديث اسمك والبريد الإلكتروني وكلمة المرور باستخدام النموذج أدناه.","updated_message":"تم تحديث إعدادات الحساب بنجاح"},"user_profile":{"name":"الاسم","email":"البريد الإلكتروني","password":"كلمة المرور","confirm_password":"أعد كتابة كلمة المرور"},"notification":{"title":"الإشعارات","email":"إرسال الإشعارات إلى","description":"ما هي إشعارات البريد الإلكتروني التي ترغب في تلقيها عندما يتغير شيء ما؟","invoice_viewed":"تم عرض الفاتورة","invoice_viewed_desc":"عندما يستعرض عميلك الفاتورة المرسلة عبر الشاشة الرئيسية.","estimate_viewed":"تم عرض التقدير","estimate_viewed_desc":"عندما يستعرض عميلك التقدير المرسلة عبر الشاشة الرئيسية.","save":"حفظ","email_save_message":"تم حفظ البريد الإلكتروني بنجاح","please_enter_email":"فضلاً أدخل البريد الإلكتروني"},"tax_types":{"title":"أنواع الضرائب","add_tax":"أضف ضريبة","edit_tax":"تحرير الضريبة","description":"يمكنك إضافة أو إزالة الضرائب كما يحلو لك. النظام يدعم الضرائب على العناصر الفردية وكذلك على الفاتورة.","add_new_tax":"إضافة ضريبة جديدة","tax_settings":"إعدادات الضريبة","tax_per_item":"ضريبة على الصنف","tax_name":"اسم الضريبة","compound_tax":"ضريبة مجمعة","percent":"نسبة مؤوية","action":"إجراء","tax_setting_description":"قم بتمكين هذا إذا كنت تريد إضافة ضرائب لعناصر الفاتورة الفردية. بشكل افتراضي ، تضاف الضرائب مباشرة إلى الفاتورة.","created_message":"تم إنشاء نوع الضريبة بنجاح","updated_message":"تم تحديث نوع الضريبة بنجاح","deleted_message":"تم حذف نوع الضريبة بنجاح","confirm_delete":"لن تتمكن من استرجاع نوع الضرية هذا","already_in_use":"ضريبة قيد الاستخدام"},"expense_category":{"title":"فئات النفقات","action":"إجراء","description":"الفئات مطلوبة لإضافة إدخالات النفقات. يمكنك إضافة أو إزالة هذه الفئات وفقًا لتفضيلاتك.","add_new_category":"إضافة فئة جديدة","add_category":"إضافة فئة","edit_category":"تحرير الفئة","category_name":"اسم الفئة","category_description":"الوصف","created_message":"تم إنشاء نوع النفقات بنجاح","deleted_message":"تم حذف نوع النفقات بنجاح","updated_message":"تم تحديث نوع النفقات بنجاح","confirm_delete":"لن تتمكن من استرجاع نوع النفقات هذا","already_in_use":"نوع قيد الاستخدام"},"preferences":{"currency":"العملة","default_language":"اللغة الافتراضية","time_zone":"المنطة الزمنية","fiscal_year":"السنة المالية","date_format":"صيغة التاريخ","discount_setting":"إعدادات الخصم","discount_per_item":"خصم على الصنف ","discount_setting_description":"قم بتمكين هذا إذا كنت تريد إضافة خصم إلى عناصر الفاتورة الفردية. بشكل افتراضي ، يتم إضافة الخصم مباشرة إلى الفاتورة.","save":"حفظ","preference":"تفضيل | تفضيلات","general_settings":"التفضيلات الافتراضية للنظام.","updated_message":"تم تحديث التفضيلات بنجاح","select_language":"اختر اللغة","select_time_zone":"اختر المنطة الزمنية","select_date_format":"Select Date Format","select_financial_year":"اختر السنة المالية"},"update_app":{"title":"تحديث النظام","description":"يمكنك تحديث النظام بسهولة عن طريق البحث عن تحديث جديد بالنقر فوق الزر أدناه","check_update":"تحقق من التحديثات","avail_update":"تحديث جديد متوفر","next_version":"النسخة الجديدة","requirements":"Requirements","update":"حدث الآن","update_progress":"قيد التحديث...","progress_text":"سوف يستغرق التحديث بضع دقائق. يرجى عدم تحديث الشاشة أو إغلاق النافذة قبل انتهاء التحديث","update_success":"تم تحديث النظام! يرجى الانتظار حتى يتم إعادة تحميل نافذة المتصفح تلقائيًا.","latest_message":"لا يوجد تحديثات متوفرة! لديك حالياً أحدث نسخة.","current_version":"النسخة الحالية","download_zip_file":"تنزيل ملف ZIP","unzipping_package":"حزمة فك الضغط","copying_files":"نسخ الملفات","running_migrations":"إدارة عمليات الترحيل","finishing_update":"تحديث التشطيب","update_failed":"فشل التحديث","update_failed_text":"آسف! فشل التحديث الخاص بك في: {step} خطوة"},"backup":{"title":"النسخ الاحتياطي | النسخ الاحتياطية","description":"النسخة الاحتياطية هي ملف مضغوط يحتوي على جميع الملفات في الدلائل التي تحددها مع تفريغ قاعدة البيانات الخاصة بك","new_backup":"إضافة نسخة احتياطية جديدة","create_backup":"انشئ نسخة احتياطية","select_backup_type":"حدد نوع النسخ الاحتياطي","backup_confirm_delete":"لن تتمكن من استعادة هذه النسخة الاحتياطية","path":"مسار","new_disk":"قرص جديد","created_at":"أنشئت في","size":"size","dropbox":"بصندوق الإسقاط","local":"محلي","healthy":"صحي","amount_of_backups":"كمية النسخ الاحتياطية","newest_backups":"أحدث النسخ الاحتياطية","used_storage":"التخزين المستخدم","select_disk":"حدد القرص","action":"عمل","deleted_message":"تم حذف النسخة الاحتياطية بنجاح","created_message":"Backup created successfully","invalid_disk_credentials":"بيانات اعتماد غير صالحة للقرص المحدد"},"disk":{"title":"قرص الملفات | أقراص الملفات","description":"بشكل افتراضي ، ستستخدم Crater القرص المحلي لحفظ النسخ الاحتياطية والأفاتار وملفات الصور الأخرى. يمكنك تكوين أكثر من برامج تشغيل قرص مثل DigitalOcean و S3 و Dropbox وفقًا لتفضيلاتك.","created_at":"أنشئت في","dropbox":"بصندوق الإسقاط","name":"اسم","driver":"سائق","disk_type":"نوع","disk_name":"اسم القرص","new_disk":"إضافة قرص جديد","filesystem_driver":"برنامج تشغيل نظام الملفات","local_driver":"سائق محلي","local_root":"الجذر المحلي","public_driver":"سائق عام","public_root":"الجذر العام","public_url":"URL العام","public_visibility":"الرؤية العامة","media_driver":"سائق وسائط","media_root":"جذر الوسائط","aws_driver":"برنامج تشغيل AWS","aws_key":"مفتاح AWS","aws_secret":"AWS Secret","aws_region":"منطقة AWS","aws_bucket":"حاوية AWS","aws_root":"AWS الجذر","do_spaces_type":"هل نوع المساحات","do_spaces_key":"مفتاح Do Spaces","do_spaces_secret":"هل المساحات سرية","do_spaces_region":"هل منطقة المساحات","do_spaces_bucket":"هل دلو المساحات","do_spaces_endpoint":"قم بعمل نقطة نهاية للمسافات","do_spaces_root":"عمل الجذر للمسافات","dropbox_type":"نوع Dropbox","dropbox_token":"رمز Dropbox","dropbox_key":"مفتاح Dropbox","dropbox_secret":"Dropbox Secret","dropbox_app":"تطبيق Dropbox","dropbox_root":"جذر Dropbox","default_driver":"برنامج التشغيل الافتراضي","is_default":"أمر افتراضي","set_default_disk":"تعيين القرص الافتراضي","success_set_default_disk":"Disk set as default successfully","save_pdf_to_disk":"حفظ ملفات PDF على القرص","disk_setting_description":"قم بتمكين هذا ، إذا كنت ترغب في حفظ نسخة من كل فاتورة ، تقدير وإيصال دفع PDF على القرص الافتراضي الخاص بك تلقائيًا. سيؤدي تشغيل هذا الخيار إلى تقليل وقت التحميل عند عرض ملفات PDF.","select_disk":"حدد القرص","disk_settings":"إعدادات القرص","confirm_delete":"Your existing files & folders in the specified disk will not be affected but your disk configuration will be deleted from Crater","action":"عمل","edit_file_disk":"Edit File Disk","success_create":"تمت إضافة القرص بنجاح","success_update":"Disk updated successfully","error":"فشل إضافة القرص","deleted_message":"File Disk deleted successfully","disk_variables_save_successfully":"تم تكوين القرص بنجاح","disk_variables_save_error":"فشل تكوين القرص.","invalid_disk_credentials":"بيانات اعتماد غير صالحة للقرص المحدد"}},"wizard":{"account_info":"معلومات الحساب","account_info_desc":"سيتم استخدام التفاصيل أدناه لإنشاء حساب المسؤول الرئيسي. كما يمكنك تغيير التفاصيل في أي وقت بعد تسجيل الدخول.","name":"الاسم","email":"البريد الإلكتروني","password":"كلمة المرور","confirm_password":"أعد كتابة كلمة المرور","save_cont":"حفظ واستمرار","company_info":"معلومات الشركة","company_info_desc":"سيتم عرض هذه المعلومات على الفواتير. لاحظ أنه يمكنك تعديل هذا لاحقًا في صفحة الإعدادات.","company_name":"اسم الشركة","company_logo":"شعار الشركة","logo_preview":"استعراض الشعار","preferences":"التفضيلات","preferences_desc":"التفضيلات الافتراضية للنظام","country":"الدولة","state":"الولاية/المنطقة","city":"المدينة","address":"العنوان","street":"العنوان 1 | العنوان 2","phone":"الهاتف","zip_code":"الرمز البريدي","go_back":"للخلف","currency":"العملة","language":"اللغة","time_zone":"المنطة الزمنية","fiscal_year":"السنة المالية","date_format":"صيغة التاريخ","from_address":"من العنوان","username":"اسم المستخدم","next":"التالي","continue":"استمرار","skip":"تخطي","database":{"database":"عنوان قاعدة البيانات","connection":"اتصال قاعدة البيانات","host":"خادم قاعدة البيانات","port":"منفذ قاعدة البيانات","password":"كلمة مرور قاعدة البيانات","app_url":"عنوان الإنترنت للنظام","app_domain":"App Domain","username":"اسم المستخدم لقاعدة البيانات","db_name":"سم قاعدة البيانات","db_path":"Database Path","desc":"قم بإنشاء قاعدة بيانات على الخادم الخاص بك وتعيين بيانات الاعتماد باستخدام النموذج أدناه."},"permissions":{"permissions":"الأذونات","permission_confirm_title":"هل أنت متأكد من الاستمرار؟","permission_confirm_desc":"فشل فحص أذونات المجلد","permission_desc":"فيما يلي قائمة أذونات المجلد المطلوبة حتى يعمل التطبيق. في حالة فشل فحص الإذن ، تأكد من تحديث أذونات المجلد."},"mail":{"host":"خادم البريد","port":"منفذ البريد","driver":"مشغل البريد","secret":"سري","mailgun_secret":"الرمز السري لـ Mailgun","mailgun_domain":"المجال","mailgun_endpoint":"النهاية الطرفية لـ Mailgun","ses_secret":"SES الرمز السري","ses_key":"SES مفتاح","password":"كلمة مرور البريد الالكتروني","username":"اسم المستخدم للبريد الإلكتروني","mail_config":"إعدادات البريد الالكتروني","from_name":"اسم المرسل","from_mail":"عنوان البريد الالكتروني للمرسل","encryption":"صيغة ا لتشفير","mail_config_desc":"أدناه هو نموذج لتكوين برنامج تشغيل البريد الإلكتروني لإرسال رسائل البريد الإلكتروني من التطبيق. يمكنك أيضًا تهيئة موفري الجهات الخارجية مثل Sendgrid و SES إلخ."},"req":{"system_req":"متطلبات النظام","php_req_version":"Php (النسخة المطلوبة {version} بحد أدنى)","check_req":"فحص متطلبات النظام","system_req_desc":"يحتوي النظام على بعض متطلبات الخادم. تأكد من أن خادمك لديه نسخة php المطلوبة وجميع الامتدادات المذكورة أدناه."},"errors":{"migrate_failed":"فشل إنشاء الجداول","database_variables_save_error":"غير قادر على الاتصال بقاعدة البيانات باستخدام القيم المقدمة.","mail_variables_save_error":"فشل تكوين البريد الإلكتروني.","connection_failed":"فشل اتصال قاعدة البيانات","database_should_be_empty":"يجب أن تكون قاعدة البيانات فارغة"},"success":{"mail_variables_save_successfully":"تم تكوين البريد الإلكتروني بنجاح","database_variables_save_successfully":"تم تكوين قاعدة البيانات بنجاح."}},"layout_login":{"copyright_crater":"حقوق الطبع والنشر @ كريتر - 2020","super_simple_invoicing":"فوترة سهلة ومبسطة للغاية","for_freelancer":"للمبرمجين المستقلين","small_businesses":"والأعال الصغيرة ","crater_help":"كريتر يساعدك على تتبع النفقات وتسجيل المدفوعات وإنشاء","invoices_and_estimates":"الفواتير والتقديرات مع إمكانية اختيار قوالب متعددة."},"validation":{"invalid_phone":"رقم الهاتف غير صحيح","invalid_url":"عنوان انترنت غير صحيح (مثال: http://www.crater.com)","invalid_domain_url":"عنوان انترنت غير صحيح (مثال: crater.com)","required":"حقل مطلوب","email_incorrect":"بريد الكتروني غير صحيح.","email_already_taken":"هذا البريد الالكتروني مستخدم مسبقاً","email_does_not_exist":"لا يوجد كستخدم بهذا البريد الالكتروني","item_unit_already_taken":"وحدة البند قد اتخذت بالفعل","payment_mode_already_taken":"لقد تم بالفعل أخذ طريقة الدفع","send_reset_link":"أرسال رابط استعادة كلمة المرور","not_yet":"ليس بعد؟ أعد الإرسال الآن..","password_min_length":"كلمة المرور يجب أن تتكون من {count} أحرف على الأقل","name_min_length":"الاسم يجب أن يتكون من {count} أحرف على الأقل","enter_valid_tax_rate":"أدخل معدل الضريبة بشكل صحيح","numbers_only":"أرقام فقط.","characters_only":"حروف فقط.","password_incorrect":"يجب أن تكون كلمات المرور متطابقة","password_length":"يجب أن تكون كلمة المرور بطول {count} حرف.","qty_must_greater_than_zero":"الكمية يجب أن تكون أكبر من صفر.","price_greater_than_zero":"السعر يجب أن يكون أكبر من صفر.","payment_greater_than_zero":"الدفعة يجب أن تكون أكبر من صفر.","payment_greater_than_due_amount":"مبلغ الدفعة أكثر من المبلغ المستحق لهذه الفاتورة.","quantity_maxlength":"يجب ألا تزيد الكمية عن 20 رقماً.","price_maxlength":"يجب ألا يزيد السعر عن 20 رقماً.","price_minvalue":"يجب أن يكون السعر أكبر من صفر.","amount_maxlength":"يجب ألا يزيد المبلغ عن 20 رقماً.","amount_minvalue":"يجب أن يكون المبلغ أكبر من صفر.","description_maxlength":"يجب ألا يزيد الوصف عن 255 حرفاً.","subject_maxlength":"Subject should not be greater than 100 characters.","message_maxlength":"Message should not be greater than 255 characters.","maximum_options_error":"الحد الأعلى هو {max} خيارات. قم بإزالة أحد الخيارات لتحديد خيار آخر.","notes_maxlength":"يجب ألا يزيد حجم الملاحظات عن 255 حرفاً.","address_maxlength":"يجب ألا يزيد العنوان عن 255 حرفاً.","ref_number_maxlength":"يجب ألا يزيد الرقم المرجعي عن 255 حرفاً.","prefix_maxlength":"يجب ألا تزيد البادئة عن 5 أحرف.","something_went_wrong":"خطأ غير معروف!"},"pdf_estimate_label":"تقدير","pdf_estimate_number":"رقم تقدير","pdf_estimate_date":"تاريخ التقدير","pdf_estimate_expire_date":"Expiry date","pdf_invoice_label":"الفاتورة","pdf_invoice_number":"رقم الفاتورة","pdf_invoice_date":"تاريخ الفاتورة","pdf_invoice_due_date":"Due date","pdf_notes":"ملاحظات","pdf_items_label":"الأصناف","pdf_quantity_label":"الكمية","pdf_price_label":"السعر","pdf_discount_label":"الخصم","pdf_amount_label":"المبلغ المطلوب","pdf_subtotal":"Subtotal","pdf_total":"الإجمالي","pdf_payment_receipt_label":"PAYMENT RECEIPT","pdf_payment_date":"Payment Date","pdf_payment_number":"رقم الدفعة","pdf_payment_mode":"نوع الدفعة","pdf_payment_amount_received_label":"Amount Received","pdf_expense_report_label":"EXPENSES REPORT","pdf_total_expenses_label":"TOTAL EXPENSE","pdf_profit_loss_label":"PROFIT & LOSS REPORT","pdf_income_label":"INCOME","pdf_net_profit_label":"NET PROFIT","pdf_customer_sales_report":"Sales Report: By Customer","pdf_total_sales_label":"TOTAL SALES","pdf_item_sales_label":"Sales Report: By Item","pdf_tax_report_label":"TAX REPORT","pdf_total_tax_label":"TOTAL TAX","pdf_tax_types_label":"أنواع الضرائب","pdf_expenses_label":"النفقات","pdf_bill_to":"مطلوب من,","pdf_ship_to":"يشحن إلى,","pdf_received_from":"Received from:"}'),oe=JSON.parse('{"navigation":{"dashboard":"Übersicht","customers":"Kunden","items":"Artikel","invoices":"Rechnungen","expenses":"Kosten","estimates":"Kostenvoranschläge","payments":"Zahlungen","reports":"Berichte","settings":"Einstellungen","logout":"Abmelden","users":"Benutzer"},"general":{"add_company":"Unternehmen hinzufügen","view_pdf":"PDF anzeigen","copy_pdf_url":"PDF-Link kopieren","download_pdf":"PDF herunterladen","save":"Speichern","create":"Erstellen","cancel":"Abbrechen","update":"Aktualisieren","deselect":"Abwählen","download":"Herunterladen","from_date":"Von Datum","to_date":"bis Datum","from":"Von","to":"bis","sort_by":"Sortieren nach","ascending":"Aufsteigend","descending":"Absteigend","subject":"Betreff","body":"Inhalt","message":"Nachricht","send":"Absenden","go_back":"zurück","back_to_login":"Zurück zum Login?","home":"Startseite","filter":"Filter","delete":"Löschen","edit":"Bearbeiten","view":"Anzeigen","add_new_item":"Artikel hinzufügen","clear_all":"Alle entfernen","showing":"Anzeigen","of":"von","actions":"Aktionen","subtotal":"ZWISCHENSUMME","discount":"RABATT","fixed":"Festsatz","percentage":"Prozentsatz","tax":"Steuer","total_amount":"GESAMTSUMME","bill_to":"Rechnungsempfänger","ship_to":"Versand ein","due":"Fällig","draft":"Entwurf","sent":"Gesendet","all":"Alle","select_all":"Alle auswählen","choose_file":"Klicken Sie hier, um eine Datei auszuwählen","choose_template":"Wählen Sie eine Vorlage","choose":"Wählen","remove":"Entfernen","powered_by":"Betrieben durch","bytefury":"Bytefury","select_a_status":"Status wählen","select_a_tax":"Steuersatz wählen","search":"Suchen","are_you_sure":"Sind Sie sicher?","list_is_empty":"Liste ist leer.","no_tax_found":"Kein Steuersatz gefunden!","four_zero_four":"Vier hundert vier","you_got_lost":"Hoppla! Du hast dich verirrt!","go_home":"Geh zurück","test_mail_conf":"E-Mail Konfiguration testen","send_mail_successfully":"E-Mail versendet erfolgreich","setting_updated":"Einstellungen erfolgreich aktualisiert","select_state":"Bundesland wählen","select_country":"Land wählen","select_city":"Stadt wählen","street_1":"Straße","street_2":"Zusatz Strasse","action_failed":"Aktion fehlgeschlagen","retry":"Wiederholen","choose_note":"Notiz auswählen","no_note_found":"Keine Notizen gefunden","insert_note":"Notiz einfügen"},"dashboard":{"select_year":"Jahr wählen","cards":{"due_amount":"Offene Beträge","customers":"Kunden","invoices":"Rechnungen","estimates":"Kostenvoranschläge"},"chart_info":{"total_sales":"Aufträge gesamt","total_receipts":"Zahlungen gesamt","total_expense":"Kosten gesamt","net_income":"Einnahmen Netto","year":"Jahr"},"weekly_invoices":{"title":"Wöchentliche Rechnungen"},"monthly_chart":{"title":"Umsatz & Kosten"},"recent_invoices_card":{"title":"Fällige Rechnungen","due_on":"Fällig am","customer":"Kunden","amount_due":"Offener Betrag","actions":"Aktionen","view_all":"Alle Anzeigen"},"recent_estimate_card":{"title":"Aktuelle Kostenvoranschläge","date":"Datum","customer":"Kunden","amount_due":"Betrag","actions":"Aktionen","view_all":"Alle Anzeigen"}},"tax_types":{"name":"Name","description":"Beschreibung","percent":"Prozent","compound_tax":"zusammengesetzte Steuer"},"global_search":{"search":"Suchen...","customers":"Kunden","users":"Benutzer","no_results_found":"Keine Ergebnisse gefunden"},"customers":{"title":"Kunden","add_customer":"Kunde hinzufügen","contacts_list":"Kunden-Liste","name":"Name","mail":"E-Mail| E-Mails","statement":"Stellungnahme","display_name":"Anzeige Name","primary_contact_name":"Ansprechpartner","contact_name":"Kontakt Name","amount_due":"Offener Betrag","email":"E-Mail","address":"Adresse","phone":"Telefon","website":"Webseite","overview":"Übersicht","enable_portal":"Kunden-Portal aktivieren","country":"Land","state":"Bundesland","city":"Stadt","zip_code":"PLZ","added_on":"Hinzugefügt am","action":"Aktion","password":"Passwort","street_number":"Hausnummer","primary_currency":"Primäre Währung","description":"Beschreibung","add_new_customer":"Neuen Kunden hinzufügen","save_customer":"Kunde speichern","update_customer":"Kunden ändern","customer":"Kunde | Kunden","new_customer":"Neuer Kunde","edit_customer":"Kunde bearbeiten","basic_info":"Basisinformation","billing_address":"Rechnungsadresse","shipping_address":"Versand-Adresse","copy_billing_address":"Rechnungsadresse kopieren","no_customers":"Noch keine Kunden!","no_customers_found":"Keine Kunden gefunden!","list_of_customers":"Dieser Abschnitt enthält die Liste der Kunden.","primary_display_name":"Primärer Anzeige Name","select_currency":"Währung wählen","select_a_customer":"Wählen Sie einen Kunden","type_or_click":"Eingeben oder anklicken zum auswählen","new_transaction":"Neue Transaktion","no_matching_customers":"Es gibt keine passenden Kunden!","phone_number":"Telefonnummer","create_date":"Erstellungsdatum","confirm_delete":"Sie können diesen Kunden und alle zugehörigen Rechnungen, Schätzungen und Zahlungen nicht wiederherstellen. | Sie können diesen Kunden und alle zugehörigen Rechnungen, Schätzungen und Zahlungen nicht wiederherstellen.","created_message":"Benutzer erfolgreich erstellt","updated_message":"Kunde erfolgreich aktualisiert","deleted_message":"Kunden erfolgreich gelöscht | Kunden erfolgreich gelöscht"},"items":{"title":"Artikel","items_list":"Artikel-Liste","name":"Name","unit":"Einheit","description":"Beschreibung","added_on":"Hinzugefügt am","price":"Preis","date_of_creation":"Erstellt am","action":"Aktion","add_item":"Artikel hinzufügen","save_item":"Artikel speichern","update_item":"Artikel ändern","item":"Artikel | Artikel","add_new_item":"Neuen Artikel hinzufügen","new_item":"Neuer Artikel","edit_item":"Artikel bearbeiten","no_items":"Keine Artikel vorhanden!","list_of_items":"Dieser Abschnitt enthält die Liste der Artikel.","select_a_unit":"wählen Sie die Einheit","taxes":"Steuern","item_attached_message":"Ein Artikel der bereits verwendet wird kann nicht gelöscht werden","confirm_delete":"Sie können diesen Artikel nicht wiederherstellen | Sie können diese Artikel nicht wiederherstellen","created_message":"Artikel erfolgreich erstellt","updated_message":"Artikel erfolgreich aktualisiert","deleted_message":"Artikel erfolgreich gelöscht | Artikel erfolgreich gelöscht"},"estimates":{"title":"Kostenvoranschläge","estimate":"Kostenvoranschlag | Kostenvoranschläge","estimates_list":"Liste Kostenvoranschläge","days":"{days} Tage","months":"{months} Monat","years":"{years} Jahre","all":"Alle","paid":"Bezahlt","unpaid":"Unbezahlte","customer":"KUNDEN","ref_no":"REF. - NR.","number":"ANZAHL","amount_due":"OFFENER BETRAG","partially_paid":"Teilweise bezahlt","total":"Gesamt","discount":"Rabatt","sub_total":"Zwischensumme","estimate_number":"Kostenvoran. Nummer","ref_number":"Ref-Nummer","contact":"Kontakt","add_item":"Fügen Sie ein Artikel hinzu","date":"Datum","due_date":"Fälligkeit","expiry_date":"Zahlungsziel","status":"Status","add_tax":"Steuer hinzufügen","amount":"Summe","action":"Aktion","notes":"Hinweise","tax":"Steuer","estimate_template":"Vorlage","convert_to_invoice":"Konvertieren in Rechnung","mark_as_sent":"Als gesendet markieren","send_estimate":"Kostenvoranschlag senden","resend_estimate":"Kostenvoranschlag erneut senden","record_payment":"Zahlung erfassen","add_estimate":"Kostenvoranschlag hinzufügen","save_estimate":"Kostenvoranschlag speichern","confirm_conversion":"Sie möchten, konvertieren Sie diese Schätzung in die Rechnung?","conversion_message":"Rechnung erfolgreich erstellt","confirm_send_estimate":"Der Kostenvoranschlag wird per E-Mail an den Kunden gesendet","confirm_mark_as_sent":"Dieser Kostenvoranschlag wird als gesendet markiert","confirm_mark_as_accepted":"Dieser Kostenvoranschlag wird als angenommen markiert","confirm_mark_as_rejected":"Dieser Kostenvoranschlag wird als abgelehnt markiert","no_matching_estimates":"Es gibt keine übereinstimmenden Kostenvoranschläge!","mark_as_sent_successfully":"Kostenvoranschlag als gesendet markiert.","send_estimate_successfully":"Kostenvoranschlag erfolgreich gesendet","errors":{"required":"Feld ist erforderlich"},"accepted":"Angenommen","sent":"Gesendet","draft":"Entwurf","declined":"Abgelehnt","new_estimate":"Neuer Kostenvoranschlag","add_new_estimate":"Neuen Kostenvoranschlag hinzufügen","update_Estimate":"Kostenvoranschlag aktualisieren","edit_estimate":"Kostenvoranschlag ändern","items":"Artikel","Estimate":"Kostenvoranschlag | Kostenvoranschläge","add_new_tax":"neuen Steuersatz hinzufügen","no_estimates":"Keine Kostenvoranschläge vorhanden!","list_of_estimates":"Dieser Abschnitt enthält die Liste der Kostenvoranschläge.","mark_as_rejected":"Markiert als abgelehnt","mark_as_accepted":"Markiert als angenommen","marked_as_accepted_message":"Kostenvoranschlag als angenommen markiert","marked_as_rejected_message":"Kostenvoranschlag als abgelehnt markiert","confirm_delete":"Der Kostenvoranschlag kann nicht wiederhergestellt werden | Die Kostenvoranschläge können nicht wiederhergestellt werden","created_message":"Kostenvoranschlag erfolgreich erstellt","updated_message":"Kostenvoranschlag erfolgreich aktualisiert","deleted_message":"Kostenvoranschlag erfolgreich gelöscht | Kostenvoranschläge erfolgreich gelöscht","user_email_does_not_exist":"Benutzer-E-Mail nicht vorhanden","something_went_wrong":"Da ging etwas schief","item":{"title":"Titel","description":"Beschreibung","quantity":"Menge","price":"Preis","discount":"Rabatt","total":"Gesamt","total_discount":"Rabatt Gesamt","sub_total":"Zwischensumme","tax":"Steuer","amount":"Summe","select_an_item":"Wählen Sie einen Artikel","type_item_description":"Artikel Beschreibung (optional)"}},"invoices":{"title":"Rechnungen","invoices_list":"Liste der Rechnungen","days":"{days} Tage","months":"{months} Monat","years":"{years} Jahre","all":"Alle","paid":"Bezahlt","unpaid":"Unbezahlte","customer":"KUNDEN","paid_status":"BEZAHLT-STATUS","ref_no":"REF. - NR.","number":"ANZAHL","amount_due":"OFFENER BETRAG","partially_paid":"Teilzahlung","total":"Gesamt","discount":"Rabatt","sub_total":"Zwischensumme","invoice":"Rechnung | Rechnungen","invoice_number":"Rechnungsnummer","ref_number":"Ref-Nummer","contact":"Kontakt","add_item":"Fügen Sie ein Artikel hinzu","date":"Datum","due_date":"Fälligkeit","status":"Status","add_tax":"Steuersatz hinzufügen","amount":"Summe","action":"Aktion","notes":"Hinweise","view":"Anzeigen","send_invoice":"Rechnung senden","resend_invoice":"Rechnung erneut senden","invoice_template":"Rechnungs-Vorlage","template":"Vorlage","mark_as_sent":"Als gesendet markieren","confirm_send_invoice":"Diese Rechnung wird per E-Mail an den Kunden gesendet","invoice_mark_as_sent":"Diese Rechnung wird als gesendet markiert","confirm_send":"Diese Rechnung wird per E-Mail an den Kunden gesendet","invoice_date":"Rechnungsdatum","record_payment":"Zahlung erfassen","add_new_invoice":"Neue Rechnung hinzufügen","update_expense":"Kosten aktualisieren","edit_invoice":"Rechnung bearbeiten","new_invoice":"Neue Rechnung","save_invoice":"Rechnung speichern","update_invoice":"Rechnung ändern","add_new_tax":"Neuen Steuersatz hinzufügen","no_invoices":"Keine Rechnungen vorhanden!","list_of_invoices":"Dieser Abschnitt enthält die Liste der Rechnungen.","select_invoice":"Wählen Sie eine Rechnung","no_matching_invoices":"Es gibt keine entsprechenden Rechnungen!","mark_as_sent_successfully":"Rechnung gekennzeichnet als erfolgreich gesendet","send_invoice_successfully":"Rechnung erfolgreich versendet","cloned_successfully":"Rechnung erfolgreich kopiert","clone_invoice":"Rechnung kopieren","confirm_clone":"Diese Rechnung wird kopiert","item":{"title":"Titel","description":"Beschreibung","quantity":"Menge","price":"Preis","discount":"Rabatt","total":"Gesamt","total_discount":"Rabatt Gesamt","sub_total":"Zwischensumme","tax":"Steuer","amount":"Summe","select_an_item":"Geben Sie oder wählen Sie ein Artikel","type_item_description":"Artikel Beschreibung (optional)"},"payment_attached_message":"Einer der ausgewählten Rechnungen ist bereits eine Zahlung zugeordnet. Stellen Sie sicher, dass Sie zuerst die angehängten Zahlungen löschen, um mit dem Entfernen fortzufahren","confirm_delete":"Sie können diese Rechnung nicht wiederherstellen. | Sie können diese Rechnungen nicht wiederherstellen.","created_message":"Rechnung erfolgreich erstellt","updated_message":"Rechnung erfolgreich aktualisiert","deleted_message":"Rechnung erfolgreich gelöscht | Rechnungen erfolgreich gelöscht","marked_as_sent_message":"Rechnung als erfolgreich gesendet markiert","user_email_does_not_exist":"Benutzer-E-Mail existiert nicht","something_went_wrong":"Da ist etwas schief gelaufen","invalid_due_amount_message":"Der Gesamtrechnungsbetrag darf nicht kleiner sein als der für diese Rechnung bezahlte Gesamtbetrag. Bitte aktualisieren Sie die Rechnung oder löschen Sie die zugehörigen Zahlungen um fortzufahren."},"credit_notes":{"title":"Gutschriften","credit_notes_list":"Gutschriften-Liste","credit_notes":"Gutschriften","contact":"Kontakt","date":"Datum","amount":"Summe","action":"Aktion","credit_number":"Kreditkarten-Nummer","notes":"Hinweise","confirm_delete":"Wollen Sie diese Gutschrift löschen?","item":{"title":"Titel","description":"Beschreibung","quantity":"Menge","price":"Preis","discount":"Rabatt","total":"Gesamt","total_discount":"Rabatt Gesamt","sub_total":"Zwischensumme","tax":"Steuer"}},"payments":{"title":"Zahlungen","payments_list":"Liste der Zahlungen","record_payment":"Zahlung eintragen","customer":"Kunden","date":"Datum","amount":"Summe","action":"Aktion","payment_number":"Zahlungsnummer","payment_mode":"Zahlungsart","invoice":"Rechnung","note":"Hinweis","add_payment":"Zahlung hinzufügen","new_payment":"Neue Zahlung","edit_payment":"Zahlung bearbeiten","view_payment":"Zahlung anzeigen","add_new_payment":"Neue Zahlung hinzufügen","send_payment_receipt":"Zahlungsbeleg senden","send_payment":"Senden Sie die Zahlung","save_payment":"Zahlung speichern","update_payment":"Zahlung ändern","payment":"Zahlung | Zahlungen","no_payments":"Keine Zahlungen vorhanden!","no_matching_payments":"Es gibt keine passenden Zahlungen!","list_of_payments":"Dieser Abschnitt enthält die Liste der Zahlungen.","select_payment_mode":"Wählen Sie den Zahlungsmodus","confirm_mark_as_sent":"Dieser Kostenvoranschlag wird als gesendet markiert","confirm_send_payment":"Diese Zahlung wird per E-Mail an den Kunden gesendet","send_payment_successfully":"Zahlung erfolgreich gesendet","user_email_does_not_exist":"Benutzer-E-Mail existiert nicht","something_went_wrong":"Da ist etwas schief gelaufen","confirm_delete":"Sie können diese Zahlung nicht wiederherstellen. | Sie können diese Zahlungen nicht wiederherstellen.","created_message":"Zahlung erfolgreich erstellt","updated_message":"Zahlung erfolgreich aktualisiert","deleted_message":"Zahlung erfolgreich gelöscht | Zahlungen erfolgreich gelöscht","invalid_amount_message":"Zahlungsbetrag ist ungültig"},"expenses":{"title":"Aufwendungen/Ausgaben","expenses_list":"Liste der Ausgaben","select_a_customer":"Wählen Sie einen Kunden","expense_title":"Titel","customer":"Kundin","contact":"Kontakt","category":"Kategorie","from_date":"Von Datum","to_date":"bis Datum","expense_date":"Datum","description":"Beschreibung","receipt":"Eingang","amount":"Summe","action":"Aktion","note":"Hinweis","category_id":"Kategorie-Id","date":"Aufwandsdatum","add_expense":"Aufwendung hinzufügen","add_new_expense":"Neue Aufwendung hinzufügen","save_expense":"Aufwendung speichern","update_expense":"Aufwendung aktualisieren","download_receipt":"Quittung herunterladen","edit_expense":"Aufwendung ändern","new_expense":"Neue Aufwendung","expense":"Aufwendung | Aufwendungen","no_expenses":"Noch keine Ausgaben!","list_of_expenses":"Dieser Abschnitt enthält die Liste der Ausgaben.","confirm_delete":"Sie können diese Ausgabe nicht wiederherstellen. | Sie können diese Ausgaben nicht wiederherstellen.","created_message":"Aufwand erfolgreich erstellt","updated_message":"Aufwand erfolgreich aktualisiert","deleted_message":"Aufwand erfolgreich gelöscht | Aufwand erfolgreich gelöscht","categories":{"categories_list":"Liste der Kategorien","title":"Titel","name":"Name","description":"Beschreibung","amount":"Summe","actions":"Aktionen","add_category":"Kategorie hinzufügen","new_category":"Neue Kategorie","category":"Kategorie | Kategorien","select_a_category":"Wählen Sie eine Kategorie"}},"login":{"email":"E-Mail","password":"Passwort","forgot_password":"Passwort vergessen?","or_signIn_with":"oder Anmelden mit","login":"Anmelden","register":"Registrieren","reset_password":"Passwort zurücksetzen","password_reset_successfully":"Passwort erfolgreich zurückgesetzt","enter_email":"Geben Sie Ihre E-Mail ein","enter_password":"Geben Sie das Passwort ein","retype_password":"Passwort bestätigen","login_placeholder":"mail@beispiel.de"},"users":{"title":"Benutzer","users_list":"Benutzerliste","name":"Name","description":"Beschreibung","added_on":"Hinzugefügt am","date_of_creation":"Erstellt am","action":"Aktion","add_user":"Benutzer hinzufügen","save_user":"Benutzer speichern","update_user":"Benutzer aktualisieren","user":"Benutzer","add_new_user":"Neuen Benutzer hinzufügen","new_user":"Neuer Benutzer","edit_user":"Benutzer bearbeiten","no_users":"Noch keine Benutzer!","list_of_users":"Dieser Abschnitt enthält die Liste der Benutzer.","email":"E-Mail","phone":"Telefon","password":"Passwort","user_attached_message":"Ein Artikel der bereits verwendet wird kann nicht gelöscht werden","confirm_delete":"Sie werden diesen Benutzer nicht wiederherstellen können | Sie werden nicht in der Lage sein, diese Benutzer wiederherzustellen","created_message":"Benutzer erfolgreich erstellt","updated_message":"Benutzer wurde erfolgreich aktualisiert","deleted_message":"Benutzer erfolgreich gelöscht | Benutzer erfolgreich gelöscht"},"reports":{"title":"Bericht","from_date":"Ab Datum","to_date":"bis Datum","status":"Status","paid":"Bezahlt","unpaid":"Unbezahlt","download_pdf":"PDF herunterladen","view_pdf":"PDF anzeigen","update_report":"Bericht aktualisieren","report":"Bericht | Berichte","profit_loss":{"profit_loss":"Gewinn & Verlust","to_date":"bis Datum","from_date":"Ab Datum","date_range":"Datumsbereich auswählen"},"sales":{"sales":"Umsatz","date_range":"Datumsbereich auswählen","to_date":"bis Datum","from_date":"Ab Datum","report_type":"Berichtstyp"},"taxes":{"taxes":"Steuern","to_date":"bis Datum","from_date":"Ab Datum","date_range":"Datumsbereich auswählen"},"errors":{"required":"Feld ist erforderlich"},"invoices":{"invoice":"Rechnung","invoice_date":"Rechnungsdatum","due_date":"Fälligkeit","amount":"Summe","contact_name":"Ansprechpartner","status":"Status"},"estimates":{"estimate":"Kostenvoranschlag","estimate_date":"Datum Kostenvoranschlag","due_date":"Fälligkeit","estimate_number":"Kostenvoranschlag-Nr.","ref_number":"Ref-Nummer","amount":"Summe","contact_name":"Ansprechpartner","status":"Status"},"expenses":{"expenses":"Aufwendungen","category":"Kategorie","date":"Datum","amount":"Summe","to_date":"bis Datum","from_date":"Ab Datum","date_range":"Datumsbereich auswählen"}},"settings":{"menu_title":{"account_settings":"Konto-Einstellungen","company_information":"Informationen zum Unternehmen","customization":"Anpassung","preferences":"Einstellungen","notifications":"Benachrichtigungen","tax_types":"Steuersätze","expense_category":"Ausgabenkategorien","update_app":"Applikation aktualisieren","backup":"Sicherung","file_disk":"Dateispeicher","custom_fields":"Benutzerdefinierte Felder","payment_modes":"Zahlungsarten","notes":"Hinweise"},"title":"Einstellungen","setting":"Einstellung | Einstellungen","general":"Allgemeine","language":"Sprache","primary_currency":"Primäre Währung","timezone":"Zeitzone","date_format":"Datum-Format","currencies":{"title":"Währungen","currency":"Währung | Währungen","currencies_list":"Währungen Liste","select_currency":"Währung wählen","name":"Name","code":"Code","symbol":"Symbol","precision":"Präzision","thousand_separator":"Tausendertrennzeichen","decimal_separator":"Dezimal-Trennzeichen","position":"Position","position_of_symbol":"Position des Währungssymbol","right":"Rechts","left":"Links","action":"Aktion","add_currency":"Währung einfügen"},"mail":{"host":"E-Mail Mailserver","port":"E-Mail Port","driver":"E-Mail Treiber","secret":"Verschlüsselung","mailgun_secret":"Mailgun Verschlüsselung","mailgun_domain":"Mailgun Adresse","mailgun_endpoint":"Mailgun-Endpunkt","ses_secret":"SES Verschlüsselung","ses_key":"SES-Taste","password":"E-Mail-Kennwort","username":"E-Mail-Benutzername","mail_config":"E-Mail-Konfiguration","from_name":"Von E-Mail-Namen","from_mail":"Von E-Mail-Adresse","encryption":"E-Mail-Verschlüsselung","mail_config_desc":"Unten finden Sie das Formular zum Konfigurieren des E-Mail-Treibers zum Senden von E-Mails über die App. Sie können auch Drittanbieter wie Sendgrid, SES usw. konfigurieren."},"pdf":{"title":"PDF-Einstellung","footer_text":"Fußzeile Text","pdf_layout":"PDF-Layout"},"company_info":{"company_info":"Firmeninfo","company_name":"Name des Unternehmens","company_logo":"Firmenlogo","section_description":"Informationen zu Ihrem Unternehmen, die auf Rechnungen, Kostenvoranschlägen und anderen von Crater erstellten Dokumenten angezeigt werden.","phone":"Telefon","country":"Land","state":"Bundesland","city":"Stadt","address":"Adresse","zip":"PLZ","save":"Speichern","updated_message":"Unternehmensinformationen wurden erfolgreich aktualisiert"},"custom_fields":{"title":"Benutzerdefinierte Felder","section_description":"Passen Sie Ihre Rechnungen, Kostenvoranschläge und Zahlungseinnahmen mit Ihren eigenen Feldern an. Benutzen Sie die unten aufgeführten Felder in den Adressformaten auf der Seite Anpassungseinstellungen.","add_custom_field":"Benutzerdefiniertes Feld hinzufügen","edit_custom_field":"Benutzerdefiniertes Feld bearbeiten","field_name":"Feldname","label":"Etikette","type":"Art","name":"Name","required":"Erforderlich","placeholder":"Platzhalter","help_text":"Hilfstext","default_value":"Standardwert","prefix":"Präfix","starting_number":"Startnummer","model":"Modell","help_text_description":"Geben Sie einen Text ein, damit Benutzer den Zweck dieses benutzerdefinierten Felds verstehen.","suffix":"Vorzeichen","yes":"Ja","no":"Nein","order":"Auftrag","custom_field_confirm_delete":"Sie können dieses benutzerdefinierte Feld nicht wiederherstellen","already_in_use":"Benutzerdefiniertes Feld wird bereits verwendet","deleted_message":"Benutzerdefiniertes Feld erfolgreich gelöscht","options":"Optionen","add_option":"Optionen hinzufügen","add_another_option":"Fügen Sie eine weitere Option hinzu","sort_in_alphabetical_order":"In alphabetischer Reihenfolge sortieren","add_options_in_bulk":"Fügen Sie Optionen in großen Mengen hinzu","use_predefined_options":"Verwenden Sie vordefinierte Optionen","select_custom_date":"Wählen Sie Benutzerdefiniertes Datum","select_relative_date":"Wählen Sie Relatives Datum","ticked_by_default":"Standardmäßig aktiviert","updated_message":"Benutzerdefiniertes Feld erfolgreich aktualisiert","added_message":"Benutzerdefiniertes Feld erfolgreich hinzugefügt"},"customization":{"customization":"Anpassung","save":"Speichern","addresses":{"title":"Adressen","section_description":"Sie können die Rechnungsadresse und das Versandadressenformat des Kunden festlegen (nur in PDF angezeigt). ","customer_billing_address":"Rechnungsadresse des Kunden","customer_shipping_address":"Versand-Adresse des Kunden","company_address":"Firma Adresse","insert_fields":"Felder einfügen","contact":"Kontakt","address":"Adresse","display_name":"Anzeigename","primary_contact_name":"Ansprechpartner","email":"E-Mail","website":"Webseite","name":"Name","country":"Land","state":"Bundesland","city":"Stadt","company_name":"Name des Unternehmens","address_street_1":"Strasse","address_street_2":"Zusatz Strasse","phone":"Telefon","zip_code":"PLZ","address_setting_updated":"Adresse-Einstellung erfolgreich aktualisiert"},"updated_message":"Unternehmensinformationen wurden erfolgreich aktualisiert","invoices":{"title":"Rechnungen","notes":"Hinweise","invoice_prefix":"Rechnung Präfix","default_invoice_email_body":"Standard Rechnung E-Mail Inhalt","invoice_settings":"Rechnungseinstellungen","autogenerate_invoice_number":"Rechnungsnummer automatisch generieren","invoice_setting_description":"Deaktivieren Sie diese Option, wenn Sie Rechnungsnummern nicht jedes Mal automatisch generieren möchten, wenn Sie eine neue Rechnung erstellen.","enter_invoice_prefix":"Rechnungspräfix eingeben","terms_and_conditions":"Allgemeine Geschäftsbedingungen","company_address_format":"Firmenadressformat","shipping_address_format":"Versandadressen Format","billing_address_format":"Rechnungsadressen Format","invoice_setting_updated":"Rechnungseinstellung erfolgreich aktualisiert"},"estimates":{"title":"Kostenvoranschläge","estimate_prefix":"Kostenvoranschlag Präfix","default_estimate_email_body":"Rechnung - E-Mail Text","estimate_settings":"Einstellungen Kostenvoranschlag","autogenerate_estimate_number":"Kostenvoranschlagsnummer automatisch generieren","estimate_setting_description":"Deaktivieren Sie diese Option, wenn Sie nicht jedes Mal, wenn Sie einen neue Kostenvoranschlag erstellen, automatisch eine Schätzung generieren möchten.","enter_estimate_prefix":"Geben Sie das Kostenvoranschlag Präfix ein","estimate_setting_updated":"Einstellungen Kostenvoranschläge erfolgreich aktualisiert","company_address_format":"Firmenadresse Format","billing_address_format":"Rechnungsadressen Format","shipping_address_format":"Versandadressen Format"},"payments":{"title":"Zahlungen","description":"Transaktionsmodi für Zahlungen","payment_prefix":"Zahlung Präfix","default_payment_email_body":"Zahlung - E-Mail Text","payment_settings":"Zahlung Einstellungen","autogenerate_payment_number":"Zahlungsnummer automatisch generieren","payment_setting_description":"Deaktivieren Sie diese Option, wenn Sie nicht jedes Mal, wenn Sie eine neue Zahlung erstellen, automatisch Zahlungsnummern generieren möchten.","enter_payment_prefix":"Zahlungspräfix eingeben","payment_setting_updated":"Zahlungseinstellung erfolgreich aktualisiert","payment_modes":"Zahlungsarten","add_payment_mode":"Zahlungsmethode hinzufügen","edit_payment_mode":"Zahlungsmodus bearbeiten","mode_name":"Methodenname","payment_mode_added":"Zahlungsmethode hinzugefügt","payment_mode_updated":"Zahlungsmethode aktualisiert","payment_mode_confirm_delete":"Du kannst diese Zahlungsmethode nicht wiederherstellen","already_in_use":"Zahlungsmethode bereits in Verwendung","deleted_message":"Zahlungsmethode erfolgreich","company_address_format":"Firmenadressformat","from_customer_address_format":"Rechnungsadressen Format"},"items":{"title":"Artikel","units":"Einheiten","add_item_unit":"Artikeleinheit hinzufügen","edit_item_unit":"Elementeinheit bearbeiten","unit_name":"Einheitname","item_unit_added":"Artikeleinheit hinzugefügt","item_unit_updated":"Artikeleinheit aktualisiert","item_unit_confirm_delete":"Du kannst diese Artikeleinheit nicht wiederherstellen","already_in_use":"Diese Artikeleinheit ist bereits in Verwendung","deleted_message":"Artikeleinheit erfolgreich gelöscht"},"notes":{"title":"Hinweise","description":"Sparen Sie Zeit, indem Sie Notizen erstellen und diese auf Ihren Rechnungen, Kostenvoranschlägen und Zahlungen wiederverwenden.","notes":"Hinweise","type":"Art","add_note":"Notiz hinzufügen","add_new_note":"Neue Notiz hinzufügen","name":"Name","edit_note":"Notiz bearbeiten","note_added":"Notiz erfolgreich hinzugefügt","note_updated":"Notiz erfolgreich aktualisiert","note_confirm_delete":"Dieser Hinweis wird unwiderruflich gelöscht","already_in_use":"Hinweis bereits in verwendet","deleted_message":"Notiz erfolgreich gelöscht"}},"account_settings":{"profile_picture":"Profil Bild","name":"Name","email":"E-Mail","password":"Passwort","confirm_password":"Kennwort Bestätigen","account_settings":"Konto-Einstellungen","save":"Speichern","section_description":"Sie können Ihren Namen, Ihre E-Mail-Adresse und Ihr Passwort mit dem folgenden Formular aktualisieren.","updated_message":"Kontoeinstellungen erfolgreich aktualisiert"},"user_profile":{"name":"Name","email":"E-Mail","password":"Passwort","confirm_password":"Kennwort bestätigen"},"notification":{"title":"Benachrichtigung","email":"Benachrichtigungen senden an","description":"Welche E-Mail-Benachrichtigungen möchten Sie erhalten wenn sich etwas ändert?","invoice_viewed":"Rechnung angezeigt","invoice_viewed_desc":"Wenn Ihr Kunde die gesendete Rechnung anzeigt bekommt.","estimate_viewed":"Kostenvoranschlag angesehen","estimate_viewed_desc":"Wenn Ihr Kunde den gesendeten Kostenvoranschlag anzeigt bekommt.","save":"Speichern","email_save_message":"Email erfolgreich gespeichert","please_enter_email":"Bitte E-Mail eingeben"},"tax_types":{"title":"Steuersätze","add_tax":"Steuersätze hinzufügen","edit_tax":"Steuer bearbeiten","description":"Sie können Steuern nach Belieben hinzufügen oder entfernen. Crater unterstützt Steuern auf einzelne Artikel sowie auf die Rechnung.","add_new_tax":"Neuen Steuersatz hinzufügen","tax_settings":"Einstellungen Steuersatz","tax_per_item":"Steuersatz pro Artikel","tax_name":"Name des Steuersatzes","compound_tax":"zusammengesetzte Steuer","percent":"Prozent","action":"Aktion","tax_setting_description":"Aktivieren Sie diese Option, wenn Sie den Steuersatz zu einzelnen Rechnungspositionen hinzufügen möchten. Standardmäßig wird der Steuersatz direkt zur Rechnung hinzugefügt.","created_message":"Steuersatz erfolgreich erstellt","updated_message":"Steuersatz erfolgreich aktualisiert","deleted_message":"Steuersatz erfolgreich gelöscht","confirm_delete":"Sie können diesen Steuersatz nicht wiederherstellen","already_in_use":"Steuersatz wird bereits verwendet"},"expense_category":{"title":"Kategorien Kosten","action":"Aktion","description":"Für das Hinzufügen von Ausgabeneinträgen sind Kategorien erforderlich. Sie können diese Kategorien nach Ihren Wünschen hinzufügen oder entfernen.","add_new_category":"Neue Kategorie hinzufügen","add_category":"Kategorie hinzufügen","edit_category":"Kategorie bearbeiten","category_name":"Kategorie Name","category_description":"Beschreibung","created_message":"Ausgabenkategorie erfolgreich erstellt","deleted_message":"Ausgabenkategorie erfolgreich gelöscht","updated_message":"Ausgabenkategorie erfolgreich aktualisiert","confirm_delete":"Sie können diese Ausgabenkategorie nicht wiederherstellen","already_in_use":"Kategorie wird bereits verwendet"},"preferences":{"currency":"Währung","default_language":"Standardsprache","time_zone":"Zeitzone","fiscal_year":"Geschäftsjahr","date_format":"Datum-Format","discount_setting":"Einstellung Rabatt","discount_per_item":"Rabatt pro Artikel ","discount_setting_description":"Aktivieren Sie diese Option, wenn Sie einzelnen Rechnungspositionen einen Rabatt hinzufügen möchten. Standardmäßig wird der Rabatt direkt zur Rechnung hinzugefügt.","save":"Speichern","preference":"Präferenz | Präferenzen","general_settings":"Standardeinstellungen für das System.","updated_message":"Einstellungen erfolgreich aktualisiert","select_language":"Sprache auswählen","select_time_zone":"Zeitzone auswählen","select_date_format":"Wähle das Datumsformat","select_financial_year":"Geschäftsjahr auswählen"},"update_app":{"title":"Applikation aktualisieren","description":"Sie können Crater ganz einfach aktualisieren, indem Sie auf die Schaltfläche unten klicken, um nach einem neuen Update zu suchen.","check_update":"Nach Updates suchen","avail_update":"Neues Update verfügbar","next_version":"Nächste Version","requirements":"Voraussetzungen","update":"Jetzt aktualisieren","update_progress":"Update läuft ...","progress_text":"Es dauert nur ein paar Minuten. Bitte aktualisieren Sie den Bildschirm nicht und schließen Sie das Fenster nicht, bevor das Update abgeschlossen ist.","update_success":"App wurde aktualisiert! Bitte warten Sie, während Ihr Browserfenster automatisch neu geladen wird.","latest_message":"Kein Update verfügbar! Du bist auf der neuesten Version.","current_version":"Aktuelle Version","download_zip_file":"Laden Sie die ZIP-Datei herunter","unzipping_package":"Paket entpacken","copying_files":"Dateien kopieren","running_migrations":"Ausführen von Migrationen","finishing_update":"Update beenden","update_failed":"Update fehlgeschlagen","update_failed_text":"Es tut uns leid! Ihr Update ist am folgenden Schritt fehlgeschlagen: {step}"},"backup":{"title":"Sicherung | Sicherungen","description":"Die Sicherung ist eine ZIP-Datei, die alle Dateien der ausgewählten Pfade und eine Kopie der Datenbank enthält","new_backup":"Neues Backup","create_backup":"Datensicherung erstellen","select_backup_type":"Wählen Sie den Sicherungs-Typ","backup_confirm_delete":"Dieses Backup wird unwiderruflich gelöscht","path":"Pfad","new_disk":"Speicher hinzufügen","created_at":"erstellt am","size":"Größe","dropbox":"Dropbox","local":"Lokal","healthy":"intakt","amount_of_backups":"Menge an Sicherungen","newest_backups":"Neuste Sicherung","used_storage":"Verwendeter Speicher","select_disk":"Speicher auswählen","action":"Aktion","deleted_message":"Sicherung erfolgreich gelöscht","created_message":"Backup erfolgreich erstellt","invalid_disk_credentials":"Ungültige Anmeldeinformationen für ausgewählten Speicher"},"disk":{"title":"Dateispeicher | Dateispeicher","description":"Standardmäßig verwendet Crater Ihre lokale Festplatte zum Speichern von Sicherungen, Avatar und anderen Bilddateien. Sie können mehr als einen Speicherort wie DigitalOcean, S3 und Dropbox nach Ihren Wünschen konfigurieren.","created_at":"erstellt am","dropbox":"Dropbox","name":"Name","driver":"Treiber","disk_type":"Art","disk_name":"Speicher Bezeichnung","new_disk":"Speicher hinzufügen","filesystem_driver":"Dateisystem-Treiber","local_driver":"Lokaler Treiber","local_root":"lokaler Pfad","public_driver":"Öffentlicher Treiber","public_root":"Öffentlicher Pfad","public_url":"Öffentliche URL","public_visibility":"Öffentliche Sichtbarkeit","media_driver":"Medientreiber","media_root":"Medienpfad","aws_driver":"AWS-Treiber","aws_key":"AWS-Schlüssel","aws_secret":"AWS-Geheimnis","aws_region":"AWS-Region","aws_bucket":"AWS Bucket","aws_root":"AWS-Pfad","do_spaces_type":"Do Spaces-Typ","do_spaces_key":"Do Spaces-Schlüssel","do_spaces_secret":"Do Spaces-Geheimnis","do_spaces_region":"Do Spaces Region","do_spaces_bucket":"Do Spaces Bucket","do_spaces_endpoint":"Do Spaces Endpoint","do_spaces_root":"Do Spaces Root","dropbox_type":"Dropbox Type","dropbox_token":"Dropbox Token","dropbox_key":"Dropbox Key","dropbox_secret":"Dropbox Secret","dropbox_app":"Dropbox App","dropbox_root":"Dropbox Root","default_driver":"Standard-Treiber","is_default":"Standard","set_default_disk":"Als Standard festlegen","success_set_default_disk":"Speicher wurde als Standard festgelegt","save_pdf_to_disk":"PDFs auf Festplatte speichern","disk_setting_description":" Aktivieren Sie dies, um eine Kopie von jeder Rechnung, jedem Kostenvoranschlag & jedem Zahlungsbelegung als PDF automatisch auf ihrem Standard-Speicher abzulegen. Wenn Sie diese Option aktivieren, verringert sich die Ladezeit beim Betrachten der PDFs.","select_disk":"Speicherort auswählen","disk_settings":"Speichermedienkonfiguration","confirm_delete":"Ihre existierenden Dateien und Ordner auf der angegebenen Festplatte werden nicht beeinflusst, aber Dieser Speicherort wird aus Crater gelöscht","action":"Aktion","edit_file_disk":"Edit File Disk","success_create":"Speicher erfolgreich hinzugefügt","success_update":"Speicher erfolgreich bearbeitet","error":"Hinzufügen des Speichers gescheitert","deleted_message":"Speicher erfolgreich gelöscht","disk_variables_save_successfully":"Speicher erfolgreich konfiguriert","disk_variables_save_error":"Konfiguration des Speicher gescheitert","invalid_disk_credentials":"Ungültige Anmeldeinformationen für ausgewählten Speicher"}},"wizard":{"account_info":"Account-Informationen","account_info_desc":"Die folgenden Details werden zum Erstellen des Hauptadministratorkontos verwendet. Sie können die Details auch jederzeit nach dem Anmelden ändern.","name":"Name","email":"E-Mail","password":"Passwort","confirm_password":"Passwort bestätigen","save_cont":"Speichern und weiter","company_info":"Unternehmensinformationen","company_info_desc":"Diese Informationen werden auf Rechnungen angezeigt. Beachten Sie, dass Sie diese später auf der Einstellungsseite bearbeiten können.","company_name":"Firmenname","company_logo":"Firmenlogo","logo_preview":"Vorschau Logo","preferences":"Einstellungen","preferences_desc":"Standardeinstellungen für das System.","country":"Land","state":"Bundesland","city":"Stadt","address":"Adresse","street":"Straße1 | Straße2","phone":"Telefon","zip_code":"Postleitzahl","go_back":"Zurück","currency":"Währung","language":"Sprache","time_zone":"Zeitzone","fiscal_year":"Geschäftsjahr","date_format":"Datumsformat","from_address":"Absender","username":"Benutzername","next":"Weiter","continue":"Weiter","skip":"Überspringen","database":{"database":"URL der Seite & Datenbank","connection":"Datenbank Verbindung","host":"Datenbank Host","port":"Datenbank Port","password":"Datenbank Passwort","app_url":"App-URL","app_domain":"Domain der App","username":"Datenbank Benutzername","db_name":"Datenbank Name","db_path":"Datenbankpfad","desc":"Erstellen Sie eine Datenbank auf Ihrem Server und legen Sie die Anmeldeinformationen mithilfe des folgenden Formulars fest."},"permissions":{"permissions":"Berechtigungen","permission_confirm_title":"Sind Sie sicher, dass Sie fortfahren möchten?","permission_confirm_desc":"Prüfung der Berechtigung der Ordner fehlgeschlagen.","permission_desc":"Unten finden Sie eine Liste der Ordnerberechtigungen, die erforderlich sind, damit die App funktioniert. Wenn die Berechtigungsprüfung fehlschlägt, müssen Sie Ihre Ordnerberechtigungen aktualisieren."},"mail":{"host":"E-Mail-Host","port":"E-Mail-Port","driver":"E-Mail-Treiber","secret":"Verschlüsselung","mailgun_secret":"Mailgun Verschlüsselung","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun-Endpunkt","ses_secret":"SES Verschlüsselung","ses_key":"SES-Taste","password":"E-Mail-Passwort","username":"E-Mail-Benutzername","mail_config":"E-Mail-Konfiguration","from_name":"Von E-Mail-Absendername","from_mail":"Von E-Mail-Absenderadresse","encryption":"E-Mail-Verschlüsselung","mail_config_desc":"Unten finden Sie das Formular zum Konfigurieren des E-Mail-Treibers zum Senden von E-Mails über die App. Sie können auch Drittanbieter wie Sendgrid, SES usw. konfigurieren."},"req":{"system_req":"System Anforderungen","php_req_version":"Php (version {version} erforderlich)","check_req":"Anforderungen prüfen","system_req_desc":"Crater hat einige Serveranforderungen. Stellen Sie sicher, dass Ihr Server die erforderliche PHP-Version und alle unten genannten Erweiterungen hat."},"errors":{"migrate_failed":"Migration ist Fehlgeschlagen","database_variables_save_error":"Konfiguration kann nicht in EN.env-Datei geschrieben werden. Bitte überprüfen Sie die Dateiberechtigungen.","mail_variables_save_error":"E-Mail-Konfiguration fehlgeschlagen.","connection_failed":"Datenbankverbindung fehlgeschlagen","database_should_be_empty":"Datenbank sollte leer sein"},"success":{"mail_variables_save_successfully":"E-Mail erfolgreich konfiguriert","database_variables_save_successfully":"Datenbank erfolgreich konfiguriert."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Super einfache Buchhaltung","for_freelancer":"für Freelancers &","small_businesses":"kleine Unternehmen","crater_help":"Crater hilft dir eine wunderschönen Überblick über deine Buchhaltung zuhaben.","invoices_and_estimates":"Die Möglichkeit mehrere Versionen von Rechnungen und Kosten zuerstellen."},"validation":{"invalid_phone":"Ungültige Telefonnummer","invalid_url":"Ungültige URL (Bsp.: http://www.crater.com)","invalid_domain_url":"Ungültige URL (Bsp.: crater.com)","required":"Feld ist erforderlich","email_incorrect":"Falsche E-Mail.","email_already_taken":"Die E-Mail ist bereits vergeben.","email_does_not_exist":"Benutzer mit der angegebenen E-Mail existiert nicht","item_unit_already_taken":"Die Artikeleinheit wurde bereits vergeben","payment_mode_already_taken":"Der Zahlungsmodus wurde bereits verwendet","send_reset_link":"Link zum Zurücksetzen senden","not_yet":"Noch erhalten? Erneut senden","password_min_length":"Password muß {count} Zeichen enthalten","name_min_length":"Name muss mindestens {count} Zeichen enthalten.","enter_valid_tax_rate":"Geben Sie einen gültige Steuersatz ein","numbers_only":"Nur Zahlen.","characters_only":"Nur Zeichen.","password_incorrect":"Passwörter müssen identisch sein","password_length":"Passwort muss {count} Zeichen lang sein.","qty_must_greater_than_zero":"Die Menge muss größer als 0 sein.","price_greater_than_zero":"Preis muss größer als 0 sein.","payment_greater_than_zero":"Die Zahlung muss größer als 0 sein.","payment_greater_than_due_amount":"Die eingegebene Zahlung ist mehr als der fällige Betrag dieser Rechnung.","quantity_maxlength":"Die Menge sollte nicht größer als 20 Ziffern sein.","price_maxlength":"Der Preis sollte nicht größer als 20 Ziffern sein.","price_minvalue":"Der Preis sollte größer als 0 sein.","amount_maxlength":"Der Betrag sollte nicht größer als 20 Ziffern sein.","amount_minvalue":"Betrag sollte größer als 0 sein.","description_maxlength":"Die Beschreibung sollte nicht länger als 255 Zeichen sein.","subject_maxlength":"Der Betreff sollte nicht länger als 100 Zeichen sein.","message_maxlength":"Die Nachricht sollte nicht länger als 255 Zeichen sein.","maximum_options_error":"Maximal {max} Optionen ausgewählt. Entfernen Sie zuerst eine ausgewählte Option, um eine andere auszuwählen.","notes_maxlength":"Notizen sollten nicht länger als 255 Zeichen sein.","address_maxlength":"Die Adresse sollte nicht länger als 255 Zeichen sein.","ref_number_maxlength":"Ref Number sollte nicht länger als 255 Zeichen sein.","prefix_maxlength":"Das Präfix sollte nicht länger als 5 Zeichen sein.","something_went_wrong":"Da ist etwas schief gelaufen"},"pdf_estimate_label":"Kostenvoranschlag","pdf_estimate_number":"Kostenvoran. Nummer","pdf_estimate_date":"Datum Kostenvoranschlag","pdf_estimate_expire_date":"Ablaufdatum","pdf_invoice_label":"Rechnung","pdf_invoice_number":"Rechnungsnummer","pdf_invoice_date":"Rechnungsdatum","pdf_invoice_due_date":"Fälligkeitsdatum","pdf_notes":"Hinweise","pdf_items_label":"Artikel","pdf_quantity_label":"Menge","pdf_price_label":"Preis","pdf_discount_label":"Rabatt","pdf_amount_label":"Summe","pdf_subtotal":"Zwischensumme","pdf_total":"Gesamt","pdf_payment_receipt_label":"Zahlungsbeleg","pdf_payment_date":"Zahlungsdatum","pdf_payment_number":"Zahlungsnummer","pdf_payment_mode":"Zahlungsart","pdf_payment_amount_received_label":"Betrag erhalten","pdf_expense_report_label":"Ausgaben Bericht","pdf_total_expenses_label":"Gesamtausgaben","pdf_profit_loss_label":"Gewinn & Verlust Bericht","pdf_income_label":"Einkommen","pdf_net_profit_label":"Nettogewinn","pdf_customer_sales_report":"Umsatzbericht: Nach Kunde","pdf_total_sales_label":"GESAMTUMSATZ","pdf_item_sales_label":"Umsatzbericht: Nach Artikel","pdf_tax_report_label":"Umsatzsteuer BERICHT","pdf_total_tax_label":"Gesamte Umsatzsteuer","pdf_tax_types_label":"Steuersätze","pdf_expenses_label":"Gesamtausgaben","pdf_bill_to":"Rechnungsempfänger,","pdf_ship_to":"Versand an,","pdf_received_from":"Erhalten von:"}'),se=JSON.parse('{"navigation":{"dashboard":"Painel","customers":"Clientes","items":"Itens","invoices":"Faturas","expenses":"Despesas","estimates":"Orçamentos","payments":"Pagamentos","reports":"Relatórios","settings":"Configurações","logout":"Encerrar sessão"},"general":{"view_pdf":"Ver PDF","download_pdf":"Baixar PDF","save":"Salvar","cancel":"Cancelar","update":"Atualizar","deselect":"Desmarcar","download":"Baixar","from_date":"A partir da Data","to_date":"Até a Data","from":"De","to":"Para","sort_by":"Ordenar por","ascending":"Crescente","descending":"Descendente","subject":"Sujeita","body":"Corpo","message":"Mensagem","go_back":"Voltar","back_to_login":"Voltar ao Login","home":"Home","filter":"Filtrar","delete":"Excluir","edit":"Editar","view":"Ver","add_new_item":"Adicionar novo item","clear_all":"Limpar tudo","showing":"Mostrando","of":"de","actions":"Ações","subtotal":"Total parcial","discount":"Desconto","fixed":"Fixado","percentage":"Porcentagem","tax":"Imposto","total_amount":"Quantidade Total","bill_to":"Cobrar a","ship_to":"Envie a","due":"Vencida","draft":"Rascunho","sent":"Enviado","all":"Todos","select_all":"Selecionar tudo","choose_file":"Escolha um arquivo.","choose_template":"Escolha um modelo","choose":"Escolher","remove":"Excluir","powered_by":"Distribuído por","bytefury":"Bytefury","select_a_status":"Selecione um status","select_a_tax":"Selecione um Imposto","search":"Buscar","are_you_sure":"Tem certeza?","list_is_empty":"Lista está vazia.","no_tax_found":"Imposto não encontrado!","four_zero_four":"404","you_got_lost":"Ops! Se perdeu!","go_home":"Ir para Home","test_mail_conf":"Testar configuração de email","send_mail_successfully":"Correio enviado com sucesso","setting_updated":"Configuração atualizada com sucesso","select_state":"Selecione Estado","select_country":"Selecionar pais","select_city":"Selecionar cidade","street_1":"Rua 1","street_2":"Rua # 2","action_failed":"Ação: Falhou","retry":"Atualização falhou"},"dashboard":{"select_year":"Selecione Ano","cards":{"due_amount":"Montante devido","customers":"Clientes","invoices":"Faturas","estimates":"Orçamentos"},"chart_info":{"total_sales":"Vendas","total_receipts":"Receitas","total_expense":"Despesas","net_income":"Resultado líquido","year":"Selecione Ano"},"weekly_invoices":{"title":"Faturas Semanais"},"monthly_chart":{"title":"Vendas e Despesas"},"recent_invoices_card":{"title":"Faturas vencidas","due_on":"vencido em","customer":"Cliente","amount_due":"Valor Devido","actions":"Ações","view_all":"Ver todos"},"recent_estimate_card":{"title":"Orçamentos Recentes","date":"Data","customer":"Cliente","amount_due":"Valor Devido","actions":"Ações","view_all":"Ver todos"}},"tax_types":{"name":"Nome","description":"Descrição","percent":"Porcentagem","compound_tax":"Imposto compuesto"},"customers":{"title":"Clientes","add_customer":"Adicionar cliente","contacts_list":"Lista de clientes","name":"Nome","display_name":"Nome de exibição","primary_contact_name":"Nome do contato principal","contact_name":"Nome de Contato","amount_due":"Valor Devido","email":"Email","address":"Endereço","phone":"Telefone","website":"Site","country":"Pais","state":"Estado","city":"Cidade","zip_code":"Código postal","added_on":"Adicionado","action":"Ação","password":"Senha","street_number":"Número","primary_currency":"Moeda principal","add_new_customer":"Adicionar novo cliente","save_customer":"Salvar cliente","update_customer":"Atualizar cliente","customer":"Cliente | Clientes","new_customer":"Novo cliente","edit_customer":"Editar cliente","basic_info":"Informação basica","billing_address":"Endereço de cobrança","shipping_address":"Endereço de entrega","copy_billing_address":"Cópia de faturamento","no_customers":"Ainda não há clientes!","no_customers_found":"Clientes não encontrados!","list_of_customers":"Esta seção conterá a lista de clientes.","primary_display_name":"Nome de exibição principal","select_currency":"Selecione o tipo de moeda","select_a_customer":"Selecione um cliente","type_or_click":"Digite ou clique para selecionar","new_transaction":"Nova transação","no_matching_customers":"Não há clientes correspondentes!","phone_number":"Número de telefone","create_date":"Criar Data","confirm_delete":"Você não poderá recuperar este cliente e todas as faturas, estimativas e pagamentos relacionados. | Você não poderá recuperar esses clientes e todas as faturas, estimativas e pagamentos relacionados.","created_message":"Cliente criado com sucesso","updated_message":"Cliente atualizado com sucesso","deleted_message":"Cliente excluído com sucesso | Clientes excluídos com sucesso"},"items":{"title":"Itens","items_list":"Lista de Itens","name":"Nome","unit":"Unidade","description":"Descrição","added_on":"Adicionado","price":"Preço","date_of_creation":"Data de criação","action":"Ação","add_item":"Adicionar item","save_item":"Salvar item","update_item":"Atualizar item","item":"Item | Itens","add_new_item":"Adicionar novo item","new_item":"Novo item","edit_item":"Editar item","no_items":"Ainda não existe itens","list_of_items":"Esta seção conterá a lista de itens.","select_a_unit":"Seleciona unidade","taxes":"Impostos","item_attached_message":"Não é possível excluir um item que já está em uso.","confirm_delete":"Você não poderá recuperar este item | Você não poderá recuperar esses itens","created_message":"Item criado com sucesso","updated_message":"Item atualizado com sucesso","deleted_message":"Item excluído com sucesso | Itens Excluídos com sucesso"},"estimates":{"title":"Orçamentos","estimate":"Orçamento | Orçamentos","estimates_list":"Lista de orçamentos","days":"{dias} dias","months":"{meses} Mês","years":"{Anos} Ano","all":"Todos","paid":"Pago","unpaid":"Não pago","customer":"CLIENTE","ref_no":"NÚMERO DE REFERÊNCIA.","number":"NÚMERO","amount_due":"Valor Devido","partially_paid":"Pago parcialmente","total":"Total","discount":"Desconto","sub_total":"Subtotal","estimate_number":"Numero do Orçamento","ref_number":"Referência","contact":"Contato","add_item":"Adicionar Item","date":"Data","due_date":"Data de Vencimento","expiry_date":"Data de expiração","status":"Status","add_tax":"Adicionar Imposto","amount":"Montante","action":"Ação","notes":"Observações","tax":"Imposto","estimate_template":"Modelo de orçamento","convert_to_invoice":"Converter em fatura","mark_as_sent":"Marcar como enviado","send_estimate":"Enviar orçamento","record_payment":"Registro de pago","add_estimate":"Adicionar orçamento","save_estimate":"Salvar Orçamento","confirm_conversion":"Deseja converter este orçamento em uma fatura?","conversion_message":"Converção realizada com sucesso","confirm_send_estimate":"Este orçamento será enviado por email ao cliente","confirm_mark_as_sent":"Este orçamento será marcado como enviado","confirm_mark_as_accepted":"Este orçamento será marcado como Aceito","confirm_mark_as_rejected":"Este orçamento será marcado como Rejeitado","no_matching_estimates":"Não há orçamentos correspondentes!","mark_as_sent_successfully":"Orçamento como marcado como enviado com sucesso","send_estimate_successfully":"Orçamento enviado com sucesso","errors":{"required":"Campo obrigatório"},"accepted":"Aceito","sent":"Enviado","draft":"Rascunho","declined":"Rejeitado","new_estimate":"Novo orçamento","add_new_estimate":"Adicionar novo orçamento","update_Estimate":"Atualizar orçamento","edit_estimate":"Editar orçamento","items":"artículos","Estimate":"Orçamento | Orçamentos","add_new_tax":"Adicionar novo imposto","no_estimates":"Ainda não há orcamentos","list_of_estimates":"Esta seção contém a lista de orçamentos.","mark_as_rejected":"Marcar como rejeitado","mark_as_accepted":"Marcar como aceito","marked_as_accepted_message":"Orçamento marcado como aceito","marked_as_rejected_message":"Orçamento marcado como rejeitado","confirm_delete":"Não poderá recuperar este orçamento | Não poderá recuperar estes orçamentos","created_message":"Orçamento criado com sucesso","updated_message":"Orçamento atualizado com sucesso","deleted_message":"Orçamento excluído com sucesso | Orçamentos excluídos com sucesso","user_email_does_not_exist":"Email de usuário não existe","something_went_wrong":"Algo deu errado","item":{"title":"Titulo do item","description":"Descrição","quantity":"Quantidade","price":"Preço","discount":"Desconto","total":"Total","total_discount":"Desconto total","sub_total":"Subtotal","tax":"Imposto","amount":"Montante","select_an_item":"Escreva ou clique para selecionar um item","type_item_description":"Tipo Item Descrição (opcional)"}},"invoices":{"title":"Faturas","invoices_list":"Lista de faturas","days":"{dias} dias","months":"{meses} Mês","years":"{anos} Ano","all":"Todas","paid":"Paga","unpaid":"Não Paga","customer":"CLIENTE","paid_status":"STATUS PAGAMENTO","ref_no":"REFERÊNCIA","number":"NÚMERO","amount_due":"VALOR DEVIDO","partially_paid":"Parcialmente pago","total":"Total","discount":"Desconto","sub_total":"Subtotal","invoice":"Fatura | Faturas","invoice_number":"Número da fatura","ref_number":"Referência","contact":"Contato","add_item":"Adicionar um item","date":"Data","due_date":"Data de Vencimento","status":"Status","add_tax":"Adicionar imposto","amount":"Montante","action":"Ação","notes":"Observações","view":"Ver","send_invoice":"Enviar Fatura","invoice_template":"Modelo da Fatura","template":"Modelo","mark_as_sent":"Marcar como enviada","confirm_send_invoice":"Esta fatura será enviada por e-mail ao cliente","invoice_mark_as_sent":"Esta fatura será marcada como enviada","confirm_send":"Esta fatura será enviada por e-mail ao cliente","invoice_date":"Data da Fatura","record_payment":"Gravar Pagamento","add_new_invoice":"Adicionar Nova Fatura","update_expense":"Atualizar Despesa","edit_invoice":"Editar Fatura","new_invoice":"Nova Fatura","save_invoice":"Salvar Fatura","update_invoice":"Atualizar Fatura","add_new_tax":"Adicionar novo Imposto","no_invoices":"Ainda não há faturas!","list_of_invoices":"Esta seção conterá a lista de faturas.","select_invoice":"Selecionar Fatura","no_matching_invoices":"Não há faturas correspondentes!","mark_as_sent_successfully":"Fatura marcada como enviada com sucesso","send_invoice_successfully":"Fatura enviada com sucesso","cloned_successfully":"Fatura clonada com sucesso","clone_invoice":"Clonar fatura","confirm_clone":"Esta fatura será clonada em uma nova fatura","item":{"title":"Titulo do Item","description":"Descrição","quantity":"Quantidade","price":"Preço","discount":"Desconto","total":"Total","total_discount":"Desconto Total","sub_total":"SubTotal","tax":"Imposto","amount":"Montante","select_an_item":"Digite ou clique para selecionar um item","type_item_description":"Tipo Descrição do item (opcional)"},"payment_attached_message":"Uma das faturas selecionadas já possui um pagamento anexado. Certifique-se de excluir os pagamentos anexados primeiro, a fim de prosseguir com a remoção","confirm_delete":"Você não poderá recuperar esta fatura | Você não poderá recuperar essas faturas","created_message":"Fatura criada com sucesso","updated_message":"Fatura atualizada com sucesso","deleted_message":"Fatura excluída com sucesso | Faturas excluídas com sucesso","marked_as_sent_message":"Fatura marcada como enviada com sucesso","user_email_does_not_exist":"O email do usuário não existe","something_went_wrong":"Algo deu errado","invalid_due_amount_message":"O valor total da fatura não pode ser menor que o valor total pago para esta fatura. Atualize a fatura ou exclua os pagamentos associados para continuar."},"credit_notes":{"title":"Notas de credito","credit_notes_list":"Lista Notas de credito","credit_notes":"Notas de credito","contact":"Contato","date":"Data","amount":"Montante","action":"Ação","credit_number":"Número de crédito","notes":"Notes","confirm_delete":"Deseja excluir esta nota de crédito?","item":{"title":"Título do Item","description":"Descrição","quantity":"Quantidade","price":"Preço","discount":"Desconto","total":"Total","total_discount":"Desconto Total","sub_total":"SubTotal","tax":"Imposto"}},"payments":{"title":"Pagamentos","payments_list":"Lista de Pagamentos","record_payment":"Gravar Pagamento","customer":"Cliente","date":"Data","amount":"Montante","action":"Ação","payment_number":"Número do Pagamento","payment_mode":"Forma de Pagamento","invoice":"Fatura","note":"Observação","add_payment":"Adicionar Pagamento","new_payment":"Novo Pagamento","edit_payment":"Editar Pagamento","view_payment":"Ver Pagamento","add_new_payment":"Adicionar novo Pagamento","send_payment_receipt":"Enviar recibo de pagamento","save_payment":"Salvar Pagamento","send_payment":"Mande o pagamento","update_payment":"Atualizar Pagamento","payment":"Pagamento | Pagamentos","no_payments":"Ainda sem pagamentos!","no_matching_payments":"Não há pagamentos correspondentes!","list_of_payments":"Esta seção conterá a lista de pagamentos.","select_payment_mode":"Selecione a forma de pagamento","confirm_delete":"Você não poderá recuperar este Pagamento | Você não poderá recuperar esses Pagamentos","created_message":"Pagamento criado com sucesso","updated_message":"Pagamento atualizado com sucesso","deleted_message":"Pagamento excluído com sucesso | Pagamentos excluídos com sucesso","invalid_amount_message":"O valor do pagamento é inválido"},"expenses":{"title":"Despesas","expenses_list":"Lista de Despesas","expense_title":"Título","contact":"Contato","category":"Categoria","customer":"Cliente","from_date":"A partir da Data","to_date":"Até a Data","expense_date":"Data","description":"Descrição","receipt":"Receita","amount":"Montante","action":"Ação","note":"Observação","category_id":"Categoria","date":"Data da Despesa","add_expense":"Adicionar Despesa","add_new_expense":"Adicionar Nova Despesa","save_expense":"Salvar Despesa","update_expense":"Atualizar Despesa","download_receipt":"Baixar Receita","edit_expense":"Editar Despesa","new_expense":"Nova Despesa","expense":"Despesa | Despesas","no_expenses":"Ainda sem Despesas!","list_of_expenses":"Esta seção conterá a lista de despesas.","confirm_delete":"Você não poderá recuperar esta despesa | Você não poderá recuperar essas despesas","created_message":"Despesa criada com sucesso","updated_message":"Despesa atualizada com sucesso","deleted_message":"Despesas excluídas com sucesso | Despesas excluídas com sucesso","categories":{"categories_list":"Lista de Categorias","title":"Título","name":"Nome","description":"Descrição","amount":"Montante","actions":"Ações","add_category":"Adicionar Categoria","new_category":"Nova Categoria","category":"Categoria | Categorias","select_a_category":"Selecionar uma Categoria"}},"login":{"email":"Email","password":"Senha","forgot_password":"Esqueceu a senha?","or_signIn_with":"ou Entre com","login":"Entrar","register":"Registre-se","reset_password":"Resetar Senha","password_reset_successfully":"Senha redefinida com sucesso","enter_email":"Digite email","enter_password":"Digite a senha","retype_password":"Confirme a Senha","login_placeholder":"mail@exemplo.com"},"reports":{"title":"Relatório","from_date":"A partir da Data","to_date":"Até a Data","status":"Status","paid":"Pago","unpaid":"Não Pago","download_pdf":"Baixar PDF","view_pdf":"Ver PDF","update_report":"Atualizar Relatório","report":"Relatório | Relatórios","profit_loss":{"profit_loss":"Perda de lucro","to_date":"Até a Data","from_date":"A partir da Data","date_range":"Selecionar período"},"sales":{"sales":"Vendas","date_range":"Selecionar período","to_date":"Até a Data","from_date":"A partir da Data","report_type":"Tipo de Relatório"},"taxes":{"taxes":"Impostos","to_date":"Até a Data","from_date":"A partir da Data","date_range":"Selecionar período"},"errors":{"required":"Campo obrigatório"},"invoices":{"invoice":"Fatura","invoice_date":"Data da Fatura","due_date":"Data de Vencimento","amount":"Montante","contact_name":"Nome de Contato","status":"Status"},"estimates":{"estimate":"Orçamento","estimate_date":"Data do Orçamento","due_date":"Data de Vencimento","estimate_number":"Número do Orçamento","ref_number":"Referência","amount":"Montante","contact_name":"Nome de Contato","status":"Status"},"expenses":{"expenses":"Despesas","category":"Categoria","date":"Data","amount":"Montante","to_date":"Até a Data","from_date":"A partir da Data","date_range":"Selecionar período"}},"settings":{"menu_title":{"account_settings":"Configurações da conta","company_information":"Informações da Empresa","customization":"Personalizar","preferences":"Preferências","notifications":"Notificações","tax_types":"Tipos de Impostos","expense_category":"Categorias de Despesas","update_app":"Atualizar Aplicativo","custom_fields":"Os campos personalizados"},"title":"Configurações","setting":"Configuração | Configurações","general":"Geral","language":"Idioma","primary_currency":"Moéda Principal","timezone":"Fuso horário","date_format":"Formato de data","currencies":{"title":"Moedas","currency":"Moeda | Moedas","currencies_list":"Moedas","select_currency":"Selecione uma Moeda","name":"Nome","code":"Código","symbol":"Símbolo","precision":"Precisão","thousand_separator":"Separador de Milhar","decimal_separator":"Separador Decimal","position":"Posição","position_of_symbol":"Posição do Símbolo","right":"Direita","left":"Esquerda","action":"Ação","add_currency":"Adicionar Moeda"},"mail":{"host":"Host de Email","port":"Porta de Email","driver":"Mail Driver","secret":"Segredo","mailgun_secret":"Mailgun Segredo","mailgun_domain":"Domínio","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Segredo","ses_key":"SES Chave","password":"Senha do Email","username":"Nome de Usuário do Email","mail_config":"Configuração de Email","from_name":"Do Nome de Email","from_mail":"Do Endereço de Email","encryption":"Criptografia de Email","mail_config_desc":"Abaixo está o formulário para configurar o driver de email para enviar emails do aplicativo. Você também pode configurar provedores de terceiros como Sendgrid, SES etc."},"pdf":{"title":"Configurações de PDF","footer_text":"Texto do Rodapé","pdf_layout":"Layout de PDF"},"company_info":{"company_info":"Informação da Empresa","company_name":"Nome da Empresa","company_logo":"Logotipo da Empresa","section_description":"Informações sobre sua empresa que serão exibidas em Faturas, Orçamentos e outros documentos criados pela Crater.","phone":"Telefone","country":"Pais","state":"Estado","city":"Cidade","address":"Endereço","zip":"CEP","save":"Salvar","updated_message":"Informações da Empresa atualizadas com sucesso"},"custom_fields":{"title":"Os campos personalizados","add_custom_field":"Adicionar campo personalizado","edit_custom_field":"Editar campo personalizado","field_name":"Nome do campo","type":"Tipo","name":"Nome","required":"Requeridas","label":"Rótulo","placeholder":"Placeholder","help_text":"Texto de ajuda","default_value":"Valor padrão","prefix":"Prefixo","starting_number":"Número inicial","model":"Modelo","help_text_description":"Digite algum texto para ajudar os usuários a entender a finalidade desse campo personalizado.","suffix":"Sufixo","yes":"sim","no":"Não","order":"Ordem","custom_field_confirm_delete":"Você não poderá recuperar este campo personalizado","already_in_use":"O campo personalizado já está em uso","deleted_message":"Campo personalizado excluído com sucesso","options":"opções","add_option":"Adicionar opções","add_another_option":"Adicione outra opção","sort_in_alphabetical_order":"Classificar em ordem alfabética","add_options_in_bulk":"Adicionar opções em massa","use_predefined_options":"Use Predefined Options","select_custom_date":"Selecionar data personalizada","select_relative_date":"Selecionar data relativa","ticked_by_default":"Marcado por padrão","updated_message":"Campo personalizado atualizado com sucesso","added_message":"Campo personalizado adicionado com sucesso"},"customization":{"customization":"Personalizar","save":"Salvar","addresses":{"title":"Endereço","section_description":"Você pode definir o endereço de cobrança do cliente e o formato do endereço de entrega do cliente (exibido apenas em PDF).","customer_billing_address":"Endereço de Cobrança do Cliente","customer_shipping_address":"Endereço de Entrega do Cliente","company_address":"Endereço da Empresa","insert_fields":"Inserir Campos","contact":"Contato","address":"Endereço","display_name":"Nome em Exibição","primary_contact_name":"Nome do Contato Principal","email":"Email","website":"Website","name":"Nome","country":"Pais","state":"Estado","city":"Cidade","company_name":"Nome da Empresa","address_street_1":"Endereço Rua 1","address_street_2":"Endereço Rua 2","phone":"Telefone","zip_code":"CEP","address_setting_updated":"Configuração de Endereço Atualizada com Sucesso"},"updated_message":"Informações da Empresa atualizadas com sucesso","invoices":{"title":"Faturas","notes":"Notas","invoice_prefix":"Fatura Prefixo","invoice_settings":"Configrações da Fatura","autogenerate_invoice_number":"Gerar automaticamente o número da Fatura","invoice_setting_description":"Desative isso, se você não deseja gerar automaticamente números da Fatura sempre que criar uma nova.","enter_invoice_prefix":"Digite o prefixo da Fatura","terms_and_conditions":"Termos e Condições","invoice_setting_updated":"Configuração da Fatura atualizada com sucesso"},"estimates":{"title":"Orçamentos","estimate_prefix":"Orçamento Prefixo","estimate_settings":"Configurações do Orçamento","autogenerate_estimate_number":"Gerar automaticamente o número do Orçamento","estimate_setting_description":"Desative isso, se você não deseja gerar automaticamente números do Orçamento sempre que criar um novo.","enter_estimate_prefix":"Digite o prefixo do Orçamento","estimate_setting_updated":"Configuração do Orçamento atualizada com sucesso"},"payments":{"title":"Pagamentos","payment_prefix":"Pagamento Prefixo","payment_settings":"Configurações de Pagamento","autogenerate_payment_number":"Gerar automaticamente número do Pagamento","payment_setting_description":"Desative isso, se você não deseja gerar automaticamente números do Pagamento sempre que criar um novo.","enter_payment_prefix":"Digite o Prefixo do Pagamento","payment_setting_updated":"Configurações de Pagamento atualizada com sucesso","payment_mode":"Modo de pagamento","add_payment_mode":"Adicionar modo de pagamento","edit_payment_mode":"Editar modo de pagamento","mode_name":"Nome do modo","payment_mode_added":"Modo de pagamento adicionado","payment_mode_updated":"Modo de pagamento atualizado","payment_mode_confirm_delete":"Você não poderá recuperar este modo de pagamento","already_in_use":"O modo de pagamento já está em uso","deleted_message":"Modo de pagamento excluído com sucesso"},"items":{"title":"Itens","units":"unidades","add_item_unit":"Adicionar unidade de item","edit_item_unit":"Editar unidade de item","unit_name":"Nome da unidade","item_unit_added":"Item Unit Added","item_unit_updated":"Item Unit Updated","item_unit_confirm_delete":"Você não poderá recuperar esta unidade de item","already_in_use":"A unidade do item já está em uso","deleted_message":"Unidade de item excluída com sucesso"}},"account_settings":{"profile_picture":"Foto do Perfil","name":"Nome","email":"Email","password":"Senha","confirm_password":"Confirmar Senha","account_settings":"Configurações da conta","save":"Salvar","section_description":"Você pode atualizar seu nome, email e senha usando o formulário abaixo.","updated_message":"Configurações da conta atualizadas com sucesso"},"user_profile":{"name":"Nome","email":"Email","password":"Password","confirm_password":"Confirmar Senha"},"notification":{"title":"Notificação","email":"Enviar Notificações para","description":"Quais notificações por email você gostaria de receber quando algo mudar?","invoice_viewed":"Fatura Visualizada","invoice_viewed_desc":"Quando o seu cliente visualiza uma Fatura enviada pelo painel do Crater.","estimate_viewed":"Orçamento Visualizado","estimate_viewed_desc":"Quando o seu cliente visualiza um Orçamento enviada pelo painel do Crater.","save":"Salvar","email_save_message":"E-mail salvo com sucesso","please_enter_email":"Por favor digite um E-mail"},"tax_types":{"title":"Tipos de Impostos","add_tax":"Adicionar Imposto","edit_tax":"Editar imposto","description":"Você pode adicionar ou remover impostos conforme desejar. O Crater suporta impostos sobre itens individuais e também na Fatura.","add_new_tax":"Adicionar Novo Imposto","tax_settings":"Configurações de Impostos","tax_per_item":"Imposto por Item","tax_name":"Nome do Imposto","compound_tax":"Imposto Composto","percent":"Porcentagem","action":"Ação","tax_setting_description":"Habilite isso se desejar adicionar Impostos a itens da Fatura Idividualmente. Por padrão, os impostos são adicionados diretamente à Fatura.","created_message":"Tipo de Imposto criado com sucesso","updated_message":"Tipo de Imposto Atualizado com sucesso","deleted_message":"Tipo de Imposto Deletado com sucesso","confirm_delete":"Você não poderá recuperar este tipo de Imposto","already_in_use":"O Imposto já está em uso"},"expense_category":{"title":"Categoria de Despesa","action":"Ação","description":"As Categorias são necessárias para adicionar entradas de Despesas. Você pode adicionar ou remover essas Categorias de acordo com sua preferência.","add_new_category":"Adicionar Nova Categoria","add_category":"Adicionar categoria","edit_category":"Editar categoria","category_name":"Nome da Categoria","category_description":"Descrição","created_message":"Categoria de Despesa criada com sucesso","deleted_message":"Categoria de Despesa excluída com sucesso","updated_message":"Categoria de Despesa atualizada com sucesso","confirm_delete":"Você não poderá recuperar esta Categoria de Despesa","already_in_use":"A categoria já está em uso"},"preferences":{"currency":"Moeda","language":"Idioma","time_zone":"Fuso Horário","fiscal_year":"Ano Financeiro","date_format":"Formato da Data","discount_setting":"Configuração de Desconto","discount_per_item":"Desconto por Item ","discount_setting_description":"Habilite isso se desejar adicionar desconto a itens de Fatura individualmente. Por padrão, o desconto é adicionado diretamente à Fatura.","save":"Salvar","preference":"Preferência | Preferências","general_settings":"Preferências padrão para o sistema.","updated_message":"Preferências atualizadas com sucesso","select_language":"Selecione um Idioma","select_time_zone":"Selecione um fuso horário","select_date_formate":"Selecione um formato de data","select_financial_year":"Selecione o ano financeiro"},"update_app":{"title":"Atualizar Aplicativo","description":"Você pode atualizar facilmente o Crater, verifique se hà novas atualizações, clicando no botão abaixo","check_update":"Verifique se há atualizações","avail_update":"Nova atualização disponível","next_version":"Próxima versão","update":"Atualizar agora","update_progress":"Atualização em progresso...","progress_text":"Levará apenas alguns minutos. Não atualize a tela ou feche a janela antes que a atualização seja concluída","update_success":"O aplicativo foi atualizado! Aguarde enquanto a janela do navegador é recarregada automaticamente.","latest_message":"Nenhuma atualização disponível! Você está na versão mais recente.","current_version":"Versão Atual","download_zip_file":"Baixar arquivo ZIP","unzipping_package":"Descompactando o pacote","copying_files":"Copiando arquivos","running_migrations":"Executando migrações","finishing_update":"Atualização de acabamento","update_failed":"Atualização falhou","update_failed_text":"Desculpa! Sua atualização falhou em: {step} step"}},"wizard":{"account_info":"Informação da conta","account_info_desc":"Os detalhes abaixo serão usados para criar a conta principal do administrador. Além disso, você pode alterar os detalhes a qualquer momento após o login.","name":"Nome","email":"Email","password":"Senha","confirm_password":"Confirmar Senha","save_cont":"Salvar e Continuar","company_info":"Informação da Empresa","company_info_desc":"Esta informação será exibida nas Faturas. Observe que você pode editar isso mais tarde na página de configurações.","company_name":"Nome da Empresa","company_logo":"Logotipo da Empresa","logo_preview":"Previsualizar Logotipo","preferences":"Preferências","preferences_desc":"Preferências padrão para o sistema.","country":"Pais","state":"Estado","city":"Cidade","address":"Endereço","street":"Rua 1 | Rua 2","phone":"Telefone","zip_code":"CEP","go_back":"Voltar","currency":"Moeda","language":"Idioma","time_zone":"Fuso Horário","fiscal_year":"Ano Financeiro","date_format":"Formato de Data","from_address":"Do Endereço","username":"Nome de Usuário","next":"Próximo","continue":"Continuar","skip":"Pular","database":{"database":"URL do Site e Base de Dados","connection":"Conexão da Base de Dados","host":"Host da Base de Dados","port":"Porta da Base de Dados","password":"Senha da Base de Dados","app_url":"URL do Aplicativo","username":"Usuário da Base de Dados","db_name":"Nome da Base de Dados","desc":"Crie um Banco de Dados no seu servidor e defina as credenciais usando o formulário abaixo."},"permissions":{"permissions":"Permissões","permission_confirm_title":"Você tem certeza que quer continuar?","permission_confirm_desc":"Falha na verificação de permissão da pasta","permission_desc":"Abaixo está a lista de permissões de pasta que são necessárias para que o aplicativo funcione. Se a verificação da permissão falhar, atualize as permissões da pasta."},"mail":{"host":"Host do email","port":"Porta do email","driver":"Driver do email","secret":"Segredo","mailgun_secret":"Segredo do Mailgun","mailgun_domain":"Domínio","mailgun_endpoint":"Endpoint do Mailgun","ses_secret":"Segredo do SES","ses_key":"Chave SES","password":"Senha do email","username":"Nome do Usuário do email","mail_config":"Configuração de email","from_name":"Nome do email","from_mail":"Endereço de email","encryption":"Criptografia de email","mail_config_desc":"Abaixo está o formulário para configurar o driver de email que será usado para enviar emails do aplicativo. Você também pode configurar provedores de terceiros como Sendgrid, SES etc."},"req":{"system_req":"Requisitos de Sistema","php_req_version":"PHP (versão {version} obrigatória)","check_req":"Verificar Requisitos","system_req_desc":"O Crater tem alguns requisitos de servidor. Verifique se o seu servidor possui a versão do PHP necessária e todas as extensões mencionadas abaixo."},"errors":{"migrate_failed":"Falha na migração","database_variables_save_error":"Não é possível gravar a configuração no arquivo .env. Por favor, verifique suas permissões de arquivo","mail_variables_save_error":"A configuração do email falhou.","connection_failed":"Falha na conexão com o banco de dados","database_should_be_empty":"O banco de dados deve estar vazio"},"success":{"mail_variables_save_successfully":"Email configurado com sucesso","database_variables_save_successfully":"Banco de dados configurado com sucesso."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Faturamento super simples","for_freelancer":"Para Freelancers &","small_businesses":"Pequenos Negócios ","crater_help":"Crater ajuda a rastrear despesas, registrar pagamentos e gerar belas","invoices_and_estimates":"Faturas e Orçamentos com capacidade de escolher vários modelos."},"validation":{"invalid_phone":"Número de telefone inválido","invalid_url":"url inválidas (ex: http://www.crater.com)","required":"Campo obrigatório","email_incorrect":"E-mail incorreto","email_already_taken":"O email já foi recebido.","email_does_not_exist":"O usuário com determinado email não existe","send_reset_link":"Enviar link de redefinição","not_yet":"Ainda não? Envie novamente","password_min_length":"A senha deve conter {count} caracteres","name_min_length":"O nome deve ter pelo menos {count} letras.","enter_valid_tax_rate":"Insira uma taxa de imposto válida","numbers_only":"Apenas Números.","characters_only":"Apenas Caracteres.","password_incorrect":"As senhas devem ser idênticas","password_length":"A senha deve ter {count} caracteres.","qty_must_greater_than_zero":"A quantidade deve ser maior que zero.","price_greater_than_zero":"O preço deve ser maior que zero.","payment_greater_than_zero":"O pagamento deve ser maior que zero.","payment_greater_than_due_amount":"O pagamento inserido é mais do que o valor devido desta fatura.","quantity_maxlength":"A quantidade não deve exceder 20 dígitos.","price_maxlength":"O preço não deve ser superior a 20 dígitos.","price_minvalue":"O preço deve ser maior que 0.","amount_maxlength":"Montante não deve ser superior a 20 dígitos.","amount_minvalue":"Montante deve ser maior que zero","description_maxlength":"A descrição não deve ter mais que 255 caracteres.","maximum_options_error":"Máximo de {max} opções selecionadas. Primeiro remova uma opção selecionada para selecionar outra.","notes_maxlength":"As anotações não devem ter mais que 255 caracteres.","address_maxlength":"O endereço não deve ter mais que 255 caracteres.","ref_number_maxlength":"O número de referência não deve ter mais que 255 caracteres.","prefix_maxlength":"O prefixo não deve ter mais que 5 caracteres."}}'),le=JSON.parse('{"navigation":{"dashboard":"Dashboard","customers":"Clienti","items":"Commesse","invoices":"Fatture","expenses":"Spese","estimates":"Preventivi","payments":"Pagamenti","reports":"Reports","settings":"Configurazione","logout":"Logout","users":"Users"},"general":{"add_company":"Add Company","view_pdf":"Vedi PDF","copy_pdf_url":"Copy PDF Url","download_pdf":"Scarica PDF","save":"Salva","create":"Create","cancel":"Elimina","update":"Aggiorna","deselect":"Deseleziona","download":"Download","from_date":"Dalla Data","to_date":"Alla Data","from":"Da","to":"A","sort_by":"Ordina per","ascending":"Crescente","descending":"Decrescente","subject":"Oggetto","body":"Corpo","message":"Messaggio","send":"Send","go_back":"Torna indietro","back_to_login":"Torna al Login?","home":"Home","filter":"Filtro","delete":"Elimina","edit":"Modifica","view":"Visualizza","add_new_item":"Aggiungi nuova Commessa","clear_all":"Pulisci tutto","showing":"Showing","of":"di","actions":"Azioni","subtotal":"SUBTOTALE","discount":"SCONTO","fixed":"Fissato","percentage":"Percentuale","tax":"TASSA","total_amount":"AMMONTARE TOTALE","bill_to":"Fattura a","ship_to":"Invia a","due":"Dovuto","draft":"Bozza","sent":"Inviata","all":"Tutte","select_all":"Seleziona tutto","choose_file":"Clicca per selezionare un file","choose_template":"Scegli un modello","choose":"Scegli","remove":"Rimuovi","powered_by":"Prodotto da","bytefury":"Bytefury","select_a_status":"Seleziona uno Stato","select_a_tax":"Seleziona una Tassa","search":"Cerca","are_you_sure":"Sei sicuro/a?","list_is_empty":"La lista è vuota.","no_tax_found":"Nessuna Tassa trovata!","four_zero_four":"404","you_got_lost":"Hoops! Ti sei perso","go_home":"Vai alla Home","test_mail_conf":"Configurazione della mail di test","send_mail_successfully":"Mail inviata con successo","setting_updated":"Configurazioni aggiornate con successo","select_state":"Seleziona lo Stato","select_country":"Seleziona Paese","select_city":"Seleziona Città","street_1":"Indirizzo 1","street_2":"Indirizzo 2","action_failed":"Errore","retry":"Retry","choose_note":"Choose Note","no_note_found":"No Note Found","insert_note":"Insert Note"},"dashboard":{"select_year":"Seleziona anno","cards":{"due_amount":"Somma dovuta","customers":"Clienti","invoices":"Fatture","estimates":"Preventivi"},"chart_info":{"total_sales":"Vendite","total_receipts":"Ricevute","total_expense":"Uscite","net_income":"Guadagno netto","year":"Seleziona anno"},"weekly_invoices":{"title":"Fatture a settimana"},"monthly_chart":{"title":"Entrate & Uscite"},"recent_invoices_card":{"title":"Fatture insolute","due_on":"Data di scadenza","customer":"Cliente","amount_due":"Ammontare dovuto","actions":"Azioni","view_all":"Vedi tutto"},"recent_estimate_card":{"title":"Preventivi recenti","date":"Data","customer":"Cliente","amount_due":"Ammontare dovuto","actions":"Azioni","view_all":"Vedi tutto"}},"tax_types":{"name":"Nome","description":"Descrizione","percent":"Percento","compound_tax":"Tassa composta"},"global_search":{"search":"Search...","customers":"Clienti","users":"Users","no_results_found":"No Results Found"},"customers":{"title":"Clienti","add_customer":"Aggiungi cliente","contacts_list":"Lista clienti","name":"Nome","mail":"Mail | Mails","statement":"Statement","display_name":"Mostra nome","primary_contact_name":"Riferimento","contact_name":"Nome Contatto","amount_due":"Ammontare dovuto","email":"Email","address":"Indirizzo","phone":"Telefono","website":"Sito web","overview":"Overview","enable_portal":"Enable Portal","country":"Paese","state":"Stato","city":"Città","zip_code":"Codice Postale","added_on":"Aggiunto il","action":"Azione","password":"Password","street_number":"Numero Civico","primary_currency":"Valùta Principale","description":"Descrizione","add_new_customer":"Aggiungi nuovo Cliente","save_customer":"Salva Cliente","update_customer":"Aggiorna Cliente","customer":"Cliente | Clienti","new_customer":"Nuovo cliente","edit_customer":"Modifica Cliente","basic_info":"Informazioni","billing_address":"Indirizzo di Fatturazione","shipping_address":"Indirizzo di Spedizione","copy_billing_address":"Copia da Fatturazione","no_customers":"Ancora nessun Cliente!","no_customers_found":"Nessun cliente trovato!","list_of_customers":"Qui ci sarà la lista dei tuoi clienti","primary_display_name":"Mostra il Nome Principale","select_currency":"Selezione Valùta","select_a_customer":"Seleziona Cliente","type_or_click":"Scrivi o clicca per selezionare","new_transaction":"Nuova transazione","no_matching_customers":"Non ci sono clienti corrispondenti!","phone_number":"Numero di telefono","create_date":"Crea data","confirm_delete":"Non sarai in grado di recuperare questo cliente e tutte le relative fatture, stime e pagamenti. | Non sarai in grado di recuperare questi clienti e tutte le relative fatture, stime e pagamenti.","created_message":"Cliente creato con successo","updated_message":"Cliente aggiornato con successo","deleted_message":"Cliente cancellato con successo | Clienti cancellati con successo"},"items":{"title":"Commesse","items_list":"Lista Commesse","name":"Nome","unit":"Unità/Tipo","description":"Descrizione","added_on":"Aggiunto il","price":"Prezzo","date_of_creation":"Data di creazione","action":"Azione","add_item":"Aggiungi Commessa","save_item":"Salva","update_item":"Aggiorna","item":"Commessa | Commesse","add_new_item":"Aggiungi nuova Commessa","new_item":"Nuova Commessa","edit_item":"Modifica Commessa","no_items":"Ancora nessuna commessa!","list_of_items":"Qui ci sarà la lista delle commesse.","select_a_unit":"Seleziona","taxes":"Imposte","item_attached_message":"Non puoi eliminare una Commessa che è già attiva","confirm_delete":"Non potrai ripristinare la Commessa | Non potrai ripristinare le Commesse","created_message":"Commessa creata con successo","updated_message":"Commessa aggiornata con successo","deleted_message":"Commessa eliminata con successo | Commesse eliminate con successo"},"estimates":{"title":"Preventivi","estimate":"Preventivo | Preventivi","estimates_list":"Lista Preventivi","days":"{days} Giorni","months":"{months} Mese","years":"{years} Anno","all":"Tutti","paid":"Pagato","unpaid":"Non pagato","customer":"CLIENTE","ref_no":"RIF N.","number":"NUMERO","amount_due":"AMMONTARE DOVUTO","partially_paid":"Pagamento Parziale","total":"Totale","discount":"Sconto","sub_total":"Sub Totale","estimate_number":"Preventivo Numero","ref_number":"Numero di Rif.","contact":"Contatto","add_item":"Aggiungi un item","date":"Data","due_date":"Data di pagamento","expiry_date":"Data di scadenza","status":"Stato","add_tax":"Aggiungi Imposta","amount":"Ammontare","action":"Azione","notes":"Note","tax":"Imposta","estimate_template":"Modello","convert_to_invoice":"Converti in Fattura","mark_as_sent":"Segna come Inviata","send_estimate":"Invia preventivo","resend_estimate":"Resend Estimate","record_payment":"Registra Pagamento","add_estimate":"Aggiungi Preventivo","save_estimate":"Salva Preventivo","confirm_conversion":"Questo preventivo verrà usato per generare una nuova fattura.","conversion_message":"Fattura creata","confirm_send_estimate":"Questo preventivo verrà inviato al cliente via mail","confirm_mark_as_sent":"Questo preventivo verrà contrassegnato come inviato","confirm_mark_as_accepted":"Questo preventivo verrà contrassegnato come Accettato","confirm_mark_as_rejected":"Questo preventivo verrà contrassegnato come Rifiutato","no_matching_estimates":"Nessun preventivo trovato!","mark_as_sent_successfully":"Preventivo contrassegnato come inviato con successo","send_estimate_successfully":"Preventivo inviato con successo","errors":{"required":"Campo obbligatorio"},"accepted":"Accettato","sent":"Inviato","draft":"Bozza","declined":"Rifiutato","new_estimate":"Nuovo Preventivo","add_new_estimate":"Crea Nuovo Preventivo","update_Estimate":"Aggiorna preventivo","edit_estimate":"Modifica Preventivo","items":"Commesse","Estimate":"Preventivo | Preventivi","add_new_tax":"Aggiungi una nuova tassa/imposta","no_estimates":"Ancora nessun preventivo!","list_of_estimates":"Questa sezione conterrà la lista dei preventivi.","mark_as_rejected":"Segna come Rifiutato","mark_as_accepted":"Segna come Accettato","marked_as_accepted_message":"Preventivo contrassegnato come accettato","marked_as_rejected_message":"Preventivo contrassegnato come rifiutato","confirm_delete":"Non potrai più recuperare questo preventivo | Non potrai più recuperare questi preventivi","created_message":"Preventivo creato con successo","updated_message":"Preventivo modificato con successo","deleted_message":"Preventivo eliminato con successo | Preventivi eliminati con successo","user_email_does_not_exist":"La Email utente non esiste","something_went_wrong":"Si è verificato un errore","item":{"title":"Titolo Commessa","description":"Descrizione","quantity":"Quantità","price":"Prezzo","discount":"Sconto","total":"Totale","total_discount":"Sconto Totale","sub_total":"Sub Totale","tax":"Tasse","amount":"Ammontare","select_an_item":"Scrivi o clicca per selezionare un item","type_item_description":"Scrivi una Descrizione (opzionale)"}},"invoices":{"title":"Fatture","invoices_list":"Lista Fatture","days":"{days} Giorni","months":"{months} Mese","years":"{years} Anno","all":"Tutti","paid":"Pagato","unpaid":"Insoluto","customer":"CLIENTE","paid_status":"STATO DI PAGAMENTO","ref_no":"RIF N.","number":"NUMERO","amount_due":"AMMONTARE DOVUTO","partially_paid":"Parzialmente Pagata","total":"Totale","discount":"Sconto","sub_total":"Sub Totale","invoice":"Fattura | Fatture","invoice_number":"Numero Fattura","ref_number":"Rif Numero","contact":"Contatto","add_item":"Aggiungi Commessa/Item","date":"Data","due_date":"Data di pagamento","status":"Stato","add_tax":"Aggiungi Imposta","amount":"Ammontare","action":"Azione","notes":"Note","view":"Vedi","send_invoice":"Invia Fattura","resend_invoice":"Resend Invoice","invoice_template":"Modello Fattura","template":"Modello","mark_as_sent":"Segna come inviata","confirm_send_invoice":"Questa fattura sarà inviata via Mail al Cliente","invoice_mark_as_sent":"Questa fattura sarà contrassegnata come inviata","confirm_send":"Questa fattura sarà inviata via Mail al Cliente","invoice_date":"Data fattura","record_payment":"Registra Pagamento","add_new_invoice":"Aggiungi nuova Fattura","update_expense":"Aggiorna Costo","edit_invoice":"Modifica Fattura","new_invoice":"Nuova Fattura","save_invoice":"Salva fattura","update_invoice":"Aggiorna Fattura","add_new_tax":"Aggiungi tassa/imposta","no_invoices":"Ancora nessuna fattura!","list_of_invoices":"Questa sezione conterrà la lista delle Fatture.","select_invoice":"Seleziona Fattura","no_matching_invoices":"Nessuna fattura trovata!","mark_as_sent_successfully":"Fattura contassegnata come inviata con successo","send_invoice_successfully":"Fattura inviata con successo","cloned_successfully":"Fattura copiata con successo","clone_invoice":"Clona Fattura","confirm_clone":"Questa fattura verrà clonata in una nuova fattura","item":{"title":"Titolo Commessa","description":"Descrizione","quantity":"Quantità","price":"Prezzo","discount":"Sconto","total":"Totale","total_discount":"Sconto Totale","sub_total":"Sub Totale","tax":"Tassa","amount":"Ammontare","select_an_item":"Scrivi o clicca per selezionare un item","type_item_description":"Scrivi una descrizione (opzionale)"},"payment_attached_message":"Una delle fatture selezionate ha già associato un pagamento. Assicurati di eliminare il pagamento associato prima di procedere con la rimozione","confirm_delete":"Non potrai recuperare la Fattura cancellata | Non potrai recuperare le Fatture cancellate","created_message":"Fattura creata con successo","updated_message":"Fattura aggiornata con successo","deleted_message":"Fattura cancellata con successo | Fatture cancellate con successo","marked_as_sent_message":"Fattura contrassegnata come inviata con successo","user_email_does_not_exist":"La Email utente non esiste","something_went_wrong":"Si è verificato un errore","invalid_due_amount_message":"L\'ammontare totale della fattura non può essere inferiore all\'ammontare totale pagato per questa fattura. Modifica la fattura o cancella i pagamenti associati per continuare."},"credit_notes":{"title":"Note di Credito","credit_notes_list":"Lista Note di Credito","credit_notes":"Note di Credito","contact":"Contatta","date":"Data","amount":"Ammontare","action":"Azione","credit_number":"Numero Credito","notes":"Note","confirm_delete":"Vuoi cancellare questa nota di credito?","item":{"title":"Titolo","description":"Descrizione","quantity":"Quantità","price":"Prezzo","discount":"Sconto","total":"Totale","total_discount":"Sconto Totale","sub_total":"Sub Totale","tax":"Tassa"}},"payments":{"title":"Pagamenti","payments_list":"Lista Pagamenti","record_payment":"Registra Pagamento","customer":"Cliente","date":"Data","amount":"Ammontare","action":"Azione","payment_number":"Numero di pagamento","payment_mode":"Modalità di Pagamento","invoice":"Fattura","note":"Nota","add_payment":"Aggiungi Pagamento","new_payment":"Nuovo Pagamento","edit_payment":"Modifica Pagamento","view_payment":"Vedi Pagamento","add_new_payment":"Aggiungi nuovo pagamento","send_payment_receipt":"Invia ricevuta di pagamento","send_payment":"Inviare il pagamento","save_payment":"Salva pagamento","update_payment":"Aggiorna pagamento","payment":"Pagamento | Pagamenti","no_payments":"Ancora nessun pagamento!","no_matching_payments":"Non ci sono pagamenti!","list_of_payments":"Questa sezione conterrà la lista dei pagamenti.","select_payment_mode":"Seleziona modalità di pagamento","confirm_mark_as_sent":"Questo preventivo verrà contrassegnato come inviato","confirm_send_payment":"Questo pagamento verrà inviato via email al cliente","send_payment_successfully":"Pagamento inviato con successo","user_email_does_not_exist":"Email utente non esiste","something_went_wrong":"si è verificato un errore","confirm_delete":"Non potrai recuperare questo pagamento | Non potrai recuperare questi pagamenti","created_message":"Pagamento creato con successo","updated_message":"Pagamento aggiornato con successo","deleted_message":"Pagamento cancellato con successo | Pagamenti cancellati con successo","invalid_amount_message":"L\'ammontare del pagamento non è valido"},"expenses":{"title":"Spese","expenses_list":"Lista Costi","select_a_customer":"Seleziona Cliente","expense_title":"Titolo","customer":"Cliente","contact":"Contatto","category":"Categoria","from_date":"Dalla Data","to_date":"Alla Data","expense_date":"Data","description":"Descrizione","receipt":"Ricevuta","amount":"Ammontare","action":"Azione","note":"Nota","category_id":"Id categoria","date":"Data Spesa","add_expense":"Aggiungi Spesa","add_new_expense":"Aggiungi nuova Spesa","save_expense":"Salva la Spesa","update_expense":"Aggiorna Spesa","download_receipt":"Scarica la Ricevuta","edit_expense":"Modifica Spesa","new_expense":"Nuova Spesa","expense":"Spesa | Spese","no_expenses":"Ancora nessuna spesa!","list_of_expenses":"Questa sezione conterrà la lista delle Spese.","confirm_delete":"Non potrai recuperare questa spesa | Non potrai recuperare queste spese","created_message":"Spesa creata con successo","updated_message":"Spesa modificata con successo","deleted_message":"Spesa cancellata con successo | Spese cancellate con successo","categories":{"categories_list":"Lista categorie","title":"Titolo","name":"Nome","description":"Descrizione","amount":"Ammontare","actions":"Azioni","add_category":"Aggiungi Categoria","new_category":"Nuova Categoria","category":"Categoria | Categorie","select_a_category":"Seleziona Categoria"}},"login":{"email":"Email","password":"Password","forgot_password":"Password dimenticata?","or_signIn_with":"o fai login con","login":"Login","register":"Registrati","reset_password":"Resetta Password","password_reset_successfully":"Password Resettata con successo","enter_email":"Inserisci email","enter_password":"Inserisci Password","retype_password":"Ridigita Password","login_placeholder":"mail@example.com"},"users":{"title":"Users","users_list":"Users List","name":"Nome","description":"Descrizione","added_on":"Aggiunto il","date_of_creation":"Data di creazione","action":"Azione","add_user":"Add User","save_user":"Save User","update_user":"Update User","user":"User | Users","add_new_user":"Add New User","new_user":"New User","edit_user":"Edit User","no_users":"No users yet!","list_of_users":"This section will contain the list of users.","email":"Email","phone":"Telefono","password":"Password","user_attached_message":"Non puoi eliminare una Commessa che è già attiva","confirm_delete":"You will not be able to recover this User | You will not be able to recover these Users","created_message":"User created successfully","updated_message":"User updated successfully","deleted_message":"User deleted successfully | User deleted successfully"},"reports":{"title":"Report","from_date":"Da","to_date":"A","status":"Stato","paid":"Pagato","unpaid":"Non pagato","download_pdf":"Scarica PDF","view_pdf":"Vedi PDF","update_report":"Aggiorna Report","report":"Report | Reports","profit_loss":{"profit_loss":"Guadagni & Perdite","to_date":"A","from_date":"Da","date_range":"Seleziona intervallo date"},"sales":{"sales":"Vendite","date_range":"Seleziona intervallo date","to_date":"A","from_date":"Da","report_type":"Tipo di report"},"taxes":{"taxes":"Tasse","to_date":"Alla data","from_date":"Dalla data","date_range":"Seleziona intervallo date"},"errors":{"required":"Campo obbligatorio"},"invoices":{"invoice":"Fattura","invoice_date":"Data fattura","due_date":"Data di pagamento","amount":"Ammontare","contact_name":"Nome contatto","status":"Stato"},"estimates":{"estimate":"Preventivo","estimate_date":"Data preventivo","due_date":"Data di pagamento","estimate_number":"Numero di preventivo","ref_number":"Numero di Rif.","amount":"Ammontare","contact_name":"Nome contatto","status":"Stato"},"expenses":{"expenses":"Spese","category":"Categoria","date":"Data","amount":"Ammontare","to_date":"Alla data","from_date":"Dalla data","date_range":"Seleziona intervallo date"}},"settings":{"menu_title":{"account_settings":"Impostazioni Account","company_information":"Informazioni Azienda","customization":"Personalizzazione","preferences":"Opzioni","notifications":"Notifiche","tax_types":"Tupi di Tasse","expense_category":"Categorie di spesa","update_app":"Aggiorna App","backup":"Backup","file_disk":"File Disk","custom_fields":"Campi personalizzati","payment_modes":"Payment Modes","notes":"Note"},"title":"Impostazioni","setting":"Opzione | Impostazioni","general":"Generale","language":"Lingua","primary_currency":"Valuta Principale","timezone":"Time Zone","date_format":"Formato data","currencies":{"title":"Valute","currency":"Valùta | Valute","currencies_list":"Lista valute","select_currency":"Seleziona Valùta","name":"Nome","code":"Codice","symbol":"Simbolo","precision":"Precisione","thousand_separator":"Separatore migliaia","decimal_separator":"Separatore decimali","position":"Posizione","position_of_symbol":"Posizione del Simbolo","right":"Destra","left":"Sinistra","action":"Azione","add_currency":"Aggiungi Valùta"},"mail":{"host":"Mail Host","port":"Mail - Porta","driver":"Mail Driver","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"Mail Password","username":"Mail Username","mail_config":"Configurazione Mail","from_name":"Nome Mittente Mail","from_mail":"Indirizzo Mittente Mail","encryption":"Tipo di cifratura Mail","mail_config_desc":"Form per Configurazione Driver Mail per invio mail dall\'App. Puoi anche configurare providers di terze parti come Sendgrid, SES, etc.."},"pdf":{"title":"Configurazione PDF","footer_text":"Testo Footer","pdf_layout":"Layout PDF"},"company_info":{"company_info":"Info azienda","company_name":"Nome azienda","company_logo":"Logo azienda","section_description":"Informazioni sulla tua azienda che saranno mostrate in fattura, preventivi ed altri documenti creati dell\'applicazione.","phone":"Telefono","country":"Paese","state":"Stato","city":"Città","address":"Indirizzo","zip":"CAP","save":"Salva","updated_message":"Informazioni Azienda aggiornate con successo."},"custom_fields":{"title":"Campi personalizzati","section_description":"Customize your Invoices, Estimates & Payment Receipts with your own fields. Make sure to use the below added fields on the address formats on Customization settings page.","add_custom_field":"Aggiungi campo personalizzato","edit_custom_field":"Modifica campo personalizzato","field_name":"Nome campo","label":"Etichetta","type":"genere","name":"Nome","required":"Necessaria","placeholder":"segnaposto","help_text":"Testo guida","default_value":"Valore predefinito","prefix":"Prefisso","starting_number":"Numero iniziale","model":"Modella","help_text_description":"Inserisci del testo per aiutare gli utenti a comprendere lo scopo di questo campo personalizzato.","suffix":"Suffisso","yes":"sì","no":"No","order":"Ordine","custom_field_confirm_delete":"Non sarai in grado di recuperare questo campo personalizzato","already_in_use":"Il campo personalizzato è già in uso","deleted_message":"Campo personalizzato eliminato correttamente","options":"opzioni","add_option":"Aggiungi opzioni","add_another_option":"Aggiungi un\'altra opzione","sort_in_alphabetical_order":"Ordina in ordine alfabetico","add_options_in_bulk":"Aggiungi opzioni in blocco","use_predefined_options":"Usa opzioni predefinite","select_custom_date":"Seleziona la data personalizzata","select_relative_date":"Seleziona la data relativa","ticked_by_default":"Contrassegnato per impostazione predefinita","updated_message":"Campo personalizzato aggiornato correttamente","added_message":"Campo personalizzato aggiunto correttamente"},"customization":{"customization":"personalizzazione","save":"Salva","addresses":{"title":"Indirizzi","section_description":"Puoi settare l\'indirizzo di fatturazione del Cliente e/o il formato dell\'indirizzo di spedizione (Mostrato solo sul PDF). ","customer_billing_address":"Indirizzo Fatturazione Cliente","customer_shipping_address":"Indirizzo spedizione Cliente","company_address":"Indirizzo Azienda","insert_fields":"Inserisci Campi","contact":"Contatto","address":"Indirizzo","display_name":"Mostra nome","primary_contact_name":"Nome contatto primario","email":"Email","website":"Sito web","name":"Nome","country":"Paese","state":"Stato","city":"Città","company_name":"Nome Azienda","address_street_1":"Indirizzo 1","address_street_2":"Indirizzo 2","phone":"Telefono","zip_code":"CAP/ZIP Code","address_setting_updated":"Indirizzo aggiornato con Successo"},"updated_message":"Info azienda aggiornate con successo","invoices":{"title":"Fatture","notes":"Note","invoice_prefix":"Prefisso Fattura","default_invoice_email_body":"Default Invoice Email Body","invoice_settings":"Impostazioni fattura","autogenerate_invoice_number":"Auto genera numero di fattura","invoice_setting_description":"Disabilita, se non vuoi auto-generare i numeri delle fatture ogni volta che crei una nuova fattura.","enter_invoice_prefix":"Inserisci prefisso fattura","terms_and_conditions":"Termini e Condizioni","company_address_format":"Company Address Format","shipping_address_format":"Shipping Address Format","billing_address_format":"Billing Address Format","invoice_setting_updated":"Impostazioni fatture aggiornate con successo"},"estimates":{"title":"Preventivi","estimate_prefix":"Prefisso Preventivi","default_estimate_email_body":"Default Estimate Email Body","estimate_settings":"Impostazioni Preventivi","autogenerate_estimate_number":"Auto-genera Numero di preventivo","estimate_setting_description":"Disabilita, se non vuoi autogenerare il numero di preventivo ogni volta che ne viene creato uno nuovo.","enter_estimate_prefix":"Inserisci prefisso preventivo","estimate_setting_updated":"Impostazioni preventivi aggiornate con successo","company_address_format":"Company Address Format","billing_address_format":"Billing Address Format","shipping_address_format":"Shipping Address Format"},"payments":{"title":"Pagamenti","description":"Modes of transaction for payments","payment_prefix":"Prefisso Pagamento","default_payment_email_body":"Default Payment Email Body","payment_settings":"Impostazioni Pagamento","autogenerate_payment_number":"Auto genera il numero di Pagamento","payment_setting_description":"Disabilita, se non vuoi autogenerare il numero di pagamento ogni volta che ne viene creato uno nuovo.","enter_payment_prefix":"Inserisci prefisso di pagamento","payment_setting_updated":"Impostazioni di pagamento aggiornate con successo","payment_modes":"Payment Modes","add_payment_mode":"Aggiungi modalità di pagamento","edit_payment_mode":"Modifica modalità di pagamento","mode_name":"Nome modalità","payment_mode_added":"Modalità di pagamento aggiunta","payment_mode_updated":"Modalità di pagamento aggiornata","payment_mode_confirm_delete":"Non potrai ripristinare la modalità di pagamento","already_in_use":"Modalità di pagamento già in uso","deleted_message":"Payment Mode deleted successfully","company_address_format":"Company Address Format","from_customer_address_format":"From Customer Address Format"},"items":{"title":"Commesse","units":"unità","add_item_unit":"Aggiungi Unità Item","edit_item_unit":"Modifica unità articolo","unit_name":"Nome","item_unit_added":"Unità aggiunta","item_unit_updated":"Unità aggiornata","item_unit_confirm_delete":"Non potrai ripristinare questa unità Item","already_in_use":"Unità Item già in uso","deleted_message":"Unità item eliminata con successo"},"notes":{"title":"Note","description":"Save time by creating notes and reusing them on your invoices, estimates & payments.","notes":"Note","type":"genere","add_note":"Add Note","add_new_note":"Add New Note","name":"Nome","edit_note":"Edit Note","note_added":"Note added successfully","note_updated":"Note Updated successfully","note_confirm_delete":"You will not be able to recover this Note","already_in_use":"Note is already in use","deleted_message":"Note deleted successfully"}},"account_settings":{"profile_picture":"Immagine profilo","name":"Nome","email":"Email","password":"Password","confirm_password":"Conferma Password","account_settings":"Impostazioni Account","save":"Salva","section_description":"Puoi aggiornare nome email e password utilizzando il form qui sotto.","updated_message":"Impostazioni account aggiornate con successo"},"user_profile":{"name":"Nome","email":"Email","password":"Password","confirm_password":"Conferma Password"},"notification":{"title":"Notifica","email":"Invia notifiche a","description":"Quali notifiche email vorresti ricevere quando qualcosa cambia?","invoice_viewed":"Fattura visualizzata","invoice_viewed_desc":"Quando il cliente visualizza la fattura inviata via dashboard applicazione.","estimate_viewed":"Preventivo visualizzato","estimate_viewed_desc":"Quando il cliente visualizza il preventivo inviato dall\'applicazione.","save":"Salva","email_save_message":"Email salvata con successo","please_enter_email":"Inserisci Email"},"tax_types":{"title":"Tipi di Imposta","add_tax":"Aggiungi Imposta","edit_tax":"Modifica imposta","description":"Puoi aggiongere e rimuovere imposte a piacimento. Vengono supportate Tasse differenti per prodotti/servizi specifici esattamento come per le fatture.","add_new_tax":"Aggiungi nuova imposta","tax_settings":"Impostazioni Imposte","tax_per_item":"Tassa per prodotto/servizio","tax_name":"Nome imposta","compound_tax":"Imposta composta","percent":"Percento","action":"Azione","tax_setting_description":"Abilita se vuoi aggiungere imposte specifiche per prodotti o servizi. Di default le imposte sono aggiunte direttamente alla fattura.","created_message":"Tipo di imposta creato con successo","updated_message":"Tipo di imposta aggiornato con successo","deleted_message":"Tipo di imposta eliminato con successo","confirm_delete":"Non potrai ripristinare questo tipo di imposta","already_in_use":"Imposta già in uso"},"expense_category":{"title":"Categorie di spesa","action":"Azione","description":"Le categorie sono necessarie per aggiungere delle voci di spesa. Puoi aggiungere o eliminare queste categorie in base alle tue preferenze.","add_new_category":"Aggiungi nuova categoria","add_category":"Aggiungi categoria","edit_category":"Modifica categoria","category_name":"Nome Categoria","category_description":"Descrizione","created_message":"Categoria di spesa creata con successo","deleted_message":"Categoria di spesa eliminata con successo","updated_message":"Categoria di spesa aggiornata con successo","confirm_delete":"Non potrai ripristinare questa categoria di spesa","already_in_use":"Categoria già in uso"},"preferences":{"currency":"Valùta","default_language":"Default Language","time_zone":"Time Zone","fiscal_year":"Anno finanziario","date_format":"Formato Data","discount_setting":"Impostazione Sconto","discount_per_item":"Sconto Per Item ","discount_setting_description":"Abilita se vuoi aggiungere uno sconto ad uno specifica fattura. Di default, lo sconto è aggiunto direttamente in fattura.","save":"Salva","preference":"Preferenza | Preferenze","general_settings":"Impostazioni di default del sistema.","updated_message":"Preferenze aggiornate con successo","select_language":"seleziona lingua","select_time_zone":"Seleziona Time Zone","select_date_format":"Select Date Format","select_financial_year":"Seleziona anno finanziario"},"update_app":{"title":"Aggiorna App","description":"Puoi facilmente aggiornare l\'app. Aggiorna cliccando sul bottone qui sotto","check_update":"Controllo aggiornamenti","avail_update":"Aggiornamento disponibile","next_version":"Versione successiva","requirements":"Requirements","update":"Aggiorna ora","update_progress":"Aggiornamento in corso...","progress_text":"Sarà necessario qualche minuto. Per favore non aggiornare la pagina e non chiudere la finestra prima che l\'aggiornamento sia completato","update_success":"L\'App è aggiornata! Attendi che la pagina venga ricaricata automaticamente.","latest_message":"Nessun aggiornamneto disponibile! Sei già alla versione più recente.","current_version":"Versione corrente","download_zip_file":"Scarica il file ZIP","unzipping_package":"Pacchetto di decompressione","copying_files":"Copia dei file","running_migrations":"Esecuzione delle migrazioni","finishing_update":"Aggiornamento di finitura","update_failed":"Aggiornamento non riuscito","update_failed_text":"Scusate! L\'aggiornamento non è riuscito il: passaggio {step}"},"backup":{"title":"Backup | Backups","description":"The backup is a zipfile that contains all files in the directories you specify along with a dump of your database","new_backup":"Add New Backup","create_backup":"Create Backup","select_backup_type":"Select Backup Type","backup_confirm_delete":"You will not be able to recover this Backup","path":"path","new_disk":"New Disk","created_at":"created at","size":"size","dropbox":"dropbox","local":"local","healthy":"healthy","amount_of_backups":"amount of backups","newest_backups":"newest backups","used_storage":"used storage","select_disk":"Select Disk","action":"Azione","deleted_message":"Backup deleted successfully","created_message":"Backup created successfully","invalid_disk_credentials":"Invalid credential of selected disk"},"disk":{"title":"File Disk | File Disks","description":"By default, Crater will use your local disk for saving backups, avatar and other image files. You can configure more than one disk drivers like DigitalOcean, S3 and Dropbox according to your preference.","created_at":"created at","dropbox":"dropbox","name":"Nome","driver":"Driver","disk_type":"genere","disk_name":"Disk Name","new_disk":"Add New Disk","filesystem_driver":"Filesystem Driver","local_driver":"local Driver","local_root":"local Root","public_driver":"Public Driver","public_root":"Public Root","public_url":"Public URL","public_visibility":"Public Visibility","media_driver":"Media Driver","media_root":"Media Root","aws_driver":"AWS Driver","aws_key":"AWS Key","aws_secret":"AWS Secret","aws_region":"AWS Region","aws_bucket":"AWS Bucket","aws_root":"AWS Root","do_spaces_type":"Do Spaces type","do_spaces_key":"Do Spaces key","do_spaces_secret":"Do Spaces Secret","do_spaces_region":"Do Spaces Region","do_spaces_bucket":"Do Spaces Bucket","do_spaces_endpoint":"Do Spaces Endpoint","do_spaces_root":"Do Spaces Root","dropbox_type":"Dropbox Type","dropbox_token":"Dropbox Token","dropbox_key":"Dropbox Key","dropbox_secret":"Dropbox Secret","dropbox_app":"Dropbox App","dropbox_root":"Dropbox Root","default_driver":"Default Driver","is_default":"IS DEFAULT","set_default_disk":"Set Default Disk","success_set_default_disk":"Disk set as default successfully","save_pdf_to_disk":"Save PDFs to Disk","disk_setting_description":" Enable this, if you wish to save a copy of each Invoice, Estimate & Payment Receipt PDF on your default disk automatically. Turning this option will decrease the load-time when viewing the PDFs.","select_disk":"Select Disk","disk_settings":"Disk Settings","confirm_delete":"Your existing files & folders in the specified disk will not be affected but your disk configuration will be deleted from Crater","action":"Azione","edit_file_disk":"Edit File Disk","success_create":"Disk added successfully","success_update":"Disk updated successfully","error":"Disk addition failed","deleted_message":"File Disk deleted successfully","disk_variables_save_successfully":"Disk Configured Successfully","disk_variables_save_error":"Disk configuration failed.","invalid_disk_credentials":"Invalid credential of selected disk"}},"wizard":{"account_info":"Informazioni Account","account_info_desc":"I dettagli qui sotto verranno usati per creare l\'account principale dell\'Amministratore. Puoi modificarli in qualsiasi momento dopo esserti loggato come Amministratore.","name":"Nome","email":"Email","password":"Password","confirm_password":"Conferma Password","save_cont":"Salva & Continua","company_info":"Informazioni Azienda","company_info_desc":"Questa informazione verrà mostrata nelle fatture. Puoi modificare queste informazione in un momento successivo dalla pagina delle impostazioni.","company_name":"Nome Azienda","company_logo":"Logo Azienda","logo_preview":"Anteprima Logo","preferences":"Impostazioni","preferences_desc":"Impostazioni di default del sistema.","country":"Paese","state":"Stato","city":"Città","address":"Indirizzo","street":"Indirizzo1 | Indirizzo2","phone":"Telefono","zip_code":"CAP/Zip Code","go_back":"Torna indietro","currency":"Valùta","language":"Lingua","time_zone":"Time Zone","fiscal_year":"Anno Finanziario","date_format":"Formato Date","from_address":"Indirizzo - Da","username":"Username","next":"Successivo","continue":"Continua","skip":"Salta","database":{"database":"URL del sito & database","connection":"Connessione Database","host":"Database Host","port":"Database - Porta","password":"Database Password","app_url":"App URL","app_domain":"App Domain","username":"Database Username","db_name":"Database Nome","db_path":"Database Path","desc":"Crea un database sul tuo server e setta le credenziali usando il form qui sotto."},"permissions":{"permissions":"Permessi","permission_confirm_title":"Sei sicuro di voler continuare?","permission_confirm_desc":"Controllo sui permessi Cartelle, fallito","permission_desc":"Qui sotto la lista dei permessi richiesti per far funzionare correttamente l\'App. Se il controllo dei permessi fallisce, assicurati di aggiornare/modificare i permessi sulle cartelle."},"mail":{"host":"Mail Host","port":"Mail - Porta","driver":"Mail Driver","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"Mail Password","username":"Mail Username","mail_config":"Configurazione Mail","from_name":"Nome mittente mail","from_mail":"Indirizzo mittente mail","encryption":"Tipo di cifratura Mail","mail_config_desc":"Form per configurazione del \'driver mail\' per inviare emails dall\'App. Puoi anche configurare servizi di terze parti come Sendgrid, SES, ecc.."},"req":{"system_req":"Requisiti di Sistema","php_req_version":"Php (versione {version} richiesta)","check_req":"Controllo Requisiti","system_req_desc":"Crater ha alcuni requisiti di sistema. Assicurati che il server ha la versione di php richiesta e tutte le estensioni necessarie."},"errors":{"migrate_failed":"Migrate Failed","database_variables_save_error":"Cannot write configuration to .env file. Please check its file permissions","mail_variables_save_error":"Email configuration failed.","connection_failed":"Database connection failed","database_should_be_empty":"Database should be empty"},"success":{"mail_variables_save_successfully":"Email configurata con successo","database_variables_save_successfully":"Database configurato con successo."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Fatturazione super semplice","for_freelancer":"per Freelancers &","small_businesses":"Medio Piccoli Business ","crater_help":"Crater ti aiuta a tracciare le spese, registrare pagamenti e generare graziose","invoices_and_estimates":"fatture & preventivi con possibilità di scegliere tra diversi modelli."},"validation":{"invalid_phone":"Numero di telefono invalido","invalid_url":"URL non valido (es: http://www.crater.com)","invalid_domain_url":"URL non valido (es: crater.com)","required":"Campo obbligatorio","email_incorrect":"Email non corretta.","email_already_taken":"Email già in uso.","email_does_not_exist":"L\'utente con questa email non esiste","item_unit_already_taken":"Questo nome item è già utilizzato","payment_mode_already_taken":"Questa modalità di pagamento è già stata inserita.","send_reset_link":"Invia Link di Reset","not_yet":"Non ancora? Invia di nuovo","password_min_length":"La password deve contenere {count} caratteri","name_min_length":"Il nome deve avere almeno {count} lettere.","enter_valid_tax_rate":"Inserisci un tasso di imposta valido","numbers_only":"Solo numeri.","characters_only":"Solo caratteri.","password_incorrect":"La Password deve essere identica","password_length":"La password deve essere lunga {count} caratteri.","qty_must_greater_than_zero":"La quantità deve essere maggiore di zero.","price_greater_than_zero":"Il prezzo deve essere maggiore di zero.","payment_greater_than_zero":"Il pagamento deve essere maggiore di zero.","payment_greater_than_due_amount":"Il pagamento inserito è maggiore di quello indicato in fattura.","quantity_maxlength":"La Quantità non può essere maggiore di 20 cifre.","price_maxlength":"Il prezzo non può contenere più di 20 cifre.","price_minvalue":"Il prezzo deve essere maggiore di 0.","amount_maxlength":"La somma non deve contenere più di 20 cifre.","amount_minvalue":"La somma deve essere maggiore di 0.","description_maxlength":"La Descrizione non deve superare i 255 caratteri.","subject_maxlength":"L\'Oggetto non deve superare i 100 caratter.","message_maxlength":"Il messaggio non può superare i 255 caratteri.","maximum_options_error":"Massimo di {max} opzioni selezionate. Per selezionare un\'altra opzione deseleziona prima una opzione.","notes_maxlength":"Le note non possono superare i 255 caratteri.","address_maxlength":"L\'Indirizzo non può eccedere i 255 caratteri.","ref_number_maxlength":"Il Numero di Riferimento non può superare i 255 caratteri.","prefix_maxlength":"Il Prefisso non può superare i 5 caratteri.","something_went_wrong":"Si è verificato un errore"},"pdf_estimate_label":"Preventivo","pdf_estimate_number":"Preventivo Numero","pdf_estimate_date":"Data preventivo","pdf_estimate_expire_date":"Expiry date","pdf_invoice_label":"Fattura","pdf_invoice_number":"Numero Fattura","pdf_invoice_date":"Data fattura","pdf_invoice_due_date":"Due date","pdf_notes":"Note","pdf_items_label":"Commesse","pdf_quantity_label":"Quantità","pdf_price_label":"Prezzo","pdf_discount_label":"Sconto","pdf_amount_label":"Ammontare","pdf_subtotal":"Subtotal","pdf_total":"Totale","pdf_payment_receipt_label":"PAYMENT RECEIPT","pdf_payment_date":"Payment Date","pdf_payment_number":"Numero di pagamento","pdf_payment_mode":"Modalità di Pagamento","pdf_payment_amount_received_label":"Amount Received","pdf_expense_report_label":"EXPENSES REPORT","pdf_total_expenses_label":"TOTAL EXPENSE","pdf_profit_loss_label":"PROFIT & LOSS REPORT","pdf_income_label":"INCOME","pdf_net_profit_label":"NET PROFIT","pdf_customer_sales_report":"Sales Report: By Customer","pdf_total_sales_label":"TOTAL SALES","pdf_item_sales_label":"Sales Report: By Item","pdf_tax_report_label":"TAX REPORT","pdf_total_tax_label":"TOTAL TAX","pdf_tax_types_label":"Tipi di Imposta","pdf_expenses_label":"Uscite","pdf_bill_to":"Fattura a,","pdf_ship_to":"Invia a,","pdf_received_from":"Received from:"}'),ce=JSON.parse('{"navigation":{"dashboard":"Komandna tabla","customers":"Klijenti","items":"Stavke","invoices":"Fakture","expenses":"Rashodi","estimates":"Profakture","payments":"Uplate","reports":"Izveštaji","settings":"Podešavanja","logout":"Odjavi se","users":"Korisnici"},"general":{"add_company":"Dodaj kompaniju","view_pdf":"Pogledaj PDF","copy_pdf_url":"Kopiraj PDF link","download_pdf":"Preuzmi PDF","save":"Sačuvaj","create":"Napravi","cancel":"Otkaži","update":"Ažuriraj","deselect":"Poništi izbor","download":"Preuzmi","from_date":"Od Datuma","to_date":"Do Datuma","from":"Pošiljalac","to":"Primalac","sort_by":"Rasporedi Po","ascending":"Rastuće","descending":"Opadajuće","subject":"Predmet","body":"Telo","message":"Poruka","send":"Pošalji","go_back":"Idi nazad","back_to_login":"Nazad na prijavu?","home":"Početna","filter":"Filter","delete":"Obriši","edit":"Izmeni","view":"Pogledaj","add_new_item":"Dodaj novu stavku","clear_all":"Izbriši sve","showing":"Prikazivanje","of":"od","actions":"Akcije","subtotal":"UKUPNO","discount":"POPUST","fixed":"Fiksno","percentage":"Procenat","tax":"POREZ","total_amount":"UKUPAN IZNOS","bill_to":"Račun za","ship_to":"Isporučiti za","due":"Dužan","draft":"U izradi","sent":"Poslato","all":"Sve","select_all":"Izaberi sve","choose_file":"Klikni ovde da izabereš fajl","choose_template":"Izaberi šablon","choose":"Izaberi","remove":"Ukloni","powered_by":"Pokreće","bytefury":"Bytefury","select_a_status":"Izaberi status","select_a_tax":"Izaberi porez","search":"Pretraga","are_you_sure":"Da li ste sigurni?","list_is_empty":"Lista je prazna.","no_tax_found":"Porez nije pronađen!","four_zero_four":"404","you_got_lost":"Ups! Izgubio si se!","go_home":"Idi na početnu stranicu","test_mail_conf":"Testiraj podešavanje Pošte","send_mail_successfully":"Pošta uspešno poslata","setting_updated":"Podešavanje uspešno ažurirano","select_state":"Odaberi saveznu državu","select_country":"Odaberi državu","select_city":"Odaberi grad","street_1":"Adresa 1","street_2":"Adresa 2","action_failed":"Akcija nije uspela","retry":"Pokušaj ponovo","choose_note":"Odaberi napomenu","no_note_found":"Ne postoje sačuvane napomene","insert_note":"Unesi belešku","copied_pdf_url_clipboard":"Link do PDF fajla kopiran!"},"dashboard":{"select_year":"Odaberi godinu","cards":{"due_amount":"Dužan iznos","customers":"Klijenti","invoices":"Fakture","estimates":"Profakture"},"chart_info":{"total_sales":"Prodaja","total_receipts":"Računi","total_expense":"Rashodi","net_income":"Prihod NETO","year":"Odaberi godinu"},"weekly_invoices":{"title":"Fakture nedeljno"},"monthly_chart":{"title":"Prodaja & Rashodi"},"recent_invoices_card":{"title":"Dospele fakture","due_on":"Datum dospevanja","customer":"Klijent","amount_due":"Iznos dospeća","actions":"Akcije","view_all":"Pogledaj sve"},"recent_estimate_card":{"title":"Nedavne profakture","date":"Datum","customer":"Klijent","amount_due":"Iznos dospeća","actions":"Akcije","view_all":"Pogledaj sve"}},"tax_types":{"name":"Naziv","description":"Opis","percent":"Procenat","compound_tax":"Složeni porez"},"global_search":{"search":"Pretraga...","customers":"Klijenti","users":"Korisnici","no_results_found":"Nema rezultata"},"customers":{"title":"Klijenti","add_customer":"Dodaj Klijenta","contacts_list":"Lista klijenata","name":"Naziv","mail":"Mail | Mail-ovi","statement":"Izjava","display_name":"Naziv koji se prikazuje","primary_contact_name":"Primarna kontakt osoba","contact_name":"Naziv kontakt osobe","amount_due":"Iznos dospeća","email":"Email","address":"Adresa","phone":"Telefon","website":"Veb stranica","overview":"Pregled","enable_portal":"Uključi portal","country":"Država","state":"Savezna država","city":"Grad","zip_code":"Poštanski broj","added_on":"Datum dodavanja","action":"Akcija","password":"Šifra","street_number":"Broj ulice","primary_currency":"Primarna valuta","description":"Opis","add_new_customer":"Dodaj novog klijenta","save_customer":"Sačuvaj klijenta","update_customer":"Ažuriraj klijenta","customer":"Klijent | Klijenti","new_customer":"Nov klijent","edit_customer":"Izmeni klijenta","basic_info":"Osnovne informacije","billing_address":"Adresa za naplatu","shipping_address":"Adresa za dostavu","copy_billing_address":"Kopiraj iz adrese za naplatu","no_customers":"Još uvek nema klijenata!","no_customers_found":"Klijenti nisu pronađeni!","list_of_customers":"Ova sekcija će da sadrži spisak klijenata.","primary_display_name":"Primarni naziv koji se prikazuje","select_currency":"Odaberi valutu","select_a_customer":"Odaberi klijenta","type_or_click":"Unesi tekst ili klikni da izabereš","new_transaction":"Nova transakcija","no_matching_customers":"Ne postoje klijenti koji odgovaraju pretrazi!","phone_number":"Broj telefona","create_date":"Datum kreiranja","confirm_delete":"Nećeš moći da povratiš ovog klijenta i sve njegove Fakture, Profakture i Uplate. | Nećeš moći da povratiš ove klijente i njihove Fakture, Profakture i Uplate.","created_message":"Klijent uspešno kreiran","updated_message":"Klijent uspešno ažuriran","deleted_message":"Klijent uspešno obrisan | Klijenti uspešno obrisani"},"items":{"title":"Stavke","items_list":"Lista stavki","name":"Naziv","unit":"Jedinica","description":"Opis","added_on":"Datum dodavanja","price":"Cena","date_of_creation":"Datum kreiranja","action":"Akcije","add_item":"Dodaj Stavku","save_item":"Sačuvaj Stavku","update_item":"Ažuriraj Stavku","item":"Stavka | Stavke","add_new_item":"Dodaj novu stavku","new_item":"Nova stavka","edit_item":"Izmeni stavku","no_items":"Još uvek nema stavki!","list_of_items":"Ova sekcija će da sadrži spisak stavki.","select_a_unit":"odaberi jedinicu","taxes":"Porezi","item_attached_message":"Nije dozvoljeno brisanje stavke koje se koristi","confirm_delete":"Nećeš moći da povratiš ovu Stavku | Nećeš moći da povratiš ove Stavke","created_message":"Stavka uspešno kreirana","updated_message":"Stavka uspešno ažurirana","deleted_message":"Stavka uspešno obrisana | Stavke uspešno obrisane"},"estimates":{"title":"Profakture","estimate":"Profaktura | Profakture","estimates_list":"Lista profaktura","days":"{days} Dan","months":"{months} Mesec","years":"{years} Godina","all":"Sve","paid":"Plaćeno","unpaid":"Neplaćeno","customer":"KLIJENT","ref_no":"POZIV NA BROJ","number":"BROJ","amount_due":"IZNOS DOSPEĆA","partially_paid":"Delimično Plaćeno","total":"Ukupno za plaćanje","discount":"Popust","sub_total":"Osnovica za obračun PDV-a","estimate_number":"Broj profakture","ref_number":"Poziv na broj","contact":"Kontakt","add_item":"Dodaj stavku","date":"Datum","due_date":"Datum Dospeća","expiry_date":"Datum Isteka","status":"Status","add_tax":"Dodaj Porez","amount":"Iznos","action":"Akcija","notes":"Napomena","tax":"Porez","estimate_template":"Šablon","convert_to_invoice":"Pretvori u Fakturu","mark_as_sent":"Označi kao Poslato","send_estimate":"Pošalji Profakturu","resend_estimate":"Ponovo pošalji Profakturu","record_payment":"Unesi uplatu","add_estimate":"Dodaj Profakturu","save_estimate":"Sačuvaj Profakturu","confirm_conversion":"Detalji ove Profakture će biti iskorišćeni za pravljenje Fakture.","conversion_message":"Faktura uspešno kreirana","confirm_send_estimate":"Ova Profaktura će biti poslata putem Email-a klijentu","confirm_mark_as_sent":"Ova Profaktura će biti označena kao Poslata","confirm_mark_as_accepted":"Ova Profaktura će biti označena kao Prihvaćena","confirm_mark_as_rejected":"Ova Profaktura će biti označena kao Odbijena","no_matching_estimates":"Ne postoji odgovarajuća profaktura!","mark_as_sent_successfully":"Profaktura uspešno označena kao Poslata","send_estimate_successfully":"Profaktura uspešno poslata","errors":{"required":"Polje je obavezno"},"accepted":"Prihvaćeno","sent":"Poslato","draft":"U izradi","declined":"Odbijeno","new_estimate":"Nova Profaktura","add_new_estimate":"Dodaj novu Profakturu","update_Estimate":"Ažuriraj Profakturu","edit_estimate":"Izmeni Profakturu","items":"stavke","Estimate":"Profaktura | Profakture","add_new_tax":"Dodaj nov Porez","no_estimates":"Još uvek nema Profaktura!","list_of_estimates":"Ova sekcija će da sadrži spisak Profaktura.","mark_as_rejected":"Označi kao odbijeno","mark_as_accepted":"Označi kao prihvaćeno","marked_as_accepted_message":"Profaktura označena kao prihvaćena","marked_as_rejected_message":"Profaktura označena kao odbijena","confirm_delete":"Nećeš moći da povratiš ovu Profakturu | Nećeš moći da povratiš ove Profakture","created_message":"Profaktura uspešno kreirana","updated_message":"Profaktura uspešno ažurirana","deleted_message":"Profaktura uspešno obrisana | Profakture uspešno obrisane","user_email_does_not_exist":"Email adresa klijenta ne postoji","something_went_wrong":"nešto je krenulo naopako","item":{"title":"Naziv stavke","description":"Opis","quantity":"Količina","price":"Cena","discount":"Popust","total":"Ukupno za plaćanje","total_discount":"Ukupan popust","sub_total":"Ukupno","tax":"Porez","amount":"Iznos","select_an_item":"Unesi tekst ili klikni da izabereš","type_item_description":"Unesi opis Stavke (nije obavezno)"}},"invoices":{"title":"Fakture","invoices_list":"List Faktura","days":"{days} dan","months":"{months} Mesec","years":"{years} Godina","all":"Sve","paid":"Plaćeno","unpaid":"Neplaćeno","customer":"KLIJENT","paid_status":"STATUS UPLATE","ref_no":"POZIV NA BROJ","number":"BROJ","amount_due":"IZNOS DOSPEĆA","partially_paid":"Delimično plaćeno","total":"Ukupno za plaćanje","discount":"Popust","sub_total":"Osnovica za obračun PDV-a","invoice":"Faktura | Fakture","invoice_number":"Broj Fakture","ref_number":"Poziv na broj","contact":"Kontakt","add_item":"Dodaj Stavku","date":"Datum","due_date":"Datum Dospeća","status":"Status","add_tax":"Dodaj Porez","amount":"Iznos","action":"Akcija","notes":"Napomena","view":"Pogledaj","send_invoice":"Pošalji Fakturu","resend_invoice":"Ponovo pošalji Fakturu","invoice_template":"Šablon Fakture","template":"Šablon","mark_as_sent":"Označi kao Poslato","confirm_send_invoice":"Ova Faktura će biti poslata putem Email-a klijentu","invoice_mark_as_sent":"Ova Faktura će biti označena kao poslata","confirm_send":"Ova Faktura će biti poslata putem Email-a klijentu","invoice_date":"Datum Fakture","record_payment":"Unesi Uplatu","add_new_invoice":"Dodaj novu Fakturu","update_expense":"Ažuriraj Rashod","edit_invoice":"Izmeni Fakturu","new_invoice":"Nova Faktura","save_invoice":"Sačuvaj Fakturu","update_invoice":"Ažuriraj Fakturu","add_new_tax":"Dodaj nov Porez","no_invoices":"Još uvek nema Faktura!","list_of_invoices":"Ova sekcija će da sadrži spisak Faktura.","select_invoice":"Odaberi Fakturu","no_matching_invoices":"Ne postoje Fakture koje odgovaraju pretrazi!","mark_as_sent_successfully":"Faktura uspešno označena kao Poslata","send_invoice_successfully":"Faktura uspešno poslata","cloned_successfully":"Uspešno napravljen duplikat Fakture","clone_invoice":"Napravi duplikat","confirm_clone":"Ova Faktura će biti duplikat nove Fakture","item":{"title":"Naziv Stavke","description":"Opis","quantity":"Količina","price":"Cena","discount":"Popust","total":"Ukupno za plaćanje","total_discount":"Ukupan popust","sub_total":"Ukupno","tax":"Porez","amount":"Iznos","select_an_item":"Unesi tekst ili klikni da izabereš","type_item_description":"Unesi opis Stavke (nije obavezno)"},"payment_attached_message":"Jedna od odabranih faktura već ima uplatu povezanu sa njom. Obrišite prvo povezane uplate da bi nastavili sa brisanjem","confirm_delete":"Nećeš moći da povratiš ovu Fakturu | Nećeš moći da povratiš ove Fakture","created_message":"Faktura uspešno kreirana","updated_message":"Faktura uspešno ažurirana","deleted_message":"Faktura uspešno obrisana | Fakture uspešno obrisane","marked_as_sent_message":"Faktura označena kao uspešno poslata","user_email_does_not_exist":"Email adresa klijenta ne postoji","something_went_wrong":"nešto je krenulo naopako","invalid_due_amount_message":"Ukupan iznos za plaćanje u fakturi ne može biti manji od iznosa uplate za ovu fakturu. Molim Vas ažurirajte fakturu ili obrišite uplate koje su povezane sa ovom fakturom da bi nastavili."},"credit_notes":{"title":"Napomena o Kreditu","credit_notes_list":"Lista napomena o kreditima","credit_notes":"Napomene o Kreditima","contact":"Kontakt","date":"Datum","amount":"Iznos","action":"Akcija","credit_number":"Broj Kredita","notes":"Napomena","confirm_delete":"Da li želiš da obrišeš ovu napomenu o kreditu?","item":{"title":"Naziv Stavke","description":"Opis","quantity":"Količina","price":"Cena","discount":"Popust","total":"Ukupno za plaćanje","total_discount":"Ukupan popust","sub_total":"Ukupno","tax":"Porez"}},"payments":{"title":"Uplate","payments_list":"Lista uplata","record_payment":"Unesi Uplatu","customer":"Klijent","date":"Datum","amount":"Iznos","action":"Akcija","payment_number":"Broj uplate","payment_mode":"Način plaćanja","invoice":"Faktura","note":"Napomena","add_payment":"Dodaj Uplatu","new_payment":"Nova Uplata","edit_payment":"Izmeni Uplatu","view_payment":"Vidi Uplatu","add_new_payment":"Dodaj Novu Uplatu","send_payment_receipt":"Pošalji potvrdu o uplati","send_payment":"Pošalji Uplatu","save_payment":"Sačuvaj Uplatu","update_payment":"Ažuriraj Uplatu","payment":"Uplata | Uplate","no_payments":"Još uvek nema uplata!","no_matching_payments":"Ne postoje uplate koje odgovaraju pretrazi!","list_of_payments":"Ova sekcija će da sadrži listu uplata.","select_payment_mode":"Odaberi način plaćanja","confirm_mark_as_sent":"Ovo plaćanje će biti označena kao Poslata","confirm_send_payment":"Ovo plaćanje će biti poslato putem Email-a klijentu","send_payment_successfully":"Plaćanje uspešno poslato","user_email_does_not_exist":"Email adresa klijenta ne postoji","something_went_wrong":"nešto je krenulo naopako","confirm_delete":"Nećeš moći da povratiš ovu Uplatu | Nećeš moći da povratiš ove Uplate","created_message":"Uplata uspešno kreirana","updated_message":"Uplata uspešno ažurirana","deleted_message":"Uplata uspešno obrisana | Uplate uspešno obrisane","invalid_amount_message":"Iznos Uplate je pogrešan"},"expenses":{"title":"Rashodi","expenses_list":"Lista Rashoda","select_a_customer":"Odaberi klijenta","expense_title":"Naslov","customer":"Klijent","contact":"Kontakt","category":"Kategorija","from_date":"Datum od","to_date":"Datum do","expense_date":"Datum","description":"Opis","receipt":"Račun","amount":"Iznos","action":"Akcija","note":"Napomena","category_id":"ID kategorije","date":"Datum","add_expense":"Dodaj Rashod","add_new_expense":"Dodaj Novi Rashod","save_expense":"Sačuvaj Rashod","update_expense":"Ažuriraj Rashod","download_receipt":"Preuzmi Račun","edit_expense":"Izmeni Rashod","new_expense":"Novi Rashod","expense":"Rashod | Rashodi","no_expenses":"Još uvek nema rashoda!","list_of_expenses":"Ova sekcija će da sadrži listu rashoda.","confirm_delete":"Nećeš moći da povratiš ovaj Rashod | Nećeš moći da povratiš ove Rashode","created_message":"Rashod uspešno kreiran","updated_message":"Rashod uspešno ažuriran","deleted_message":"Rashod uspešno obrisan | Rashodi uspešno obrisani","categories":{"categories_list":"Lista Kategorija","title":"Naslov","name":"Naziv","description":"Opis","amount":"Iznos","actions":"Akcije","add_category":"Dodaj Kategoriju","new_category":"Nova Kategorija","category":"Kategorija | Kategorije","select_a_category":"Izaberi kategoriju"}},"login":{"email":"Email","password":"Šifra","forgot_password":"Zaboravili ste šifru?","or_signIn_with":"ili se prijavite sa","login":"Prijava","register":"Registracija","reset_password":"Restujte šifru","password_reset_successfully":"Šifra Uspešno Resetovana","enter_email":"Unesi email","enter_password":"Unesi šifru","retype_password":"Ponovo unesi šifru","login_placeholder":"mail@example.com"},"users":{"title":"Korisnici","users_list":"Lista korisnika","name":"Ime i prezime","description":"Opis","added_on":"Datum dodavanja","date_of_creation":"Datum kreiranja","action":"Akcija","add_user":"Dodaj Korisnika","save_user":"Sačuvaj Korisnika","update_user":"Ažuriraj Korisnika","user":"Korisnik | Korisnici","add_new_user":"Dodaj novog korisnika","new_user":"Nov Korisnik","edit_user":"Izmeni Korisnika","no_users":"Još uvek nema korisnika!","list_of_users":"Ova sekcija će da sadrži listu korisnika.","email":"Email","phone":"Broj telefona","password":"Šifra","user_attached_message":"Ne možete obrisati stavku koja je već u upotrebi","confirm_delete":"Nećeš moći da povratiš ovog Korisnika | Nećeš moći da povratiš ove Korisnike","created_message":"Korisnik uspešno napravljen","updated_message":"Korisnik uspešno ažuriran","deleted_message":"Korisnik uspešno obrisan | Korisnici uspešno obrisani"},"reports":{"title":"Izveštaj","from_date":"Datum od","to_date":"Datum do","status":"Status","paid":"Plaćeno","unpaid":"Neplaćeno","download_pdf":"Preuzmi PDF","view_pdf":"Pogledaj PDF","update_report":"Ažuriraj Izveštaj","report":"Izveštaj | Izveštaji","profit_loss":{"profit_loss":"Prihod & Rashod","to_date":"Datum do","from_date":"Datum od","date_range":"Izaberi opseg datuma"},"sales":{"sales":"Prodaja","date_range":"Izaberi opseg datuma","to_date":"Datum do","from_date":"Datum od","report_type":"Tip Izveštaja"},"taxes":{"taxes":"Porezi","to_date":"Datum do","from_date":"Datum od","date_range":"Izaberi opseg datuma"},"errors":{"required":"Polje je obavezno"},"invoices":{"invoice":"Faktura","invoice_date":"Datum Fakture","due_date":"Datum Dospeća","amount":"Iznos","contact_name":"Ime Kontakta","status":"Status"},"estimates":{"estimate":"Profaktura","estimate_date":"Datum Profakture","due_date":"Datum Dospeća","estimate_number":"Broj Profakture","ref_number":"Poziv na broj","amount":"Iznos","contact_name":"Ime Kontakta","status":"Status"},"expenses":{"expenses":"Rashodi","category":"Kategorija","date":"Datum","amount":"Iznos","to_date":"Datum do","from_date":"Datum od","date_range":"Izaberi opseg datuma"}},"settings":{"menu_title":{"account_settings":"Podešavanje Naloga","company_information":"Podaci o firmi","customization":"Prilagođavanje","preferences":"Preferencija","notifications":"Obaveštenja","tax_types":"Tipovi Poreza","expense_category":"Kategorije Rashoda","update_app":"Ažuriraj Aplikaciju","backup":"Bekap","file_disk":"File Disk","custom_fields":"Prilagođena polja","payment_modes":"Način plaćanja","notes":"Napomene"},"title":"Podešavanja","setting":"Podešavanje | Podešavanja","general":"Opšte","language":"Jezik","primary_currency":"Primarna Valuta","timezone":"Vremenska Zona","date_format":"Format Datuma","currencies":{"title":"Valute","currency":"Valuta | Valute","currencies_list":"Lista Valuta","select_currency":"Odaberi Valutu","name":"Naziv","code":"Kod","symbol":"Simbol","precision":"Preciznost","thousand_separator":"Separator za hiljade","decimal_separator":"Separator za decimale","position":"Pozicija","position_of_symbol":"Pozicija simbola","right":"Desno","left":"Levo","action":"Akcija","add_currency":"Dodaj Valutu"},"mail":{"host":"Mail Host","port":"Mail Port","driver":"Mail Driver","secret":"Šifra","mailgun_secret":"Mailgun Šifra","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Šifra","ses_key":"SES Ključ","password":"Mail Šifra","username":"Mail Korisničko Ime","mail_config":"Mail Podešavanje","from_name":"Naziv pošiljaoca","from_mail":"E-mail adresa pošiljaoca","encryption":"E-mail enkripcija","mail_config_desc":"Ispod se nalazi forma za podešavanje E-mail drajvera za slanje pošte iz aplikacije. Takođe možete podesiti provajdere treće strane kao Sendgrid, SES itd."},"pdf":{"title":"PDF Podešavanje","footer_text":"Tekstualno zaglavlje na dnu strane","pdf_layout":"PDF Raspored"},"company_info":{"company_info":"Podaci o firmi","company_name":"Naziv firme","company_logo":"Logo firme","section_description":"Informacije o Vašoj firmi će biti prikazane na fakturama, profakturama i drugim dokumentima koji se prave u ovoj aplikaciji.","phone":"Telefon","country":"Država","state":"Savezna Država","city":"Grad","address":"Adresa","zip":"Poštanski broj","save":"Sačuvaj","updated_message":"Podaci o firmi uspešno sačuvani"},"custom_fields":{"title":"Prilagođena polja","section_description":"Prilagodite vaše Fakture, Profakture i Uplate (priznanice) sa svojim poljima. Postarajte se da koristite polja navedena ispod na formatu adrese na stranici Podešavanja/Prilagođavanje.","add_custom_field":"Dodaj prilagođeno polje","edit_custom_field":"Izmeni prilagođeno polje","field_name":"Naziv polja","label":"Oznaka","type":"Tip","name":"Naziv","required":"Obavezno","placeholder":"Opis polja (Placeholder)","help_text":"Pomoćni tekst","default_value":"Podrazumevana vrednost","prefix":"Prefiks","starting_number":"Početni broj","model":"Model","help_text_description":"Unesite opis koji će pomoći korisnicima da razumeju svrhu ovog prilagođenog polja.","suffix":"Sufiks","yes":"Da","no":"Ne","order":"Redosled","custom_field_confirm_delete":"Nećeš moći da povratiš ovo prilagođeno polje","already_in_use":"Prilagođeno polje je već u upotrebi","deleted_message":"Prilagođeno polje je uspešno obrisano","options":"opcije","add_option":"Dodaj opcije","add_another_option":"Dodaj još jednu opciju","sort_in_alphabetical_order":"Poređaj po Abecedi","add_options_in_bulk":"Grupno dodavanje opcija","use_predefined_options":"Koristi predefinisane opcije","select_custom_date":"Odaberi datum","select_relative_date":"Odaberi relativan datum","ticked_by_default":"Podrazumevano odabrano","updated_message":"Prilagođeno polje uspešno ažurirano","added_message":"Prilagođeno polje uspešno dodato"},"customization":{"customization":"prilagođavanje","save":"Sačuvaj","addresses":{"title":"Adrese","section_description":"Možete podesiti format adrese klijenta za naplatu i adrese klijenta za dostavu (Prikazano samo u PDF-u)","customer_billing_address":"Adresa za naplatu klijentu","customer_shipping_address":"Adresa za dostavu klijentu","company_address":"Adresa Firme","insert_fields":"Dodaj Polja","contact":"Kontakt","address":"Adresa","display_name":"Naziv koji se prikazuje","primary_contact_name":"Primarna kontakt osoba","email":"Email","website":"Veb stranica","name":"Naziv","country":"Država","state":"Savezna Država","city":"Grad","company_name":"Naziv Firme","address_street_1":"Adresa 1","address_street_2":"Adresa 2","phone":"Telefon","zip_code":"Poštanski broj","address_setting_updated":"Podešavanje adrese uspešno ažurirano"},"updated_message":"Podaci o firmi su uspešno ažurirani","invoices":{"title":"Fakture","notes":"Napomene","invoice_prefix":"Prefiks faktura","default_invoice_email_body":"Podrazumevan sadržaj email-a za Fakture","invoice_settings":"Podešavanje za fakture","autogenerate_invoice_number":"Automatski-generiši broj fakture","invoice_setting_description":"Onemogući ovo, Ako Vi ne želite da automatski-generišete broj fakture kada pravite novu fakturu.","enter_invoice_prefix":"Unesite prefiks fakture","terms_and_conditions":"Uslovi Korišćenja","company_address_format":"Format adrese firme","shipping_address_format":"Format adrese za dostavu firme","billing_address_format":"Format adrese za naplatu firme","invoice_setting_updated":"Podešavanje za fakture je uspešno sačuvano"},"estimates":{"title":"Profakture","estimate_prefix":"Prefiks profaktura","default_estimate_email_body":"Podrazumevan sadržaj email-a za Profakture","estimate_settings":"Podešavanje za profakture","autogenerate_estimate_number":"Automatski-generiši broj profakture","estimate_setting_description":"Onemogući ovo, Ako Vi ne želite da automatski-generišete broj profakture kada pravite novu profakturu.","enter_estimate_prefix":"Unesite prefiks profakture","estimate_setting_updated":"Podešavanje za profakture je uspešno sačuvano","company_address_format":"Format adrese firme","billing_address_format":"Format adrese za naplatu firme","shipping_address_format":"Format adrese za dostavu firme"},"payments":{"title":"Uplate","description":"Način plaćanja","payment_prefix":"Prefiks uplata","default_payment_email_body":"Podrazumevan sadržaj email-a za potvrdu o plaćanju (račun)","payment_settings":"Podešavanje za plaćanja","autogenerate_payment_number":"Automatski-generiši broj uplate","payment_setting_description":"Onemogući ovo, Ako ne želite da automatski-generišete broj uplate kada pravite novu uplatu.","enter_payment_prefix":"Unesite prefiks uplate","payment_setting_updated":"Podešavanje za plaćanja je uspešno sačuvano","payment_modes":"Način Plaćanja","add_payment_mode":"Dodaj način plaćanja","edit_payment_mode":"Izmeni način plaćanja","mode_name":"Način plaćanja","payment_mode_added":"Način plaćanja dodat","payment_mode_updated":"Način plaćanja ažuriran","payment_mode_confirm_delete":"Nećeš moći da povratiš ovaj Način Plaćanja","already_in_use":"Način plaćanja se već koristi","deleted_message":"Način plaćanja uspešno obrisan","company_address_format":"Format adrese firme","from_customer_address_format":"Format adrese klijenta"},"items":{"title":"Stavke","units":"Jedinice","add_item_unit":"Dodaj jedinicu stavke","edit_item_unit":"Izmeni jedinicu stavke","unit_name":"Naziv jedinice","item_unit_added":"Jedinica stavke dodata","item_unit_updated":"Jedinica stavke ažurirana","item_unit_confirm_delete":"Nećeš moći da povratiš ovu jedinicu stavke","already_in_use":"Jedinica stavke se već koristi","deleted_message":"Jedinica stavke uspešno obrisana"},"notes":{"title":"Napomene","description":"Uštedite vreme pravljeći napomene i koristeći ih na fakturama, profakturama i uplatama.","notes":"Napomene","type":"Tip","add_note":"Dodaj Napomenu","add_new_note":"Dodaj novu Napomenu","name":"Naziv","edit_note":"Izmeni Napomenu","note_added":"Napomena uspešno dodata","note_updated":"Napomena uspešno ažurirana","note_confirm_delete":"Nećeš moći da povratiš ovu Napomenu","already_in_use":"Napomena se već koristi","deleted_message":"Napomena uspešno obrisana"}},"account_settings":{"profile_picture":"Profilna slika","name":"Ime i prezime","email":"Email","password":"Šifra","confirm_password":"Potvrdi šifru","account_settings":"Podešavanje naloga","save":"Sačuvaj","section_description":"Možete ažurirati Vaše ime i prezime, email, šifru koristeći formu ispod.","updated_message":"Podešavanje naloga uspešno ažurirano"},"user_profile":{"name":"Ime i prezime","email":"Email","password":"Šifra","confirm_password":"Potvrdi šifru"},"notification":{"title":"Obaveštenje","email":"Šalji obaveštenja na","description":"Koja email obaveštenja bi želeli da dobijate kada se nešto promeni?","invoice_viewed":"Faktura gledana","invoice_viewed_desc":"Kada klijent pogleda fakturu koja je poslata putem ove aplikacije.","estimate_viewed":"Profaktura gledana","estimate_viewed_desc":"Kada klijent pogleda profakturu koja je poslata putem ove aplikacije.","save":"Sačuvaj","email_save_message":"Email uspešno sačuvan","please_enter_email":"Molim Vas unesite E-mail"},"tax_types":{"title":"Tipovi Poreza","add_tax":"Dodaj Porez","edit_tax":"Izmeni Porez","description":"Možete dodavati ili uklanjati poreze kako želite. Ova aplikacija podržava porez kako na individualnim stavkama tako i na fakturi.","add_new_tax":"Dodaj Nov Porez","tax_settings":"Podešavanje Poreza","tax_per_item":"Porez po Stavki","tax_name":"Naziv Poreza","compound_tax":"Složen Porez","percent":"Procenat","action":"Akcija","tax_setting_description":"Izaberite ovo ako želite da dodajete porez na individualne stavke. Podrazumevano ponašanje je da je porez dodat direktno na fakturu.","created_message":"Tip poreza uspešno kreiran","updated_message":"Tip poreza uspešno ažuriran","deleted_message":"Tip poreza uspešno obrisan","confirm_delete":"Nećete moći da povratite ovaj Tip Poreza","already_in_use":"Porez se već koristi"},"expense_category":{"title":"Kategorija Rashoda","action":"Akcija","description":"Kategorije su obavezne za dodavanje rashoda. Možeš da dodaš ili obrišeš ove kategorije po svojoj želji.","add_new_category":"Dodaj novu kategoriju","add_category":"Dodaj kategoriju","edit_category":"Izmeni kategoriju","category_name":"Naziv kategorije","category_description":"Opis","created_message":"Kagetorija rashoda je uspešno kreirana","deleted_message":"Kategorija rashoda je uspešno izbrisana","updated_message":"Kategorija rashoda je uspešno ažurirana","confirm_delete":"Nećeš moći da povratiš ovu kategoriju rashoda","already_in_use":"Kategorija se već koristi"},"preferences":{"currency":"Valuta","default_language":"Jezik","time_zone":"Vremenska Zona","fiscal_year":"Finansijska Godina","date_format":"Format datuma","discount_setting":"Podešavanja za popuste","discount_per_item":"Popust po stavci","discount_setting_description":"Izaberite ovo ako želite da dodajete Popust na individualne stavke. Podrazumevano ponašanje je da je Popust dodat direktno na fakturu.","save":"Sačuvaj","preference":"Preferencija | Preferencije","general_settings":"Podrazumevane preferencije za sistem","updated_message":"Preferencije su uspešno ažurirane","select_language":"Izaberi Jezik","select_time_zone":"Izaberi Vremensku Zonu","select_date_format":"Izaberi Format Datuma","select_financial_year":"Izaberi Finansijsku Godinu"},"update_app":{"title":"Ažuriraj aplikaciju","description":"Lako možeš da ažuriraš Crater tako što ćeš uraditi proveru novih verzija klikom na polje ispod","check_update":"Proveri ažuriranost","avail_update":"Dostupna je nova verzija","next_version":"Sledeća verzija","requirements":"Zahtevi","update":"Ažuriraj sad","update_progress":"Ažuriranje je u toku...","progress_text":"Trajaće svega par minuta. Nemojte osvežavati ili zatvoriti stranicu dok ažuriranje ne bude gotovo","update_success":"Aplikacija je ažurirana! Molim Vas Sačekajte da se stranica osveži automatski.","latest_message":"Nema nove verzije! Ažurirana poslednja verzija.","current_version":"Trenutna verzija","download_zip_file":"Preuzmi ZIP paket","unzipping_package":"Raspakivanje paketa","copying_files":"Kopiranje datoteka","deleting_files":"Brisanje fajlova koji nisu u upotrebi","running_migrations":"Migracije u toku","finishing_update":"Završavanje ažuriranja","update_failed":"Neuspešno ažuriranje","update_failed_text":"Žao mi je! Tvoje ažuriranje nije uspelo na koraku broj: {step} korak"},"backup":{"title":"Bekap | Bekapi","description":"Bekap je zip arhiva koja sadrži sve fajlove iz foldera koje ste specificirali, takođe sadrži bekap baze.","new_backup":"Dodaj novi Bekap","create_backup":"Napravi Bekap","select_backup_type":"Izaberi tip Bekapa","backup_confirm_delete":"Nećeš moći da povratiš ovaj Bekap","path":"putanja","new_disk":"Novi Disk","created_at":"datum kreiranja","size":"veličina","dropbox":"dropbox","local":"lokalni","healthy":"zdrav","amount_of_backups":"broj bekapa","newest_backups":"najnoviji bekapi","used_storage":"korišćeno skladište","select_disk":"Izaberi Disk","action":"Akcija","deleted_message":"Bekap uspešno obrisan","created_message":"Bekap uspešno napravljen","invalid_disk_credentials":"Pogrešni kredencijali za odabrani disk"},"disk":{"title":"File Disk | File Disks","description":"Podrazumevano ponašanje je da Crater koristi lokalni disk za čuvanje bekapa, avatara i ostalih slika. Možete podesiti više od jednog disk drajvera od provajdera poput DigitalOcean, S3 i Dropbox po vašoj želji.","created_at":"datum kreiranja","dropbox":"dropbox","name":"Naziv","driver":"Drajver","disk_type":"Tip","disk_name":"Naziv Diska","new_disk":"Dodaj novi Disk","filesystem_driver":"Filesystem Driver","local_driver":"lokalni Drajver","local_root":"local Root","public_driver":"Public Driver","public_root":"Public Root","public_url":"Public URL","public_visibility":"Public Visibility","media_driver":"Media Driver","media_root":"Media Root","aws_driver":"AWS Driver","aws_key":"AWS Key","aws_secret":"AWS Secret","aws_region":"AWS Region","aws_bucket":"AWS Bucket","aws_root":"AWS Root","do_spaces_type":"Do Spaces type","do_spaces_key":"Do Spaces key","do_spaces_secret":"Do Spaces Secret","do_spaces_region":"Do Spaces Region","do_spaces_bucket":"Do Spaces Bucket","do_spaces_endpoint":"Do Spaces Endpoint","do_spaces_root":"Do Spaces Root","dropbox_type":"Dropbox Type","dropbox_token":"Dropbox Token","dropbox_key":"Dropbox Key","dropbox_secret":"Dropbox Secret","dropbox_app":"Dropbox App","dropbox_root":"Dropbox Root","default_driver":"Podrazumevani Drajver","is_default":"DA LI JE PODRAZUMEVAN","set_default_disk":"Postavi Podrazumevani Disk","set_default_disk_confirm":"Ovaj disk će biti postavljen kao podrazumevan i svi novi PDF fajlovi će biti sačuvani na ovom disku","success_set_default_disk":"Disk je uspešno postavljen kao podrazumevan","save_pdf_to_disk":"Sačuvaj PDF fajlove na Disk","disk_setting_description":" Uključite ovo ako želite da sačuvate kopiju PDF fajla svake Fakture, Profakture i Uplate na vaš podrazumevani disk automatski. Uključivanjem ove opcije ćete smanjiti vreme učitavanja pri pregledu PDF fajlova.","select_disk":"Izaberi Disk","disk_settings":"Disk Podešavanja","confirm_delete":"Ovo neće uticati na vaše postojeće fajlove i foldere na navedenom disku, ali će se konfiguracija vašeg diska izbrisati iz Cratera.","action":"Akcija","edit_file_disk":"Izmeni File Disk","success_create":"Disk uspešno dodat","success_update":"Disk uspešno ažuriran","error":"Dodavanje diska nije uspelo","deleted_message":"File Disk uspešno obrisan","disk_variables_save_successfully":"Disk uspešno podešen","disk_variables_save_error":"Podešavanje diska nije uspelo.","invalid_disk_credentials":"Pogrešan kredencijal za disk koji je naveden"}},"wizard":{"account_info":"Informacije o nalogu","account_info_desc":"Detalji u nastavku će se koristiti za kreiranje glavnog administratorskog naloga. Moguće ih je izmeniti u bilo kom trenutku nakon prijavljivanja.","name":"Naziv","email":"E-mail","password":"Šifra","confirm_password":"Potvrdi šifru","save_cont":"Sačuvaj & Nastavi","company_info":"Informacije o firmi","company_info_desc":"Ove informacije će biti prikazane na fakturama. Moguće ih je izmeniti kasnije u podešavanjima.","company_name":"Naziv firme","company_logo":"Logo firme","logo_preview":"Pregled logoa","preferences":"Preference","preferences_desc":"Podrazumevane Preference za sistem","country":"Država","state":"Savezna Država","city":"Grad","address":"Adresa","street":"Ulica1 | Ulica2","phone":"Telefon","zip_code":"Poštanski broj","go_back":"Vrati se nazad","currency":"Valuta","language":"Jezik","time_zone":"Vremenska zona","fiscal_year":"Finansijska godina","date_format":"Format datuma","from_address":"Adresa pošiljaoca","username":"Korisničko ime","next":"Sledeće","continue":"Nastavi","skip":"Preskoči","database":{"database":"URL stranice & baze podataka","connection":"Veza baze podataka","host":"Host baze podataka","port":"Port baze podataka","password":"Šifra baze podataka","app_url":"URL aplikacije","app_domain":"Domen aplikacije","username":"Korisničko ime baze podataka","db_name":"Naziv baze podataka","db_path":"Putanja do baze","desc":"Kreiraj bazu podataka na svom serveru i postavi kredencijale prateći obrazac u nastavku."},"permissions":{"permissions":"Dozvole","permission_confirm_title":"Da li ste sigurni da želite da nastavite?","permission_confirm_desc":"Provera dozvola za foldere nije uspela","permission_desc":"U nastavku se nalazi lista dozvola za foldere koji su neophodni kako bi alikacija radila. Ukoliko provera dozvola ne uspe, ažuriraj svoju listu dozvola za te foldere."},"mail":{"host":"Mail Host","port":"Mail Port","driver":"Mail drajver","secret":"Šifra","mailgun_secret":"Mailgun Šifra","mailgun_domain":"Domen","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Šifra","ses_key":"SES Ključ","password":"Šifra za e-mail","username":"Koristničko ime za e-mail","mail_config":"E-mail konfigurisanje","from_name":"Naziv pošiljaoca","from_mail":"E-mail adresa pošiljaoca","encryption":"E-mail enkripcija","mail_config_desc":"Ispod se nalazi forma za podešavanje E-mail drajvera za slanje pošte iz aplikacije. Takođe možete podesiti provajdere treće strane kao Sendgrid, SES itd."},"req":{"system_req":"Sistemski zahtevi","php_req_version":"Zahteva se PHP verzija {version} ","check_req":"Proveri zahteve","system_req_desc":"Crater ima nekoliko zahteva za server. Proveri da li tvoj server ima potrebnu verziju PHP-a i sva navedena proširenja navedena u nastavku"},"errors":{"migrate_failed":"Neuspešno migriranje","database_variables_save_error":"Konfiguraciju nije moguće zapisati u .env datoteku. Proveri dozvole za datoteku","mail_variables_save_error":"E-mail konfigurisanje je neuspešno","connection_failed":"Neuspešna konekcija sa bazom podataka","database_should_be_empty":"Baza podataka treba da bude prazna"},"success":{"mail_variables_save_successfully":"E-mail je uspešno konfigurisan","database_variables_save_successfully":"Baza podataka je uspešno konfigurisana"}},"layout_login":{"copyright_crater":"Autorska prava @ Crater - 2020","super_simple_invoicing":"Veoma jednostavno fakturisanje","for_freelancer":"za frilensere &","small_businesses":"Mala preduzeća","crater_help":"Crater ti pomaže da pratiš rashode, evidentiraš isplate i generišeš lepše","invoices_and_estimates":"fakture i profakture sa mogućnošću odabira više obrazaca"},"validation":{"invalid_phone":"Pogrešan Broj Telefona","invalid_url":"Nevažeći URL (primer: http://www.crater.com)","invalid_domain_url":"Pogrešan URL (primer: crater.com)","required":"Obavezno polje","email_incorrect":"Pogrešan E-mail","email_already_taken":"Navedeni E-mail je zauzet","email_does_not_exist":"Korisnik sa navedenom e-mail adresom ne postoji","item_unit_already_taken":"Naziv ove jedinice stavke je zauzet","payment_mode_already_taken":"Naziv ovog načina plaćanja je zauzet","send_reset_link":"Pošalji link za resetovanje","not_yet":"Još uvek ništa? Pošalji ponovo","password_min_length":"Šifra mora imati {count} karaktera","name_min_length":"Naziv mora imati najmanje {count} slova","enter_valid_tax_rate":"Unesite odgovarajuću poresku stopu","numbers_only":"Mogu se unositi samo brojevi","characters_only":"Mogu se unositi samo karakteri","password_incorrect":"Šifra mora biti identična","password_length":"Šifra mora imati {count} karaktera","qty_must_greater_than_zero":"Količina mora biti veća od 0.","price_greater_than_zero":"Cena mora biti veća od 0","payment_greater_than_zero":"Uplata mora biti veća od 0","payment_greater_than_due_amount":"Uneta uplata je veća od dospelog iznosa ove fakture","quantity_maxlength":"Količina ne može imati više od 20 cifara","price_maxlength":"Cena ne može imati više od 20 cifara","price_minvalue":"Cena mora biti veća od 0","amount_maxlength":"Iznos ne može da ima više od 20 cifara","amount_minvalue":"Iznos mora biti veći od 0","description_maxlength":"Opis ne može da ima više od 65,000 karaktera","subject_maxlength":"Predmet ne može da ima više od 100 karaktera","message_maxlength":"Poruka ne može da ima više od 255 karaktera","maximum_options_error":"Maksimalan broj opcija je izabran. Prvo uklonite izabranu opciju da biste izabrali drugu","notes_maxlength":"Napomena ne može da ima više od 65,000 karaktera","address_maxlength":"Adresa ne može da ima više od 255 karaktera","ref_number_maxlength":"Poziv na broj ne može da ima više od 225 karaktera","prefix_maxlength":"Prefiks ne može da ima više od 5 karaktera","something_went_wrong":"nešto je krenulo naopako"},"pdf_estimate_label":"Profaktura","pdf_estimate_number":"Broj Profakture","pdf_estimate_date":"Datum Profakture","pdf_estimate_expire_date":"Datum isteka Profakture","pdf_invoice_label":"Faktura","pdf_invoice_number":"Broj Fakture","pdf_invoice_date":"Datum Fakture","pdf_invoice_due_date":"Datum dospeća Fakture","pdf_notes":"Napomena","pdf_items_label":"Stavke","pdf_quantity_label":"Količina","pdf_price_label":"Cena","pdf_discount_label":"Popust","pdf_amount_label":"Iznos","pdf_subtotal":"Osnovica za obračun PDV-a","pdf_total":"Ukupan iznos","pdf_payment_receipt_label":"POTVRDA O UPLATI","pdf_payment_date":"Datum Uplate","pdf_payment_number":"Broj Uplate","pdf_payment_mode":"Način Uplate","pdf_payment_amount_received_label":"Iznos Uplate","pdf_expense_report_label":"IZVEŠTAJ O RASHODIMA","pdf_total_expenses_label":"RASHODI UKUPNO","pdf_profit_loss_label":"IZVEŠTAJ O PRIHODIMA I RASHODIMA","pdf_income_label":"PRIHOD","pdf_net_profit_label":"NETO PROFIT","pdf_customer_sales_report":"Izveštaj o Prodaji: Po Klijentu","pdf_total_sales_label":"PRODAJA UKUPNO","pdf_item_sales_label":"Izveštaj o Prodaji: Po Stavci","pdf_tax_report_label":"IZVEŠTAJ O POREZIMA","pdf_total_tax_label":"UKUPNO POREZ","pdf_tax_types_label":"Tipovi Poreza","pdf_expenses_label":"Rashodi","pdf_bill_to":"Račun za,","pdf_ship_to":"Isporučiti za,","pdf_received_from":"Poslat od strane:"}'),ue=JSON.parse('{"navigation":{"dashboard":"Overzicht","customers":"Klanten","items":"Artikelen","invoices":"Facturen","expenses":"Uitgaven","estimates":"Offertes","payments":"Betalingen","reports":"Rapporten","settings":"Instellingen","logout":"Uitloggen","users":"Gebruikers"},"general":{"add_company":"Bedrijf toevoegen","view_pdf":"Bekijk PDF","copy_pdf_url":"Kopieer PDF-URL","download_pdf":"Download PDF","save":"Opslaan","create":"Maak","cancel":"annuleren","update":"Bijwerken","deselect":"Maak de selectie ongedaan","download":"Downloaden","from_date":"Van datum","to_date":"Tot datum","from":"Van","to":"Naar","sort_by":"Sorteer op","ascending":"Oplopend","descending":"Aflopend","subject":"Onderwerp","body":"Inhoud","message":"Bericht","send":"Verstuur","go_back":"Ga terug","back_to_login":"Terug naar Inloggen?","home":"Home","filter":"Filter","delete":"Verwijderen","edit":"Bewerken","view":"Bekijken","add_new_item":"Voeg een nieuw item toe","clear_all":"Wis alles","showing":"Weergegeven","of":"van","actions":"Acties","subtotal":"SUBTOTAAL","discount":"KORTING","fixed":"Gemaakt","percentage":"Percentage","tax":"BELASTING","total_amount":"TOTAALBEDRAG","bill_to":"Rekening naar","ship_to":"Verzend naar","due":"Openstaand","draft":"Concept","sent":"Verzonden","all":"Alles","select_all":"Selecteer alles","choose_file":"Klik hier om een bestand te kiezen","choose_template":"Kies een sjabloon","choose":"Kiezen","remove":"Verwijderen","powered_by":"Mogelijk gemaakt door","bytefury":"Bytefury","select_a_status":"Selecteer een status","select_a_tax":"Selecteer een belasting","search":"Zoeken","are_you_sure":"Weet je het zeker?","list_is_empty":"Lijst is leeg.","no_tax_found":"Geen belasting gevonden!","four_zero_four":"404","you_got_lost":"Oeps! Je bent verdwaald!","go_home":"Ga naar home","test_mail_conf":"E-mailconfiguratie testen","send_mail_successfully":"Mail is succesvol verzonden","setting_updated":"Instelling succesvol bijgewerkt","select_state":"Selecteer staat","select_country":"Selecteer land","select_city":"Selecteer stad","street_1":"straat 1","street_2":"Straat # 2","action_failed":"Actie: mislukt","retry":"Retr","choose_note":"Kies notitie","no_note_found":"Geen notitie gevonden","insert_note":"Notitie invoegen"},"dashboard":{"select_year":"Selecteer jaar","cards":{"due_amount":"Openstaand bedrag","customers":"Klanten","invoices":"Facturen","estimates":"Offertes"},"chart_info":{"total_sales":"Verkoop","total_receipts":"Inkomsten","total_expense":"Uitgaven","net_income":"Netto inkomen","year":"Selecteer jaar"},"weekly_invoices":{"title":"Wekelijkse factuur"},"monthly_chart":{"title":"Verkoop en kosten"},"recent_invoices_card":{"title":"Openstaande facturen","due_on":"Openstaand op","customer":"Klant","amount_due":"Openstaand bedrag","actions":"Acties","view_all":"Toon alles"},"recent_estimate_card":{"title":"Recente offertes","date":"Datum","customer":"Klant","amount_due":"Openstaand bedrag","actions":"Acties","view_all":"Toon alles"}},"tax_types":{"name":"Naam","description":"Omschrijving","percent":"Procent","compound_tax":"Verbinding Ta"},"global_search":{"search":"Zoeken...","customers":"Klanten","users":"Gebruikers","no_results_found":"Geen zoekresultaten"},"customers":{"title":"Klanten","add_customer":"Klant toevoegen","contacts_list":"Klantenlijst","name":"Naam","mail":"Mail | Mails","statement":"Verklaring","display_name":"Weergavenaam","primary_contact_name":"Naam primaire contactpersoon","contact_name":"Contactnaam","amount_due":"Openstaand bedrag","email":"E-mail","address":"Adres","phone":"Telefoon","website":"Website","overview":"Overzicht","enable_portal":"Activeer Portaal","country":"Land","state":"Provincie","city":"Stad","zip_code":"Postcode","added_on":"Toegevoegd","action":"Actie","password":"Wachtwoord","street_number":"Huisnummer","primary_currency":"Primaire valuta","description":"Omschrijving","add_new_customer":"Nieuwe klant toevoegen","save_customer":"Klant opslaan","update_customer":"Klant bijwerken","customer":"Klant | Klanten","new_customer":"Nieuwe klant","edit_customer":"Klant bewerken","basic_info":"Basis informatie","billing_address":"factuur adres","shipping_address":"Verzendingsadres","copy_billing_address":"Kopiëren van facturering","no_customers":"Nog geen klanten!","no_customers_found":"Geen klanten gevonden!","list_of_customers":"Hier vind je jouw klanten terug.","primary_display_name":"Primaire weergavenaam","select_currency":"Selecteer valuta","select_a_customer":"Selecteer een klant","type_or_click":"Typ of klik om te selecteren","new_transaction":"Nieuwe transactie","no_matching_customers":"Er zijn geen overeenkomende klanten!","phone_number":"Telefoonnummer","create_date":"Aangemaakt op","confirm_delete":"Deze klant en alle gerelateerde facturen, offertes en betalingen worden permanent verwijderd. | Deze klanten en alle gerelateerde facturen, offertes en betalingen worden permanent verwijderd.","created_message":"Klant succesvol aangemaakt","updated_message":"Klant succesvol geüpdatet","deleted_message":"Klant succesvol verwijderd | Klanten zijn succesvol verwijderd"},"items":{"title":"Artikelen","items_list":"Lijst met items","name":"Naam","unit":"Eenheid","description":"Omschrijving","added_on":"Toegevoegd","price":"Prijs","date_of_creation":"Datum van creatie","action":"Actie","add_item":"Voeg item toe","save_item":"Item opslaan","update_item":"Item bijwerken","item":"Artikel | Artikelen","add_new_item":"Voeg een nieuw item toe","new_item":"Nieuw item","edit_item":"Item bewerken","no_items":"Nog geen items!","list_of_items":"Hier vind je jouw artikelen terug.","select_a_unit":"selecteer eenheid","taxes":"Belastingen","item_attached_message":"Kan een item dat al in gebruik is niet verwijderen","confirm_delete":"U kunt dit item | niet herstellen U kunt deze items niet herstellen","created_message":"Item succesvol aangemaakt","updated_message":"Item succesvol bijgewerkt","deleted_message":"Item succesvol verwijderd | Items zijn verwijderd"},"estimates":{"title":"Offertes","estimate":"Offerte | Offertes","estimates_list":"Lijst met offertes","days":"{dagen} dagen","months":"{months} Maand","years":"{jaar} jaar","all":"Allemaal","paid":"Betaald","unpaid":"Onbetaald","customer":"Klant","ref_no":"Ref Nr.","number":"Aantal","amount_due":"Bedrag","partially_paid":"Gedeeltelijk betaald","total":"Totaal","discount":"Korting","sub_total":"Subtotaal","estimate_number":"Offerte nummer","ref_number":"Referentie nummer","contact":"Contact","add_item":"Voeg een item toe","date":"Datum","due_date":"Opleveringsdatum","expiry_date":"Vervaldatum","status":"Status","add_tax":"Belasting toevoegen","amount":"Bedrag","action":"Actie","notes":"Opmerkingen","tax":"Belasting","estimate_template":"Sjabloon","convert_to_invoice":"Converteren naar factuur","mark_as_sent":"Markeren als verzonden","send_estimate":"Verzend offerte","resend_estimate":"Offerte opnieuw verzenden","record_payment":"Bestaling registreren","add_estimate":"Offerte toevoegen","save_estimate":"Bewaar offerte","confirm_conversion":"Deze offerte wordt gebruikt om een nieuwe factuur te maken.","conversion_message":"Factuur gemaakt","confirm_send_estimate":"Deze offerte wordt via e-mail naar de klant gestuurd","confirm_mark_as_sent":"Deze offerte wordt gemarkeerd als verzonden","confirm_mark_as_accepted":"Deze offerte wordt gemarkeerd als Geaccepteerd","confirm_mark_as_rejected":"Deze offerte wordt gemarkeerd als Afgewezen","no_matching_estimates":"Er zijn geen overeenkomende offertes!","mark_as_sent_successfully":"Offerte gemarkeerd als succesvol verzonden","send_estimate_successfully":"Offerte succesvol verzonden","errors":{"required":"Veld is vereist"},"accepted":"Geaccepteerd","sent":"Verzonden","draft":"Concept","declined":"Geweigerd","new_estimate":"Nieuwe offerte","add_new_estimate":"Offerte toevoegen","update_Estimate":"Offerte bijwerken","edit_estimate":"Offerte bewerken","items":"artikelen","Estimate":"Offerte | Offertes","add_new_tax":"Nieuwe belasting toevoegen","no_estimates":"Nog geen offertes!","list_of_estimates":"Hier vind je jouw offertes terug.","mark_as_rejected":"Markeer als afgewezen","mark_as_accepted":"Markeer als geaccepteerd","marked_as_accepted_message":"Offerte gemarkeerd als geaccepteerd","marked_as_rejected_message":"Offerte gemarkeerd als afgewezen","confirm_delete":"U kunt deze offerte | niet herstellen U kunt deze offertes niet herstellen","created_message":"Offerte is gemaakt","updated_message":"Offerte succesvol bijgewerkt","deleted_message":"Offerte succesvol verwijderd | Offertes zijn succesvol verwijderd","user_email_does_not_exist":"E-mailadres van gebruiker bestaat niet","something_went_wrong":"Er is iets fout gegaan","item":{"title":"Titel van het item","description":"Omschrijving","quantity":"Aantal stuks","price":"Prijs","discount":"Korting","total":"Totaal","total_discount":"Totale korting","sub_total":"Subtotaal","tax":"Belasting","amount":"Bedrag","select_an_item":"Typ of klik om een item te selecteren","type_item_description":"Type Item Beschrijving (optioneel)"}},"invoices":{"title":"Facturen","invoices_list":"Facturenlijst","days":"{dagen} dagen","months":"{months} Maand","years":"{jaar} jaar","all":"Allemaal","paid":"Betaald","unpaid":"Onbetaald","customer":"Klant","paid_status":"Betaling","ref_no":"REF NR.","number":"AANTAL","amount_due":"BEDRAG","partially_paid":"Gedeeltelijk betaald","total":"Totaal","discount":"Korting","sub_total":"Subtotaal","invoice":"Factuur | Facturen","invoice_number":"Factuurnummer","ref_number":"Referentie nummer","contact":"Contact","add_item":"Voeg een item toe","date":"Datum","due_date":"Opleveringsdatum","status":"Status","add_tax":"Belasting toevoegen","amount":"Bedrag","action":"Actie","notes":"Opmerkingen","view":"Bekijken","send_invoice":"Factuur verzenden","resend_invoice":"Factuur opnieuw verzenden","invoice_template":"Factuursjabloon","template":"Sjabloon","mark_as_sent":"Markeer als verzonden","confirm_send_invoice":"Deze factuur wordt via e-mail naar de klant gestuurd","invoice_mark_as_sent":"Deze factuur wordt gemarkeerd als verzonden","confirm_send":"Deze factuur wordt via e-mail naar de klant gestuurd","invoice_date":"Factuur datum","record_payment":"Bestaling registreren","add_new_invoice":"Nieuwe factuur toevoegen","update_expense":"Onkosten bijwerken","edit_invoice":"Factuur bewerken","new_invoice":"Nieuwe factuur","save_invoice":"Factuur opslaan","update_invoice":"Factuur bijwerken","add_new_tax":"Nieuwe belasting toevoegen","no_invoices":"Nog geen facturen!","list_of_invoices":"Hier vind je jouw facturen terug.","select_invoice":"Selecteer Factuur","no_matching_invoices":"Er zijn geen overeenkomende facturen!","mark_as_sent_successfully":"Factuur gemarkeerd als succesvol verzonden","send_invoice_successfully":"Factuur succesvol verzonden","cloned_successfully":"Factuur succesvol gekloond","clone_invoice":"Factuur klonen","confirm_clone":"Deze factuur wordt gekloond in een nieuwe factuur","item":{"title":"Titel van het item","description":"Omschrijving","quantity":"Aantal stuks","price":"Prijs","discount":"Korting","total":"Totaal","total_discount":"Totale korting","sub_total":"Subtotaal","tax":"Belasting","amount":"Bedrag","select_an_item":"Typ of klik om een item te selecteren","type_item_description":"Type Item Beschrijving (optioneel)"},"payment_attached_message":"Aan een van de geselecteerde facturen is al een betaling gekoppeld. Zorg ervoor dat u eerst de bijgevoegde betalingen verwijdert om door te gaan met de verwijdering","confirm_delete":"Deze factuur wordt permanent verwijderd | Deze facturen worden permanent verwijderd","created_message":"Factuur succesvol aangemaakt","updated_message":"Factuur succesvol bijgewerkt","deleted_message":"Factuur succesvol verwijderd | Facturen succesvol verwijderd","marked_as_sent_message":"Factuur gemarkeerd als succesvol verzonden","user_email_does_not_exist":"E-mailadres van gebruiker bestaat niet","something_went_wrong":"Er is iets fout gegaan","invalid_due_amount_message":"Het totale factuurbedrag mag niet lager zijn dan het totale betaalde bedrag voor deze factuur. Werk de factuur bij of verwijder de bijbehorende betalingen om door te gaan."},"credit_notes":{"title":"Kredietnota\'s","credit_notes_list":"Lijst met creditnota\'s","credit_notes":"Kredietnota\'s","contact":"Contact","date":"Datum","amount":"Bedrag","action":"Actie","credit_number":"Kredietnummer","notes":"Opmerkingen","confirm_delete":"Wilt u deze creditnota verwijderen?","item":{"title":"Titel van het item","description":"Omschrijving","quantity":"Aantal stuks","price":"Prijs","discount":"Korting","total":"Totaal","total_discount":"Totale korting","sub_total":"Subtotaal","tax":"BTW"}},"payments":{"title":"Betalingen","payments_list":"Betalingslijst","record_payment":"Bestaling registreren","customer":"Klant","date":"Datum","amount":"Bedrag","action":"Actie","payment_number":"Betalingsnummer","payment_mode":"Betaalmethode","invoice":"Factuur","note":"Notitie","add_payment":"Betaling toevoegen","new_payment":"Nieuwe betaling","edit_payment":"Betaling bewerken","view_payment":"Bekijk betaling","add_new_payment":"Nieuwe betaling toevoegen","send_payment_receipt":"Betaalbewijs verzenden","send_payment":"Verstuur betaling","save_payment":"Betaling opslaan","update_payment":"Betaling bijwerken","payment":"Betaling | Betalingen","no_payments":"Nog geen betalingen!","no_matching_payments":"Er zijn geen overeenkomende betalingen!","list_of_payments":"Hier vind je jouw betalingen terug.","select_payment_mode":"Selecteer betalingswijze","confirm_mark_as_sent":"Deze offerte wordt gemarkeerd als verzonden","confirm_send_payment":"Deze betaling wordt via e-mail naar de klant gestuurd","send_payment_successfully":"Betaling succesvol verzonden","user_email_does_not_exist":"E-mailadres van gebruiker bestaat niet","something_went_wrong":"Er is iets fout gegaan","confirm_delete":"Deze betaling wordt permanent verwijderd | Deze betalingen worden permanent verwijderd","created_message":"De betaling is succesvol aangemaakt","updated_message":"Betaling succesvol bijgewerkt","deleted_message":"Betaling succesvol verwijderd | Betalingen zijn verwijderd","invalid_amount_message":"Het bedrag van de betaling is ongeldig"},"expenses":{"title":"Uitgaven","expenses_list":"Uitgavenlijst","select_a_customer":"Selecteer een klant","expense_title":"Titel","customer":"Klant","contact":"Contact","category":"Categorie","from_date":"Van datum","to_date":"Tot datum","expense_date":"Datum","description":"Omschrijving","receipt":"Bon","amount":"Bedrag","action":"Actie","note":"Notitie","category_id":"Categorie ID","date":"Uitgavendatum","add_expense":"Kosten toevoegen","add_new_expense":"Kosten toevoegen","save_expense":"Kosten opslaan","update_expense":"Onkosten bijwerken","download_receipt":"Ontvangstbewijs downloaden","edit_expense":"Uitgaven bewerken","new_expense":"Kosten toevoegen","expense":"Uitgaven | Uitgaven","no_expenses":"Nog geen kosten!","list_of_expenses":"Hier vind je jouw uitgaven terug.","confirm_delete":"Deze uitgave wordt permanent verwijderd | Deze kosten worden permanent verwijderd","created_message":"Kosten succesvol gemaakt","updated_message":"Kosten succesvol bijgewerkt","deleted_message":"Kosten succesvol verwijderd | Uitgaven zijn verwijderd","categories":{"categories_list":"Categorieënlijst","title":"Titel","name":"Naam","description":"Omschrijving","amount":"Bedrag","actions":"Acties","add_category":"categorie toevoegen","new_category":"Nieuwe categorie","category":"Categorie | Categorieën","select_a_category":"Selecteer een categorie"}},"login":{"email":"E-mail","password":"Wachtwoord","forgot_password":"Wachtwoord vergeten?","or_signIn_with":"of Log in met","login":"Log in","register":"Registreren","reset_password":"Wachtwoord opnieuw instellen","password_reset_successfully":"Wachtwoord opnieuw ingesteld","enter_email":"Voer email in","enter_password":"Voer wachtwoord in","retype_password":"Geef nogmaals het wachtwoord","login_placeholder":"mail@voorbeeld.co"},"users":{"title":"Gebruikers","users_list":"Gebruikerslijst","name":"Naam","description":"Omschrijving","added_on":"Toegevoegd","date_of_creation":"Datum van creatie","action":"Actie","add_user":"Gebruiker toevoegen","save_user":"Gebruiker opslaan","update_user":"Gebruiker bijwerken","user":"Gebruiker | Gebruikers","add_new_user":"Nieuwe gebruiker toevoegen","new_user":"Nieuwe gebruiker","edit_user":"Gebruiker bewerken","no_users":"Nog geen gebruikers!","list_of_users":"Deze sectie zal de lijst met gebruikers bevatten.","email":"E-mail","phone":"Telefoon","password":"Wachtwoord","user_attached_message":"Kan een item dat al in gebruik is niet verwijderen","confirm_delete":"Je kunt deze gebruiker later niet herstellen | Je kunt deze gebruikers later niet herstellen","created_message":"Gebruiker succesvol aangemaakt","updated_message":"Gebruiker met succes bijgewerkt","deleted_message":"Gebruiker succesvol verwijderd | Gebruikers succesvol verwijderd"},"reports":{"title":"Verslag doen van","from_date":"Van datum","to_date":"Tot datum","status":"Status","paid":"Betaald","unpaid":"Onbetaald","download_pdf":"Download PDF","view_pdf":"Bekijk PDF","update_report":"Rapport bijwerken","report":"Verslag | Rapporten","profit_loss":{"profit_loss":"Verlies","to_date":"Tot datum","from_date":"Van datum","date_range":"Selecteer Datumbereik"},"sales":{"sales":"Verkoop","date_range":"Selecteer datumbereik","to_date":"Tot datum","from_date":"Van datum","report_type":"Rapporttype"},"taxes":{"taxes":"Belastingen","to_date":"Tot datum","from_date":"Van datum","date_range":"Selecteer Datumbereik"},"errors":{"required":"Veld is vereist"},"invoices":{"invoice":"Factuur","invoice_date":"Factuur datum","due_date":"Opleveringsdatum","amount":"Bedrag","contact_name":"Contactnaam","status":"Status"},"estimates":{"estimate":"Offerte","estimate_date":"Offerte Datum","due_date":"Opleveringsdatum","estimate_number":"Offerte nummer","ref_number":"Referentie nummer","amount":"Bedrag","contact_name":"Contactnaam","status":"Status"},"expenses":{"expenses":"Uitgaven","category":"Categorie","date":"Datum","amount":"Bedrag","to_date":"Tot datum","from_date":"Van datum","date_range":"Selecteer Datumbereik"}},"settings":{"menu_title":{"account_settings":"Account instellingen","company_information":"Bedrijfsinformatie","customization":"Aanpassen","preferences":"Voorkeuren","notifications":"Kennisgevingen","tax_types":"Belastingtypen","expense_category":"Onkostencategorieën","update_app":"App bijwerken","backup":"Back-up","file_disk":"Bestandsopslag","custom_fields":"Aangepaste velden","payment_modes":"Betaalmethodes","notes":"Opmerkingen"},"title":"Instellingen","setting":"Instellingen | Instellingen","general":"Algemeen","language":"Taal","primary_currency":"Primaire valuta","timezone":"Tijdzone","date_format":"Datumnotatie","currencies":{"title":"Valuta\'s","currency":"Valuta | Valuta\'s","currencies_list":"Lijst van valuta\'s","select_currency":"selecteer valuta","name":"Naam","code":"Code","symbol":"Symbool","precision":"Precisie","thousand_separator":"Duizend scheidingsteken","decimal_separator":"Decimaalscheidingsteken","position":"Positie","position_of_symbol":"Positie van symbool","right":"Rechtsaf","left":"Links","action":"Actie","add_currency":"Valuta toevoegen"},"mail":{"host":"Mail host","port":"Mail Port","driver":"Mail-stuurprogramma","secret":"Geheim","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domein","mailgun_endpoint":"Mailgun-eindpunt","ses_secret":"SES Secret","ses_key":"SES-sleutel","password":"Mail wachtwoord","username":"Mail gebruikersnaam","mail_config":"E-mailconfiguratie","from_name":"Van Mail Name","from_mail":"Van e-mailadres","encryption":"E-mailversleuteling","mail_config_desc":"Hieronder vindt u het formulier voor het configureren van het e-mailstuurprogramma voor het verzenden van e-mails vanuit de app. U kunt ook externe providers zoals Sendgrid, SES enz. Configureren."},"pdf":{"title":"PDF-instelling","footer_text":"Voettekst","pdf_layout":"PDF indeling"},"company_info":{"company_info":"Bedrijfsinfo","company_name":"Bedrijfsnaam","company_logo":"Bedrijfslogo","section_description":"Informatie over uw bedrijf die wordt weergegeven op facturen, offertes en andere documenten die door Crater zijn gemaakt.","phone":"Telefoon","country":"Land","state":"Provincie","city":"Stad","address":"Adres","zip":"Postcode","save":"Opslaan","updated_message":"Bedrijfsinformatie succesvol bijgewerkt"},"custom_fields":{"title":"Aangepaste velden","section_description":"Uw facturen, offertes & betalingsbewijzen aanpassen met uw eigen velden. Gebruik onderstaande velden op het adres format op de Customization instellings pagina.","add_custom_field":"Extra veld toevoegen","edit_custom_field":"Veld wijzigen","field_name":"Veld naam","label":"Label","type":"Type","name":"Naam","required":"Verplicht","placeholder":"Tijdelijke plaatshouder","help_text":"Hulp Text","default_value":"Standaard waarde","prefix":"Voorvoegsel","starting_number":"Starting Number","model":"Model","help_text_description":"Voer tekst in om gebruikers te helpen het doel van dit aangepaste veld te begrijpen.","suffix":"Achtervoegsel","yes":"Ja","no":"Nee","order":"Volgorde","custom_field_confirm_delete":"U kunt dit veld niet herstellen","already_in_use":"Aangepast veld is al in gebruik","deleted_message":"Aangepast veld is succesvol verwijderd","options":"opties","add_option":"Optie toevoegen","add_another_option":"Nog een optie toevoegen","sort_in_alphabetical_order":"Sorteer op alfabetische volgorde","add_options_in_bulk":"Voeg opties toe in bulk","use_predefined_options":"Gebruik voorgedefinieerde opties","select_custom_date":"Selecteer een aangepaste datum","select_relative_date":"Selecteer relatieve datum","ticked_by_default":"Standaard aangevinkt","updated_message":"Aangepast veld is succesvol aangepast","added_message":"Aangepast veld is succesvol toegevoegd"},"customization":{"customization":"aanpassen","save":"Opslaan","addresses":{"title":"Adressen","section_description":"U kunt het factuuradres van de klant en het verzendadres van de klant instellen (alleen weergegeven in PDF).","customer_billing_address":"Factuuradres van klant","customer_shipping_address":"Klant verzendadres","company_address":"bedrijfsadres","insert_fields":"Velden invoegen","contact":"Contact","address":"Adres","display_name":"Weergavenaam","primary_contact_name":"Naam primaire contactpersoon","email":"E-mail","website":"Website","name":"Naam","country":"Land","state":"Provincie","city":"Stad","company_name":"Bedrijfsnaam","address_street_1":"Adres Straat 1","address_street_2":"Adresstraat 2","phone":"Telefoon","zip_code":"Postcode","address_setting_updated":"Adresinstelling is bijgewerkt"},"updated_message":"Bedrijfsinformatie succesvol bijgewerkt","invoices":{"title":"Facturen","notes":"Opmerkingen","invoice_prefix":"Factuurvoorvoegsel","default_invoice_email_body":"Standaard factuur email text","invoice_settings":"Factuurinstellingen","autogenerate_invoice_number":"Factuurnummer automatisch genereren","invoice_setting_description":"Schakel dit uit als u niet automatisch factuurnummers wilt genereren telkens wanneer u een nieuwe factuur maakt.","enter_invoice_prefix":"Voer het factuurvoorvoegsel in","terms_and_conditions":"Voorwaarden","company_address_format":"Bedrijfsadres format","shipping_address_format":"Verzendadres format","billing_address_format":"Factuuradres format","invoice_setting_updated":"Factuurinstelling succesvol bijgewerkt"},"estimates":{"title":"Offertes","estimate_prefix":"Voorvoegsel schatten","default_estimate_email_body":"Standaard offerte email text","estimate_settings":"Instellingen schatten","autogenerate_estimate_number":"Automatisch geschat nummer genereren","estimate_setting_description":"Schakel dit uit als u niet automatisch offertesaantallen wilt genereren telkens wanneer u een nieuwe offerte maakt.","enter_estimate_prefix":"Voer het prefixnummer in","estimate_setting_updated":"Instelling Offerte succesvol bijgewerkt","company_address_format":"Bedrijfsadres format","billing_address_format":"Factuuradres Format","shipping_address_format":"Verzendadres format"},"payments":{"title":"Betalingen","description":"Modes of transaction for payments","payment_prefix":"Betalingsvoorvoegsel","default_payment_email_body":"Default Payment Email Body","payment_settings":"Betalingsinstellingen","autogenerate_payment_number":"Betalingsnummer automatisch genereren","payment_setting_description":"Schakel dit uit als u niet elke keer dat u een nieuwe betaling aanmaakt, automatisch betalingsnummers wilt genereren.","enter_payment_prefix":"Voer het betalingsvoorvoegsel in","payment_setting_updated":"Betalingsinstelling geüpdatet","payment_modes":"Betaalmethodes","add_payment_mode":"Betaalmodus toevoegen","edit_payment_mode":"Betaalmodus bewerken","mode_name":"Mode naam","payment_mode_added":"Betaalwijze toegevoegd","payment_mode_updated":"Betalingsmodus bijgewerkt","payment_mode_confirm_delete":"U kunt deze betalingsmodus niet herstellen","already_in_use":"De betalingsmodus is al in gebruik","deleted_message":"Betaalwijze succesvol verwijderd","company_address_format":"Bedrijfsadres format","from_customer_address_format":"Van klant adres formaat"},"items":{"title":"Artikelen","units":"eenheden","add_item_unit":"Itemeenheid toevoegen","edit_item_unit":"Itemeenheid bewerken","unit_name":"Naam eenheid","item_unit_added":"Item Eenheid toegevoegd","item_unit_updated":"Artikeleenheid bijgewerkt","item_unit_confirm_delete":"U kunt dit item niet terughalen","already_in_use":"Item Unit is al in gebruik","deleted_message":"Artikeleenheid succesvol verwijderd"},"notes":{"title":"Opmerkingen","description":"Bespaar tijd door notities te maken en ze opnieuw te gebruiken op uw facturen, ramingen en betalingen.","notes":"Opmerkingen","type":"Type","add_note":"Notitie toevoegen","add_new_note":"Voeg een nieuwe notitie toe","name":"Naam","edit_note":"Notitie bewerken","note_added":"Notitie toegevoegd","note_updated":"Notitie bijgewerkt","note_confirm_delete":"U kunt deze notitie niet terughalen","already_in_use":"Notitie is reeds in gebruik","deleted_message":"Notitie verwijderd"}},"account_settings":{"profile_picture":"Profielfoto","name":"Naam","email":"E-mail","password":"Wachtwoord","confirm_password":"bevestig wachtwoord","account_settings":"Account instellingen","save":"Opslaan","section_description":"U kunt uw naam, e-mailadres en wachtwoord bijwerken via onderstaand formulier.","updated_message":"Accountinstellingen succesvol bijgewerkt"},"user_profile":{"name":"Naam","email":"E-mail","password":"Wachtwoord","confirm_password":"Bevestig wachtwoord"},"notification":{"title":"Kennisgeving","email":"Stuur meldingen naar","description":"Welke e-mailmeldingen wilt u ontvangen als er iets verandert?","invoice_viewed":"Factuur bekeken","invoice_viewed_desc":"Wanneer uw klant de factuur bekijkt die via het kraterdashboard is verzonden.","estimate_viewed":"Offerte bekeken","estimate_viewed_desc":"Wanneer uw klant de offerte bekijkt die via het kraterdashboard is verzonden.","save":"Opslaan","email_save_message":"E-mail succesvol opgeslagen","please_enter_email":"Voer e-mailadres in"},"tax_types":{"title":"Belastingtypen","add_tax":"Belasting toevoegen","edit_tax":"Belasting bewerken","description":"U kunt naar believen belastingen toevoegen of verwijderen. Crater ondersteunt belastingen op individuele items en op de factuur.","add_new_tax":"Nieuwe belasting toevoegen","tax_settings":"Belastinginstellingen","tax_per_item":"Belasting per item","tax_name":"Belastingnaam","compound_tax":"Samengestelde belasting","percent":"Procent","action":"Actie","tax_setting_description":"Schakel dit in als u belastingen wilt toevoegen aan afzonderlijke factuuritems. Standaard worden belastingen rechtstreeks aan de factuur toegevoegd.","created_message":"Belastingtype is gemaakt","updated_message":"Belastingtype succesvol bijgewerkt","deleted_message":"Belastingtype succesvol verwijderd","confirm_delete":"Dit belastingtype wordt permanent verwijderd","already_in_use":"Belasting al in gebruik"},"expense_category":{"title":"Onkostencategorieën","action":"Actie","description":"Categorieën zijn vereist voor het toevoegen van onkostenposten. U kunt deze categorieën naar wens toevoegen of verwijderen.","add_new_category":"Voeg een nieuwe categorie toe","add_category":"categorie toevoegen","edit_category":"Categorie bewerken","category_name":"categorie naam","category_description":"Omschrijving","created_message":"Onkostencategorie succesvol aangemaakt","deleted_message":"Uitgavencategorie is verwijderd","updated_message":"Uitgavencategorie is bijgewerkt","confirm_delete":"U kunt deze uitgavencategorie niet herstellen","already_in_use":"Categorie al in gebruik"},"preferences":{"currency":"Valuta","default_language":"Standaard taal","time_zone":"Tijdzone","fiscal_year":"Financieel jaar","date_format":"Datumnotatie","discount_setting":"Kortingsinstelling","discount_per_item":"Korting per item","discount_setting_description":"Schakel dit in als u korting wilt toevoegen aan afzonderlijke factuuritems. Standaard wordt korting rechtstreeks aan de factuur toegevoegd.","save":"Opslaan","preference":"Voorkeur | Voorkeuren","general_settings":"Standaardvoorkeuren voor het systeem.","updated_message":"Voorkeuren succesvol bijgewerkt","select_language":"Selecteer taal","select_time_zone":"Selecteer Tijdzone","select_date_format":"Selecteer datum/tijdindeling","select_financial_year":"Selecteer financieel ja"},"update_app":{"title":"App bijwerken","description":"U kunt Crater eenvoudig bijwerken door te controleren op een nieuwe update door op de onderstaande knop te klikken","check_update":"Controleer op updates","avail_update":"Nieuwe update beschikbaar","next_version":"Volgende versie","requirements":"Vereisten","update":"Nu updaten","update_progress":"Update wordt uitgevoerd...","progress_text":"Het duurt maar een paar minuten. Vernieuw het scherm niet en sluit het venster niet voordat de update is voltooid","update_success":"App is bijgewerkt! Een ogenblik geduld, uw browservenster wordt automatisch opnieuw geladen.","latest_message":"Geen update beschikbaar! U gebruikt de nieuwste versie.","current_version":"Huidige versie","download_zip_file":"Download ZIP-bestand","unzipping_package":"Pakket uitpakken","copying_files":"Bestanden kopiëren","running_migrations":"Migraties uitvoeren","finishing_update":"Afwerking Update","update_failed":"Update mislukt","update_failed_text":"Sorry! Je update is mislukt op: {step} step "},"backup":{"title":"Backup | Backups","description":"De back-up is een zipfile met alle bestanden in de mappen die je opgeeft samen met een dump van je database","new_backup":"Nieuwe back-up","create_backup":"Backup maken","select_backup_type":"Backup-type selecteren","backup_confirm_delete":"U kunt deze back-up niet terughalen","path":"pad","new_disk":"Nieuwe schijf","created_at":"aangemaakt op","size":"grootte","dropbox":"dropbox","local":"lokaal","healthy":"gezond","amount_of_backups":"aantal back-ups","newest_backups":"nieuwste back-ups","used_storage":"gebruikte opslag","select_disk":"Selecteer Disk","action":"Actie","deleted_message":"Back-up is succesvol verwijderd","created_message":"Back-up successvol gemaakt","invalid_disk_credentials":"Ongeldige inloggegevens voor geselecteerde schijf"},"disk":{"title":"Bestandsschijf | Bestandsschijven","description":"Standaard gebruikt Crater uw lokale schijf om back-ups, avatars en andere afbeeldingen op te slaan. U kunt indien gewenst meer dan één opslaglocatie configureren zoals DigitalOcean, S3 en Dropbox.","created_at":"aangemaakt op","dropbox":"dropbox","name":"Naam","driver":"Stuurprogramma","disk_type":"Type","disk_name":"Naam van de schijf","new_disk":"Nieuwe schijf toevoegen","filesystem_driver":"Filesystem Driver","local_driver":"lokaal besturingsprogramma","local_root":"local Root","public_driver":"Publiek besturingsprogramma","public_root":"Public Root","public_url":"Publieke URL","public_visibility":"Publieke zichtbaarheid","media_driver":"Media stuurprogramma","media_root":"Media Root","aws_driver":"AWS Stuurprogramma","aws_key":"AWS Sleutel","aws_secret":"AWS Secret","aws_region":"AWS Regio","aws_bucket":"AWS Bucket","aws_root":"AWS Root","do_spaces_type":"Do Spaces type","do_spaces_key":"Do Spaces Key","do_spaces_secret":"Do Spaces Secret","do_spaces_region":"Do Spaces Regio","do_spaces_bucket":"Do Spaces Bucket","do_spaces_endpoint":"Do Spaces Endpoint","do_spaces_root":"Do Spaces Root","dropbox_type":"Dropbox Type","dropbox_token":"Dropbox Token","dropbox_key":"Dropbox Key","dropbox_secret":"Dropbox Secret","dropbox_app":"Dropbox App","dropbox_root":"Dropbox Root","default_driver":"Standaard stuurprogramma","is_default":"IS STANDAARD","set_default_disk":"Standaardschijf instellen","success_set_default_disk":"Standaardschijf ingesteld","save_pdf_to_disk":"PDF\'s opslaan op schijf","disk_setting_description":" Schakel dit in als je een kopie van elke factuur, raming en betalingsbewijs automatisch op je standaard schijf wilt opslaan. Het inschakelen van deze optie zal de laadtijd verminderen wanneer de PDF\'s worden bekeken.","select_disk":"Selecteer Schijf","disk_settings":"Schijfinstellingen","confirm_delete":"Uw bestaande bestanden en mappen in de opgegeven schijf worden niet beïnvloed, maar uw schijfconfiguratie wordt uit Crater verwijderd","action":"Actie","edit_file_disk":"Bestandsschijf bewerken","success_create":"Schijf toegevoegd","success_update":"Schijf bijgewerkt","error":"Schijf niet toegevoegd","deleted_message":"Bestandsschijf verwijderd","disk_variables_save_successfully":"Schijf geconfigureerd","disk_variables_save_error":"Schijfconfiguratie mislukt.","invalid_disk_credentials":"Ongeldige inloggegevens voor geselecteerde schijf"}},"wizard":{"account_info":"Account Informatie","account_info_desc":"Onderstaande gegevens worden gebruikt om het hoofdbeheerdersaccount te maken. Ook kunt u de gegevens op elk moment wijzigen na inloggen.","name":"Naam","email":"E-mail","password":"Wachtwoord","confirm_password":"bevestig wachtwoord","save_cont":"Opslaan doorgaan","company_info":"Bedrijfsinformatie","company_info_desc":"Deze informatie wordt weergegeven op facturen. Merk op dat u dit later op de instellingenpagina kunt bewerken.","company_name":"Bedrijfsnaam","company_logo":"Bedrijfslogo","logo_preview":"Logo Voorbeeld","preferences":"Voorkeuren","preferences_desc":"Standaardvoorkeuren voor het systeem.","country":"Land","state":"Provincie","city":"Stad","address":"Adres","street":"Straat1 | Straat # 2","phone":"Telefoon","zip_code":"Postcode","go_back":"Ga terug","currency":"Valuta","language":"Taal","time_zone":"Tijdzone","fiscal_year":"Financieel jaar","date_format":"Datumnotatie","from_address":"Van adres","username":"Gebruikersnaam","next":"De volgende","continue":"Doorgaan met","skip":"Overslaan","database":{"database":"Site-URL en database","connection":"Database verbinding","host":"Database host","port":"Databasepoort","password":"Database wachtwoord","app_url":"App-URL","app_domain":"App Domein","username":"Database gebruikersnaam","db_name":"Database naam","db_path":"Databankpad","desc":"Maak een database op uw server en stel de referenties in via het onderstaande formulier."},"permissions":{"permissions":"Rechten","permission_confirm_title":"Weet je zeker dat je door wilt gaan?","permission_confirm_desc":"Controle van maprechten is mislukt","permission_desc":"Hieronder vindt u de lijst met mapmachtigingen die vereist zijn om de app te laten werken. Als de machtigingscontrole mislukt, moet u de mapmachtigingen bijwerken."},"mail":{"host":"E-mail server","port":"E-mail Poort","driver":"Mail-stuurprogramma","secret":"Geheim","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domein","mailgun_endpoint":"Mailgun-eindpunt","ses_secret":"SES Secret","ses_key":"SES-sleutel","password":"Mail wachtwoord","username":"Mail gebruikersnaam","mail_config":"E-mailconfiguratie","from_name":"Van Mail Name","from_mail":"Van e-mailadres","encryption":"E-mailversleuteling","mail_config_desc":"Hieronder vindt u het formulier voor het configureren van het e-mailstuurprogramma voor het verzenden van e-mails vanuit de app. U kunt ook externe providers zoals Sendgrid, SES enz. Configureren."},"req":{"system_req":"systeem vereisten","php_req_version":"PHP (versie {versie} vereist))","check_req":"Controleer vereisten","system_req_desc":"Crater heeft een paar serververeisten. Zorg ervoor dat uw server de vereiste php-versie heeft en alle onderstaande extensies."},"errors":{"migrate_failed":"Migreren mislukt","database_variables_save_error":"Kan configuratie niet schrijven naar .env-bestand. Controleer de bestandsrechten","mail_variables_save_error":"E-mailconfiguratie is mislukt.","connection_failed":"Databaseverbinding mislukt","database_should_be_empty":"Database moet leeg zijn"},"success":{"mail_variables_save_successfully":"E-mail succesvol geconfigureerd","database_variables_save_successfully":"Database succesvol geconfigureerd."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Supereenvoudige facturering","for_freelancer":"voor freelancers &","small_businesses":"Kleine bedrijven","crater_help":"Crater helpt u uitgaven bij te houden, betalingen te registreren en mooie inkomsten te genereren","invoices_and_estimates":"facturen en offertes met de mogelijkheid om meerdere sjablonen te kiezen."},"validation":{"invalid_phone":"Ongeldig Telefoonnummer","invalid_url":"Ongeldige URL (bijvoorbeeld: http://www.crater.com))","invalid_domain_url":"Ongeldige URL (bijvoorbeeld: crater.com))","required":"Veld is verplicht","email_incorrect":"Incorrecte Email.","email_already_taken":"De email is al in gebruik.","email_does_not_exist":"Gebruiker met opgegeven e-mailadres bestaat niet","item_unit_already_taken":"De naam van dit item is al in gebruik","payment_mode_already_taken":"Deze naam voor de betalingsmodus is al in gebruik","send_reset_link":"Stuur resetlink","not_yet":"Nog niet? Stuur het opnieuw","password_min_length":"Wachtwoord moet {count} tekens bevatten","name_min_length":"Naam moet minimaal {count} letters bevatten.","enter_valid_tax_rate":"Voer een geldig belastingtarief in","numbers_only":"Alleen nummers.","characters_only":"Alleen tekens.","password_incorrect":"Wachtwoorden moeten identiek zijn","password_length":"Wachtwoord moet {count} tekens lang zijn.","qty_must_greater_than_zero":"Hoeveelheid moet groter zijn dan nul.","price_greater_than_zero":"Prijs moet groter zijn dan nul.","payment_greater_than_zero":"De betaling moet hoger zijn dan nul.","payment_greater_than_due_amount":"Ingevoerde betaling is meer dan het openstaande bedrag van deze factuur.","quantity_maxlength":"Het aantal mag niet groter zijn dan 20 cijfers.","price_maxlength":"Prijs mag niet groter zijn dan 20 cijfers.","price_minvalue":"Prijs moet hoger zijn dan 0.","amount_maxlength":"Bedrag mag niet groter zijn dan 20 cijfers.","amount_minvalue":"Bedrag moet groter zijn dan 0.","description_maxlength":"De beschrijving mag niet meer dan 255 tekens bevatten.","subject_maxlength":"Het onderwerp mag niet meer dan 100 tekens bevatten.","message_maxlength":"Bericht mag niet groter zijn dan 255 tekens.","maximum_options_error":"Maximaal {max} opties geselecteerd. Verwijder eerst een geselecteerde optie om een andere te selecteren.","notes_maxlength":"Notities mogen niet langer zijn dan 255 tekens.","address_maxlength":"Adres mag niet groter zijn dan 255 tekens.","ref_number_maxlength":"Ref-nummer mag niet groter zijn dan 255 tekens.","prefix_maxlength":"Het voorvoegsel mag niet meer dan 5 tekens bevatten.","something_went_wrong":"Er is iets fout gegaan"},"pdf_estimate_label":"Offerte","pdf_estimate_number":"Offerte nummer","pdf_estimate_date":"Offerte Datum","pdf_estimate_expire_date":"Vervaldatum","pdf_invoice_label":"Factuur","pdf_invoice_number":"Factuurnummer","pdf_invoice_date":"Factuur datum","pdf_invoice_due_date":"Opleveringsdatum","pdf_notes":"Opmerkingen","pdf_items_label":"Artikelen","pdf_quantity_label":"Aantal stuks","pdf_price_label":"Prijs","pdf_discount_label":"Korting","pdf_amount_label":"Bedrag","pdf_subtotal":"Subtotaal","pdf_total":"Totaal","pdf_payment_receipt_label":"Betalingsafschrift","pdf_payment_date":"Betalingsdatum","pdf_payment_number":"Betalingsnummer","pdf_payment_mode":"Betaalmethode","pdf_payment_amount_received_label":"Ontvangen bedrag","pdf_expense_report_label":"UITGAVEN RAPPORT","pdf_total_expenses_label":"TOTALE UITGAVEN","pdf_profit_loss_label":"WINST & VERLIES RAPPORT","pdf_income_label":"INKOMEN","pdf_net_profit_label":"NETTO WINST","pdf_customer_sales_report":"Verkooprapport: per klant","pdf_total_sales_label":"TOTALE VERKOPEN","pdf_item_sales_label":"Verkooprapport: Per Item","pdf_tax_report_label":"BELASTINGEN RAPPORT","pdf_total_tax_label":"TOTALE BELASTINGEN","pdf_tax_types_label":"Belastingtypen","pdf_expenses_label":"Uitgaven","pdf_bill_to":"Rekening naar,","pdf_ship_to":"Verzend naar,","pdf_received_from":"Ontvangen van:"}'),de=JSON.parse('{"navigation":{"dashboard":"Informācijas panelis","customers":"Klienti","items":"Preces","invoices":"Rēķini","expenses":"Izdevumi","estimates":"Aprēķini","payments":"Maksājumi","reports":"Atskaites","settings":"Iestatījumi","logout":"Iziet","users":"Lietotāji"},"general":{"add_company":"Pievienot uzņēmumu","view_pdf":"Apskatīt PDF","copy_pdf_url":"Kopēt PDF Url","download_pdf":"Lejupielādēt PDF","save":"Saglabāt","create":"Izveidot","cancel":"Atcelt","update":"Atjaunināt","deselect":"Atcelt iezīmēšanu","download":"Lejupielādēt","from_date":"Datums no","to_date":"Datums līdz","from":"No","to":"Kam","sort_by":"Kārtot pēc","ascending":"Augošā secībā","descending":"Dilstošā secībā","subject":"Temats","body":"Saturs","message":"Ziņojums","send":"Nosūtīt","go_back":"Atpakaļ","back_to_login":"Atpakaļ uz autorizāciju?","home":"Sākums","filter":"Filtrēt","delete":"Dzēst","edit":"Labot","view":"Skatīt","add_new_item":"Pievienot jaunu","clear_all":"Notīrīt visu","showing":"Rāda","of":"no","actions":"Darbības","subtotal":"KOPĀ","discount":"ATLAIDE","fixed":"Fiksēts","percentage":"Procenti","tax":"Nodoklis","total_amount":"KOPĀ APMAKSAI","bill_to":"Saņēmējs","ship_to":"Piegādāt uz","due":"Due","draft":"Melnraksts","sent":"Nosūtīts","all":"Visi","select_all":"Iezīmēt visu","choose_file":"Speid šeit, lai izvēlētos failu","choose_template":"Izvēlaties sagatavi","choose":"Izvēlies","remove":"Dzēst","powered_by":"Powered by","bytefury":"Bytefury","select_a_status":"Izvēlieties statusu","select_a_tax":"Izvēlēties nodokli","search":"Meklēt","are_you_sure":"Vai esat pārliecināts?","list_is_empty":"Saraksts ir tukšs.","no_tax_found":"Nodoklis nav atrasts!","four_zero_four":"404","you_got_lost":"Opā! Esi apmaldījies!","go_home":"Uz Sākumu","test_mail_conf":"Jūsu e-pasta uzstādījumu tests","send_mail_successfully":"Veiksmīgi nosūtīts","setting_updated":"Iestatījumi tika veiksmīgi atjaunināti","select_state":"Izvēlieties reģionu","select_country":"Izvēlēties valsti","select_city":"Izvēlieties pilsētu","street_1":"Adrese 1","street_2":"Adrese 2","action_failed":"Darbība neizdevās","retry":"Atkārtot","choose_note":"Izvēlieties piezīmi","no_note_found":"Piezīmes nav atrastas","insert_note":"Ievietot piezīmi"},"dashboard":{"select_year":"Izvēlieties gadu","cards":{"due_amount":"Apmaksas summa","customers":"Klienti","invoices":"Rēķini","estimates":"Aprēķini"},"chart_info":{"total_sales":"Pārdotais","total_receipts":"Čeki","total_expense":"Izdevumi","net_income":"Peļņa","year":"Izvēlieties gadu"},"weekly_invoices":{"title":"Nedēļas rēķini"},"monthly_chart":{"title":"Pārdotais un Izdevumi"},"recent_invoices_card":{"title":"Pienākošie rēķini","due_on":"Termiņš","customer":"Klients","amount_due":"Apmaksas summa","actions":"Darbības","view_all":"Skatīt visus"},"recent_estimate_card":{"title":"Nesenie aprēķini","date":"Datums","customer":"Klients","amount_due":"Apmaksas summa","actions":"Darbības","view_all":"Skatīt visus"}},"tax_types":{"name":"Nosaukums","description":"Apraksts","percent":"Procenti","compound_tax":"Compound Tax"},"global_search":{"search":"Meklēt...","customers":"Klienti","users":"Lietotāji","no_results_found":"Nav atbilstošu rezultātu"},"customers":{"title":"Klienti","add_customer":"Pievienot klientu","contacts_list":"Klientu saraksts","name":"Vārds","mail":"Pasts","statement":"Statement","display_name":"Nosaukums","primary_contact_name":"Galvenā kontakta vārds","contact_name":"Kontaktpersonas vārds","amount_due":"Kopā","email":"E-pasts","address":"Adrese","phone":"Telefona numurs","website":"Mājaslapa","overview":"Pārskats","enable_portal":"Aktivizēt portālu","country":"Valsts","state":"Reģions","city":"Pilsēta","zip_code":"Pasta indekss","added_on":"Pievienots","action":"Darbība","password":"Parole","street_number":"Adrese","primary_currency":"Primārā valūta","description":"Apraksts","add_new_customer":"Pievienot jaunu klientu","save_customer":"Saglabāt klientu","update_customer":"Atjaunināt klientu","customer":"Klients | Klienti","new_customer":"Jauns klients","edit_customer":"Rediģēt klientu","basic_info":"Pamatinformācija","billing_address":"Juridiskā adrese","shipping_address":"Piegādes adrese","copy_billing_address":"Kopēt no juridiskās adreses","no_customers":"Pagaidām nav klientu!","no_customers_found":"Klienti netika atrasti!","list_of_customers":"Šajā sadaļā būs klientu saraksts.","primary_display_name":"Klienta nosaukums","select_currency":"Izvēlieties valūtu","select_a_customer":"Izvēlēties klientu","type_or_click":"Rakstīt vai spiest, lai izvēlētos","new_transaction":"Jauns darījums","no_matching_customers":"Netika atrasts neviens klients!","phone_number":"Telefona numurs","create_date":"Izveidošanas datums","confirm_delete":"Jūs nevarēsit atgūt šo klientu un visus saistītos rēķinus, aprēķinus un maksājumus.","created_message":"Klients izveidots veiksmīgi","updated_message":"Klients atjaunināts veiksmīgi","deleted_message":"Klients veiksmīgi izdzēsts"},"items":{"title":"Preces","items_list":"Preču saraksts","name":"Nosaukums","unit":"Vienība","description":"Apraksts","added_on":"Pievienots","price":"Cena","date_of_creation":"Izveidošanas datums","action":"Darbība","add_item":"Pievienot","save_item":"Saglabāt","update_item":"Atjaunināt","item":"Prece | Preces","add_new_item":"Pievienot jaunu preci","new_item":"Jauna prece","edit_item":"Rediģēt preci","no_items":"Nav preču!","list_of_items":"Šajā sadaļā būs preču/pakalpojumu saraksts.","select_a_unit":"atlasiet vienību","taxes":"Nodokļi","item_attached_message":"Nevar dzēst preci, kura tiek izmantota","confirm_delete":"Jūs nevarēsiet atgūt šo preci","created_message":"Prece izveidota veiksmīgi","updated_message":"Prece atjaunināta veiksmīgi","deleted_message":"Prece veiksmīgi izdzēsta"},"estimates":{"title":"Aprēķini","estimate":"Aprēķins | Aprēķini","estimates_list":"Aprēķinu saraksts","days":"{days} Dienas","months":"{months} Mēnesis","years":"{years} Gads","all":"Visi","paid":"Apmaksāts","unpaid":"Neapmaksāts","customer":"KLIENTS","ref_no":"REF NR.","number":"NUMURS","amount_due":"Summa apmaksai","partially_paid":"Daļēji apmaksāts","total":"Kopā","discount":"Atlaide","sub_total":"Starpsumma","estimate_number":"Aprēķina numurs","ref_number":"Ref numurs","contact":"Kontakti","add_item":"Pievienot preci","date":"Datums","due_date":"Apmaksas termiņš","expiry_date":"Termiņa beigu datums","status":"Status","add_tax":"Pievienot nodokli","amount":"Summa","action":"Darbība","notes":"Piezīmes","tax":"Nodoklis","estimate_template":"Sagatave","convert_to_invoice":"Pārveidot par rēķinu","mark_as_sent":"Atzīmēt kā nosūtītu","send_estimate":"Nosūtīt aprēķinu","resend_estimate":"Atkārtoti nosūtīt aprēķinu","record_payment":"Izveidot maksājumu","add_estimate":"Pievienot aprēķinu","save_estimate":"Saglabāt aprēķinu","confirm_conversion":"Šis aprēķins tiks izmantots, lai izveidotu jaunu rēķinu.","conversion_message":"Rēķins izveidots veiksmīgi","confirm_send_estimate":"Šis aprēķins tiks nosūtīts klientam e-pastā","confirm_mark_as_sent":"Aprēķins tiks atzīmēts kā nosūtīts","confirm_mark_as_accepted":"Aprēķins tiks atzīmēts kā apstiprināts","confirm_mark_as_rejected":"Aprēķins tiks atzīmēts kā noraidīts","no_matching_estimates":"Netika atrasts neviens aprēķins!","mark_as_sent_successfully":"Aprēķins atzīmēts kā veiksmīgi nosūtīts","send_estimate_successfully":"Aprēķins veiksmīgi nosūtīts","errors":{"required":"Šis lauks ir obligāts"},"accepted":"Apstiprināts","sent":"Nosūtīts","draft":"Melnraksts","declined":"Noraidīts","new_estimate":"Jauns aprēķins","add_new_estimate":"Pievienot jaunu aprēķinu","update_Estimate":"Atjaunināt aprēķinu","edit_estimate":"Labot aprēķinu","items":"preces","Estimate":"Aprēķins | Aprēķini","add_new_tax":"Pievienot jaunu nodokli","no_estimates":"Vēl nav aprēķinu!","list_of_estimates":"Šajā sadaļā būs aprēķinu saraksts.","mark_as_rejected":"Atzīmēt kā noraidītu","mark_as_accepted":"Atzīmēt kā apstiprinātu","marked_as_accepted_message":"Aprēķins atzīmēts kā apstiprināts","marked_as_rejected_message":"Aprēķins atzīmēts kā noraidīts","confirm_delete":"Jūs nevarēsiet atgūt šo aprēķinu | Jūs nevarēsiet atgūt šo aprēķinus","created_message":"Aprēķins izveidots veiksmīgi","updated_message":"Aprēķins atjaunināts veiksmīgi","deleted_message":"Aprēķins veiksmīgi izdzēsts | Aprēķini veiksmīgi izdzēsti","user_email_does_not_exist":"Lietotāja e-pasts neeksistē","something_went_wrong":"kaut kas nogāja greizi","item":{"title":"Preces nosaukums","description":"Apraksts","quantity":"Daudzums","price":"Cena","discount":"Atlaide","total":"Kopā","total_discount":"Kopējā atlaide","sub_total":"Starpsumma","tax":"Nodoklis","amount":"Summa","select_an_item":"Rakstīt vai spiest, lai izvēlētos","type_item_description":"Ievadiet preces/pakalpojuma aprakstu (nav obligāti)"}},"invoices":{"title":"Rēķini","invoices_list":"Rēķinu saraksts","days":"{days} Dienas","months":"{months} Mēnesis","years":"{years} Gads","all":"Visi","paid":"Apmaksāts","unpaid":"Neapmaksāts","customer":"KLIENTS","paid_status":"APMAKSAS STATUS","ref_no":"REF NR.","number":"NUMURS","amount_due":"SUMMA APMAKSAI","partially_paid":"Daļēji apmaksāts","total":"Kopā","discount":"Atlaide","sub_total":"Starpsumma","invoice":"Rēķins | Rēķini","invoice_number":"Rēķina numurs","ref_number":"Ref numurs","contact":"Kontakti","add_item":"Pievienot preci","date":"Datums","due_date":"Apmaksas termiņš","status":"Status","add_tax":"Pievienot nodokli","amount":"Summa","action":"Darbība","notes":"Piezīmes","view":"Skatīt","send_invoice":"Nosūtīt rēķinu","resend_invoice":"Nosūtīt rēķinu atkārtoti","invoice_template":"Rēķina sagatave","template":"Sagatave","mark_as_sent":"Atzīmēt kā nosūtītu","confirm_send_invoice":"Šis rēķins tiks nosūtīts klientam e-pastā","invoice_mark_as_sent":"Rēķins tiks atzīmēts kā nosūtīts","confirm_send":"Šis rēķins tiks nosūtīts klientam e-pastā","invoice_date":"Rēķina datums","record_payment":"Izveidot maksājumu","add_new_invoice":"Jauns rēķins","update_expense":"Atjaunināt izdevumu","edit_invoice":"Rediģēt rēķinu","new_invoice":"Jauns rēķins","save_invoice":"Saglabāt rēķinu","update_invoice":"Atjaunināt rēķinu","add_new_tax":"Pievienot jaunu nodokli","no_invoices":"Vēl nav rēķinu!","list_of_invoices":"Šajā sadaļā būs rēķinu saraksts.","select_invoice":"Izvēlaties rēķinu","no_matching_invoices":"Netika atrasts neviens rēķins!","mark_as_sent_successfully":"Rēķins atzīmēts kā veiksmīgi nosūtīts","send_invoice_successfully":"Rēķins ir veiksmīgi nosūtīts","cloned_successfully":"Rēķins ir veiksmīgi nokopēts","clone_invoice":"Kopēt rēķinu","confirm_clone":"Šis rēķins tiks nokopēts kā jauns rēķins","item":{"title":"Preces nosaukums","description":"Apraksts","quantity":"Daudzums","price":"Cena","discount":"Atlaide","total":"Kopā","total_discount":"Kopējā atlaide","sub_total":"Starpsumma","tax":"Nodoklis","amount":"Summa","select_an_item":"Rakstīt vai spiest, lai izvēlētos","type_item_description":"Ievadiet preces/pakalpojuma aprakstu (nav obligāti)"},"payment_attached_message":"Vienam no atzīmētajiem rēķiniem jau ir pievienots maksājums. Pārliecinieties, ka pievienoti maksājumi ir izdzēsti","confirm_delete":"Jūs nevarēsiet atgūt šo rēķinu | Jūs nevarēsiet atgūt šos rēķinus","created_message":"Rēķins izveidots veiksmīgi","updated_message":"Rēķins ir veiksmīgi atjaunināts","deleted_message":"Rēķins veiksmīgi izdzēsts | Rēķini veiksmīgi izdzēsti","marked_as_sent_message":"Rēķins atzīmēts kā veiksmīgi nosūtīts","user_email_does_not_exist":"Lietotāja e-pasts neeksistē","something_went_wrong":"kaut kas nogāja greizi","invalid_due_amount_message":"Rēķina kopējā summa nevar būt mazāka par kopējo apmaksāto summu. Lūdzu atjauniniet rēķinu vai dzēsiet piesaistītos maksājumus, lai turpinātu."},"credit_notes":{"title":"Credit Notes","credit_notes_list":"Credit Notes List","credit_notes":"Credit Notes","contact":"Kontakti","date":"Datums","amount":"Summa","action":"Darbība","credit_number":"Credit Number","notes":"Piezīmes","confirm_delete":"Do you want to delete this credit note?","item":{"title":"Vienuma nosaukums","description":"Apraksts","quantity":"Daudzums","price":"Cena","discount":"Atlaide","total":"Kopā","total_discount":"Kopējā atlaide","sub_total":"Starpsumma","tax":"Nodoklis"}},"payments":{"title":"Maksājumi","payments_list":"Maksājumu saraksts","record_payment":"Izveidot maksājumu","customer":"Klients","date":"Datums","amount":"Summa","action":"Darbība","payment_number":"Maksājuma numurs","payment_mode":"Apmaksas veids","invoice":"Rēķins","note":"Piezīme","add_payment":"Pievienot maksājumu","new_payment":"Jauns maksājums","edit_payment":"Labot maksājumu","view_payment":"Skatīt maksājumu","add_new_payment":"Pievienot jaunu maksājumu","send_payment_receipt":"Nosūtīt maksājuma izdruku","send_payment":"Nosūtīt maksājumu","save_payment":"Saglabāt maksājumu","update_payment":"Labot maksājumu","payment":"Maksājums | Maksājumi","no_payments":"Nav pievienotu maksājumu!","no_matching_payments":"Netika atrasts neviens maksājums!","list_of_payments":"Šajā sadaļā būs maksājumu saraksts.","select_payment_mode":"Izvēlēties maksājuma veidu","confirm_mark_as_sent":"Aprēķins tiks atzīmēts kā nosūtīts","confirm_send_payment":"Šis maksājums tiks nosūtīts klientam e-pastā","send_payment_successfully":"Maksājums veiksmīgi nosūtīts","user_email_does_not_exist":"Lietotāja e-pasts neeksistē","something_went_wrong":"kaut kas nogāja greizi","confirm_delete":"Jūs nevarēsiet atgūt šo maksājumu | Jūs nevarēsiet atgūt šos maksājumus","created_message":"Maksājums veiksmīgi izveidots","updated_message":"Maksājums veiksmīgi labots","deleted_message":"Maksājums veiksmīgi izdzēsts | Maksājumi veiksmīgi izdzēsti","invalid_amount_message":"Maksājuma summa nav pareiza"},"expenses":{"title":"Izdevumi","expenses_list":"Izdevumu saraksts","select_a_customer":"Izvēlēties klientu","expense_title":"Nosaukums","customer":"Klients","contact":"Kontakti","category":"Kategorija","from_date":"Datums no","to_date":"Datums līdz","expense_date":"Datums","description":"Apraksts","receipt":"Čeks","amount":"Summa","action":"Darbība","note":"Piezīme","category_id":"Kategorijas Id","date":"Datums","add_expense":"Pievienot izdevumu","add_new_expense":"Pievienot jaunu izdevumu","save_expense":"Saglabāt izdevumu","update_expense":"Atjaunināt izdevumu","download_receipt":"Lejupielādēt čeku","edit_expense":"Labot izdevumu","new_expense":"Jauns izdevums","expense":"Izdevums | Izdevumi","no_expenses":"Vēl nav izdevumu!","list_of_expenses":"Šajā sadaļā būs izdevumu saraksts.","confirm_delete":"Jūs nevarēsiet atgūt šo izdevumu | Jūs nevarēsiet atgūt šos izdevumus","created_message":"Izdevums izveidots veiksmīgi","updated_message":"Izdevums atjaunināts veiksmīgi","deleted_message":"Izdevums veiksmīgi izdzēsts | Izdevumi veiksmīgi izdzēsti","categories":{"categories_list":"Kategoriju saraksts","title":"Nosaukums","name":"Vārds","description":"Apraksts","amount":"Summa","actions":"Darbības","add_category":"Pievienot kategoriju","new_category":"Jauna Kategorija","category":"Kategorija | Kategorijas","select_a_category":"Izvēlieties kategoriju"}},"login":{"email":"E-pasts","password":"Parole","forgot_password":"Aizmirsi paroli?","or_signIn_with":"vai pierakstīties ar","login":"Ielogoties","register":"Reģistrēties","reset_password":"Atjaunot paroli","password_reset_successfully":"Parole atjaunota veiksmīgi","enter_email":"Ievadiet e-pastu","enter_password":"Ievadiet paroli","retype_password":"Atkārtoti ievadiet paroli","login_placeholder":"epasts@piemers.lv"},"users":{"title":"Lietotāji","users_list":"Lietotāju saraksts","name":"Vārds","description":"Apraksts","added_on":"Pievienots","date_of_creation":"Izveidošanas datums","action":"Darbība","add_user":"Pievienot lietotāju","save_user":"Saglabāt lietotāju","update_user":"Atjaunināt lietotāju","user":"Lietotājs | Lietotāji","add_new_user":"Pievienot jaunu lietotāju","new_user":"Jauns lietotājs","edit_user":"Rediģēt lietotāju","no_users":"Pagaidām nav lietotāju!","list_of_users":"Šajā sadaļā būs lietotāju saraksts.","email":"E-pasts","phone":"Telefona numurs","password":"Parole","user_attached_message":"Nevar dzēst preci, kura tiek izmantota","confirm_delete":"Jūs nevarēsiet atgūt šo lietotāju | Jūs nevarēsiet atgūt šos lietotājus","created_message":"Lietotājs veiksmīgi izveidots","updated_message":"Lietotājs veiksmīgi labots","deleted_message":"Lietotājs veiksmīgi izdzēsts"},"reports":{"title":"Atskaite","from_date":"Datums no","to_date":"Datums līdz","status":"Status","paid":"Apmaksāts","unpaid":"Neapmaksāts","download_pdf":"Lejupielādēt PDF","view_pdf":"Apskatīt PDF","update_report":"Labot atskaiti","report":"Atskaite | Atskaites","profit_loss":{"profit_loss":"Peļņa & Zaudējumi","to_date":"Datums līdz","from_date":"Datums no","date_range":"Izvēlēties datumus"},"sales":{"sales":"Pārdotais","date_range":"Izvēlēties datumus","to_date":"Datums līdz","from_date":"Datums no","report_type":"Atskaites veids"},"taxes":{"taxes":"Nodokļi","to_date":"Datums līdz","from_date":"Datums no","date_range":"Izvēlēties datumus"},"errors":{"required":"Šis lauks ir obligāts"},"invoices":{"invoice":"Rēķins","invoice_date":"Rēķina datums","due_date":"Apmaksas termiņš","amount":"Summa","contact_name":"Kontaktpersonas vārds","status":"Status"},"estimates":{"estimate":"Aprēķins","estimate_date":"Aprēķina datums","due_date":"Termiņš","estimate_number":"Aprēķina numurs","ref_number":"Ref numurs","amount":"Summa","contact_name":"Kontaktpersonas vārds","status":"Status"},"expenses":{"expenses":"Izdevumi","category":"Kategorija","date":"Datums","amount":"Summa","to_date":"Datums līdz","from_date":"Datums no","date_range":"Izvēlēties datumus"}},"settings":{"menu_title":{"account_settings":"Konta iestatījumi","company_information":"Uzņēmuma informācija","customization":"Pielāgošana","preferences":"Iestatījumi","notifications":"Paziņojumi","tax_types":"Nodokļu veidi","expense_category":"Izdevumu kategorijas","update_app":"Atjaunināt App","backup":"Rezerves kopija","file_disk":"Disks","custom_fields":"Pielāgotie lauki","payment_modes":"Apmaksas veidi","notes":"Piezīmes"},"title":"Iestatījumi","setting":"Iestatījumi | Iestatījumi","general":"Vispārīgi","language":"Valoda","primary_currency":"Primārā valūta","timezone":"Laika josla","date_format":"Datuma formāts","currencies":{"title":"Valūtas","currency":"Valūta | Valūtas","currencies_list":"Valūtu saraksts","select_currency":"Izvēleties valūtu","name":"Nosaukums","code":"Kods","symbol":"Simbols","precision":"Precizitāte","thousand_separator":"Tūkstošu atdalītājs","decimal_separator":"Decimāldaļu atdalītājs","position":"Pozīcija","position_of_symbol":"Pozīcijas simbols","right":"Pa labi","left":"Pa kreisi","action":"Darbība","add_currency":"Pievienot valūtu"},"mail":{"host":"E-pasta serveris","port":"E-pasta ports","driver":"E-pasta draiveris","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domēns","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"E-pasta parole","username":"E-pasta lietotājvārds","mail_config":"E-pasta konfigurācija","from_name":"E-pasts no","from_mail":"E-pasta adrese no kuras sūtīt","encryption":"E-pasta šifrēšana","mail_config_desc":"Zemāk ir e-pasta konfigurēšanas forma. Jūs varat konfigurēt arī trešās puses servisus kā Sendgrid, SES u.c."},"pdf":{"title":"PDF uzstādījumi","footer_text":"Kājenes teksts","pdf_layout":"PDF izkārtojums"},"company_info":{"company_info":"Uzņēmuma informācija","company_name":"Uzņēmuma nosaukums","company_logo":"Uzņēmuma logo","section_description":"Informācija par uzņēmumu kura tiks uzrādīta rēķinos, aprēķinos un citos dokumentos kurus veidosiet Crater sistēmā.","phone":"Telefona numurs","country":"Valsts","state":"Reģions","city":"Pilsēta","address":"Adrese","zip":"Pasta indekss","save":"Saglabāt","updated_message":"Uzņēmuma informācija veiksmīgi saglabāta"},"custom_fields":{"title":"Pielāgotie lauki","section_description":"Customize your Invoices, Estimates & Payment Receipts with your own fields. Make sure to use the below added fields on the address formats on Customization settings page.","add_custom_field":"Add Custom Field","edit_custom_field":"Edit Custom Field","field_name":"Field Name","label":"Label","type":"Type","name":"Name","required":"Required","placeholder":"Placeholder","help_text":"Help Text","default_value":"Noklusējuma vērtība","prefix":"Prefikss","starting_number":"Sākuma numurs","model":"Modelis","help_text_description":"Enter some text to help users understand the purpose of this custom field.","suffix":"Suffix","yes":"Jā","no":"Nē","order":"Order","custom_field_confirm_delete":"You will not be able to recover this Custom Field","already_in_use":"Custom Field is already in use","deleted_message":"Custom Field deleted successfully","options":"options","add_option":"Add Options","add_another_option":"Add another option","sort_in_alphabetical_order":"Sort in Alphabetical Order","add_options_in_bulk":"Add options in bulk","use_predefined_options":"Use Predefined Options","select_custom_date":"Select Custom Date","select_relative_date":"Select Relative Date","ticked_by_default":"Ticked by default","updated_message":"Custom Field updated successfully","added_message":"Custom Field added successfully"},"customization":{"customization":"pielāgošana","save":"Saglabāt","addresses":{"title":"Adreses","section_description":"Jūs varat pielāgot klienta juridiskās adreses un piegādes adreses formātu. (Uzrādās PDF izdrukā). ","customer_billing_address":"Klienta norēķinu adrese","customer_shipping_address":"Klienta piegādes adrese","company_address":"Uzņēmuma adrese","insert_fields":"Pievienot lauku","contact":"Kontakti","address":"Adrese","display_name":"Nosaukums","primary_contact_name":"Galvenā kontakta vārds","email":"E-pasts","website":"Mājaslapa","name":"Nosaukums","country":"Valsts","state":"Reģions","city":"Pilsēta","company_name":"Uzņēmuma nosaukums","address_street_1":"Adrese 1","address_street_2":"Adrese 2","phone":"Telefona numurs","zip_code":"Pasta indekss","address_setting_updated":"Iestatījumi tika veiksmīgi atjaunināti"},"updated_message":"Uzņēmuma informācija veiksmīgi saglabāta","invoices":{"title":"Rēķini","notes":"Piezīmes","invoice_prefix":"Rēķina prefikss","default_invoice_email_body":"Default Invoice Email Body","invoice_settings":"Invoice Settings","autogenerate_invoice_number":"Automātiski ģenerēt rēķina numuru","invoice_setting_description":"Atspējojiet, ja nevēlaties automātiski ģenerēt rēķinu numurus katru reizi, kad izveidojat jaunu rēķinu.","enter_invoice_prefix":"Ievadiet rēķina prefiksu","terms_and_conditions":"Lietošanas noteikumi","company_address_format":"Uzņēmuma adreses formāts","shipping_address_format":"Piegādes adreses formāts","billing_address_format":"Maksātāja / Uzņēmuma adreses formāts","invoice_setting_updated":"Rēķina iestatījumi ir veiksmīgi atjaunināti"},"estimates":{"title":"Aprēķini","estimate_prefix":"Aprēķinu prefikss","default_estimate_email_body":"Noklusējamais Aprēķina e-pasta saturs","estimate_settings":"Aprēķinu iestatījumi","autogenerate_estimate_number":"Automātiski ģenerēt Aprēķina numuru","estimate_setting_description":"Atspējojiet, ja nevēlaties automātiski ģenerēt Aprēķinu numurus katru reizi, kad izveidojat jaunu Aprēķinu.","enter_estimate_prefix":"Ievadiet Aprēķina prefiksu","estimate_setting_updated":"Aprēķina iestatījumi ir veiksmīgi atjaunināti","company_address_format":"Uzņēmuma adreses formāts","billing_address_format":"Maksātāja / Uzņēmuma adreses formāts","shipping_address_format":"Piegādes adreses formāts"},"payments":{"title":"Maksājumi","description":"Pārskaitījumu veidi, maksājumiem","payment_prefix":"Maksājuma prefikss","default_payment_email_body":"Noklusējamais Maksājuma e-pasta saturs","payment_settings":"Maksājumu iestatījumi","autogenerate_payment_number":"Automātiski ģenerēt Maksājuma numuru","payment_setting_description":"Atspējojiet, ja nevēlaties automātiski ģenerēt Maksājuma numurus katru reizi, kad izveidojat jaunu Maksājumu.","enter_payment_prefix":"Ievadiet Maksājuma prefiksu","payment_setting_updated":"Maksājumu iestatījumi ir veiksmīgi atjaunināti","payment_modes":"Apmaksas veidi","add_payment_mode":"Pievienojiet apmaksas veidu","edit_payment_mode":"Labot maksājuma veidu","mode_name":"Veida nosaukums","payment_mode_added":"Pievienots maksāšanas veids","payment_mode_updated":"Labots maksāšanas veids","payment_mode_confirm_delete":"Jums nebūs iespējas atgūt šo Maksājuma veidu","already_in_use":"Maksājuma veids jau tiek izmantots","deleted_message":"Maksājuma veids veiksmīgi izdzēsts","company_address_format":"Uzņēmuma adreses formāts","from_customer_address_format":"No Klienta adreses formāts"},"items":{"title":"Preces","units":"Vienības","add_item_unit":"Pievienot Preces vienību","edit_item_unit":"Labot Preces vienību","unit_name":"Vienības nosaukums","item_unit_added":"Preces vienība pievienota","item_unit_updated":"Preces vienība atjaunota","item_unit_confirm_delete":"Jums nebūs iespējas atgūt šo Preces vienību","already_in_use":"Preces vienība jau tiek izmantota","deleted_message":"Preces vienība veiksmīgi izdzēsta"},"notes":{"title":"Piezīmes","description":"Save time by creating notes and reusing them on your invoices, estimates & payments.","notes":"Notes","type":"Type","add_note":"Add Note","add_new_note":"Add New Note","name":"Name","edit_note":"Edit Note","note_added":"Note added successfully","note_updated":"Note Updated successfully","note_confirm_delete":"You will not be able to recover this Note","already_in_use":"Note is already in use","deleted_message":"Note deleted successfully"}},"account_settings":{"profile_picture":"Profile Picture","name":"Name","email":"Email","password":"Password","confirm_password":"Confirm Password","account_settings":"Account Settings","save":"Save","section_description":"You can update your name, email & password using the form below.","updated_message":"Account Settings updated successfully"},"user_profile":{"name":"Name","email":"Email","password":"Password","confirm_password":"Confirm Password"},"notification":{"title":"Notification","email":"Send Notifications to","description":"Which email notifications would you like to receive when something changes?","invoice_viewed":"Invoice viewed","invoice_viewed_desc":"When your customer views the invoice sent via crater dashboard.","estimate_viewed":"Estimate viewed","estimate_viewed_desc":"When your customer views the estimate sent via crater dashboard.","save":"Save","email_save_message":"Email saved successfully","please_enter_email":"Please Enter Email"},"tax_types":{"title":"Tax Types","add_tax":"Add Tax","edit_tax":"Edit Tax","description":"You can add or Remove Taxes as you please. Crater supports Taxes on Individual Items as well as on the invoice.","add_new_tax":"Add New Tax","tax_settings":"Tax Settings","tax_per_item":"Tax Per Item","tax_name":"Tax Name","compound_tax":"Compound Tax","percent":"Percent","action":"Action","tax_setting_description":"Enable this if you want to add taxes to individual invoice items. By default, taxes are added directly to the invoice.","created_message":"Tax type created successfully","updated_message":"Tax type updated successfully","deleted_message":"Tax type deleted successfully","confirm_delete":"Jums nebūs iespējas atgūt šo Nodokļa veidu","already_in_use":"Nodoklis jau tiek izmantots"},"expense_category":{"title":"Izdevumu kategorijas","action":"Darbība","description":"Kategorijas ir obligātas, lai pievienotu Izdevumus.","add_new_category":"Pievienot jaunu kategoriju","add_category":"Pievienot kategoriju","edit_category":"Rediģēt kategoriju","category_name":"Kategorijas nosaukums","category_description":"Apraksts","created_message":"Izdevumu kategorija izveidota veiksmīgi","deleted_message":"Izdevumu kategorija veiksmīgi izdzēsta","updated_message":"Izdevumu kategorija atjaunināta veiksmīgi","confirm_delete":"Jums nebūs iespējas atgūt šo Izdevumu kategoriju","already_in_use":"Kategorija jau tiek izmantota"},"preferences":{"currency":"Valūta","default_language":"Noklusējuma valoda","time_zone":"Laika josla","fiscal_year":"Finanšu gads","date_format":"Datuma formāts","discount_setting":"Atlaižu iestatījumi","discount_per_item":"Atlaide par preci/pakalpojumu ","discount_setting_description":"Iespējot šo, lai piešķirtu atlaides individuālām rēķina precēm. Pēc noklusējuma, atlaide tiek piemērota rēķinam.","save":"Saglabāt","preference":"Iestatījumi | Iestatījumi","general_settings":"Noklusējamie iestatījumi sistēmai.","updated_message":"Iestatījumi atjaunināti veiksmīgi","select_language":"Izvēlieties valodu","select_time_zone":"Izvēlaties laika joslu","select_date_format":"Izvēlaties datuma formātu","select_financial_year":"Izvēlaties finanšu gadu"},"update_app":{"title":"Atjaunināt App","description":"Jūs varat atjaunināt Crater sistēmas versiju pavisam vienkārši - spiežot uz pogas zemāk","check_update":"Meklēt atjauninājumus","avail_update":"Pieejami jauni atjauninājumi","next_version":"Nākamā versija","requirements":"Prasības","update":"Atjaunināt tagad","update_progress":"Notiek atjaunināšana...","progress_text":"Tas prasīs tikai dažas minūtes. Pirms atjaunināšanas beigām, lūdzu, neatsvaidziniet ekrānu un neaizveriet logu","update_success":"Sistēma ir atjaunināta! Lūdzu, uzgaidiet, kamēr pārlūkprogrammas logs tiks automātiski ielādēts.","latest_message":"Atjauninājumi nav pieejami! Jums ir jaunākā versija.","current_version":"Versija","download_zip_file":"Lejupielādēt ZIP failu","unzipping_package":"Atarhivē Zip failu","copying_files":"Notiek failu kopēšana","running_migrations":"Notiek migrācijas","finishing_update":"Pabeidz atjauninājumu","update_failed":"Atjaunināšana neizdevās","update_failed_text":"Atvainojiet! Jūsu atjauninājuma laikā notika kļūda: {step}. solī"},"backup":{"title":"Backup | Backups","description":"The backup is a zipfile that contains all files in the directories you specify along with a dump of your database","new_backup":"Add New Backup","create_backup":"Create Backup","select_backup_type":"Select Backup Type","backup_confirm_delete":"You will not be able to recover this Backup","path":"path","new_disk":"New Disk","created_at":"created at","size":"size","dropbox":"dropbox","local":"local","healthy":"healthy","amount_of_backups":"amount of backups","newest_backups":"newest backups","used_storage":"used storage","select_disk":"Select Disk","action":"Action","deleted_message":"Backup deleted successfully","created_message":"Backup created successfully","invalid_disk_credentials":"Invalid credential of selected disk"},"disk":{"title":"File Disk | File Disks","description":"By default, Crater will use your local disk for saving backups, avatar and other image files. You can configure more than one disk drivers like DigitalOcean, S3 and Dropbox according to your preference.","created_at":"created at","dropbox":"dropbox","name":"Name","driver":"Driver","disk_type":"Type","disk_name":"Disk Name","new_disk":"Add New Disk","filesystem_driver":"Filesystem Driver","local_driver":"local Driver","local_root":"local Root","public_driver":"Public Driver","public_root":"Public Root","public_url":"Public URL","public_visibility":"Public Visibility","media_driver":"Media Driver","media_root":"Media Root","aws_driver":"AWS Driver","aws_key":"AWS Key","aws_secret":"AWS Secret","aws_region":"AWS Region","aws_bucket":"AWS Bucket","aws_root":"AWS Root","do_spaces_type":"Do Spaces type","do_spaces_key":"Do Spaces key","do_spaces_secret":"Do Spaces Secret","do_spaces_region":"Do Spaces Region","do_spaces_bucket":"Do Spaces Bucket","do_spaces_endpoint":"Do Spaces Endpoint","do_spaces_root":"Do Spaces Root","dropbox_type":"Dropbox Type","dropbox_token":"Dropbox Token","dropbox_key":"Dropbox Key","dropbox_secret":"Dropbox Secret","dropbox_app":"Dropbox App","dropbox_root":"Dropbox Root","default_driver":"Default Driver","is_default":"IR NOKLUSĒJAMS","set_default_disk":"Iestatiet noklusējuma disku","success_set_default_disk":"Disks ir veiksmīgi iestatīts kā noklusējums","save_pdf_to_disk":"Saglabāt PDF uz diska","disk_setting_description":" Iespējot šo, ja vēlaties lai katru rēķina, aprēķina un maksājuma izdrukas PDF kopiju saglabātu diskā. Šī opcija samazinās ielādēšanas laiku, kad apskatīsiet PDF.","select_disk":"Izvēlieties disku","disk_settings":"Diska uzstādījumi","confirm_delete":"Jūsu esošie faili un mapes norādītajā diskā netiks ietekmēti, bet diska konfigurācija tiks izdzēsta no Crater sistēmas","action":"Darbība","edit_file_disk":"Labot failu disku","success_create":"Disks tika pievienots veiksmīgi","success_update":"Disks atjaunināts veiksmīgi","error":"Diska pievienošanas kļūda","deleted_message":"Failu disks veiksmīgi izdzēsts","disk_variables_save_successfully":"Disks konfigurēts veiksmīgi","disk_variables_save_error":"Diska konfigurācija neveiksmīga.","invalid_disk_credentials":"Nepareizi pieejas dati atzīmētajam diskam"}},"wizard":{"account_info":"Konta informācija","account_info_desc":"Zemāk sniegtā informācija tiks izmantota galvenā administratora konta izveidei. Jūs varēsiet mainīt informāciju jebkurā laikā pēc ielogošanās.","name":"Vārds","email":"E-pasts","password":"Parole","confirm_password":"Apstipriniet paroli","save_cont":"Saglabāt un turpināt","company_info":"Uzņēmuma informācija","company_info_desc":"Šī informācija tiks parādīta rēķinos. Ņemiet vērā, ka vēlāk to var rediģēt iestatījumu lapā.","company_name":"Uzņēmuma nosaukums","company_logo":"Uzņēmuma logo","logo_preview":"Logo","preferences":"Iestatījumi","preferences_desc":"Noklusējamie iestatījumi sistēmai.","country":"Valsts","state":"Reģions","city":"Pilsēta","address":"Adrese","street":"Adrese1 | Adrese2","phone":"Telefona numurs","zip_code":"Pasta indekss","go_back":"Atpakaļ","currency":"Valūta","language":"Valoda","time_zone":"Time Zone","fiscal_year":"Financial Year","date_format":"Date Format","from_address":"From Address","username":"Username","next":"Next","continue":"Continue","skip":"Skip","database":{"database":"Site URL & Database","connection":"Database Connection","host":"Database Host","port":"Database Port","password":"Database Password","app_url":"App URL","app_domain":"App Domain","username":"Database Username","db_name":"Database Name","db_path":"Database Path","desc":"Create a database on your server and set the credentials using the form below."},"permissions":{"permissions":"Permissions","permission_confirm_title":"Are you sure you want to continue?","permission_confirm_desc":"Folder permission check failed","permission_desc":"Below is the list of folder permissions which are required in order for the app to work. If the permission check fails, make sure to update your folder permissions."},"mail":{"host":"Mail Host","port":"Mail Port","driver":"Mail Driver","secret":"Secret","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domain","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"Mail Password","username":"Mail Username","mail_config":"Mail Configuration","from_name":"From Mail Name","from_mail":"From Mail Address","encryption":"Mail Encryption","mail_config_desc":"Below is the form for Configuring Email driver for sending emails from the app. You can also configure third party providers like Sendgrid, SES etc."},"req":{"system_req":"System Requirements","php_req_version":"Php (version {version} required)","check_req":"Pārbaudīt prasības","system_req_desc":"Crater sistēmai ir dažas servera prasības. Pārliecinieties, ka jūsu serverim ir vajadzīgā php versija un visi tālāk minētie paplašinājumi."},"errors":{"migrate_failed":"Migrācija neizdevās","database_variables_save_error":"Nevarēja konfigurēt .env failu. Lūdzu pārbaudiet faila pieejas","mail_variables_save_error":"E-pasta konfigurācija neveiksmīga.","connection_failed":"Datubāzes savienojums neveiksmīgs","database_should_be_empty":"Datubāzei jābūt tukšai"},"success":{"mail_variables_save_successfully":"E-pasts konfigurēts veiksmīgi","database_variables_save_successfully":"Database configured successfully."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Super Simple Invoicing","for_freelancer":"for Freelancers &","small_businesses":"Small Businesses ","crater_help":"Crater helps you track expenses, record payments & generate beautiful","invoices_and_estimates":"invoices & estimates with ability to choose multiple templates."},"validation":{"invalid_phone":"Invalid Phone Number","invalid_url":"Invalid url (ex: http://www.crater.com)","invalid_domain_url":"Invalid url (ex: crater.com)","required":"Field is required","email_incorrect":"Incorrect Email.","email_already_taken":"The email has already been taken.","email_does_not_exist":"User with given email doesn\'t exist","item_unit_already_taken":"This item unit name has already been taken","payment_mode_already_taken":"This payment mode name has already been taken","send_reset_link":"Send Reset Link","not_yet":"Not yet? Send it again","password_min_length":"Password must contain {count} characters","name_min_length":"Name must have at least {count} letters.","enter_valid_tax_rate":"Enter valid tax rate","numbers_only":"Numbers Only.","characters_only":"Characters Only.","password_incorrect":"Passwords must be identical","password_length":"Password must be {count} character long.","qty_must_greater_than_zero":"Quantity must be greater than zero.","price_greater_than_zero":"Price must be greater than zero.","payment_greater_than_zero":"Payment must be greater than zero.","payment_greater_than_due_amount":"Entered Payment is more than due amount of this invoice.","quantity_maxlength":"Quantity should not be greater than 20 digits.","price_maxlength":"Price should not be greater than 20 digits.","price_minvalue":"Price should be greater than 0.","amount_maxlength":"Amount should not be greater than 20 digits.","amount_minvalue":"Amount should be greater than 0.","description_maxlength":"Description should not be greater than 255 characters.","subject_maxlength":"Subject should not be greater than 100 characters.","message_maxlength":"Message should not be greater than 255 characters.","maximum_options_error":"Maximum of {max} options selected. First remove a selected option to select another.","notes_maxlength":"Notes should not be greater than 255 characters.","address_maxlength":"Address should not be greater than 255 characters.","ref_number_maxlength":"Ref Number should not be greater than 255 characters.","prefix_maxlength":"Prefix should not be greater than 5 characters.","something_went_wrong":"something went wrong"},"pdf_estimate_label":"Aprēķins","pdf_estimate_number":"Aprēķina numurs","pdf_estimate_date":"Aprēķina datums","pdf_estimate_expire_date":"Derīgs līdz","pdf_invoice_label":"Rēķins","pdf_invoice_number":"Rēķina numurs","pdf_invoice_date":"Rēķina datums","pdf_invoice_due_date":"Apmaksas termiņš","pdf_notes":"Notes","pdf_items_label":"Nosaukums","pdf_quantity_label":"Daudzums","pdf_price_label":"Cena","pdf_discount_label":"Atlaide","pdf_amount_label":"Summa","pdf_subtotal":"Starpsumma","pdf_total":"Kopā","pdf_payment_receipt_label":"MAKSĀJUMA IZDRUKA","pdf_payment_date":"Maksājuma datums","pdf_payment_number":"Maksājuma numurs","pdf_payment_mode":"Apmaksas veids","pdf_payment_amount_received_label":"Saņemtā summa","pdf_expense_report_label":"IZDEVUMU ATSKAITE","pdf_total_expenses_label":"KOPĀ IZDEVUMI","pdf_profit_loss_label":"PEĻŅAS & IZDEVUMU ATSKAITE","pdf_income_label":"IENĀKUMI","pdf_net_profit_label":"PEĻŅA","pdf_customer_sales_report":"Atskaite par pārdoto: Pēc lietotāja","pdf_total_sales_label":"KOPĀ PĀRDOTAIS","pdf_item_sales_label":"Atskaite par pārdoto: Pēc preces/pakalpojuma","pdf_tax_report_label":"NODOKĻU ATSKAITE","pdf_total_tax_label":"NODOKĻI KOPĀ","pdf_tax_types_label":"Nodokļu veidi","pdf_expenses_label":"Izdevumi","pdf_bill_to":"Saņēmējs,","pdf_ship_to":"Piegādes adrese,","pdf_received_from":"Saņemts no:"}'),pe=JSON.parse('{"navigation":{"dashboard":"Översikt","customers":"Kunder","items":"Artiklar","invoices":"Fakturor","expenses":"Utgifter","estimates":"Kostnadsförslag","payments":"Betalningar","reports":"Rapporter","settings":"Inställningar","logout":"Logga ut","users":"Användare"},"general":{"add_company":"Skapa företag","view_pdf":"Visa PDF","copy_pdf_url":"Kopiera adress till PDF","download_pdf":"Ladda ner PDF","save":"Spara","create":"Skapa","cancel":"Avbryt","update":"Uppdatera","deselect":"Avmarkera","download":"Ladda ner","from_date":"Från datum","to_date":"Till datum","from":"Från","to":"Till","sort_by":"Sortera på","ascending":"Stigande","descending":"Fallande","subject":"Ämne","body":"Innehåll","message":"Meddelande","send":"Skicka","go_back":"Tillbaka","back_to_login":"Till inloggningssidan?","home":"Hem","filter":"Filter","delete":"Ta bort","edit":"Editera","view":"Visa","add_new_item":"Skapa artikel","clear_all":"Rensa alla","showing":"Visar","of":"av","actions":"Funktioner","subtotal":"DELSUMMA","discount":"RABATT","fixed":"Fast","percentage":"Procent","tax":"MOMS","total_amount":"TOTALSUMMA","bill_to":"Faktureras till","ship_to":"Levereras till","due":"Förfallen","draft":"Förslag","sent":"Skickat","all":"Alla","select_all":"Välj alla","choose_file":"Klicka här för att välja fil","choose_template":"Välj mall","choose":"Välj","remove":"Ta bort","powered_by":"Powered by","bytefury":"Bytefury","select_a_status":"Välj status","select_a_tax":"Välj moms","search":"Sök","are_you_sure":"Är du säker?","list_is_empty":"Listan är tom.","no_tax_found":"Hittade inte moms!","four_zero_four":"404","you_got_lost":"Hoppsan! Nu är du vilse!","go_home":"Gå hem","test_mail_conf":"Testa epostinställningar","send_mail_successfully":"Lyckades skicka epost","setting_updated":"Inställningar uppdaterades","select_state":"Välj kommun","select_country":"Välj land","select_city":"Välj stad","street_1":"Gatuadress 1","street_2":"Gatuadress 2","action_failed":"Försök misslyckades","retry":"Försök igen","choose_note":"Välj notering","no_note_found":"Inga noteringar hittades","insert_note":"Lägg till notering","copied_pdf_url_clipboard":"Url till PDF kopierades till urklipp!"},"dashboard":{"select_year":"Välj år","cards":{"due_amount":"Förfallet belopp","customers":"Kunder","invoices":"Fakturor","estimates":"Kostnadsförslag"},"chart_info":{"total_sales":"Försäljning","total_receipts":"Kvitton","total_expense":"Utgifter","net_income":"Nettoinkomst","year":"Välj år"},"weekly_invoices":{"title":"Faktura per vecka"},"monthly_chart":{"title":"Försäljning och utgifter"},"recent_invoices_card":{"title":"Förfallna fakturor","due_on":"Förfaller den","customer":"Kund","amount_due":"Förfallet belopp","actions":"Handlingar","view_all":"Visa alla"},"recent_estimate_card":{"title":"Senaste kostnadsförslag","date":"Datum","customer":"Kund","amount_due":"Förfallet belopp","actions":"Handlingar","view_all":"Visa alla"}},"tax_types":{"name":"Namn","description":"Beskrivning","percent":"Provent","compound_tax":"Sammansatt moms"},"global_search":{"search":"Sök...","customers":"Kunder","users":"Användare","no_results_found":"Hittade inga resultat"},"customers":{"title":"Kunder","add_customer":"Lägg till kund","contacts_list":"Kundlista","name":"Namn","mail":"Epost | Epost","statement":"Påstående","display_name":"Visningsnamn","primary_contact_name":"Primär kontakts namn","contact_name":"Kontaktnamn","amount_due":"Förfallet belopp","email":"Epost","address":"Adress","phone":"Telefon","website":"Hemsida","overview":"Översikt","enable_portal":"Aktivera portal","country":"Land","state":"Kommun","city":"Stad","zip_code":"Postnummer","added_on":"Tillagd den","action":"Handling","password":"Lösenord","street_number":"Gatnummer","primary_currency":"Huvudvaluta","description":"Beskrivning","add_new_customer":"Lägg till ny kund","save_customer":"Spara kund","update_customer":"Uppdatera kund","customer":"Kund | Kunder","new_customer":"Ny kund","edit_customer":"Ändra kund","basic_info":"Information","billing_address":"Fakturaadress","shipping_address":"Leveransadress","copy_billing_address":"Kopiera från faktura","no_customers":"Inga kunder än!","no_customers_found":"Hittade inga kunder!","list_of_customers":"Här kommer det finnas en lista med kunder.","primary_display_name":"Visningsnamn","select_currency":"Välj valuta","select_a_customer":"Välj kund","type_or_click":"Skriv eller klicka för att välja","new_transaction":"Ny transaktion","no_matching_customers":"Matchade inte med någon kund!","phone_number":"Telefonnummer","create_date":"Skapandedatum","confirm_delete":"Du kommer inte kunna återställa denna kund eller några relaterade fakturor, kostnadsförslag eller betalningar. | Du kommer inte kunna återställa dessa kunder eller några relaterade fakturor, kostnadsförslag eller betalningar.","created_message":"Kund skapades","updated_message":"Kund uppdaterades","deleted_message":"Kund raderades | Kunder raderades"},"items":{"title":"Artiklar","items_list":"Artikellista","name":"Namn","unit":"Enhet","description":"Beskrivning","added_on":"Tillagd den","price":"Pris","date_of_creation":"Skapandedatum","action":"Handling","add_item":"Skapa artikel","save_item":"Spara artikel","update_item":"Uppdatera artiklar","item":"Artikel | Artiklar","add_new_item":"Skapa ny artikel","new_item":"Ny artikel","edit_item":"Ändra artikel","no_items":"Inga artiklar än!","list_of_items":"Här kommer lista över artiklar vara.","select_a_unit":"välj enhet","taxes":"Moms","item_attached_message":"Kan inte radera en artikel som används","confirm_delete":"Du kommer inte kunna återställa denna artikel | Du kommer inte kunna återställa dessa artiklar","created_message":"Artikel skapades","updated_message":"Artikel uppdaterades","deleted_message":"Artikel raderades | Artiklar raderades"},"estimates":{"title":"Kostnadsförslag","estimate":"Kostnadsförslag | Kostnadsförslag","estimates_list":"Lista med kostnadsförslag","days":"{days} dagar","months":"{months} månader","years":"{years} år","all":"Alla","paid":"Betalda","unpaid":"Obetalda","customer":"KUND","ref_no":"REF NR.","number":"NUMMER","amount_due":"FÖRFALLET BELOPP","partially_paid":"Delbetald","total":"Summa","discount":"Rabatt","sub_total":"Delsumma","estimate_number":"Kostnadsförslagsnummer","ref_number":"Ref Nummer","contact":"Kontakt","add_item":"Lägg till artikel","date":"Datum","due_date":"Förfallodatum","expiry_date":"Utgångsdatum","status":"Status","add_tax":"Lägg till moms","amount":"Belopp","action":"Handling","notes":"Noteringar","tax":"Moms","estimate_template":"Mall","convert_to_invoice":"Konvertera till faktura","mark_as_sent":"Markerade som skickad","send_estimate":"Skicka kostnadsförslag","resend_estimate":"Skicka kostnadsförslag igen","record_payment":"Registrera betalning","add_estimate":"Lägg till kostnadsförslag","save_estimate":"Spara kostnadsförslag","confirm_conversion":"Detta kostnadsförslag används för att skapa ny faktura.","conversion_message":"Faktura skapades","confirm_send_estimate":"Detta kostnadsförslag skickas via epost till kund","confirm_mark_as_sent":"Detta kostnadsförslag markeras som skickat","confirm_mark_as_accepted":"Detta kostnadsförslag markeras som accepterad","confirm_mark_as_rejected":"Detta kostnadsförslag markeras som avvisad","no_matching_estimates":"Inga matchande kostnadsförslag!","mark_as_sent_successfully":"Kostnadsförslag markerat som skickat","send_estimate_successfully":"Kostnadsförslag skickades","errors":{"required":"Fältet är tvingande"},"accepted":"Accepterad","sent":"Skickat","draft":"Utkast","declined":"Avvisad","new_estimate":"Nytt kostnadsförslag","add_new_estimate":"Skapa nytt kostnadsförslag","update_Estimate":"Uppdatera kostnadsförslag","edit_estimate":"Ändra kostnadsförslag","items":"artiklar","Estimate":"Kostnadsförslag | Kostnadsförslag","add_new_tax":"Skapa ny momssats","no_estimates":"Inga kostnadsförslag än!","list_of_estimates":"Här kommer det finnas kostnadsförslag.","mark_as_rejected":"Markera som avvisad","mark_as_accepted":"Markera som godkänd","marked_as_accepted_message":"Kostnadsförslag markerad som godkänd","marked_as_rejected_message":"Kostnadsförslag markerad som avvisad","confirm_delete":"Du kommer inte kunna återställa detta kostnadsförslag | Du kommer inte kunna återställa dessa kostnadsförslag","created_message":"Kostnadsförslag skapades","updated_message":"Kostnadsförslag ändrades","deleted_message":"Kostnadsförslag raderades | Kostnadsförslag raderades","user_email_does_not_exist":"Användarens epost saknas","something_went_wrong":"något gick fel","item":{"title":"Artikelnamn","description":"Beskrivning","quantity":"Antal","price":"Pris","discount":"Rabatt","total":"Summa","total_discount":"Rabattsumma","sub_total":"Delsumma","tax":"Moms","amount":"Summa","select_an_item":"Skriv eller klicka för att välja artikel","type_item_description":"Skriv in artikelns beskrivning (frivilligt)"}},"invoices":{"title":"Fakturor","invoices_list":"Fakturor","days":"{days} dagar","months":"{months} månader","years":"{years} år","all":"Alla","paid":"Betalda","unpaid":"Obetalda","customer":"KUNDER","paid_status":"BETALSTATUS","ref_no":"REF NR.","number":"NUMMER","amount_due":"FÖRFALLET BELOPP","partially_paid":"Delbetald","total":"Summa","discount":"Rabatt","sub_total":"Delsumma","invoice":"Faktura | Fakturor","invoice_number":"Fakturanummer","ref_number":"Ref Nummer","contact":"Kontakt","add_item":"Lägg till artikel","date":"Datum","due_date":"Förfallodatum","status":"Status","add_tax":"Lägg till moms","amount":"Summa","action":"Handling","notes":"Noteringar","view":"Visa","send_invoice":"Skicka faktura","resend_invoice":"Skicka faktura igen","invoice_template":"Fakturamall","template":"Mall","mark_as_sent":"Markera som skickad","confirm_send_invoice":"Denna faktura skickas via epost till kunden","invoice_mark_as_sent":"Denna faktura markeras som skickad","confirm_send":"Denna faktura skickas via epost till kunden","invoice_date":"Fakturadatum","record_payment":"Registrera betalning","add_new_invoice":"Lägg till ny faktura","update_expense":"Ändra utgifter","edit_invoice":"Editera faktura","new_invoice":"Ny faktura","save_invoice":"Spara faktura","update_invoice":"Uppdatera faktura","add_new_tax":"Lägg till ny momssats","no_invoices":"Inga fakturor än!","list_of_invoices":"Här kommer det vara en lista med fakturor.","select_invoice":"Välj faktura","no_matching_invoices":"Inga matchande fakturor!","mark_as_sent_successfully":"Fakturans status ändrad till skickad","send_invoice_successfully":"Fakturan skickades","cloned_successfully":"Fakturan kopierades","clone_invoice":"Kopiera faktura","confirm_clone":"Denna faktura kopieras till en ny faktura","item":{"title":"Artikelnamn","description":"Beskvirning","quantity":"Antal","price":"Pris","discount":"Rabatt","total":"Summa","total_discount":"Totalsumma","sub_total":"Delsumma","tax":"Moms","amount":"Summa","select_an_item":"Skriv eller klicka för att välja artikel","type_item_description":"Artikeltypsbeskrivning (frivillig)"},"payment_attached_message":"En av dom valda fakturorna har redan en betalning kopplad till sig. Du måste radera dom kopplade betalningarna först för att kunna fortsätta raderingen","confirm_delete":"Du kommer inte kunna återställa denna faktura | Du kommer inte kunna återställa dessa fakturor","created_message":"Faktura skapades","updated_message":"Faktura uppdaterades","deleted_message":"Faktura raderades | fakturor raderades","marked_as_sent_message":"Faktura markerad som skickad","user_email_does_not_exist":"Användaren saknar epostadress","something_went_wrong":"något blev fel","invalid_due_amount_message":"Totalsumman för fakturan kan inte vara lägra än den betalda summan. Vänligen uppdatera fakturan eller radera dom kopplade betalningarna."},"credit_notes":{"title":"Kreditnoteringar","credit_notes_list":"Lista med kreditnoteringar","credit_notes":"Kreditnoteringar","contact":"Kontakt","date":"Datum","amount":"Summa","action":"Handling","credit_number":"Kreditnummer","notes":"Noteringar","confirm_delete":"Vill du ta bort denna kreditnotering?","item":{"title":"Artikelnamn","description":"Beskrivning","quantity":"Antal","price":"Pris","discount":"Rabatt","total":"Summa","total_discount":"Summa rabatt","sub_total":"Delsumma","tax":"Moms"}},"payments":{"title":"Betalningar","payments_list":"Lista med betalningar","record_payment":"Registrera betalning","customer":"Kund","date":"Datum","amount":"Summa","action":"Handling","payment_number":"Betalningsnummer","payment_mode":"Betalningssätt","invoice":"Faktura","note":"Notering","add_payment":"Skapa betalning","new_payment":"Ny betalning","edit_payment":"Ändra betalning","view_payment":"Visa betalning","add_new_payment":"Skapa ny betalning","send_payment_receipt":"Skicka kvitto på betalning","send_payment":"Skicka betalning","save_payment":"Spara betalning","update_payment":"Uppdatera betalning","payment":"Betalning | Betalningar","no_payments":"Inga betalningar än!","no_matching_payments":"Inga matchande betalningar!","list_of_payments":"Här kommer listan med betalningar finnas.","select_payment_mode":"Välj betalningssätt","confirm_mark_as_sent":"Detta kostnadsförslag markeras som skickat","confirm_send_payment":"Denna betalning skickas till kunden via epost","send_payment_successfully":"Betalningen skickades","user_email_does_not_exist":"Användaren saknar epost","something_went_wrong":"något gick fel","confirm_delete":"Du kommer inte kunna återställa denna betalning | Du kommer inte kunna återställa dessa betalningar","created_message":"Betalning skapades","updated_message":"Betalning uppdaterades","deleted_message":"Betalning raderades | Betalningar raderades","invalid_amount_message":"Betalsumman är ogiltig"},"expenses":{"title":"Utgifter","expenses_list":"Lista med utgifter","select_a_customer":"Välj en kund","expense_title":"Titel","customer":"Kund","contact":"Kontakt","category":"Kategori","from_date":"Från datum","to_date":"Till datum","expense_date":"Datum","description":"Beskrivning","receipt":"Kvitto","amount":"Summa","action":"Handling","note":"Notering","category_id":"Kategorins ID","date":"Datum","add_expense":"Lägg till utgift","add_new_expense":"Lägg till ny utgift","save_expense":"Spara utgift","update_expense":"Uppdatera utgift","download_receipt":"Ladda ner kvitto","edit_expense":"Ändra utgift","new_expense":"Ny utgift","expense":"Utgift | Utgifter","no_expenses":"Inga utgifter än!","list_of_expenses":"Här kommer utgifterna finnas.","confirm_delete":"Du kommer inte kunna återställa denna utgift | Du kommer inte kunna återställa dessa utgifter","created_message":"Utgift skapades","updated_message":"Utgift ändrades","deleted_message":"Utgift raderades | utgifterna raderades","categories":{"categories_list":"Kategorier","title":"Titel","name":"Namn","description":"Beskrivning","amount":"Summa","actions":"Handlingar","add_category":"Lägg till kategori","new_category":"Ny kategori","category":"Kategori | Kategorier","select_a_category":"Välj en kategori"}},"login":{"email":"Epost","password":"Lösenord","forgot_password":"Glömt lösenord?","or_signIn_with":"eller logga in med","login":"Logga in","register":"Registrera","reset_password":"Återställ lösenord","password_reset_successfully":"Lösenord återställt","enter_email":"Skriv in epost","enter_password":"Skriv in lösenord","retype_password":"Skriv lösenordet igen","login_placeholder":"mail@example.com"},"users":{"title":"Användare","users_list":"Användare","name":"Namn","description":"Beskrivning","added_on":"Tillagd den","date_of_creation":"Datum skapad","action":"Handling","add_user":"Lägg till användare","save_user":"Spara användare","update_user":"Uppdatera användare","user":"Användare | Användare","add_new_user":"Lägg till ny användare","new_user":"Ny användare","edit_user":"Ändra användare","no_users":"Inga användare än!","list_of_users":"Här kommer man se alla användare.","email":"Epost","phone":"Telefon","password":"Lösenord","user_attached_message":"Kan inte ta bort ett objeckt som används","confirm_delete":"Du kommer inte kunna återställa denna användare | Du kommer inte kunna återställa dessa användare","created_message":"Användare skapades","updated_message":"Användare uppdaterades","deleted_message":"Användaren raderades | Användarna raderades"},"reports":{"title":"Rapport","from_date":"Från datum","to_date":"Till datum","status":"Status","paid":"Betald","unpaid":"Obetald","download_pdf":"Ladda ner PDF","view_pdf":"Visa PDF","update_report":"Uppdatera rapport","report":"Rapport | Rapporter","profit_loss":{"profit_loss":"Inkomst och utgifter","to_date":"Till datum","from_date":"Från datum","date_range":"Välj datumintervall"},"sales":{"sales":"Försäljningar","date_range":"Välj datumintervall","to_date":"Till datum","from_date":"Från datum","report_type":"Rapporttyp"},"taxes":{"taxes":"Momssatser","to_date":"Till datum","from_date":"Från datum","date_range":"Välj datumintervall"},"errors":{"required":"Fältet är tvingande"},"invoices":{"invoice":"Faktura","invoice_date":"Fakturadatum","due_date":"Förfallodatum","amount":"Summa","contact_name":"Kontaktnamn","status":"Status"},"estimates":{"estimate":"Kostnadsförslag","estimate_date":"Kostnadsförslagsdatum","due_date":"Förfallodatum","estimate_number":"Kostnadsförslagsnummer","ref_number":"Ref Nummer","amount":"Summa","contact_name":"Kontaktnamn","status":"Status"},"expenses":{"expenses":"Utgifter","category":"Kategori","date":"Datum","amount":"Summa","to_date":"Till datum","from_date":"Från datum","date_range":"Välj datumintervall"}},"settings":{"menu_title":{"account_settings":"Kontoinställningar","company_information":"Företagsinformation","customization":"Anpassning","preferences":"Inställningar","notifications":"Notifieringar","tax_types":"Momssatser","expense_category":"Utgiftskategorier","update_app":"Uppdatera appen","backup":"Backup","file_disk":"File Disk","custom_fields":"Anpassade fält","payment_modes":"Betalmetoder","notes":"Noteringar"},"title":"Inställningar","setting":"Inställningar | Inställningar","general":"Allmän","language":"Språk","primary_currency":"Primär valuta","timezone":"Tidszon","date_format":"Datumformat","currencies":{"title":"Valutor","currency":"Valuta | Valutor","currencies_list":"Lista med valutor","select_currency":"Välj valuta","name":"Namn","code":"Kod","symbol":"Symbol","precision":"Precision","thousand_separator":"Tusenavgränsare","decimal_separator":"Decimalavgränsare","position":"Position","position_of_symbol":"Symbolens position","right":"Höger","left":"Vänster","action":"Handling","add_currency":"Lägg till valuta"},"mail":{"host":"Värdadress","port":"Port","driver":"Typ","secret":"Hemlighet","mailgun_secret":"Mailgun Secret","mailgun_domain":"Domän","mailgun_endpoint":"Mailgun Endpoint","ses_secret":"SES Secret","ses_key":"SES Key","password":"Lösenord","username":"Användarnamn","mail_config":"Epostinställningar","from_name":"Från namn","from_mail":"Från adress","encryption":"Kryptering","mail_config_desc":"Nedan formulär används för att konfigurera vilket sätt som ska användar för att skicka epost. Du kan också använda tredjepartsleverantör som Sendgrid, SES o.s.v."},"pdf":{"title":"PDF-inställningar","footer_text":"Sidfotstext","pdf_layout":"PDF-layout"},"company_info":{"company_info":"Företagsinfo","company_name":"Företagsnamn","company_logo":"Företagslogga","section_description":"Information om ditt företags som kommer visas på fakturor, kostnadsförslag och andra dokument skapade av Crater.","phone":"Telefon","country":"Land","state":"Kommun","city":"Stad","address":"Adress","zip":"Postnr","save":"Spara","updated_message":"Företagsinformation uppdaterad"},"custom_fields":{"title":"Anpassade fält","section_description":"Anpassa fakturor, kostnadsförslag och kvitton med dina egna fält. Använd nedanstående fält i adressforamteringen på anpassningarnas inställningssida.","add_custom_field":"Lägg till anpassat fält","edit_custom_field":"Ändra anpassade fält","field_name":"Fältnamn","label":"Etikett","type":"Typ","name":"Namn","required":"Tvingad","placeholder":"Placeholder","help_text":"Hjälptext","default_value":"Standardvärde","prefix":"Prefix","starting_number":"Startnummer","model":"Modell","help_text_description":"Skriv in text som hjälper användaren förstå vad det anpassade fältet används för.","suffix":"Suffix","yes":"Ja","no":"Nej","order":"Ordning","custom_field_confirm_delete":"Du kommer inte kunna återställa detta anpassade fält","already_in_use":"Det anpassade fältet används","deleted_message":"Det anpassade fältet raderades","options":"val","add_option":"Lägg till val","add_another_option":"Lägg till ett till val","sort_in_alphabetical_order":"Sortera i alfabetisk ordning","add_options_in_bulk":"Lägg till flera val","use_predefined_options":"Använd förinställda val","select_custom_date":"Välj anpassat datum","select_relative_date":"Välj relativt datum","ticked_by_default":"Ikryssad från start","updated_message":"Anpassat fält uppdaterades","added_message":"Anpassat fält skapat"},"customization":{"customization":"Anpassning","save":"Spara","addresses":{"title":"Adresser","section_description":"Du kan formatera kundens faktura- och leveransadress (Visas enbart i PDF-en). ","customer_billing_address":"Kunds fakturaadress","customer_shipping_address":"Kunds leveransadress","company_address":"Företagsadress","insert_fields":"Lägg till fält","contact":"Kontakt","address":"Adress","display_name":"Visningsnamn","primary_contact_name":"Huvudkontakts namn","email":"Epost","website":"Hemsida","name":"Namn","country":"Lan","state":"Kommun","city":"Stad","company_name":"Företagsnamn","address_street_1":"Gatuadress 1","address_street_2":"Gatuadress 2","phone":"Telefon","zip_code":"Postnummer","address_setting_updated":"Inställningar för adress uppdaterades"},"updated_message":"Företagsinformation uppdaterades","invoices":{"title":"Fakturor","notes":"Noteringar","invoice_prefix":"Prefix för fakturor","default_invoice_email_body":"Standardtext för faktura","invoice_settings":"Fakturainställningar","autogenerate_invoice_number":"Generera fakturanummer automatiskt","invoice_setting_description":"Inaktivera detta dom du inte vill att det automatiskt ska genereras ett nytt fakturanummer vid skapande av faktura.","enter_invoice_prefix":"Skriv prefix för faktura","terms_and_conditions":"Villkor","company_address_format":"Formatering av företagsadress","shipping_address_format":"Formatering av leveransadress","billing_address_format":"Formatering av fakturaadress","invoice_setting_updated":"Fakturainställningar uppdaterades"},"estimates":{"title":"Kostnadsförslag","estimate_prefix":"Prefix för kostnadsförslag","default_estimate_email_body":"Standardtext för kostnadsförslag","estimate_settings":"Kostnadsförslagsinställningar","autogenerate_estimate_number":"Generera kostnadsförslagsnummer automatiskt","estimate_setting_description":"Inaktivera detta dom du inte vill att det automatiskt ska genereras ett nytt kostnadsförslagsnummer vid skapande av kostnadsförslag.","enter_estimate_prefix":"Skriv prefix för kostnadsförslag","estimate_setting_updated":"Kostnadsförslagsinställningar uppdaterades","company_address_format":"Formatering av företagsadress","billing_address_format":"Formatering av fakturaadress","shipping_address_format":"Formatering av leveransadress"},"payments":{"title":"Betalningar","description":"Överföringstyper för betalningar","payment_prefix":"Prefix för betalningar","default_payment_email_body":"Standardtext för betalningar","payment_settings":"Betalningsinställningar","autogenerate_payment_number":"Generera betalningsnummer automatiskt","payment_setting_description":"Inaktivera detta dom du inte vill att det automatiskt ska genereras ett nytt betalningssnummer vid skapande av betalning.","enter_payment_prefix":"Skriv prefix för kostnadsförslag","payment_setting_updated":"Betalningsinställningar uppdaterades","payment_modes":"Betalningssätt","add_payment_mode":"Lägg till betalningssätt","edit_payment_mode":"Ändra betalningssätt","mode_name":"Typnamn","payment_mode_added":"Betalningssätt tillagd","payment_mode_updated":"Betalningssätt uppdaterat","payment_mode_confirm_delete":"Du kommer inte kunna återställa denna betalningsmetod","already_in_use":"Betalningssättet används","deleted_message":"Betalningssätt raderades","company_address_format":"Format för företagsadress","from_customer_address_format":"Format för kundens från-adress"},"items":{"title":"Artiklar","units":"Enheter","add_item_unit":"Lägg till artikelenhet","edit_item_unit":"Editera artikelenhet","unit_name":"Enhets namn","item_unit_added":"Artikelenhet tillagd","item_unit_updated":"Artikelenhet uppdaterad","item_unit_confirm_delete":"Du kommer inte kunna återställa denna artikelenhet","already_in_use":"Artikelenhet används","deleted_message":"Artikelenhet raderades"},"notes":{"title":"Noteringar","description":"Spara tid genom att skapa noteringar som kan återanvändas på fakturor, betalningsförslag, och betalningar.","notes":"Noteringar","type":"Typ","add_note":"Lägg till notering","add_new_note":"Lägg till ny notering","name":"Namn","edit_note":"Editera notering","note_added":"Notering skapades","note_updated":"Notering uppdaterades","note_confirm_delete":"Du kommer inte kunna återställa denna notering","already_in_use":"Notering används","deleted_message":"Notering raderades"}},"account_settings":{"profile_picture":"Profilbild","name":"Namn","email":"Epost","password":"Lösenord","confirm_password":"Bekräfta lösenord","account_settings":"Kontoinställningar","save":"Spara","section_description":"Du kan uppdatera namn, epost och lösenord med hjälp av formuläret nedan.","updated_message":"Kontoinställningar uppdaterades"},"user_profile":{"name":"Namn","email":"Epost","password":"Lösenord","confirm_password":"Bekräfta lösenord"},"notification":{"title":"Notifieringar","email":"Skicka notifiering till","description":"Vilka notifieringar vill du ha via epost när något ändras?","invoice_viewed":"Faktura kollad","invoice_viewed_desc":"När din kund kollar fakturan via craters översikt.","estimate_viewed":"Betalförslag kollad","estimate_viewed_desc":"När din kund kollar betalförslag via craters översikt.","save":"Spara","email_save_message":"Epost sparades","please_enter_email":"Skriv in epostadress"},"tax_types":{"title":"Momssatser","add_tax":"Lägg till moms","edit_tax":"Ändra moms","description":"Du kan lägga till och ta bort momssatser som du vill. Crater har stöd för moms per artikel men även per faktura.","add_new_tax":"Lägg till ny momssats","tax_settings":"Momssattsinställningar","tax_per_item":"Moms per artikel","tax_name":"Namn","compound_tax":"Sammansatt moms","percent":"Procent","action":"Handling","tax_setting_description":"Aktivera detta om du vill lägga till momssats på individuella fakturaartiklar. Som standard sätts moms direkt på fakturan.","created_message":"Momssats skapades","updated_message":"Momssats uppdaterades","deleted_message":"Momssats raderades","confirm_delete":"Du kommer inte kunna återställa denna Momssats","already_in_use":"Momssats används"},"expense_category":{"title":"Kategorier för utgifter","action":"Handling","description":"Kategorier krävs för att lägga till utgifter. Du kan lägga till och ta bort dessa kategorier som du vill","add_new_category":"Lägg till ny kategori","add_category":"Lägg till kategori","edit_category":"Ändra kategori","category_name":"Kategorinamn","category_description":"Beskrivning","created_message":"Utgiftskategori skapades","deleted_message":"Utgiftskategori raderades","updated_message":"Utgiftskategori uppdaterades","confirm_delete":"Du kommer inte kunna återställa denna utgiftskategori","already_in_use":"Kategorin används"},"preferences":{"currency":"Valuta","default_language":"Standardspråk","time_zone":"Tidszon","fiscal_year":"Räkenskapsår","date_format":"Datumformattering","discount_setting":"Rabattinställningar","discount_per_item":"Rabatt per artikel ","discount_setting_description":"Aktivera detta om du vill kunna lägga rabatt på enskilda fakturaartiklar. Rabatt ges som standard på hela fakturan.","save":"Spara","preference":"Preferens | Preferenser","general_settings":"Standardpreferenser för systemet.","updated_message":"Preferenser uppdaterades","select_language":"Välj språk","select_time_zone":"Välj tidszon","select_date_format":"Välj datumformat","select_financial_year":"Välj räkenskapsår"},"update_app":{"title":"Uppdatera applikationen","description":"Du kan enkelt uppdatera Crater genom att söka efter uppdateringar via knappen nedan","check_update":"Sök efter uppdateringar","avail_update":"Uppdatering är tillgänglig","next_version":"Nästa version","requirements":"Krav","update":"Uppdatera nu","update_progress":"Uppdaterar...","progress_text":"Det kommer bara ta några minuter. Stäng eller uppdatera inte webläsaren förrän uppdateringen är färdig.","update_success":"Applikationen har uppdaterats! Vänta så kommer fönstret laddas om automatiskt..","latest_message":"Ingen uppdatering tillgänglig! Du har den senaste versionen.","current_version":"Nuvarande version","download_zip_file":"Ladda ner ZIP-fil","unzipping_package":"Zippar upp paket","copying_files":"Kopierar filer","running_migrations":"Kör migreringar","finishing_update":"Avslutar uppdateringen","update_failed":"Uppdatering misslyckades","update_failed_text":"Uppdateringen misslyckades på steg : {step} step"},"backup":{"title":"Säkerhetskopiering | Säkerhetskopieringar","description":"Säkerhetskopian är en zip-fil som innehåller alla filer i katalogerna du väljer samt en kopia av databasen","new_backup":"Skapa ny säkerhetskopia","create_backup":"Skapa säkerhetskopia","select_backup_type":"Välj typ av säkerhetskopia","backup_confirm_delete":"Du kommer inte kunna återställa denna säkerhetskopia","path":"sökväg","new_disk":"Ny disk","created_at":"skapad den","size":"storlek","dropbox":"dropbox","local":"lokal","healthy":"hälsosam","amount_of_backups":"antal säkerhetskopior","newest_backups":"senaste säkerhetskopiorna","used_storage":"använt utrymme","select_disk":"Välj disk","action":"Handling","deleted_message":"Säkerhetskopia raderad","created_message":"Säkerhetskopia skapades","invalid_disk_credentials":"Ogiltiga autentiseringsuppgifter för den valda disken"},"disk":{"title":"Lagring | Lagringar","description":"Crater använder din lokala disk som standard för att spara säkerhetskopior, avatarer och andra bildfiler. Du kan ställa in fler lagringsenheter såsom DigitalOcean, S3 och Dropbox beroende av ditt behov.","created_at":"skapad den","dropbox":"dropbox","name":"Namn","driver":"Plats","disk_type":"Typ","disk_name":"Lagringsenhetsnamn","new_disk":"Lägg till ny lagringsenhet","filesystem_driver":"Enhetsplats","local_driver":"Lokal enhet","local_root":"Sökväg på lokal enhet","public_driver":"Offentlig drivrutin","public_root":"Offentlig rot","public_url":"Offentlig URL","public_visibility":"Offentlig synlighet","media_driver":"Mediaenhet","media_root":"Media Root","aws_driver":"AWS","aws_key":"Nyckel","aws_secret":"Lösenord","aws_region":"Region","aws_bucket":"Bucket","aws_root":"Sökväg","do_spaces_type":"Do Spaces type","do_spaces_key":"Nyckel","do_spaces_secret":"Lösenord","do_spaces_region":"Region","do_spaces_bucket":"Bucket","do_spaces_endpoint":"Endpoint","do_spaces_root":"Sökväg","dropbox_type":"Typ","dropbox_token":"Token","dropbox_key":"Nyckel","dropbox_secret":"Lösenord","dropbox_app":"App","dropbox_root":"Sökväg","default_driver":"Standard","is_default":"Är standard","set_default_disk":"Välj som standard","set_default_disk_confirm":"Denna disk kommer bli standard och alla nya PFDer blir sparade här","success_set_default_disk":"Disk vald som standard","save_pdf_to_disk":"Spara PDFer till disk","disk_setting_description":"Aktivera detta om du vill ha en kopia av varje faktura, kostnadsförslag, och betalningskvitto som PDF på din standard disk automatiskt.Aktiverar du denna funktion så kommer laddtiderna för visning av PDFer minskas.","select_disk":"Välj Disk","disk_settings":"Diskinställningar","confirm_delete":"Dina existerande filer och kataloger på den valda disken kommer inte påverkas men inställningarna för disken raderas från Crater","action":"Handling","edit_file_disk":"Ändra disk","success_create":"Disk skapades","success_update":"Disk uppdaterades","error":"Fel vid skapande av disk","deleted_message":"Disk raderades","disk_variables_save_successfully":"Diskinställningar sparades","disk_variables_save_error":"Något gick fel vid sparning av diskinställningar","invalid_disk_credentials":"Felaktiga uppgifter vid val av disk"}},"wizard":{"account_info":"Kontoinformation","account_info_desc":"Nedan detaljer används för att skapa huvudadministratörskonto. Du kan ändra detta i efterhand.","name":"Namn","email":"Epost","password":"Lösenord","confirm_password":"Bekräfta lösenord","save_cont":"Spara och fortsätt","company_info":"Företagsinformation","company_info_desc":"Denna information visas på fakturor. Du kan ändra detta i efterhand på sidan för inställningar.","company_name":"Företagsnamn","company_logo":"Företagslogga","logo_preview":"Förhandsvisning av logga","preferences":"Inställningar","preferences_desc":"Standardinställningar för systemet.","country":"Land","state":"Kommun","city":"Stad","address":"Adress","street":"Gatuadress1 | Gatuadress2","phone":"Telefon","zip_code":"Postnr","go_back":"Tillbaka","currency":"Valuta","language":"Språk","time_zone":"Tidszon","fiscal_year":"Räkenskapsår","date_format":"Datumformat","from_address":"Från adress","username":"Användarnamn","next":"Nästa","continue":"Fortsätt","skip":"Hoppa över","database":{"database":"Sidans URL & Databas","connection":"Databasanslutning","host":"Värdadress till databasen","port":"Port till databasen","password":"Lösenord till databasen","app_url":"Appens URL","app_domain":"Appens Domän","username":"Användarnamn till databasen","db_name":"Databasens namn","db_path":"Databasens sökväg","desc":"Skapa en database på din server och ställ in autentiseringsuppgifter i formuläret nedan."},"permissions":{"permissions":"Behörigheter","permission_confirm_title":"Är du säker på att du vill fortsätta?","permission_confirm_desc":"Fel behörigheter vid kontroll på katalogen","permission_desc":"Nedan är en lista på katalogrättigheter som krävs för att denna app ska fungera. Om behörighetskontrollen misslyckas, uppdatera behörigheterna för katalogerna."},"mail":{"host":"Värdadress till epost","port":"Port till epost","driver":"Typ","secret":"Hemlighet","mailgun_secret":"Hemlighet","mailgun_domain":"Domän","mailgun_endpoint":"Endpoint","ses_secret":"Hemlighet","ses_key":"Nyckel","password":"Lösenord","username":"Användarnamn","mail_config":"Epostinställningar","from_name":"Namn som står vid utgående epost","from_mail":"Epostadress som används som returadress vid utgående epost","encryption":"Epostkryptering","mail_config_desc":"Nedan formulär används för att konfigurera vilket sätt som ska användar för att skicka epost. Du kan också använda tredjepartsleverantör som Sendgrid, SES o.s.v."},"req":{"system_req":"Systemkrav","php_req_version":"Php (version {version} krävs)","check_req":"Kontrollera krav","system_req_desc":"Crater har några krav på din server. Kontrollera att din server har den nödvändiga versionen av PHP och alla tillägg som nämns nedan."},"errors":{"migrate_failed":"Migration misslyckades","database_variables_save_error":"Kan inte skriva till .env-filen. Kontrollera dina behörigheter till filen","mail_variables_save_error":"Epostinställningar misslyckades.","connection_failed":"Databasanslutning misslyckades","database_should_be_empty":"Databasen måste vara tom"},"success":{"mail_variables_save_successfully":"Epostinställningar sparades.","database_variables_save_successfully":"Databasinställningar sparades."}},"layout_login":{"copyright_crater":"Copyright @ Crater - 2020","super_simple_invoicing":"Superenkel fakturering","for_freelancer":"för frilansare &","small_businesses":"mindre företag ","crater_help":"Crater hjälper dig hålla koll på dina utgifter, följa dina inkommande betalningar & skapa snygga","invoices_and_estimates":"fakturor och kostnadsförslag med möjligheten att välja mellan olika mallar."},"validation":{"invalid_phone":"Felaktigt telefonnummer","invalid_url":"Felaktig url (ex: http://www.crater.com)","invalid_domain_url":"Felaktig url (ex: crater.com)","required":"Fältet är tvingande","email_incorrect":"Felaktig epostadress.","email_already_taken":"Denna epostadress finns redan.","email_does_not_exist":"Användare med den epostadressen finns inte","item_unit_already_taken":"Detta artikelenhetsnamn finns redan","payment_mode_already_taken":"Betalningsmetodsnamnet finns redan","send_reset_link":"Skicka länk för återställning","not_yet":"Inte än? Skicka igen","password_min_length":"Lösenordet måste innehålla {count} tecken","name_min_length":"Namn måste ha minst {count} bokstäver.","enter_valid_tax_rate":"Skriv in tillåten momssats","numbers_only":"Endast siffror.","characters_only":"Endast bokstäver.","password_incorrect":"Lösenorden måste överensstämma","password_length":"Lösenordet måste vara minst {count} tecken.","qty_must_greater_than_zero":"Antal måste vara större än noll.","price_greater_than_zero":"Pris måste vara större än noll.","payment_greater_than_zero":"Betalningen måste vara större än noll.","payment_greater_than_due_amount":"Inslagen betalning är större än summan på denna faktura.","quantity_maxlength":"Antal kan inte vara större än 20 siffror.","price_maxlength":"Pris kan inte vara större än 20 siffror.","price_minvalue":"Pris måste vara större än 0.","amount_maxlength":"Belopp kan inte vara större än 20 siffror.","amount_minvalue":"Belopp måste vara större än 9.","description_maxlength":"Beskrivning får inte innehålla fler än 255 tecken.","subject_maxlength":"Ämne får inte innehålla fler än 100 tecken.","message_maxlength":"Meddelande får inte innehålla fler än 255 tecken.","maximum_options_error":"Högst {max} val. Ta bort ett val för att kunna lägga till ett annat.","notes_maxlength":"Noteringar kan inte vara större än 255 tecken.","address_maxlength":"Adress kan inte vara större än 255 tecken.","ref_number_maxlength":"Referensnummer kan inte vara större än 255 tecken.","prefix_maxlength":"Prefix kan inte vara större än 5 tecken.","something_went_wrong":"något blev fel"},"pdf_estimate_label":"Kostnadsförslag","pdf_estimate_number":"Kostnadsförslagsnummer","pdf_estimate_date":"Kostnadsförslagsdatum","pdf_estimate_expire_date":"Utgångsdatum","pdf_invoice_label":"Faktura","pdf_invoice_number":"Fakturanummer","pdf_invoice_date":"Fakturadatum","pdf_invoice_due_date":"Inbetalningsdatum","pdf_notes":"Noteringar","pdf_items_label":"Artiklar","pdf_quantity_label":"Antal","pdf_price_label":"Kostnad","pdf_discount_label":"Rabatt","pdf_amount_label":"Belopp","pdf_subtotal":"Delsumma","pdf_total":"Summa","pdf_payment_receipt_label":"Betalningskvitto","pdf_payment_date":"Betalningsdatum","pdf_payment_number":"Betalningsnummer","pdf_payment_mode":"Betalningstyp","pdf_payment_amount_received_label":"Belopp mottaget","pdf_expense_report_label":"Kostnadsrapport","pdf_total_expenses_label":"Totalkostnad","pdf_profit_loss_label":"Resultat- och förlustrapport","pdf_income_label":"Inkomst","pdf_net_profit_label":"Nettoförtjänst","pdf_customer_sales_report":"Försäljningsrapport: Per kund","pdf_total_sales_label":"SUMMA FÖRSÄLJNINGAR","pdf_item_sales_label":"Försäljningsrapport: Per artikel","pdf_tax_report_label":"Momsrapport","pdf_total_tax_label":"SUMMA MOMS","pdf_tax_types_label":"Momssatser","pdf_expenses_label":"Utgifter","pdf_bill_to":"Faktureras till,","pdf_ship_to":"Skickas till,","pdf_received_from":"Från:"}');r.default.use(te);const me=new te({locale:"en",messages:{en:ne,fr:re,es:ae,ar:ie,de:oe,pt_BR:se,it:le,sr:ce,nl:ue,lv:de,sv:pe}});var fe=n(6737),he=n.n(fe);n(5085),r.default.prototype.$utils=o,window.hub=new r.default,window.i18n=me,new r.default({router:a.Z,store:i.Z,i18n:me,swal:he()}).$mount("#app")},5085:(e,t,n)=>{"use strict";n.r(t);var r=n(8345),a=n(629),i=n(1402),o=n(8074),s=n(538),l=n(8620),c=n(9178),u=n.n(c),d="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,p=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(d&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var m=d&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),p))}};function f(e){return e&&"[object Function]"==={}.toString.call(e)}function h(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function _(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function v(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=h(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)?e:v(_(e))}function g(e){return e&&e.referenceNode?e.referenceNode:e}var y=d&&!(!window.MSInputMethodContext||!document.documentMode),b=d&&/MSIE 10/.test(navigator.userAgent);function w(e){return 11===e?y:10===e?b:y||b}function x(e){if(!e)return document.documentElement;for(var t=w(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===h(n,"position")?x(n):n:e?e.ownerDocument.documentElement:document.documentElement}function k(e){return null!==e.parentNode?k(e.parentNode):e}function D(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,a=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(a,0);var o,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||r.contains(a))return"BODY"===(s=(o=l).nodeName)||"HTML"!==s&&x(o.firstElementChild)!==o?x(l):l;var c=k(e);return c.host?D(c.host,t):D(e,k(t).host)}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var a=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||a;return i[n]}return e[n]}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=M(t,"top"),a=M(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=a*i,e.right+=a*i,e}function C(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function L(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],w(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function T(e){var t=e.body,n=e.documentElement,r=w(10)&&getComputedStyle(n);return{height:L("Height",t,n,r),width:L("Width",t,n,r)}}var O=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},E=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),A=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function $(e){return j({},e,{right:e.left+e.width,bottom:e.top+e.height})}function P(e){var t={};try{if(w(10)){t=e.getBoundingClientRect();var n=M(e,"top"),r=M(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?T(e.ownerDocument):{},o=i.width||e.clientWidth||a.width,s=i.height||e.clientHeight||a.height,l=e.offsetWidth-o,c=e.offsetHeight-s;if(l||c){var u=h(e);l-=C(u,"x"),c-=C(u,"y"),a.width-=l,a.height-=c}return $(a)}function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=w(10),a="HTML"===t.nodeName,i=P(e),o=P(t),s=v(e),l=h(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&a&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=$({top:i.top-o.top-c,left:i.left-o.left-u,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!r&&a){var p=parseFloat(l.marginTop),m=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-m,d.right-=u-m,d.marginTop=p,d.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=S(d,t)),d}function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Y(e,n),a=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:M(n),s=t?0:M(n,"left"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:a,height:i};return $(l)}function z(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===h(e,"position"))return!0;var n=_(e);return!!n&&z(n)}function I(e){if(!e||!e.parentElement||w())return document.documentElement;for(var t=e.parentElement;t&&"none"===h(t,"transform");)t=t.parentElement;return t||document.documentElement}function F(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},o=a?I(e):D(e,g(t));if("viewport"===r)i=N(o,a);else{var s=void 0;"scrollParent"===r?"BODY"===(s=v(_(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Y(s,o,a);if("HTML"!==s.nodeName||z(o))i=l;else{var c=T(e.ownerDocument),u=c.height,d=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=d+l.left}}var p="number"==typeof(n=n||0);return i.left+=p?n:n.left||0,i.top+=p?n:n.top||0,i.right-=p?n:n.right||0,i.bottom-=p?n:n.bottom||0,i}function H(e){return e.width*e.height}function R(e,t,n,r,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=F(n,r,i,a),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map((function(e){return j({key:e},s[e],{area:H(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function B(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=r?I(t):D(t,g(n));return Y(n,a,r)}function q(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function V(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function W(e,t,n){n=n.split("-")[0];var r=q(e),a={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),o=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return a[o]=t[o]+t[l]/2-r[l]/2,a[s]=n===s?t[s]-r[c]:t[V(s)],a}function U(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function K(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=U(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&f(n)&&(t.offsets.popper=$(t.offsets.popper),t.offsets.reference=$(t.offsets.reference),t=n(t,e))})),t}function Z(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=B(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=R(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=W(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=K(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function G(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function J(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var a=t[r],i=a?""+a+n:e;if(void 0!==document.body.style[i])return i}return null}function X(){return this.state.isDestroyed=!0,G(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[J("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Q(e){var t=e.ownerDocument;return t?t.defaultView:window}function ee(e,t,n,r){var a="BODY"===e.nodeName,i=a?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),a||ee(v(i.parentNode),t,n,r),r.push(i)}function te(e,t,n,r){n.updateBound=r,Q(e).addEventListener("resize",n.updateBound,{passive:!0});var a=v(e);return ee(a,"scroll",n.updateBound,n.scrollParents),n.scrollElement=a,n.eventsEnabled=!0,n}function ne(){this.state.eventsEnabled||(this.state=te(this.reference,this.options,this.state,this.scheduleUpdate))}function re(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return Q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function ae(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ie(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ae(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var oe=d&&/Firefox/i.test(navigator.userAgent);function se(e,t,n){var r=U(e,(function(e){return e.name===t})),a=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!a){var i="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return a}var le=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ce=le.slice(3);function ue(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ce.indexOf(e),r=ce.slice(n+1).concat(ce.slice(0,n));return t?r.reverse():r}var de="flip",pe="clockwise",me="counterclockwise";function fe(e,t,n,r){var a=[0,0],i=-1!==["right","left"].indexOf(r),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(U(o,(function(e){return-1!==e.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return(c=c.map((function(e,r){var a=(1===r?!i:i)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],o=a[2];if(!i)return e;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}return $(s)[t]/100*i}if("vh"===o||"vw"===o)return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,a,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){ae(n)&&(a[t]+=n*("-"===e[r-1]?-1:1))}))})),a}var he={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var a=e.offsets,i=a.reference,o=a.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:A({},l,i[l]),end:A({},l,i[l]+i[c]-o[c])};e.offsets.popper=j({},o,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,a=e.offsets,i=a.popper,o=a.reference,s=r.split("-")[0],l=void 0;return l=ae(+n)?[+n,0]:fe(n,i,o,s),"left"===s?(i.top+=l[0],i.left-=l[1]):"right"===s?(i.top+=l[0],i.left+=l[1]):"top"===s?(i.left+=l[0],i.top-=l[1]):"bottom"===s&&(i.left+=l[0],i.top+=l[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||x(e.instance.popper);e.instance.reference===n&&(n=x(n));var r=J("transform"),a=e.instance.popper.style,i=a.top,o=a.left,s=a[r];a.top="",a.left="",a[r]="";var l=F(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);a.top=i,a.left=o,a[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),A({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),A({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=j({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,a=e.placement.split("-")[0],i=Math.floor,o=-1!==["top","bottom"].indexOf(a),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[s]<i(r[l])&&(e.offsets.popper[l]=i(r[l])-n[c]),n[l]>i(r[s])&&(e.offsets.popper[l]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!se(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],i=e.offsets,o=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(a),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",m=l?"bottom":"right",f=q(r)[c];s[m]-f<o[d]&&(e.offsets.popper[d]-=o[d]-(s[m]-f)),s[d]+f>o[m]&&(e.offsets.popper[d]+=s[d]+f-o[m]),e.offsets.popper=$(e.offsets.popper);var _=s[d]+s[c]/2-f/2,v=h(e.instance.popper),g=parseFloat(v["margin"+u]),y=parseFloat(v["border"+u+"Width"]),b=_-e.offsets.popper[d]-g-y;return b=Math.max(Math.min(o[c]-f,b),0),e.arrowElement=r,e.offsets.arrow=(A(n={},d,Math.round(b)),A(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(G(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=F(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],a=V(r),i=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case de:o=[r,a];break;case pe:o=ue(r);break;case me:o=ue(r,!0);break;default:o=t.behavior}return o.forEach((function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],a=V(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),m=d(c.left)<d(n.left),f=d(c.right)>d(n.right),h=d(c.top)<d(n.top),_=d(c.bottom)>d(n.bottom),v="left"===r&&m||"right"===r&&f||"top"===r&&h||"bottom"===r&&_,g=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(g&&"start"===i&&m||g&&"end"===i&&f||!g&&"start"===i&&h||!g&&"end"===i&&_),b=!!t.flipVariationsByContent&&(g&&"start"===i&&f||g&&"end"===i&&m||!g&&"start"===i&&_||!g&&"end"===i&&h),w=y||b;(p||v||w)&&(e.flipped=!0,(p||v)&&(r=o[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=j({},e.offsets.popper,W(e.instance.popper,e.offsets.reference,e.placement)),e=K(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,a=r.popper,i=r.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return a[o?"left":"top"]=i[n]-(s?a[o?"width":"height"]:0),e.placement=V(t),e.offsets.popper=$(a),e}},hide:{order:800,enabled:!0,fn:function(e){if(!se(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=U(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,a=e.offsets.popper,i=U(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==i?i:t.gpuAcceleration,s=x(e.instance.popper),l=P(s),c={position:a.position},u=function(e,t){var n=e.offsets,r=n.popper,a=n.reference,i=Math.round,o=Math.floor,s=function(e){return e},l=i(a.width),c=i(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?i:o:s,m=t?i:s;return{left:p(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!oe),d="bottom"===n?"top":"bottom",p="right"===r?"left":"right",m=J("transform"),f=void 0,h=void 0;if(h="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,f="right"===p?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,o&&m)c[m]="translate3d("+f+"px, "+h+"px, 0)",c[d]=0,c[p]=0,c.willChange="transform";else{var _="bottom"===d?-1:1,v="right"===p?-1:1;c[d]=h*_,c[p]=f*v,c.willChange=d+", "+p}var g={"x-placement":e.placement};return e.attributes=j({},g,e.attributes),e.styles=j({},c,e.styles),e.arrowStyles=j({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ie(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&ie(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,a){var i=B(a,t,e,n.positionFixed),o=R(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),ie(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},_e=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};O(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=m(this.update.bind(this)),this.options=j({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(j({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=j({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return j({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&f(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return E(e,[{key:"update",value:function(){return Z.call(this)}},{key:"destroy",value:function(){return X.call(this)}},{key:"enableEventListeners",value:function(){return ne.call(this)}},{key:"disableEventListeners",value:function(){return re.call(this)}}]),e}();_e.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,_e.placements=le,_e.Defaults=he;const ve=_e;var ge=n(8446),ye=n.n(ge);let be;function we(){we.init||(we.init=!0,be=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}function xe(e,t,n,r,a,i,o,s,l,c){"boolean"!=typeof o&&(l=s,s=o,o=!1);var u,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,a&&(d.functional=!0)),r&&(d._scopeId=r),i?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=u):t&&(u=o?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),u)if(d.functional){var p=d.render;d.render=function(e,t){return u.call(t),p(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,u):[u]}return n}const ke={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){we(),this.$nextTick((()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()}));const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",be&&this.$el.appendChild(e),e.data="about:blank",be||this.$el.appendChild(e)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!be&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};var De=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})};De._withStripped=!0;const Me=xe({render:De,staticRenderFns:[]},undefined,ke,"data-v-8859cc6c",false,undefined,!1,void 0,void 0,void 0);var Se={version:"1.0.0",install:function(e){e.component("resize-observer",Me),e.component("ResizeObserver",Me)}},Ce=null;"undefined"!=typeof window?Ce=window.Vue:void 0!==n.g&&(Ce=n.g.Vue),Ce&&Ce.use(Se);var Le=n(3857),Te=n.n(Le);function Oe(e){return(Oe="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)}function Ee(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 Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe=function(){};function Ye(e){return"string"==typeof e&&(e=e.split(" ")),e}function Ne(e,t){var n,r=Ye(t);n=e.className instanceof Pe?Ye(e.className.baseVal):Ye(e.className),r.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}function ze(e,t){var n,r=Ye(t);n=e.className instanceof Pe?Ye(e.className.baseVal):Ye(e.className),r.forEach((function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}"undefined"!=typeof window&&(Pe=window.SVGAnimatedString);var Ie=!1;if("undefined"!=typeof window){Ie=!1;try{var Fe=Object.defineProperty({},"passive",{get:function(){Ie=!0}});window.addEventListener("test",null,Fe)}catch(e){}}var He={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0},Re=[],Be=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ae(this,"_events",[]),Ae(this,"_setTooltipNodeEvent",(function(e,t,n,a){var i=e.relatedreference||e.toElement||e.relatedTarget;return!!r._tooltipNode.contains(i)&&(r._tooltipNode.addEventListener(e.type,(function n(i){var o=i.relatedreference||i.toElement||i.relatedTarget;r._tooltipNode.removeEventListener(e.type,n),t.contains(o)||r._scheduleHide(t,a.delay,a,i)})),!0)})),n=$e($e({},He),n),t.jquery&&(t=t[0]),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.reference=t,this.options=n,this._isOpen=!1,this._init()}var t,n,r;return t=e,(n=[{key:"show",value:function(){this._show(this.reference,this.options)}},{key:"hide",value:function(){this._hide()}},{key:"dispose",value:function(){this._dispose()}},{key:"toggle",value:function(){return this._isOpen?this.hide():this.show()}},{key:"setClasses",value:function(e){this._classes=e}},{key:"setContent",value:function(e){this.options.title=e,this._tooltipNode&&this._setContent(e,this.options)}},{key:"setOptions",value:function(e){var t=!1,n=e&&e.classes||Xe.options.defaultClass;ye()(this._classes,n)||(this.setClasses(n),t=!0),e=Ue(e);var r=!1,a=!1;for(var i in this.options.offset===e.offset&&this.options.placement===e.placement||(r=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(a=!0),e)this.options[i]=e[i];if(this._tooltipNode)if(a){var o=this._isOpen;this.dispose(),this._init(),o&&this.show()}else r&&this.popperInstance.update()}},{key:"_init",value:function(){var e="string"==typeof this.options.trigger?this.options.trigger.split(" "):[];this._isDisposed=!1,this._enableDocumentTouch=-1===e.indexOf("manual"),e=e.filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})),this._setEventListeners(this.reference,e,this.options),this.$_originalTitle=this.reference.getAttribute("title"),this.reference.removeAttribute("title"),this.reference.setAttribute("data-original-title",this.$_originalTitle)}},{key:"_create",value:function(e,t){var n=this,r=window.document.createElement("div");r.innerHTML=t.trim();var a=r.childNodes[0];return a.id=this.options.ariaId||"tooltip_".concat(Math.random().toString(36).substr(2,10)),a.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(a.addEventListener("mouseenter",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)})),a.addEventListener("click",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)}))),a}},{key:"_setContent",value:function(e,t){var n=this;this.asyncContent=!1,this._applyContent(e,t).then((function(){n.popperInstance&&n.popperInstance.update()}))}},{key:"_applyContent",value:function(e,t){var n=this;return new Promise((function(r,a){var i=t.html,o=n._tooltipNode;if(o){var s=o.querySelector(n.options.innerSelector);if(1===e.nodeType){if(i){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(e)}}else{if("function"==typeof e){var l=e();return void(l&&"function"==typeof l.then?(n.asyncContent=!0,t.loadingClass&&Ne(o,t.loadingClass),t.loadingContent&&n._applyContent(t.loadingContent,t),l.then((function(e){return t.loadingClass&&ze(o,t.loadingClass),n._applyContent(e,t)})).then(r).catch(a)):n._applyContent(l,t).then(r).catch(a))}i?s.innerHTML=e:s.innerText=e}r()}}))}},{key:"_show",value:function(e,t){if(!t||"string"!=typeof t.container||document.querySelector(t.container)){clearTimeout(this._disposeTimer),delete(t=Object.assign({},t)).offset;var n=!0;this._tooltipNode&&(Ne(this._tooltipNode,this._classes),n=!1);var r=this._ensureShown(e,t);return n&&this._tooltipNode&&Ne(this._tooltipNode,this._classes),Ne(e,["v-tooltip-open"]),r}}},{key:"_ensureShown",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,Re.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(t.title,t),this;var r=e.getAttribute("title")||t.title;if(!r)return this;var a=this._create(e,t.template);this._tooltipNode=a,e.setAttribute("aria-describedby",a.id);var i=this._findContainer(t.container,e);this._append(a,i);var o=$e($e({},t.popperOptions),{},{placement:t.placement});return o.modifiers=$e($e({},o.modifiers),{},{arrow:{element:this.options.arrowSelector}}),t.boundariesElement&&(o.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new ve(e,a,o),this._setContent(r,t),requestAnimationFrame((function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame((function(){n._isDisposed?n.dispose():n._isOpen&&a.setAttribute("aria-hidden","false")}))):n.dispose()})),this}},{key:"_noLongerOpen",value:function(){var e=Re.indexOf(this);-1!==e&&Re.splice(e,1)}},{key:"_hide",value:function(){var e=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var t=Xe.options.disposeTimeout;return null!==t&&(this._disposeTimer=setTimeout((function(){e._tooltipNode&&(e._tooltipNode.removeEventListener("mouseenter",e.hide),e._tooltipNode.removeEventListener("click",e.hide),e._removeTooltipNode())}),t)),ze(this.reference,["v-tooltip-open"]),this}},{key:"_removeTooltipNode",value:function(){if(this._tooltipNode){var e=this._tooltipNode.parentNode;e&&(e.removeChild(this._tooltipNode),this.reference.removeAttribute("aria-describedby")),this._tooltipNode=null}}},{key:"_dispose",value:function(){var e=this;return this._isDisposed=!0,this.reference.removeAttribute("data-original-title"),this.$_originalTitle&&this.reference.setAttribute("title",this.$_originalTitle),this._events.forEach((function(t){var n=t.func,r=t.event;e.reference.removeEventListener(r,n)})),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:"_findContainer",value:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(e,t,n){var r=this,a=[],i=[];t.forEach((function(e){switch(e){case"hover":a.push("mouseenter"),i.push("mouseleave"),r.options.hideOnTargetClick&&i.push("click");break;case"focus":a.push("focus"),i.push("blur"),r.options.hideOnTargetClick&&i.push("click");break;case"click":a.push("click"),i.push("click")}})),a.forEach((function(t){var a=function(t){!0!==r._isOpen&&(t.usedByTooltip=!0,r._scheduleShow(e,n.delay,n,t))};r._events.push({event:t,func:a}),e.addEventListener(t,a)})),i.forEach((function(t){var a=function(t){!0!==t.usedByTooltip&&r._scheduleHide(e,n.delay,n,t)};r._events.push({event:t,func:a}),e.addEventListener(t,a)}))}},{key:"_onDocumentTouch",value:function(e){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,e)}},{key:"_scheduleShow",value:function(e,t,n){var r=this,a=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){return r._show(e,n)}),a)}},{key:"_scheduleHide",value:function(e,t,n,r){var a=this,i=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){if(!1!==a._isOpen&&a._tooltipNode.ownerDocument.body.contains(a._tooltipNode)){if("mouseleave"===r.type&&a._setTooltipNodeEvent(r,e,t,n))return;a._hide(e,n)}}),i)}}])&&Ee(t.prototype,n),r&&Ee(t,r),e}();"undefined"!=typeof document&&document.addEventListener("touchstart",(function(e){for(var t=0;t<Re.length;t++)Re[t]._onDocumentTouch(e)}),!Ie||{passive:!0,capture:!0});var qe={enabled:!0},Ve=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],We={defaultPlacement:"top",defaultClass:"vue-tooltip-theme",defaultTargetClass:"has-tooltip",defaultHtml:!0,defaultTemplate:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',defaultArrowSelector:".tooltip-arrow, .tooltip__arrow",defaultInnerSelector:".tooltip-inner, .tooltip__inner",defaultDelay:0,defaultTrigger:"hover focus",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:"tooltip-loading",defaultLoadingContent:"...",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:"bottom",defaultClass:"vue-popover-theme",defaultBaseClass:"tooltip popover",defaultWrapperClass:"wrapper",defaultInnerClass:"tooltip-inner popover-inner",defaultArrowClass:"tooltip-arrow popover-arrow",defaultOpenClass:"open",defaultDelay:0,defaultTrigger:"click",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function Ue(e){var t={placement:void 0!==e.placement?e.placement:Xe.options.defaultPlacement,delay:void 0!==e.delay?e.delay:Xe.options.defaultDelay,html:void 0!==e.html?e.html:Xe.options.defaultHtml,template:void 0!==e.template?e.template:Xe.options.defaultTemplate,arrowSelector:void 0!==e.arrowSelector?e.arrowSelector:Xe.options.defaultArrowSelector,innerSelector:void 0!==e.innerSelector?e.innerSelector:Xe.options.defaultInnerSelector,trigger:void 0!==e.trigger?e.trigger:Xe.options.defaultTrigger,offset:void 0!==e.offset?e.offset:Xe.options.defaultOffset,container:void 0!==e.container?e.container:Xe.options.defaultContainer,boundariesElement:void 0!==e.boundariesElement?e.boundariesElement:Xe.options.defaultBoundariesElement,autoHide:void 0!==e.autoHide?e.autoHide:Xe.options.autoHide,hideOnTargetClick:void 0!==e.hideOnTargetClick?e.hideOnTargetClick:Xe.options.defaultHideOnTargetClick,loadingClass:void 0!==e.loadingClass?e.loadingClass:Xe.options.defaultLoadingClass,loadingContent:void 0!==e.loadingContent?e.loadingContent:Xe.options.defaultLoadingContent,popperOptions:$e({},void 0!==e.popperOptions?e.popperOptions:Xe.options.defaultPopperOptions)};if(t.offset){var n=Oe(t.offset),r=t.offset;("number"===n||"string"===n&&-1===r.indexOf(","))&&(r="0, ".concat(r)),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:r}}return t.trigger&&-1!==t.trigger.indexOf("click")&&(t.hideOnTargetClick=!1),t}function Ke(e,t){for(var n=e.placement,r=0;r<Ve.length;r++){var a=Ve[r];t[a]&&(n=a)}return n}function Ze(e){var t=Oe(e);return"string"===t?e:!(!e||"object"!==t)&&e.content}function Ge(e){e._tooltip&&(e._tooltip.dispose(),delete e._tooltip,delete e._tooltipOldShow),e._tooltipTargetClasses&&(ze(e,e._tooltipTargetClasses),delete e._tooltipTargetClasses)}function Je(e,t){var n,r=t.value,a=(t.oldValue,t.modifiers),i=Ze(r);i&&qe.enabled?(e._tooltip?((n=e._tooltip).setContent(i),n.setOptions($e($e({},r),{},{placement:Ke(r,a)}))):n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ze(t),a=void 0!==t.classes?t.classes:Xe.options.defaultClass,i=$e({title:r},Ue($e($e({},"object"===Oe(t)?t:{}),{},{placement:Ke(t,n)}))),o=e._tooltip=new Be(e,i);o.setClasses(a),o._vueEl=e;var s=void 0!==t.targetClasses?t.targetClasses:Xe.options.defaultTargetClass;return e._tooltipTargetClasses=s,Ne(e,s),o}(e,r,a),void 0!==r.show&&r.show!==e._tooltipOldShow&&(e._tooltipOldShow=r.show,r.show?n.show():n.hide())):Ge(e)}var Xe={options:We,bind:Je,update:Je,unbind:function(e){Ge(e)}};function Qe(e){e.addEventListener("click",tt),e.addEventListener("touchstart",nt,!!Ie&&{passive:!0})}function et(e){e.removeEventListener("click",tt),e.removeEventListener("touchstart",nt),e.removeEventListener("touchend",rt),e.removeEventListener("touchcancel",at)}function tt(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function nt(e){if(1===e.changedTouches.length){var t=e.currentTarget;t.$_vclosepopover_touch=!0;var n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",rt),t.addEventListener("touchcancel",at)}}function rt(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function at(e){e.currentTarget.$_vclosepopover_touch=!1}var it={bind:function(e,t){var n=t.value,r=t.modifiers;e.$_closePopoverModifiers=r,(void 0===n||n)&&Qe(e)},update:function(e,t){var n=t.value,r=t.oldValue,a=t.modifiers;e.$_closePopoverModifiers=a,n!==r&&(void 0===n||n?Qe(e):et(e))},unbind:function(e){et(e)}};function ot(e){var t=Xe.options.popover[e];return void 0===t?Xe.options[e]:t}var st=!1;"undefined"!=typeof window&&"undefined"!=typeof navigator&&(st=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var lt=[],ct=function(){};"undefined"!=typeof window&&(ct=window.Element);var ut={name:"VPopover",components:{ResizeObserver:Me},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return ot("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return ot("defaultDelay")}},offset:{type:[String,Number],default:function(){return ot("defaultOffset")}},trigger:{type:String,default:function(){return ot("defaultTrigger")}},container:{type:[String,Object,ct,Boolean],default:function(){return ot("defaultContainer")}},boundariesElement:{type:[String,ct],default:function(){return ot("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return ot("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return ot("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return Xe.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return Xe.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return Xe.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return Xe.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return Xe.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return Xe.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return Xe.options.popover.defaultOpenClass}},ariaId:{default:null}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return Ae({},this.openClass,this.isOpen)},popoverId:function(){return"popover_".concat(null!=this.ariaId?this.ariaId:this.id)}},watch:{open:function(e){e?this.show():this.hide()},disabled:function(e,t){e!==t&&(e?this.hide():this.open&&this.show())},container:function(e){if(this.isOpen&&this.popperInstance){var t=this.$refs.popover,n=this.$refs.trigger,r=this.$_findContainer(this.container,n);if(!r)return void console.warn("No container for popover",this);r.appendChild(t),this.popperInstance.scheduleUpdate()}},trigger:function(e){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(e){var t=this;this.$_updatePopper((function(){t.popperInstance.options.placement=e}))},offset:"$_restartPopper",boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e),this.$_init(),this.open&&this.show()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event,r=(t.skipDelay,t.force),a=void 0!==r&&r;!a&&this.disabled||(this.$_scheduleShow(n),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame((function(){e.$_beingShowed=!1}))},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event;e.skipDelay;this.$_scheduleHide(t),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var e=this,t=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var r=this.$_findContainer(this.container,t);if(!r)return void console.warn("No container for popover",this);r.appendChild(n),this.$_mounted=!0,this.isOpen=!1,this.popperInstance&&requestAnimationFrame((function(){e.hidden||(e.isOpen=!0)}))}if(!this.popperInstance){var a=$e($e({},this.popperOptions),{},{placement:this.placement});if(a.modifiers=$e($e({},a.modifiers),{},{arrow:$e($e({},a.modifiers&&a.modifiers.arrow),{},{element:this.$refs.arrow})}),this.offset){var i=this.$_getOffset();a.modifiers.offset=$e($e({},a.modifiers&&a.modifiers.offset),{},{offset:i})}this.boundariesElement&&(a.modifiers.preventOverflow=$e($e({},a.modifiers&&a.modifiers.preventOverflow),{},{boundariesElement:this.boundariesElement})),this.popperInstance=new ve(t,n,a),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();!e.$_isDisposed&&e.popperInstance?(e.popperInstance.scheduleUpdate(),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();e.$_isDisposed?e.dispose():e.isOpen=!0}))):e.dispose()}))}var o=this.openGroup;if(o)for(var s,l=0;l<lt.length;l++)(s=lt[l]).openGroup!==o&&(s.hide(),s.$emit("close-group"));lt.push(this),this.$emit("apply-show")}},$_hide:function(){var e=this;if(this.isOpen){var t=lt.indexOf(this);-1!==t&&lt.splice(t,1),this.isOpen=!1,this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this.$_disposeTimer);var n=Xe.options.popover.disposeTimeout||Xe.options.disposeTimeout;null!==n&&(this.$_disposeTimer=setTimeout((function(){var t=e.$refs.popover;t&&(t.parentNode&&t.parentNode.removeChild(t),e.$_mounted=!1)}),n)),this.$emit("apply-hide")}},$_findContainer:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e},$_getOffset:function(){var e=Oe(this.offset),t=this.offset;return("number"===e||"string"===e&&-1===t.indexOf(","))&&(t="0, ".concat(t)),t},$_addEventListeners:function(){var e=this,t=this.$refs.trigger,n=[],r=[];("string"==typeof this.trigger?this.trigger.split(" ").filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})):[]).forEach((function(e){switch(e){case"hover":n.push("mouseenter"),r.push("mouseleave");break;case"focus":n.push("focus"),r.push("blur");break;case"click":n.push("click"),r.push("click")}})),n.forEach((function(n){var r=function(t){e.isOpen||(t.usedByTooltip=!0,!e.$_preventOpen&&e.show({event:t}),e.hidden=!1)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)})),r.forEach((function(n){var r=function(t){t.usedByTooltip||(e.hide({event:t}),e.hidden=!0)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)}))},$_scheduleShow:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),e)this.$_show();else{var t=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),t)}},$_scheduleHide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var r=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout((function(){if(e.isOpen){if(t&&"mouseleave"===t.type)if(e.$_setTooltipNodeEvent(t))return;e.$_hide()}}),r)}},$_setTooltipNodeEvent:function(e){var t=this,n=this.$refs.trigger,r=this.$refs.popover,a=e.relatedreference||e.toElement||e.relatedTarget;return!!r.contains(a)&&(r.addEventListener(e.type,(function a(i){var o=i.relatedreference||i.toElement||i.relatedTarget;r.removeEventListener(e.type,a),n.contains(o)||t.hide({event:i})})),!0)},$_removeEventListeners:function(){var e=this.$refs.trigger;this.$_events.forEach((function(t){var n=t.func,r=t.event;e.removeEventListener(r,n)})),this.$_events=[]},$_updatePopper:function(e){this.popperInstance&&(e(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var e=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),e&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventOpen=!0,setTimeout((function(){t.$_preventOpen=!1}),300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};function dt(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var r=lt[n];if(r.$refs.popover){var a=r.$refs.popover.contains(e.target);requestAnimationFrame((function(){(e.closeAllPopover||e.closePopover&&a||r.autoHide&&!a)&&r.$_handleGlobalClose(e,t)}))}},r=0;r<lt.length;r++)n(r)}function pt(e,t,n,r,a,i,o,s,l,c){"boolean"!=typeof o&&(l=s,s=o,o=!1);const u="function"==typeof n?n.options:n;let d;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,a&&(u.functional=!0)),r&&(u._scopeId=r),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=d):t&&(d=o?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(u.functional){const e=u.render;u.render=function(t,n){return d.call(n),e(t,n)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,d):[d]}return n}"undefined"!=typeof document&&"undefined"!=typeof window&&(st?document.addEventListener("touchend",(function(e){dt(e,!0)}),!Ie||{passive:!0,capture:!0}):window.addEventListener("click",(function(e){dt(e)}),!0));var mt=ut,ft=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-popover",class:e.cssClass},[n("div",{ref:"trigger",staticClass:"trigger",staticStyle:{display:"inline-block"},attrs:{"aria-describedby":e.isOpen?e.popoverId:void 0,tabindex:-1!==e.trigger.indexOf("focus")?0:void 0}},[e._t("default")],2),e._v(" "),n("div",{ref:"popover",class:[e.popoverBaseClass,e.popoverClass,e.cssClass],style:{visibility:e.isOpen?"visible":"hidden"},attrs:{id:e.popoverId,"aria-hidden":e.isOpen?"false":"true",tabindex:e.autoHide?0:void 0},on:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.autoHide&&e.hide()}}},[n("div",{class:e.popoverWrapperClass},[n("div",{ref:"inner",class:e.popoverInnerClass,staticStyle:{position:"relative"}},[n("div",[e._t("popover",null,{isOpen:e.isOpen})],2),e._v(" "),e.handleResize?n("ResizeObserver",{on:{notify:e.$_handleResize}}):e._e()],1),e._v(" "),n("div",{ref:"arrow",class:e.popoverArrowClass})])])])};ft._withStripped=!0;var ht=pt({render:ft,staticRenderFns:[]},undefined,mt,undefined,false,undefined,!1,void 0,void 0,void 0);!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".resize-observer[data-v-8859cc6c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-8859cc6c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}");var _t={install:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0;var r={};Te()(r,We,n),_t.options=r,Xe.options=r,t.directive("tooltip",Xe),t.directive("close-popover",it),t.component("VPopover",ht)}},get enabled(){return qe.enabled},set enabled(e){qe.enabled=e}},vt=null;"undefined"!=typeof window?vt=window.Vue:void 0!==n.g&&(vt=n.g.Vue),vt&&vt.use(_t);const gt=_t;var yt={inheritAttrs:!1,props:{duration:{type:[Number,Object],default:300},delay:{type:[Number,Object],default:0},group:Boolean,tag:{type:String,default:"span"},origin:{type:String,default:""},styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"ease-out"}}}},computed:{componentType:function(){return this.group?"transition-group":"transition"},hooks:function(){return Object.assign({beforeEnter:this.beforeEnter,afterEnter:this.cleanUpStyles,beforeLeave:this.beforeLeave,leave:this.leave,afterLeave:this.cleanUpStyles},this.$listeners)}},methods:{beforeEnter:function(e){var t=this.duration.enter?this.duration.enter:this.duration;e.style.animationDuration=t+"ms";var n=this.delay.enter?this.delay.enter:this.delay;e.style.animationDelay=n+"ms",this.setStyles(e)},cleanUpStyles:function(e){var t=this;Object.keys(this.styles).forEach((function(n){t.styles[n]&&(e.style[n]="")})),e.style.animationDuration="",e.style.animationDelay=""},beforeLeave:function(e){var t=this.duration.leave?this.duration.leave:this.duration;e.style.animationDuration=t+"ms";var n=this.delay.leave?this.delay.leave:this.delay;e.style.animationDelay=n+"ms",this.setStyles(e)},leave:function(e){this.setAbsolutePosition(e)},setStyles:function(e){var t=this;this.setTransformOrigin(e),Object.keys(this.styles).forEach((function(n){var r=t.styles[n];r&&(e.style[n]=r)}))},setAbsolutePosition:function(e){return this.group&&(e.style.position="absolute"),this},setTransformOrigin:function(e){return this.origin&&(e.style.transformOrigin=this.origin),this}}};!function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=" @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .fadeIn { animation-name: fadeIn; } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } .fadeOut { animation-name: fadeOut; } .fade-move { transition: transform .3s ease-out; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}}();var bt={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"fadeIn","move-class":"fade-move","leave-active-class":"fadeOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"fade-transition",mixins:[yt]};!function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".zoom-move { transition: transform .3s ease-out; } @keyframes zoomIn { from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } } .zoomIn { animation-name: zoomIn; } @keyframes zoomOut { from { opacity: 1; } 50% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } to { opacity: 0; } } .zoomOut { animation-name: zoomOut; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}}();var wt={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"zoomIn","move-class":"zoom-move","leave-active-class":"zoomOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"zoom-center-transition",mixins:[yt]};!function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".zoom-move { transition: transform .3s ease-out; } @keyframes zoomInX { from { opacity: 0; transform: scaleX(0); } 50% { opacity: 1; } } .zoomInX { animation-name: zoomInX; } @keyframes zoomOutX { from { opacity: 1; } 50% { opacity: 0; transform: scaleX(0); } to { opacity: 0; } } .zoomOutX { animation-name: zoomOutX; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}}();var xt={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"zoomInX","move-class":"zoom-move","leave-active-class":"zoomOutX"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"zoom-x-transition",props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.55,0,.1,1)"}}}},mixins:[yt]};!function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".zoom-move { transition: transform .3s ease-out; } @keyframes zoomInY { from { opacity: 0; transform: scaleY(0); } 50% { opacity: 1; tranform: scaleY(1); } } .zoomInY { animation-name: zoomInY; } @keyframes zoomOutY { from { opacity: 1; } 50% { opacity: 0; transform: scaleY(0); } to { opacity: 0; } } .zoomOutY { animation-name: zoomOutY; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}}();var kt={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"zoomInY","move-class":"zoom-move","leave-active-class":"zoomOutY"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"zoom-y-transition",mixins:[yt],props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.55,0,.1,1)"}}}}};!function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=" .collapse-move { transition: transform .3s ease-in-out; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}}();var Dt={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"move-class":"collapse-move"},on:{"before-enter":e.beforeEnter,"after-enter":e.afterEnter,enter:e.enter,"before-leave":e.beforeLeave,leave:e.leave,"after-leave":e.afterLeave}},"component",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[],name:"collapse-transition",mixins:[yt],methods:{transitionStyle:function(e){void 0===e&&(e=300);var t=e/1e3;return t+"s height ease-in-out, "+t+"s padding-top ease-in-out, "+t+"s padding-bottom ease-in-out"},beforeEnter:function(e){var t=this.duration.enter?this.duration.enter:this.duration;e.style.transition=this.transitionStyle(t),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0,this.setStyles(e)},enter:function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter:function(e){e.style.transition="",e.style.height="",e.style.overflow=e.dataset.oldOverflow},beforeLeave:function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden",this.setStyles(e)},leave:function(e){var t=this.duration.leave?this.duration.leave:this.duration;0!==e.scrollHeight&&(e.style.transition=this.transitionStyle(t),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0),this.setAbsolutePosition(e)},afterLeave:function(e){e.style.transition="",e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}}};!function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=" @keyframes scaleIn { from { opacity: 0; transform: scale(0) } to { opacity: 1; } } .scaleIn { animation-name: scaleIn; } @keyframes scaleOut { from { opacity: 1; } to { opacity: 0; transform: scale(0); } } .scaleOut { animation-name: scaleOut; } .scale-move { transition: transform .3s cubic-bezier(.25, .8, .50, 1); } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}}();var Mt={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"scaleIn","move-class":"scale-move","leave-active-class":"scaleOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"scale-transition",mixins:[yt],props:{origin:{type:String,default:"top left"},styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.25,.8,.50,1)"}}}}};!function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".slide-move { transition: transform .3s; } @keyframes slideYIn { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; } } .slideYIn { animation-name: slideYIn; } @keyframes slideYOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-15px); } } .slideYOut { animation-name: slideYOut; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}}();var St={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,type:"animation","enter-active-class":"slideYIn","move-class":"slide-move","leave-active-class":"slideYOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"slide-y-up-transition",mixins:[yt],props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.25,.8,.50,1)"}}}}};!function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".slide-move { transition: transform .3s; } @keyframes slideYDownIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; } } .slideYDownIn { animation-name: slideYDownIn; } @keyframes slideYDownOut { from { opacity: 1; } to { opacity: 0; transform: translateY(15px); } } .slideYDownOut { animation-name: slideYDownOut; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}}();var Ct={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"slideYDownIn","leave-active-class":"slideYDownOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"slide-y-down-transition",mixins:[yt],props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.25,.8,.50,1)"}}}}};!function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".slide-move { transition: transform .3s; } @keyframes slideXLeftIn { from { opacity: 0; transform: translateX(-15px); } to { opacity: 1; } } .slideXLeftIn { animation-name: slideXLeftIn; } @keyframes slideXLeftOut { from { opacity: 1; } to { opacity: 0; transform: translateX(-15px); } } .slideXLeftOut { animation-name: slideXLeftOut; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}}();var Lt={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"slideXLeftIn","move-class":"slide-move","leave-active-class":"slideXLeftOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"slide-x-left-transition",mixins:[yt],props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.25,.8,.50,1)"}}}}};!function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),n=".slide-move { transition: transform .3s; } @keyframes slideXRightIn { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; } } .slideXRightIn { animation-name: slideXRightIn; } @keyframes slideXRightOut { from { opacity: 1; } to { opacity: 0; transform: translateX(15px); } } .slideXRightOut { animation-name: slideXRightOut; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),e.appendChild(t)}}();var Tt={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.componentType,e._g(e._b({tag:"component",attrs:{tag:e.tag,"enter-active-class":"slideXRightIn","move-class":"slide-move","leave-active-class":"slideXRightOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"slide-x-right-transition",mixins:[yt],props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.25,.8,.50,1)"}}}}},Ot={};function Et(e,t){t&&t.components?t.components.forEach((function(t){return e.component(t.name,Ot[t.name])})):Object.keys(Ot).forEach((function(t){e.component(t,Ot[t])}))}Ot[bt.name]=bt,Ot[wt.name]=wt,Ot[xt.name]=xt,Ot[kt.name]=kt,Ot[Dt.name]=Dt,Ot[Mt.name]=Mt,Ot[St.name]=St,Ot[Ct.name]=Ct,Ot[Lt.name]=Lt,Ot[Tt.name]=Tt,"undefined"!=typeof window&&window.Vue&&window.Vue.use({install:Et});const At={install:Et};var jt=n(9381),$t=n.n(jt);const Pt={SwModal:{classes:{overlayContainer:"fixed z-50 inset-0 overflow-y-auto sw-scroll bg-opacity-25 bg-gray-700 flex justify-center min-h-screen items-center text-center sm:p-0",centering:"hidden sm:inline-block sm:align-middle sm:h-screen",base:"inline-block border-t-8 border-solid border-primary-500 w-full align-bottom bg-white rounded text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-xl sm:w-full m-6 sm:m-0",header:"py-4 px-6 h-16 text-black font-medium text-lg border-b border-solid border-gray-light flex justify-between items-center",body:"modal body text-sm",footer:"border-t border-solid border-gray-light py-4 px-6 flex justify-end"},variants:{lg:{base:"inline-block border-t-8 border-solid border-primary-500 w-full align-bottom bg-white rounded text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-4xl sm:w-full m-6 sm:m-0"}}},SwInput:{variants:{gray:{container:"relative flex items-center w-full border border-solid rounded-md bg-gray-100 hover:border-gray-400",baseInput:"not-italic font-normal leading-tight text-left outline-none rounded-md input-field box-border-2 placeholder-gray-400 text-black w-full h-8 px-0 py-0 text-xs bg-gray-100",rightIconInput:"not-italic font-normal leading-tight text-left outline-none min-w-0 rounded-md input-field box-border-2 placeholder-gray-400 text-black w-full pl-3 pr-1 py-2 text-sm bg-gray-100",rightIconContainer:"flex flex-col justify-center align-middle pr-2 text-gray-400 min-w-0",containerFocusIn:"border-primary-500 ",containerFocusOut:"border-gray-300 focus:border-transparent"},searchInput:{container:"relative flex items-center w-full border border-solid rounded-md bg-white",baseInput:"not-italic font-normal leading-tight text-left outline-none rounded-md input-field box-border-2 placeholder-gray-400 text-black w-full h-8 px-0 py-0 text-xs",rightIconInput:"not-italic font-normal leading-tight text-left outline-none rounded-md input-field box-border-2 placeholder-gray-400 text-black w-full pl-3 pr-1 py-2 text-sm",leftIconInput:"not-italic font-normal leading-tight text-left outline-none rounded-md input-field box-border-2 placeholder-gray-400 text-black w-full pl-1 pr-3 py-2 text-sm",rightIconContainer:"flex flex-col justify-center align-middle pr-2",leftIconContainer:"flex flex-col justify-center align-middle",containerFocusIn:"border-primary-500",containerFocusOut:"border-gray-300 focus:border-transparent"}}},SwTable:{variants:{gray:{tdStyles:"text-left text-base h-20 px-3 py-6 align-middle bg-gray-100 first:rounded-bl-md first:rounded-tl-md last:rounded-br-md last:rounded-tr-md"}}},SwButton:{variants:{grayLight:{button:"inline-flex items-center justify-center text-gray-400 transition duration-150 ease-in-out border border-transparent focus:outline-none bg-gray-100 border border-gray-200 hover:bg-gray-200 hover:border-gray-400 hover:text-gray-600"},gray:{button:"inline-flex items-center justify-center text-gray-400 transition duration-150 ease-in-out border border-transparent focus:outline-none bg-gray-300 border border-gray-200"},white:{button:"inline-flex items-center justify-center text-black transition px-2 duration-150 ease-in-out border border-gray-300 border-solid focus:outline-none bg-white"}},sizes:{discount:{button:"py-2 px-2 text-sm leading-5 rounded",loadingIcon:"w-4 h-4 -ml-2"}}},SwCard:{classes:{container:"bg-white rounded shadow",header:"px-5 py-4 text-black border-b border-solid border-gray-300",body:"px-4 py-5 sm:p-8",footer:"px-5 py-4 border-t border-solid sm:px-6 border-gray-300"},variants:{customerCard:{body:"px-4 py-5 sm:p-8"},settingCard:{header:"px-4 pt-5 sm:px-8 sm:pt-8",footer:"px-5 border-t-none py-4 sm:px-6"}}},SwList:{classes:{container:"pr-4 pl-0 list-none",itemContainer:"cursor-pointer pb-2 pr-0 text-sm font-medium leading-5 text-gray-500 flex items-center",title:"",iconContainer:"mr-3",listGroup:{container:"p-0 list-none",titleContainer:"flex items-center justify-between pb-2 pr-0 text-sm font-medium leading-5 text-gray-500 cursor-pointer",title:"text-sm",icon:"w-5 h-5 leading-4 transform rotate-90",itemsContainer:"pl-4 list-none",itemContainer:"cursor-pointer pb-2 pr-0 text-sm font-medium leading-5 text-gray-500 flex items-center"},active:{itemContainer:"cursor-pointer pb-2 pr-0 text-sm font-medium flex items-center leading-5 text-primary-500",listGroup:{container:"p-0 list-none",titleContainer:"flex items-center justify-between pb-2 pr-0 text-sm font-medium leading-5 text-primary-500 cursor-pointer",title:"text-sm",icon:"w-5 h-5 leading-4 ",itemsContainer:"pl-4 list-none",itemContainer:"cursor-pointer pb-2 pr-0 text-sm font-medium leading-5 text-gray-500 flex items-center"}}}},SwWizard:{classes:{wizardContainer:"wizard w-full",wizardStepsContainer:"relative flex items-center justify-center",navigationContainer:"flex flex-col items-center justify-between h-32 step-indicator",progressesContainer:"box-border relative flex justify-around mt-16 border-4 border-gray-200 border-solid rounded-md indicator-line",progressesSubContainer:"absolute flex justify-between center",progress:"rounded-full steps cursor-pointer",currentStep:"bg-white border-primary-500",previousStep:"bg-primary-500 border-primary-500 flex justify-center items-center",nextStep:"border-gray-200 bg-white",icon:"flex items-center justify-center w-full h-full text-sm font-black text-center text-white",stepContainer:"w-full mb-8 bg-white border border-gray-200 border-solid rounded p-8 lg:w-9/12 md:w-full relative",stepHeadingContainer:"heading-section",stepTitle:"text-2xl not-italic font-semibold leading-7 text-black",stepDescription:"w-full mt-2.5 mb-8 text-sm not-italic leading-snug text-gray-500 lg:w-7/12 md:w-7/12 sm:w-7/12"},variants:{}},SwTextarea:{variants:{invDesc:"text-left border border-solid box-border rounded not-italic leading-snug placeholder-gray-400 bg-white border-gray-300 focus:border-primary-400 outline-none w-full py-2 px-3 font-normal text-xs text-black"}},SwPopup:{classes:{container:"relative w-full",activator:"relative w-full cursor-pointer",base:"flex flex-col absolute w-full top-0 bg-white rounded z-20 shadow-xl",above:"bottom-full top-unset"}},SwDropdown:{classes:{container:"relative sw-dropdown",activator:"cursor-pointer",divider:"border-t border-solid border-gray-200 my-2 mx-0 overflow-hidden",itemContainer:"z-10 p-2 max-h-60 text-base text-left list-none rounded border-0 shadow bg-white text-black overflow-auto sw-scroll",item:"flex p-2 text-sm font-light text-left text-black bg-transparent rounded cursor-pointer none hover:bg-gray-200 whitespace-nowrap",itemIcon:"w-5 h-5 mr-3 text-secondary"},variants:{searchDropdown:{activator:"cursor-pointer",container:"relative",divider:"border-t border-solid border-gray-200 my-2 mx-0 overflow-hidden",item:"flex p-0 text-sm font-light text-left text-black bg-transparent rounded cursor-pointer none hover:bg-gray-200 whitespace-nowrap",itemContainer:"z-10 p-2 text-base text-left list-none rounded border-0 shadow bg-white text-black",itemIcon:"w-5 h-5 mr-3 text-secondary"}}},SwBadge:{classes:"px-2 py-1 text-xs bg-success text-green-800 uppercase font-normal text-center",variants:{success:"px-2 py-1 text-xs bg-success text-green-800 uppercase font-normal text-center",info:"px-2 py-1 text-xs bg-info text-blue-800 uppercase text-center font-normal",danger:"px-2 py-1 text-xs bg-danger text-red-700 uppercase font-normal text-center",warning:"px-2 py-1 text-xs bg-warning text-indigo-900 uppercase font-normal text-center"}},SwFilterWrapper:{classes:{container:"relative p-8 mt-5 rounded bg-gray-200",body:"lg:flex block flex-col md:flex-row"},variants:{}},SwSwitch:{classes:{container:"switch-container focus:outline-none",switch:"switch",label:"relative block h-4 bg-white border border-solid cursor-pointer border-gray switch-label"}}};s.default.use($t(),{theme:Pt}),s.default.use(l.ZP),s.default.use(At),window._=n(6486),n(7039),n(5912),window.axios=n(9669),window.axios.defaults.withCredentials=!0,window.Ls=i.Z,window.axios.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"},window.axios.interceptors.request.use((function(e){if(o.Z.getters["auth/isLoggedOut"]){var t=window.axios.CancelToken.source();return e.cancelToken=t.token,setTimeout((function(){o.Z.dispatch("auth/setLogoutFalse")}),200),e}var n=i.Z.get("selectedCompany");return n&&(e.headers.common.company=n),e}),(function(e){return Promise.reject(e)})),n.g.axios.interceptors.response.use(void 0,(function(e){if(o.Z.getters["auth/isLoggedOut"])return!0;if(e.response)if(!e.response.data||"Unauthorized"!==e.response.statusText&&" Unauthorized."!==e.response.data)if(e.response.data.errors){var t=JSON.parse(JSON.stringify(e.response.data.errors));for(var n in t)window.toastr.error(t[n])}else window.toastr.error(e.response.data.message?e.response.data.message:e.response.data||"Unknown error occurred","Error");else window.toastr.error(e.response.data.message?e.response.data.message:"Unauthorized"),o.Z.dispatch("auth/logout",!0);else window.toastr.error("Please check your internet connection or wait until servers are back online","Network Error");return Promise.reject(e)})),window.toastr=n(8901),s.default.use(r.Z),s.default.use(a.ZP),s.default.use(gt),s.default.use(u(),{precision:2})},5912:(e,t,n)=>{"use strict";n.r(t);var r=n(538),a=n(7557),i=n(3236),o=n(7757),s=n.n(o),l=n(629);function c(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const m={data:function(){return{customerSelect:null,loading:!1}},computed:d({},(0,l.Se)("customer",["customers"])),created:function(){this.fetchCustomers()},methods:d(d({},(0,l.nv)("customer",["fetchCustomers"])),{},{searchCustomers:function(e){var t,n=this;return(t=s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.loading=!0,t.next=3,n.fetchCustomers({search:e});case 3:n.loading=!1;case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){c(i,r,a,o,s,"next",e)}function s(e){c(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onTextChange:function(e){this.searchCustomers(e)},checkCustomers:function(e){this.customers.length||this.fetchCustomers()},deselectCustomer:function(){this.customerSelect=null,this.$emit("deselect")}})};var f=n(1900);const h=(0,f.Z)(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"item-selector"},[n("sw-select",{ref:"baseSelect",staticClass:"multi-select-item",attrs:{options:e.customers,"show-labels":!1,"preserve-search":!1,placeholder:e.$t("customers.type_or_click"),label:"name"},on:{close:e.checkCustomers,value:e.onTextChange,select:function(t){return e.$emit("select",t)},remove:e.deselectCustomer},model:{value:e.customerSelect,callback:function(t){e.customerSelect=t},expression:"customerSelect"}})],1)}),[],!1,null,null,null).exports;var _=n(7751),v=n(3032);n(254);function g(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(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 y(e,t)}(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 y(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 b(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const D={components:{PlusSmIcon:_.d2U,ChevronDoubleRightIcon:v.a3z},props:{value:{type:[String,Number,File],default:""},types:{type:Array,default:null},placeholder:{type:String,default:""},rows:{type:String,default:"10"},cols:{type:String,default:"30"},invalid:{type:Boolean,default:!1},fields:{type:Array,default:null},disabled:{type:Boolean,default:!1}},data:function(){return{fieldList:[],invoiceFields:[],estimateFields:[],paymentFields:[],customerFields:[],position:null,inputValue:this.value}},computed:x(x({},(0,l.Se)("customFields",["getCustomFields"])),{},{isFieldValid:function(){return this.invalid}}),watch:{value:function(){this.inputValue=this.value},fields:function(){this.fields&&this.fields.length>0&&this.getFields()},getCustomFields:function(e){this.invoiceFields=e?e.filter((function(e){return"Invoice"===e.model_type})):[],this.customerFields=e?e.filter((function(e){return"Customer"===e.model_type})):[],this.paymentFields=e?e.filter((function(e){return"Payment"===e.model_type})):[],this.estimateFields=e.filter((function(e){return"Estimate"===e.model_type})),this.getFields()}},mounted:function(){var e,t=this;return(e=s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.getFields(),e.next=3,t.fetchNoteCustomFields({limit:"all"});case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){b(i,r,a,o,s,"next",e)}function s(e){b(i,r,a,o,s,"throw",e)}o(void 0)}))})()},methods:x(x({},(0,l.nv)("customFields",["fetchNoteCustomFields"])),{},{getFields:function(){this.fieldList=[],this.fields&&this.fields.length>0&&(this.fields.find((function(e){return"shipping"==e}))&&this.fieldList.push({label:"Shipping Address",fields:[{label:"Address name",value:"SHIPPING_ADDRESS_NAME"},{label:"Country",value:"SHIPPING_COUNTRY"},{label:"State",value:"SHIPPING_STATE"},{label:"City",value:"SHIPPING_CITY"},{label:"Address Street 1",value:"SHIPPING_ADDRESS_STREET_1"},{label:"Address Street 2",value:"SHIPPING_ADDRESS_STREET_2"},{label:"Phone",value:"SHIPPING_PHONE"},{label:"Zip Code",value:"SHIPPING_ZIP_CODE"}]}),this.fields.find((function(e){return"billing"==e}))&&this.fieldList.push({label:"Billing Address",fields:[{label:"Address name",value:"BILLING_ADDRESS_NAME"},{label:"Country",value:"BILLING_COUNTRY"},{label:"State",value:"BILLING_STATE"},{label:"City",value:"BILLING_CITY"},{label:"Address Street 1",value:"BILLING_ADDRESS_STREET_1"},{label:"Address Street 2",value:"BILLING_ADDRESS_STREET_2"},{label:"Phone",value:"BILLING_PHONE"},{label:"Zip Code",value:"BILLING_ZIP_CODE"}]}),this.fields.find((function(e){return"customer"==e}))&&this.fieldList.push({label:"Customer",fields:[{label:"Display Name",value:"CONTACT_DISPLAY_NAME"},{label:"Contact Name",value:"PRIMARY_CONTACT_NAME"},{label:"Email",value:"CONTACT_EMAIL"},{label:"Phone",value:"CONTACT_PHONE"},{label:"Website",value:"CONTACT_WEBSITE"}].concat(g(this.customerFields.map((function(e){return{label:e.label,value:e.slug}}))))}),this.fields.find((function(e){return"invoice"==e}))&&this.fieldList.push({label:"Invoice",fields:[{label:"Date",value:"INVOICE_DATE"},{label:"Due Date",value:"INVOICE_DUE_DATE"},{label:"Number",value:"INVOICE_NUMBER"},{label:"Ref Number",value:"INVOICE_REF_NUMBER"},{label:"Invoice Link",value:"INVOICE_LINK"}].concat(g(this.invoiceFields.map((function(e){return{label:e.label,value:e.slug}}))))}),this.fields.find((function(e){return"estimate"==e}))&&this.fieldList.push({label:"Estimate",fields:[{label:"Date",value:"ESTIMATE_DATE"},{label:"Expiry Date",value:"ESTIMATE_EXPIRY_DATE"},{label:"Number",value:"ESTIMATE_NUMBER"},{label:"Ref Number",value:"ESTIMATE_REF_NUMBER"},{label:"Estimate Link",value:"ESTIMATE_LINK"}].concat(g(this.estimateFields.map((function(e){return{label:e.label,value:e.slug}}))))}),this.fields.find((function(e){return"payment"==e}))&&this.fieldList.push({label:"Payment",fields:[{label:"Date",value:"PAYMENT_DATE"},{label:"Number",value:"PAYMENT_NUMBER"},{label:"Mode",value:"PAYMENT_MODE"},{label:"Amount",value:"PAYMENT_AMOUNT"},{label:"Payment Link",value:"PAYMENT_LINK"}].concat(g(this.paymentFields.map((function(e){return{label:e.label,value:e.slug}}))))}),this.fields.find((function(e){return"company"==e}))&&this.fieldList.push({label:"Company",fields:[{label:"Company Name",value:"COMPANY_NAME"},{label:"Country",value:"COMPANY_COUNTRY"},{label:"State",value:"COMPANY_STATE"},{label:"City",value:"COMPANY_CITY"},{label:"Address Street 1",value:"COMPANY_ADDRESS_STREET_1"},{label:"Address Street 2",value:"COMPANY_ADDRESS_STREET_2"},{label:"Phone",value:"COMPANY_PHONE"},{label:"Zip Code",value:"COMPANY_ZIP_CODE"}]}))},insertField:function(e){this.inputValue?this.inputValue+="{".concat(e,"}"):this.inputValue="{".concat(e,"}"),this.$emit("input",this.inputValue)},handleInput:function(e){this.$emit("input",this.inputValue)},handleChange:function(e){this.$emit("change",this.inputValue)},handleKeyupEnter:function(e){this.$emit("keyup",this.inputValue)},handleKeyDownEnter:function(e){this.$emit("keydown",e,this.inputValue)},handleFocusOut:function(e){this.$emit("blur",this.inputValue)}})};const M=(0,f.Z)(D,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative"},[n("div",{staticClass:"absolute bottom-0 right-0 z-10"},[n("sw-dropdown",{staticClass:"mb-2",attrs:{"close-on-select":!0,"max-height":"220",position:"bottom-end"}},[n("sw-button",{staticClass:"mr-2",attrs:{slot:"activator",variant:"primary-outline",type:"button"},slot:"activator"},[n("plus-sm-icon",{staticClass:"h-5 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.customization.addresses.insert_fields"))+"\n ")],1),e._v(" "),n("div",{staticClass:"flex p-2"},e._l(e.fieldList,(function(t,r){return n("ul",{key:r,staticClass:"list-none"},[n("li",{staticClass:"mb-1 ml-2 text-xs font-semibold text-gray-500 uppercase"},[e._v("\n "+e._s(t.label)+"\n ")]),e._v(" "),e._l(t.fields,(function(t,r){return n("li",{key:r,staticClass:"w-48 text-sm font-normal cursor-pointer hover:bg-gray-200",on:{click:function(n){return e.insertField(t.value)}}},[n("div",{staticClass:"flex"},[n("chevron-double-right-icon",{staticClass:"h-3 mt-1 text-gray-400"}),e._v(e._s(t.label)+"\n ")],1)])}))],2)})),0)],1)],1),e._v(" "),n("sw-editor",{staticClass:"text-area-field",attrs:{"set-editor":e.inputValue,disabled:e.disabled,invalid:e.isFieldValid,placeholder:e.placeholder,variant:"header-editor","input-class":"border-none"},on:{input:e.handleInput,change:e.handleChange,keyup:e.handleKeyupEnter},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})],1)}),[],!1,null,null,null).exports;function S(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function C(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){S(i,r,a,o,s,"next",e)}function s(e){S(i,r,a,o,s,"throw",e)}o(void 0)}))}}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E={components:{UserAddIcon:v.uSF,SearchIcon:v.W1M,RefreshIcon:v.DuK},props:{type:{type:String,required:!0},userId:{type:Number,required:!1}},data:function(){return{search:null,loading:!1}},computed:T({},(0,l.Se)("customer",["customers"])),created:function(){this.fetchInitialCustomers()},methods:T(T(T(T(T({},(0,l.nv)("modal",["openModal"])),(0,l.nv)("customer",["fetchCustomers"])),(0,l.nv)("invoice",{setInvoiceCustomer:"selectCustomer"})),(0,l.nv)("estimate",{setEstimateCustomer:"selectCustomer"})),{},{fetchInitialCustomers:function(){var e=this;return C(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchCustomers({filter:{},orderByField:"",orderBy:"",customer_id:e.userId});case 2:case"end":return t.stop()}}),t)})))()},searchCustomer:function(){var e=this;return C(s().mark((function t(){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={display_name:e.search,email:"",phone:"",orderByField:"",orderBy:"",page:1},e.loading=!0,t.next=4,e.fetchCustomers(n);case 4:e.loading=!1;case 5:case"end":return t.stop()}}),t)})))()},openCustomerModal:function(){this.openModal({title:this.$t("customers.add_customer"),componentName:"CustomerModal",variant:"lg"})},initGenerator:function(e){if(e)return e.split(" ")[0].charAt(0).toUpperCase()},selectNewCustomer:function(e){"estimate"===this.type?this.setEstimateCustomer(e):this.setInvoiceCustomer(e)}})};var A=n(3379),j=n.n(A),$=n(3042),P={insert:"head",singleton:!1};j()($.Z,P);$.Z.locals;const Y=(0,f.Z)(E,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"customer-select"},[n("div",{staticClass:"flex flex-col w-full pb-4"},[n("div",{staticClass:"flex px-4 pt-4 pb-2"},[n("sw-input",{attrs:{placeholder:e.$t("general.search"),focus:"",type:"text",icon:"search"},on:{input:e.searchCustomer},scopedSlots:e._u([{key:"leftIcon",fn:function(){return[n("search-icon",{staticClass:"h-5 m-2 text-gray-500"})]},proxy:!0}]),model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),e.customers.length>0&&!e.loading?n("div",{staticClass:"relative flex flex-col overflow-auto sw-scroll list"},e._l(e.customers,(function(t,r){return n("div",{key:r,staticClass:"flex px-6 py-2 border-b border-gray-200 border-solid cursor-pointer hover:cursor-pointer hover:bg-gray-100 last:border-b-0",on:{click:function(n){return e.selectNewCustomer(t.id)}}},[n("span",{staticClass:"flex items-center content-center justify-center w-10 h-10 mr-4 text-xl font-semibold leading-9 text-white bg-gray-400 rounded-full avatar"},[e._v(e._s(e.initGenerator(t.name)))]),e._v(" "),n("div",{staticClass:"flex flex-col justify-center"},[n("label",{staticClass:"m-0 leading-tight cursor-pointer font-base"},[e._v(e._s(t.name))]),e._v(" "),n("label",{staticClass:"m-0 text-sm font-medium text-gray-500 cursor-pointer font-base"},[e._v(e._s(t.contact_name))])])])})),0):e._e(),e._v(" "),e.loading?n("div",{staticClass:"flex items-center justify-center list"},[n("refresh-icon",{staticClass:"animate-spin"})],1):e._e(),e._v(" "),0===e.customers.length?n("div",{staticClass:"flex justify-center p-5 text-gray-400"},[n("label",{staticClass:"cursor-pointer"},[e._v("\n "+e._s(e.$t("customers.no_customers_found"))+"\n ")])]):e._e()]),e._v(" "),n("button",{staticClass:"flex items-center justify-center w-full px-2 py-3 bg-gray-200 border-none outline-none",attrs:{type:"button"},on:{click:e.openCustomerModal}},[n("user-add-icon",{staticClass:"text-primary-400"}),e._v(" "),n("label",{staticClass:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},[e._v(e._s(e.$t("customers.add_new_customer")))])],1)])}),[],!1,null,null,null).exports;function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const F={components:{CheckCircleIcon:v.rE2},props:{taxes:{type:Array,required:!1,default:null}},data:function(){return{textSearch:null}},computed:z(z({},(0,l.Se)("taxType",["taxTypes"])),{},{filteredTaxType:function(){if(this.textSearch){var e=this.textSearch;return this.taxTypes.filter((function(t){return-1!==t.name.toLowerCase().indexOf(e.toLowerCase())}))}return this.taxTypes}}),methods:z(z({},(0,l.nv)("modal",["openModal"])),{},{selectTaxType:function(e){this.$emit("select",z({},this.taxTypes[e]))},openTaxModal:function(){this.openModal({title:this.$t("settings.tax_types.add_tax"),componentName:"TaxTypeModal"})}})};const H=(0,f.Z)(F,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tax-select"},[n("div",{staticClass:"flex flex-col w-full p-4"},[n("div",{staticClass:"relative flex w-full mb-2"},[n("sw-input",{staticClass:"text-black",attrs:{placeholder:e.$t("general.search"),focus:"",icon:"search",type:"text"},model:{value:e.textSearch,callback:function(t){e.textSearch=t},expression:"textSearch"}})],1),e._v(" "),e.filteredTaxType.length>0?n("div",{staticClass:"relative flex flex-col overflow-auto sw-scroll list",staticStyle:{"max-height":"112px"}},e._l(e.filteredTaxType,(function(t,r){return n("div",{key:r,staticClass:"flex justify-between p-4 border-b border-gray-200 border-solid cursor-pointer list-item last:border-b-0 hover:bg-gray-100",class:{"bg-gray-100 cursor-not-allowed opacity-50 pointer-events-none":e.taxes.find((function(e){return e.tax_type_id===t.id}))},on:{click:function(t){return e.selectTaxType(r)}}},[n("label",{staticClass:"inline-block m-0 text-base font-normal leading-tight text-black font-base"},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),n("label",{staticClass:"inline-block m-0 text-base font-normal leading-tight text-black font-base"},[e._v("\n "+e._s(t.percent)+" %\n ")])])})),0):n("div",{staticClass:"flex justify-center p-5 text-gray-400"},[n("label",{staticClass:"m-0"},[e._v(e._s(e.$t("general.no_tax_found")))])])]),e._v(" "),n("button",{staticClass:"flex items-center justify-center w-full px-2 py-3 bg-gray-200 border-none outline-none",attrs:{type:"button"},on:{click:e.openTaxModal}},[n("check-circle-icon",{staticClass:"h-5"}),e._v(" "),n("label",{staticClass:"m-0 ml-3 text-sm leading-none cursor-pointer font-base text-primary-400"},[e._v("\n "+e._s(e.$t("invoices.add_new_tax"))+"\n ")])],1)])}),[],!1,null,null,null).exports;function R(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const W={components:{CheckCircleIcon:v.rE2},props:{type:{type:String,default:null}},data:function(){return{textSearch:null}},computed:q(q({},(0,l.Se)("notes",["notes"])),{},{filteredNotes:function(){if(this.textSearch){var e=this.textSearch;return this.notes.filter((function(t){return-1!==t.name.toLowerCase().indexOf(e.toLowerCase())}))}return this.notes}}),created:function(){this.fetchInitialData()},methods:q(q(q({},(0,l.nv)("modal",["openModal"])),(0,l.nv)("notes",["fetchNotes"])),{},{selectNote:function(e){this.$emit("select",q({},this.notes[e]))},fetchInitialData:function(){var e,t=this;return(e=s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.fetchNotes({filter:{},orderByField:"",orderBy:"",type:t.type?t.type:""});case 2:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){R(i,r,a,o,s,"next",e)}function s(e){R(i,r,a,o,s,"throw",e)}o(void 0)}))})()},openNoteModal:function(){this.openModal({title:this.$t("settings.customization.notes.add_note"),componentName:"NoteSelectModal",variant:"lg",data:this.type})}})};const U=(0,f.Z)(W,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tax-select"},[n("div",{staticClass:"flex flex-col w-full px-4 py-4"},[n("div",{staticClass:"relative flex w-full mb-2"},[n("sw-input",{staticClass:"text-black",attrs:{placeholder:e.$t("general.search"),focus:"",icon:"search",type:"text"},model:{value:e.textSearch,callback:function(t){e.textSearch=t},expression:"textSearch"}})],1),e._v(" "),e.filteredNotes.length>0?n("div",{staticClass:"relative flex flex-col overflow-auto sw-scroll list",staticStyle:{"max-height":"112px"}},e._l(e.filteredNotes,(function(t,r){return n("div",{key:r,staticClass:"flex justify-between p-4 border-b border-gray-200 border-solid cursor-pointer list-item last:border-b-0 hover:bg-gray-100",on:{click:function(t){return e.selectNote(r)}}},[n("label",{staticClass:"inline-block m-0 text-base font-normal leading-tight text-black font-base"},[e._v("\n "+e._s(t.name)+"\n ")])])})),0):n("div",{staticClass:"flex justify-center p-5 text-gray-400"},[n("label",{staticClass:"m-0"},[e._v(e._s(e.$t("general.no_note_found")))])])]),e._v(" "),n("button",{staticClass:"flex items-center justify-center w-full px-2 py-3 bg-gray-200 border-none outline-none hover:bg-gray-300",attrs:{type:"button"},on:{click:e.openNoteModal}},[n("check-circle-icon",{staticClass:"h-5"}),e._v(" "),n("label",{staticClass:"m-0 ml-1 text-sm leading-none cursor-pointer font-base text-primary-400"},[e._v("\n "+e._s(e.$t("settings.customization.notes.add_new_note"))+"\n ")])],1)])}),[],!1,null,null,null).exports;var K=n(4790),Z=n.n(K);var G=n(9818),J={insert:"head",singleton:!1};j()(G.Z,J);G.Z.locals;n(3857);const X=(e,t)=>{for(const n in t)if(n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z])([A-Z])(?=[a-z])/g,"$1-$2").toLowerCase()==e)return t[n]},{classes:Q,variants:ee}={classes:{container:"relative flex flex-row",icon:"absolute h-4 w-4 my-3 mx-2 text-sm not-italic font-black text-gray-500 cursor-pointer",datepicker:"w-full h-10 px-3 py-3 pl-8 text-sm not-italic font-normal leading-tight text-left border border-solid rounded-md outline-none input-field box-border-2 focus:border-primary-500 base-date-picker-input placeholder-gray-400 border-gray-300 focus:border-primary-500"},variants:{invalid:{datepicker:"w-full h-10 px-3 py-3 pl-8 text-sm not-italic font-normal leading-tight text-left border border-solid rounded-md outline-none input-field box-border-2 base-date-picker-input placeholder-gray-400 border-danger"},disabled:{datepicker:"w-full h-10 px-3 py-3 pl-8 text-sm not-italic font-normal leading-tight text-left border border-solid rounded-md outline-none input-field box-border-2 base-date-picker-input placeholder-gray-400 bg-gray-300 text-gray-600 border-gray-300"}}},te={name:"SwDatePicker",install(e,t){((e,t={},n)=>{const{props:r}=n;Object.keys(t).forEach((e=>{const n={default:()=>t[e]};r[e]=n})),e.component(n.name,{...n,props:r})})(e,t,this)},components:{Flatpickr:Z()},inheritAttrs:!1,props:{calendarButton:{type:Boolean,default:!0},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},classes:{type:Object,default:()=>Q},variants:{type:Object,default:()=>ee},variant:{type:String,required:!1,default:""}},computed:{datepickerStyle(){let e=X(this.variant,this.variantsTheme);return this.invalid&&(e=X("invalid",this.variantsTheme)),this.disabled&&(e=X("disabled",this.variantsTheme)),{...this.classesTheme,...e}},hasIconSlot(){return!!this.$slots.icon},classesTheme(){return this.$theme&&this.$theme.SwDatePicker?{...this.classes,...this.$theme.SwDatePicker.classes}:this.classes},variantsTheme(){return this.$theme&&this.$theme.SwDatePicker?{...this.variants,...this.$theme.SwDatePicker.variants}:this.variants}}};const ne=(0,f.Z)(te,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.datepickerStyle.container},[e.calendarButton&&!e.hasIconSlot?n("svg",{class:e.datepickerStyle.icon,attrs:{viewBox:"0 0 20 20",fill:"currentColor"},on:{click:function(t){return e.$refs.BaseDatepicker.fp.open()}}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z","clip-rule":"evenodd"}})]):e._e(),e._v(" "),e.calendarButton&&e.hasIconSlot?e._t("icon"):e._e(),e._v(" "),n("flatpickr",e._g(e._b({ref:"BaseDatepicker",class:e.datepickerStyle.datepicker,attrs:{disabled:e.disabled}},"flatpickr",e.$attrs,!1),e.$listeners))],2)}),[],!1,null,null,null).exports;var re=n(381),ae=n.n(re);function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const se={components:{SwDatePicker:ne},props:{placeholder:{type:String,default:null},invalid:{type:Boolean,default:!1},enableTime:{type:Boolean,default:!1},time_24hr:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:{type:String,default:null},value:{type:[String,Date],default:function(){return ae()(new Date)}},tabindex:{type:Number,default:null}},data:function(){return{date:null,config:{altInput:!0,enableTime:this.enableTime,time_24hr:this.time_24hr}}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,l.Se)("company",{carbonFormat:"getCarbonDateFormat",momentFormat:"getMomentDateFormat"})),watch:{enableTime:function(e){this.$set(this.config,"enableTime",this.enableTime)},carbonFormat:function(){this.enableTime?this.$set(this.config,"altFormat",this.carbonFormat?"".concat(this.carbonFormat," H:i "):"d M Y H:i"):this.$set(this.config,"altFormat",this.carbonFormat?this.carbonFormat:"d M Y")}},mounted:function(){if(this.$set(this.config,"enableTime",this.enableTime),this.enableTime?this.$set(this.config,"altFormat",this.carbonFormat?"".concat(this.carbonFormat," H:i "):"d M Y H:i"):this.$set(this.config,"altFormat",this.carbonFormat?this.carbonFormat:"d M Y"),this.value&&!this.enableTime)return this.date=ae()(new Date(this.value),"YYYY-MM-DD").format("YYYY-MM-DD"),!0;this.value&&(this.date=ae()(new Date(this.value),"YYYY-MM-DD").format("YYYY-MM-DD HH:mm:SS"))},methods:{onDateChange:function(e){this.$emit("input",e)}}};var le=n(2130),ce={insert:"head",singleton:!1};j()(le.Z,ce);le.Z.locals;const ue=(0,f.Z)(se,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("sw-date-picker",{ref:"BaseDatepicker",attrs:{config:e.config,placeholder:e.placeholder,disabled:e.disabled,invalid:e.invalid,name:e.name,tabindex:e.tabindex},on:{input:e.onDateChange},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}})],1)}),[],!1,null,null,null).exports;const de={components:{SwDatePicker:ne},props:{invalid:{type:Boolean,default:!1,require:!1},defaultTime:{type:String,default:null,require:!1},hideClearButton:{type:String,default:null,require:!1},value:{type:[String,Object],default:""},placeholder:{type:String,default:"HH:mm:ss"},tabindex:{type:Number,default:null},disabled:{type:Boolean,default:!1},name:{type:String,default:null}},data:function(){return{time:this.value,config:{enableTime:!0,noCalendar:!0,dateFormat:"H:i",time_24hr:!0}}},watch:{value:function(){this.time=this.value}},methods:{onDateChange:function(e){this.$emit("input",e),this.$emit("change",e)}}};const pe=(0,f.Z)(de,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("sw-date-picker",{ref:"BaseDatepicker",attrs:{config:e.config,placeholder:e.placeholder,disabled:e.disabled,invalid:e.invalid,name:e.name,tabindex:e.tabindex},on:{input:e.onDateChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})}),[],!1,null,null,null).exports;const me=(0,f.Z)({},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("main",{staticClass:"flex flex-col flex-1 p-8 overflow-y-auto border-b border-gray-300 border-solid"},[e._t("default")],2)}),[],!1,null,null,null).exports;var fe=n(3397),he=n(6486),_e=n.n(he);function ve(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ge(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ve(i,r,a,o,s,"next",e)}function s(e){ve(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){we(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xe={components:{SearchIcon:v.W1M,LoadingIcon:fe.Z},data:function(){return{isShow:!1,isLoading:!1,name:""}},computed:be({},(0,l.Se)("search",["getCustomerList","getUserList"])),created:function(){this.searchUsers()},methods:be(be({},(0,l.nv)("search",["searchUsers"])),{},{throttledMethod:_e().debounce(ge(s().mark((function e(){var t=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isLoading=!0,e.next=3,this.searchUsers({search:this.name}).then((function(){t.isShow=!0}));case 3:""===this.name&&(this.isShow=!1),this.isLoading=!1;case 5:case"end":return e.stop()}}),e,this)}))),500),initGenerator:function(e){if(e){var t=e.split("");return t[0].charAt(0).toUpperCase()+t[1].charAt(0).toUpperCase()}}})};var ke=n(7155),De={insert:"head",singleton:!1};j()(ke.Z,De);ke.Z.locals;const Me=(0,f.Z)(xe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("sw-dropdown",{attrs:{"is-show":e.isShow,variant:"search-dropdown"}},[n("sw-input",{attrs:{slot:"activator",placeholder:e.$t("global_search.search"),variant:"search-input"},on:{input:e.throttledMethod},slot:"activator",model:{value:e.name,callback:function(t){e.name=t},expression:"name"}},[n("search-icon",{staticClass:"h-5 m-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"}),e._v(" "),n("loading-icon",{directives:[{name:"show",rawName:"v-show",value:e.isLoading,expression:"isLoading"}],staticClass:"absolute right-0 h-5 m-1 animate-spin text-primary-400",attrs:{slot:"rightIcon"},slot:"rightIcon"})],1),e._v(" "),n("div",{staticClass:"w-64 h-40 overflow-y-scroll box"},[e.getCustomerList.length>0&&!e.isLoading?n("div",[n("label",{staticClass:"text-xs text-gray-400 uppercase"},[e._v("\n "+e._s(e.$t("global_search.customers"))+"\n ")]),e._v(" "),e._l(e.getCustomerList,(function(t){return n("router-link",{key:t.id,attrs:{to:"/admin/customers/"+t.id+"/view"}},[n("sw-dropdown-item",[n("span",{staticClass:"flex items-center justify-center w-8 h-8 mr-4 text-xs font-semibold bg-gray-300 rounded-full text-primary-500"},[e._v("\n "+e._s(e.initGenerator(t.name))+"\n ")]),e._v(" "),t.contact_name?n("div",{staticClass:"flex flex-col"},[n("span",{staticClass:"text-sm text-black"},[e._v(e._s(t.name))]),e._v(" "),n("span",{staticClass:"text-xs text-gray-500"},[e._v(e._s(t.contact_name))])]):n("div",{staticClass:"flex items-center"},[n("span",{staticClass:"text-sm text-black"},[e._v(e._s(t.name))])])])],1)}))],2):e._e(),e._v(" "),e.getUserList.length>0&&!e.isLoading?n("div",[n("label",{staticClass:"text-xs text-gray-400 uppercase"},[e._v(e._s(e.$t("global_search.users")))]),e._v(" "),e._l(e.getUserList,(function(t){return n("router-link",{key:t.id,attrs:{to:"/admin/users/"+t.id+"/edit"}},[n("sw-dropdown-item",[n("span",{staticClass:"flex items-center justify-center w-8 h-8 mr-4 text-xs font-semibold bg-gray-300 rounded-full text-primary-500"},[e._v("\n "+e._s(e.initGenerator(t.name))+"\n ")]),e._v(" "),n("div",{staticClass:"flex items-center"},[n("span",{staticClass:"text-sm text-black"},[e._v(e._s(t.name))])])])],1)}))],2):e._e(),e._v(" "),0!==e.getUserList.length||0!==e.getCustomerList.length||e.isLoading?e._e():n("div",[n("span",{staticClass:"flex items-center justify-center text-sm font-normal text-gray-500"},[e._v("\n "+e._s(e.$t("global_search.no_results_found"))+"\n ")])])])],1)],1)}),[],!1,null,"087248b1",null).exports;const Se={data:function(){return{toggle:!1}},methods:{checktoggle:function(){var e=this;e.toggle=!0,setTimeout((function(){e.toggle=!1}),300)}}};var Ce=n(7107),Le={insert:"head",singleton:!1};j()(Ce.Z,Le);Ce.Z.locals;const Te=(0,f.Z)(Se,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"dot-icon",on:{click:e.checktoggle}},[n("span",{staticClass:"dot dot1",class:{"move-right":e.toggle}}),e._v(" "),n("span",{staticClass:"dot dot2"}),e._v(" "),n("span",{staticClass:"dot dot3",class:{"move-left":e.toggle}})])])}),[],!1,null,null,null).exports;const Oe=(0,f.Z)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{staticClass:"svg-inline--fa fa-save fa-w-14",attrs:{width:"20",height:"15","aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"save",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},[t("path",{attrs:{fill:"currentColor",d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"}})])}),[],!1,null,null,null).exports;const Ee={classes:{baseSelectContainer:"base-select multiselect min-h-10 box-content block relative w-full text-left",activeBaseSelectContainer:"multiselect--active z-10",disabledBaseSelectContainer:"pointer-events-none opacity-50",multiSelect:"multiselect__select h-10 m-0 py-1 px-2 right-0 no-underline text-center cursor-pointer leading-5 block absolute box-border w-8",disabledMultiSelect:"bg-gray-200 text-gray-400",multiSelectTags:"multiselect__tags min-h-10 block pt-1.5 pr-10 pb-0 pl-2 rounded border border-solid text-sm ",multiSelectTagsDefaultColor:"border-gray-300 bg-white",multiSelectTagsInvalid:"border-danger bg-white",disabledMultiSelectTags:"bg-gray-200 text-gray-400",multiselectTagsWrap:"multiselect__tags-wrap inline",multiselectTag:"multiselect__tag relative inline-block pt-1 pr-6 pb-1 pl-2 rounded mr-2 text-white leading-none my-0.5 whitespace-nowrap overflow-hidden max-w-full bg-primary-500",multiselectTagIcon:"multiselect__tag-icon cursor-pointer ml-2 absolute right-0 top-0 bottom-0 font-bold w-5 text-center leading-5 transition-all ease-in-out rounded hover:bg-primary-400",multiselectStrong:"mb-2 leading-5 inline-block align-top",multiselectSpinner:"multiselect__spinner absolute w-12 h-8 bg-white block top-1/2",multiselectInput:"multiselect__input p-1 relative inline-block border-none leading-5 rounded pl-1 w-full box-border align-top text-sm outline-none",multiselectSingle:"multiselect__single relative inline-block border-none leading-5 rounded text-gray-800 w-full box-border align-top pl-1 pt-1 mb-2 text-sm",multiselectContentWrapper:"multiselect__content-wrapper z-10 absolute block bg-white w-full overflow-auto border border-solid border-gray-300 border-t-0 rounded-bl rounded-br",multiselectContent:"multiselect__content list-none inline-block p-0 m-0 min-w-full align-top",multiselectOption:"multiselect__option block p-3 no-underline leading-4 normal-case align-middle relative cursor-pointer whitespace-nowrap text-sm",multiselectElement:"multiselect__element block"}};function Ae(e){return 0!==e&&(!(!Array.isArray(e)||0!==e.length)||!e)}function je(e,t,n,r){return e.filter((e=>{return a=r(e,n),i=t,void 0===a&&(a="undefined"),null===a&&(a="null"),!1===a&&(a="false"),-1!==a.toString().toLowerCase().indexOf(i.trim());var a,i}))}function $e(e){return e.filter((e=>!e.$isLabel))}function Pe(e,t){return n=>n.reduce(((n,r)=>r[e]&&r[e].length?(n.push({$groupLabel:r[t],$isLabel:!0}),n.concat(r[e])):n),[])}const Ye=(...e)=>t=>e.reduce(((e,t)=>t(e)),t),Ne={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{initialSearch:{type:String,default:""},internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},value:{type:null,default:()=>[]},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default:(e,t)=>Ae(e)?"":t?e[t]:e},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default:()=>[]},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0]),this.initialSearch&&(this.search=this.initialSearch)},computed:{internalValue(){return this.value||0===this.value?Array.isArray(this.value)?this.value:[this.value]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();var r;return n=this.internalSearch?this.groupValues?this.filterAndFlat(n,t,this.label):je(n,t,this.label,this.customLabel):this.groupValues?Pe(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter((r=this.isSelected,(...e)=>!r(...e))):n,this.taggable&&t.length&&!this.isExistingOption(t)&&("bottom"===this.tagPosition?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map((e=>e[this.trackBy])):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map((e=>this.customLabel(e,this.label).toString().toLowerCase()))},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("input",this.multiple?[]:null))},search(){this.$emit("search-change",this.search,this.id)}},methods:{getValue(){return this.multiple?this.internalValue:0===this.internalValue.length?null:this.internalValue[0]},filterAndFlat(e,t,n){return Ye(function(e,t,n,r,a){return i=>i.map((i=>{if(!i[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const o=je(i[n],e,t,a);return o.length?{[r]:i[r],[n]:o}:[]}))}(t,n,this.groupValues,this.groupLabel,this.customLabel),Pe(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return Ye(Pe(this.groupValues,this.groupLabel),$e)(e)},updateSearch(e){this.search=e,this.$emit("value",this.search)},isExistingOption(e){return!!this.options&&this.optionKeys.indexOf(e)>-1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled:e=>!!e.$isDisabled,getOptionLabel(e){if(Ae(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;let t=this.customLabel(e,this.label);return Ae(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect)this.selectGroup(e);else if(!(-1!==this.blockKeys.indexOf(t)||this.disabled||e.$isDisabled||e.$isLabel)&&(!this.max||!this.multiple||this.internalValue.length!==this.max)&&("Tab"!==t||this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e))return void("Tab"!==t&&this.removeElement(e));this.$emit("select",e,this.id),this.multiple?this.$emit("input",this.internalValue.concat([e]),this.id):this.$emit("input",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find((t=>t[this.groupLabel]===e.$groupLabel));if(t)if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const e=this.internalValue.filter((e=>-1===t[this.groupValues].indexOf(e)));this.$emit("input",e,this.id)}else{const e=t[this.groupValues].filter((e=>!(this.isOptionDisabled(e)||this.isSelected(e))));this.$emit("select",e,this.id),this.$emit("input",this.internalValue.concat(e),this.id)}},wholeGroupSelected(e){return e[this.groupValues].every((e=>this.isSelected(e)||this.isOptionDisabled(e)))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled)return;if(e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1)return void this.deactivate();const n="object"==typeof e?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.$emit("remove",e,this.id),this.multiple){const e=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("input",e,this.id)}else this.$emit("input",null,this.id);this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){-1===this.blockKeys.indexOf("Delete")&&0===this.search.length&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&0===this.pointer&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.$nextTick((()=>this.$refs.search&&this.$refs.search.focus()))):this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search&&this.$refs.search.blur():this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if("undefined"==typeof window)return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||"below"===this.openDirection||"bottom"===this.openDirection?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},{classes:ze}=Ee,Ie={data:()=>({pointer:0,pointerDirty:!1}),props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40},classes:{type:Object,default:()=>ze}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight},classesTheme(){return this.$theme&&this.$theme.SwSelect?{...this.classes,...this.$theme.SwSelect.classes}:this.classes}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return[{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)},this.classesTheme.multiselectOption]},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--group","multiselect__option--disabled",this.classesTheme.multiselectOption];const n=this.options.find((e=>e[this.groupLabel]===t.$groupLabel));return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)},this.classesTheme.multiselectOption]:["multiselect__option--disabled",this.classesTheme.multiselectOption]},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},{classes:Fe}=Ee,He={name:"VueMultiselect",mixins:[Ne,Ie],props:{classes:{type:Object,default:()=>Fe},name:{type:String,default:""},selectLabel:{type:String,default:""},selectGroupLabel:{type:String,default:""},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},invalid:{type:Boolean,default:!1},maximumOptionsError:{type:String,default:null},listIsEmpty:{type:String,default:null},autoComplete:{type:String,default:"nope"}},computed:{classesTheme(){return this.$theme&&this.$theme.SwSelect?{...this.classes,...this.$theme.SwSelect.classes}:this.classes},isSingleLabelVisible(){return(this.singleValue||0===this.singleValue)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!(this.internalValue.length||this.searchable&&this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.value&&this.value.length?this.isOpen?{width:"100%"}:this.value?{width:"0",position:"absolute",padding:"0"}:"":""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return"above"===this.openDirection||"top"===this.openDirection||"below"!==this.openDirection&&"bottom"!==this.openDirection&&"above"===this.preferredOpenDirection},showSearchInput(){return this.searchable&&(!this.hasSingleSelectedSlot||!this.visibleSingleValue&&0!==this.visibleSingleValue||this.isOpen)},multiSelectStyle(){let e=[this.classesTheme.baseSelectContainer];return this.isOpen&&e.push(this.classesTheme.activeBaseSelectContainer),this.disabled&&e.push(this.classesTheme.disabledBaseSelectContainer),this.isAbove&&e.push("multiselect--above"),e},multiselectSelectStyle(){let e=[this.classesTheme.multiSelect];return this.disabled?e.push(this.classesTheme.disabledMultiSelect):e.push(this.classesTheme.multiSelect),e},multiSelectTagsStyle(){let e=[this.classesTheme.multiSelectTags];return this.invalid?e.push(this.classesTheme.multiSelectTagsInvalid):e.push(this.classesTheme.multiSelectTagsDefaultColor),this.disabled&&e.push(this.classesTheme.disabledMultiSelectTags),e.push(this.classesTheme.multiSelectTags),e},multiselectTagsWrapStyle(){return[this.classesTheme.multiselectTagsWrap]},multiselectTagStyle(){return[this.classesTheme.multiselectTag]},multiselectTagIconStyle(){return[this.classesTheme.multiselectTagIcon]},multiselectStrongStyle(){return[this.classesTheme.multiselectStrong]},multiselectSpinnerStyle(){return[this.classesTheme.multiselectSpinner]},multiselectInputStyle(){return[this.classesTheme.multiselectInput]},multiselectSingleStyle(){return[this.classesTheme.multiselectSingle]},multiselectContentWrapperStyle(){return[this.classesTheme.multiselectContentWrapper]},multiselectContentStyle(){return[this.classesTheme.multiselectContent]},multiselectOptionStyle(){return[this.classesTheme.multiselectOption]},multiselectElementStyle(){return[this.classesTheme.multiselectElement]}}};const Re=(0,f.Z)(He,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.multiSelectStyle,attrs:{tabindex:e.searchable?-1:e.tabindex,"aria-owns":"listbox-"+e.id,role:"combobox"},on:{focus:function(t){return e.activate()},blur:function(t){!e.searchable&&e.deactivate()},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])||t.target!==t.currentTarget?null:(t.preventDefault(),e.pointerForward())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])||t.target!==t.currentTarget?null:(t.preventDefault(),e.pointerBackward())}],keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:(t.stopPropagation(),t.target!==t.currentTarget?null:e.addPointerElement(t))},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.deactivate()}}},[e._t("caret",[n("div",{class:e.multiselectSelectStyle,on:{mousedown:function(t){return t.preventDefault(),t.stopPropagation(),e.toggle()}}},[n("span",{staticClass:"relative right-0 top-1/2",staticStyle:{color:"'#a5acc1'","margin-top":"4px","border-color":"#a5acc1 transparent transparent","border-style":"solid","border-width":"5px 5px 0",content:"''"}})])],{toggle:e.toggle}),e._v(" "),n("div",{ref:"tags",class:e.multiSelectTagsStyle},[e._t("selection",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visibleValues.length>0,expression:"visibleValues.length > 0"}],class:e.multiselectTagsWrapStyle},[e._l(e.visibleValues,(function(t,r){return[e._t("tag",[n("span",{key:r,class:e.multiselectTagStyle},[n("span",{domProps:{textContent:e._s(e.getOptionLabel(t))}}),e._v(" "),n("span",{class:e.multiselectTagIconStyle,attrs:{tabindex:"1"},on:{keypress:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:(n.preventDefault(),e.removeElement(t))},mousedown:function(n){return n.preventDefault(),e.removeElement(t)}}},[n("span",{staticClass:"multiselect__tag-icon-after"},[e._v("×")])])])],{option:t,search:e.search,remove:e.removeElement})]}))],2),e._v(" "),e.internalValue&&e.internalValue.length>e.limit?[e._t("limit",[n("strong",{class:e.multiselectStrongStyle,domProps:{textContent:e._s(e.limitText(e.internalValue.length-e.limit))}})])]:e._e()],{search:e.search,remove:e.removeElement,values:e.visibleValues,isOpen:e.isOpen}),e._v(" "),n("transition",{attrs:{name:"multiselect__loading"}},[e._t("loading",[n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],class:e.multiselectSpinnerStyle},[n("span",{staticClass:"multiselect__spinner-before"}),e._v(" "),n("span",{staticClass:"multiselect__spinner-after"})])])])],2),e._v(" "),n("input",{ref:"search",class:e.multiselectInputStyle,style:e.inputStyle,attrs:{id:e.id,name:e.name,placeholder:e.placeholder,disabled:e.disabled,tabindex:e.tabindex,"aria-controls":"listbox-"+e.id,type:"text",autocomplete:e.autoComplete,spellcheck:"false"},domProps:{value:e.search},on:{input:function(t){return e.updateSearch(t.target.value)},focus:function(t){return t.preventDefault(),e.activate()},blur:function(t){return t.preventDefault(),e.deactivate()},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.deactivate()},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.pointerForward())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.pointerBackward())},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:(t.stopPropagation(),e.removeLastElement())}],keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),t.target!==t.currentTarget?null:e.addPointerElement(t))}}}),e._v(" "),e.isSingleLabelVisible?n("span",{class:e.multiselectSingleStyle,on:{mousedown:function(t){return t.preventDefault(),e.toggle(t)}}},[e._t("singleLabel",[[e._v(e._s(e.currentOptionLabel))]],{option:e.singleValue})],2):e._e()],2),e._v(" "),n("transition",{attrs:{name:"multiselect"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen,expression:"isOpen"}],ref:"list",class:e.multiselectContentWrapperStyle,style:{maxHeight:e.optimizedHeight+"px"},attrs:{tabindex:"-1"},on:{focus:e.activate,mousedown:function(e){e.preventDefault()}}},[n("ul",{class:e.multiselectContentStyle,style:e.contentStyle,attrs:{id:"listbox-"+e.id,role:"listbox"}},[e._t("beforeList"),e._v(" "),e.multiple&&e.max===e.internalValue.length?n("li",[n("span",{class:e.multiselectOptionStyle},[e._t("maxElements",[e._v("\n "+e._s(e.maximumOptionsError)+"\n ")])],2)]):e._e(),e._v(" "),!e.max||e.internalValue.length<e.max?e._l(e.filteredOptions,(function(t,r){return n("li",{key:r,class:e.multiselectElementStyle,attrs:{id:e.id+"-"+r,role:t&&(t.$isLabel||t.$isDisabled)?null:"option"}},[t&&(t.$isLabel||t.$isDisabled)?e._e():n("span",{class:e.optionHighlight(r,t),attrs:{"data-select":t&&t.isTag?e.tagPlaceholder:e.selectLabelText,"data-selected":e.selectedLabelText,"data-deselect":e.deselectLabelText},on:{click:function(n){return n.stopPropagation(),e.select(t)},mouseenter:function(t){return t.target!==t.currentTarget?null:e.pointerSet(r)}}},[e._t("option",[n("span",[e._v(e._s(e.getOptionLabel(t)))])],{option:t,search:e.search})],2),e._v(" "),t&&(t.$isLabel||t.$isDisabled)?n("span",{class:e.groupHighlight(r,t),attrs:{"data-select":e.groupSelect&&e.selectGroupLabelText,"data-deselect":e.groupSelect&&e.deselectGroupLabelText},on:{mouseenter:function(t){if(t.target!==t.currentTarget)return null;e.groupSelect&&e.pointerSet(r)},mousedown:function(n){return n.preventDefault(),e.selectGroup(t)}}},[e._t("option",[n("span",[e._v(e._s(e.getOptionLabel(t)))])],{option:t,search:e.search})],2):e._e()])})):e._e(),e._v(" "),!e.showNoOptions||0!==e.options.length||e.search||e.loading?e._e():n("li",[n("span",{class:e.multiselectOptionStyle},[e._t("noOptions",[e._v(e._s(e.listIsEmpty))])],2)])],2),e._v(" "),e._t("afterList")],2)])],2)}),[],!1,null,null,null).exports;r.default.component("base-modal",a.Z),r.default.component("global-search",Me),r.default.component("base-page",me),r.default.component("base-date-picker",ue),r.default.component("base-loader",i.Z),r.default.component("sw-select",Re),r.default.component("base-customer-select",h),r.default.component("base-custom-input",M),r.default.component("customer-select-popup",Y),r.default.component("tax-select-popup",H),r.default.component("note-select-popup",U),r.default.component("base-time-picker",pe),r.default.component("dot-icon",Te),r.default.component("save-icon",Oe)},7039:(e,t,n)=>{"use strict";n.r(t);var r=n(538);r.default.directive("click-outside",{bind:function(e,t,n){e.event=function(r){e===r.target||e.contains(r.target)||n.context[t.expression](r)},document.body.addEventListener("click",e.event)},unbind:function(e){document.body.removeEventListener("click",e.event)}}),r.default.directive("autoresize",{inserted:function(e){e.style.height=e.scrollHeight+"px",e.style.overflow&&e.style.overflow.y&&(e.style.overflow.y="hidden"),e.style.resize="none",e.addEventListener("input",(function(){this.style.height="auto",this.style.height=this.scrollHeight+"px",this.scrollTop=this.scrollHeight,window.scrollTo(window.scrollLeft,this.scrollTop+this.scrollHeight)}),!1)}})},254:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Q});var r=n(7757),a=n.n(r),i=n(379),o=(i.required,i.minLength,i.numeric,i.minValue,i.maxLength,i.requiredIf);const s={props:{type:{type:String,default:"text",required:!1},field:{type:Object,default:null,required:!0},invalidFields:{type:Array,default:function(){return[]}},tabindex:{type:Number,default:null}},data:function(){return{inputValue:null,placeholder:"",invalidFieldIds:[]}},validations:{inputValue:{required:o("isRequired")}},computed:{isRequired:function(){return!(!this.field||!this.field.is_required)},isInvalid:function(){return!!(this.invalidFieldIds.indexOf(this.field.cfid)>=0||this.$v.inputValue.$error&&!this.$v.inputValue.required)}},watch:{field:{handler:"handleData",deep:!0},invalidFields:{handler:"setInvalidFieldIds",deep:!0}},mounted:function(){this.inputValue=this.field&&this.field.defaultAnswer,this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:""},methods:{handleData:function(){this.inputValue=this.field&&this.field.defaultAnswer,this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:""},setInvalidFieldIds:function(){this.invalidFieldIds=this.invalidFields.map((function(e){return e.id}))},handleInput:function(){this.$emit("update",{field:this.field,value:this.inputValue}),this.$v.inputValue.$touch()},handleChange:function(){this.$v.inputValue.$touch(),this.$emit("update",{field:this.field,value:this.inputValue})}}};var l=n(1900);const c=(0,l.Z)(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("sw-input",{attrs:{type:e.type,invalid:e.isInvalid,placeholder:e.placeholder,tabindex:e.tabindex},on:{input:e.handleInput,change:e.handleChange},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),e._v(" "),e.isInvalid?n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]):e._e()],1)}),[],!1,null,null,null).exports;const u={props:{type:{type:String,default:"text",required:!1},field:{type:Object,default:null,required:!0}},data:function(){return{switchData:!1}},mounted:function(){this.switchData=!(!this.field||!this.field.defaultAnswer)},methods:{onChange:function(){this.$emit("update",{field:this.field,value:this.switchData})}}};const d=(0,l.Z)(u,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("sw-switch",{staticClass:"btn-switch",staticStyle:{"margin-top":"-15px"},on:{change:e.onChange},model:{value:e.switchData,callback:function(t){e.switchData=t},expression:"switchData"}})}),[],!1,null,null,null).exports;var p=n(379),m=(p.required,p.requiredIf);const f={props:{field:{type:Object,default:null,required:!0},invalidFields:{type:Array,default:function(){return[]}},tabindex:{type:Number,default:null}},data:function(){return{time:null,defaultValue:"00:00:00",placeholder:"",invalidFieldIds:[]}},validations:{time:{required:m("isRequired")}},computed:{isRequired:function(){return!(!this.field||!this.field.is_required)},isInvalid:function(){return!!(this.invalidFieldIds.indexOf(this.field.cfid)>=0||this.$v.inputValue.$error&&!this.$v.inputValue.required)}},watch:{field:{handler:"handleData",deep:!0},invalidFields:{handler:"setInvalidFieldIds",deep:!0}},mounted:function(){this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:"",this.handleData()},methods:{handleData:function(){this.defaultValue=this.field&&this.field.defaultAnswer?this.field.defaultAnswer:"00-00-00",this.time=this.field&&this.field.defaultAnswer?this.field.defaultAnswer:"00-00-00"},setInvalidFieldIds:function(){this.invalidFieldIds=this.invalidFields.map((function(e){return e.id}))},onTimeSelect:function(){this.$v.time.$touch(),this.$emit("update",{field:this.field,value:this.time})}}};const h=(0,l.Z)(f,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("base-time-picker",{attrs:{"set-value":e.defaultValue,invalid:e.$v.time.$error,placeholder:e.placeholder,tabindex:e.tabindex,"hide-clear-button":""},on:{input:e.onTimeSelect},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}}),e._v(" "),e.$v.time.$error?n("div",[e.$v.time.required?e._e():n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")])]):e._e()],1)}),[],!1,null,null,null).exports;var v=n(379),g=(v.required,v.requiredIf);const y={props:{field:{type:Object,default:null,require:!0},invalidFields:{type:Array,default:function(){return[]}},tabindex:{type:Number,default:null}},data:function(){return{selectedValue:null,options:[],placeholder:"",invalidFieldIds:[]}},validations:{selectedValue:{required:g("isRequired")}},computed:{isRequired:function(){return!(!this.field||!this.field.is_required)},isInvalid:function(){return!!(this.invalidFieldIds.indexOf(this.field.cfid)>=0||this.$v.selectedValue.$error&&!this.$v.selectedValue.required)}},watch:{invalidFields:{handler:"setInvalidFieldIds",deep:!0}},mounted:function(){this.options=this.field&&this.field.options?this.field.options:[],this.selectedValue=this.field&&this.field.defaultAnswer,this.placeholder=this.field&&this.field.placeholder},methods:{setInvalidFieldIds:function(){this.invalidFieldIds=this.invalidFields.map((function(e){return e.id}))},onSelectedValueChanged:function(e){this.$v.selectedValue.$touch(),this.$emit("update",{field:this.field,value:e})}}};const b=(0,l.Z)(y,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("sw-select",{attrs:{options:e.options,searchable:!0,"show-labels":!1,"allow-empty":!0,invalid:e.isInvalid,placeholder:e.placeholder,tabindex:e.tabindex},on:{select:e.onSelectedValueChanged},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}}),e._v(" "),e.isInvalid?n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]):e._e()],1)}),[],!1,null,null,null).exports;var w=n(381),x=n.n(w),k=n(379),D=(k.required,k.requiredIf);const M={props:{field:{type:Object,default:null,required:!0},invalidFields:{type:Array,default:function(){return[]}}},data:function(){return{dateTime:null,placeholder:"",defaultValue:null,invalidFieldIds:[]}},validations:{dateTime:{required:D("isRequired")}},computed:{isRequired:function(){return!(!this.field||!this.field.is_required)},isInvalid:function(){return!!(this.invalidFieldIds.indexOf(this.field.cfid)>=0||this.$v.dateTime.$error&&!this.$v.dateTime.required)}},watch:{invalidFields:{handler:"setInvalidFieldIds",deep:!0}},mounted:function(){this.dateTime=this.field&&this.field.defaultAnswer?x()(this.field.defaultAnswer).format("YYYY-MM-DD H:m"):x()().format("YYYY-MM-DD H:m"),this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:""},methods:{setInvalidFieldIds:function(){this.invalidFieldIds=this.invalidFields.map((function(e){return e.id}))},onChanged:function(){this.$v.dateTime.$touch(),this.$emit("update",{field:this.field,value:this.dateTime})}}};const S=(0,l.Z)(M,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("base-date-picker",{attrs:{invalid:e.isInvalid,"enable-time":!0,placeholder:e.placeholder},on:{input:e.onChanged},model:{value:e.dateTime,callback:function(t){e.dateTime=t},expression:"dateTime"}}),e._v(" "),e.isInvalid?n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]):e._e()],1)}),[],!1,null,null,null).exports;var C=n(379),L=(C.required,C.requiredIf);const T={props:{field:{type:Object,default:null,required:!0},isEdit:{type:Boolean,default:!1},invalidFields:{type:Array,default:function(){return[]}}},data:function(){return{date:null,placeholder:"",invalidFieldIds:[]}},validations:{date:{required:L("isRequired")}},computed:{isRequired:function(){return!(!this.field||!this.field.is_required)},isInvalid:function(){return!!(this.invalidFieldIds.indexOf(this.field.cfid)>=0||this.$v.date.$error&&!this.$v.date.required)}},watch:{invalidFields:{handler:"setInvalidFieldIds",deep:!0},field:{handler:"handleData",deep:!0}},mounted:function(){this.date=this.field&&this.field.defaultAnswer?this.field.defaultAnswer:new Date,this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:""},methods:{handleData:function(){this.date=this.field&&this.field.defaultAnswer?this.field.defaultAnswer:new Date,this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:""},onDateChanged:function(e){this.$v.date.$touch(),this.$emit("update",{field:this.field,value:x()(e).format("YYYY-MM-DD")})},setInvalidFieldIds:function(){this.invalidFieldIds=this.invalidFields.map((function(e){return e.id}))}}};const O=(0,l.Z)(T,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("base-date-picker",{attrs:{"calendar-button":!0,invalid:e.isInvalid,placeholder:e.placeholder,"calendar-button-icon":"calendar"},on:{input:e.onDateChanged},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}}),e._v(" "),e.isInvalid?n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]):e._e()],1)}),[],!1,null,null,null).exports;var E=n(379),A=(E.required,E.minLength,E.numeric,E.minValue,E.maxLength,E.requiredIf);const j={props:{field:{type:Object,default:null,required:!0},invalidFields:{type:Array,default:function(){return[]}},tabindex:{type:Number,default:null}},data:function(){return{text:null,placeholder:"",invalidFieldIds:[]}},validations:{text:{required:A("isRequired")}},computed:{isRequired:function(){return!(!this.field||!this.field.is_required)},isInvalid:function(){return!!(this.invalidFieldIds.indexOf(this.field.cfid)>=0||this.$v.text.$error&&!this.$v.text.required)}},watch:{invalidFields:{handler:"setInvalidFieldIds",deep:!0}},mounted:function(){this.text=this.field&&this.field.defaultAnswer,this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:""},methods:{setInvalidFieldIds:function(){this.invalidFieldIds=this.invalidFields.map((function(e){return e.id}))},handleInput:function(){this.$v.text.$touch(),this.$emit("update",{field:this.field,value:this.text})},handleChange:function(){this.$v.text.$touch(),this.$emit("update",{field:this.field,value:this.text})}}};const $=(0,l.Z)(j,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("sw-textarea",{attrs:{invalid:e.isInvalid,placeholder:e.placeholder,tabindex:e.tabindex},on:{input:e.handleInput,change:e.handleChange},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}}),e._v(" "),e.isInvalid?n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]):e._e()],1)}),[],!1,null,null,null).exports;var P=n(379),Y=(P.required,P.url),N=P.requiredIf;const z={props:{type:{type:String,default:"text",required:!1},field:{type:Object,default:null,required:!0},invalidFields:{type:Array,default:function(){return[]}},tabindex:{type:Number,default:null}},data:function(){return{inputValue:null,placeholder:"",invalidFieldIds:[]}},validations:{inputValue:{url:Y,required:N("isRequired")}},computed:{isRequired:function(){return!(!this.field||!this.field.is_required)},isInvalid:function(){return!!(this.invalidFieldIds.indexOf(this.field.cfid)>=0||this.$v.inputValue.$error&&!this.$v.inputValue.required)}},watch:{invalidFields:{handler:"setInvalidFieldIds",deep:!0}},mounted:function(){this.inputValue=this.field&&this.field.defaultAnswer,this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:""},methods:{setInvalidFieldIds:function(){this.invalidFieldIds=this.invalidFields.map((function(e){return e.id}))},handleInput:function(){this.$v.inputValue.$touch(),this.$emit("update",{field:this.field,value:this.inputValue})},handleChange:function(){this.$v.inputValue.$touch(),this.$emit("update",{field:this.field,value:this.inputValue})}}};const I=(0,l.Z)(z,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("sw-input",{attrs:{invalid:e.$v.inputValue.$error||e.isInvalid,placeholder:e.placeholder,tabindex:e.tabindex,type:"url"},on:{input:e.handleInput,change:e.handleChange},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),e._v(" "),e.$v.inputValue.$error||e.isInvalid?n("div",[e.$v.inputValue.url?e._e():n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.invalid_url"))+"\n ")]),e._v(" "),e.isInvalid?n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]):e._e()]):e._e()],1)}),[],!1,null,null,null).exports;var F=n(379),H=(F.required,F.minLength,F.numeric,F.minValue,F.maxLength,F.requiredIf);const R={props:{type:{type:String,default:"text",required:!1},field:{type:Object,default:null,required:!0},invalidFields:{type:Array,default:function(){return[]}},tabindex:{type:Number,default:null}},data:function(){return{inputValue:null,placeholder:"",invalidFieldIds:[]}},validations:{inputValue:{phone:function(e){return/^\+?[0-9]+$/.test(e)},required:H("isRequired")}},computed:{isRequired:function(){return!(!this.field||!this.field.is_required)},isInvalid:function(){return!!(this.invalidFieldIds.indexOf(this.field.cfid)>=0||this.$v.inputValue.$error&&!this.$v.inputValue.required)}},watch:{invalidFields:{handler:"setInvalidFieldIds",deep:!0}},mounted:function(){this.inputValue=this.field&&this.field.defaultAnswer,this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:""},methods:{handleInput:function(){this.$v.inputValue.$touch(),this.$emit("update",{field:this.field,value:this.inputValue})},handleChange:function(){this.$v.inputValue.$touch(),this.$emit("update",{field:this.field,value:this.inputValue})},setInvalidFieldIds:function(){this.invalidFieldIds=this.invalidFields.map((function(e){return e.id}))}}};const B=(0,l.Z)(R,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("sw-input",{attrs:{invalid:e.$v.inputValue.$error||e.isInvalid,placeholder:e.placeholder,tabindex:e.tabindex,type:"text"},on:{input:e.handleInput,change:e.handleChange},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),e._v(" "),e.$v.inputValue.$error||e.isInvalid?n("div",[e.isInvalid||e.$v.inputValue.phone?e._e():n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.invalid_phone"))+"\n ")]),e._v(" "),e.isInvalid?n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]):e._e()]):e._e()],1)}),[],!1,null,null,null).exports;var q=n(379),V=(q.required,q.numeric),W=q.requiredIf;const U={props:{type:{type:String,default:"text",required:!1},field:{type:Object,default:null,required:!0},invalidFields:{type:Array,default:function(){return[]}},tabindex:{type:Number,default:null}},data:function(){return{inputValue:null,placeholder:"",invalidFieldIds:[]}},validations:{inputValue:{required:W("isRequired"),numeric:V}},computed:{isRequired:function(){return!(!this.field||!this.field.is_required)},isInvalid:function(){return!!(this.invalidFieldIds.indexOf(this.field.cfid)>=0||this.$v.inputValue.$error&&!this.$v.inputValue.required)}},watch:{field:{handler:"handleData",deep:!0},invalidFields:{handler:"setInvalidFieldIds",deep:!0}},mounted:function(){this.inputValue=this.field&&this.field.defaultAnswer,this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:""},methods:{setInvalidFieldIds:function(){this.invalidFieldIds=this.invalidFields.map((function(e){return e.id}))},handleData:function(){this.inputValue=this.field&&this.field.defaultAnswer,this.placeholder=this.field&&this.field.placeholder?this.field.placeholder:""},handleInput:function(){this.$v.inputValue.$touch(),this.$emit("update",{field:this.field,value:this.inputValue})},handleChange:function(){this.$v.inputValue.$touch(),this.$emit("update",{field:this.field,value:this.inputValue})}}};function K(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Z(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){K(i,r,a,o,s,"next",e)}function s(e){K(i,r,a,o,s,"throw",e)}o(void 0)}))}}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){X(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Q={components:{InputField:c,SwitchField:d,TimeField:h,DropdownField:b,DateTimeField:S,DateField:O,TextAreaField:$,UrlField:I,PhoneField:B,NumberField:(0,l.Z)(U,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("sw-input",{attrs:{invalid:e.$v.inputValue.$error||e.isInvalid,placeholder:e.placeholder,tabindex:e.tabindex,type:"number"},on:{input:e.handleInput,change:e.handleChange},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),e._v(" "),e.$v.inputValue.$error||e.isInvalid?n("div",[e.isInvalid?n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]):e._e(),e._v(" "),!e.isInvalid&&e.$v.inputValue.numeric?n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]):e._e()]):e._e()],1)}),[],!1,null,null,null).exports},data:function(){return{formData:{customFields:[]},invalidFields:[],customFields:[]}},methods:J(J({},(0,n(629).nv)("customFields",["fetchCustomFields"])),{},{setInitialCustomFields:function(){var e=arguments,t=this;return Z(a().mark((function n(){var r,i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>0&&void 0!==e[0]?e[0]:null,n.next=3,t.fetchCustomFields({type:r,limit:"all"});case 3:i=n.sent,t.customFields=i.data.customFields.data.map((function(e){return J(J({},e),{},{cfid:e.id})})),t.setRemainingCustomFieldsValue();case 6:case"end":return n.stop()}}),n)})))()},setEditCustomFields:function(e,t){var n=this;this.customFields=e.map((function(e){return e.label=e.custom_field.label,e.cfid=e.custom_field.id,e.options=e.custom_field.options,e.placeholder=e.custom_field.placeholder,e.is_required=e.custom_field.is_required,e.order=e.custom_field.order,e}));var r=t.map((function(e){return e.id})),a=e.map((function(e){return e.custom_field_id}));this.$utils.arrayDifference(r,a).forEach((function(e){var r=t.find((function(t){return t.id==e}));n.customFields.push(J(J({},r),{},{cfid:r.id}))})),this.setRemainingCustomFieldsValue(!0)},setCustomFieldValue:function(e){var t=this.formData.customFields.findIndex((function(t){return t.id==e.field.cfid})),n=this.invalidFields.findIndex((function(t){return t.id==e.field.cfid}));return n>=0&&e.value&&this.invalidFields.splice(n,1),t>=0?(this.formData.customFields[t].value=e.value,!0):(this.formData.customFields.push({id:e.field.cfid,value:e.value}),!0)},setRemainingCustomFieldsValue:function(){var e=this,t=this.formData.customFields.map((function(e){return e.id})),n=this.customFields.map((function(e){return e.cfid}));this.$utils.arrayDifference(n,t).forEach((function(t){var n=e.customFields.find((function(e){return e.cfid==t}));e.formData.customFields.push({id:n.cfid,isRequired:n.is_required,value:n.defaultAnswer})})),this.customFields=_.sortBy(this.customFields,(function(e){return e.order}))},getInvalidFields:function(){return this.formData.customFields.filter((function(e){return e.isRequired&&(null==e.value||null==e.value||""==e.value)}))},touchCustomField:function(){var e=this;return new Promise((function(t,n){try{e.getInvalidFields()<=0&&t({error:!1}),e.invalidFields=e.getInvalidFields(),t({error:!0})}catch(e){n(e)}}))}})}},7904:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Fd});var r=n(538),a=n(8345),i=n(629),o=n(3032),s=n(7751);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={components:{PlusIcon:o.pOD,DocumentTextIcon:o.YHR,DocumentIcon:o.$lS,UserIcon:o.tBG,CogIcon:o.IEm,LogoutIcon:s.R0g},computed:c(c(c({},(0,i.Se)("user",["currentUser"])),(0,i.Se)(["isSidebarOpen"])),{},{profilePicture:function(){return this.currentUser&&null!==this.currentUser.avatar&&0!==this.currentUser.avatar?this.currentUser.avatar:"/images/default-avatar.jpg"}}),created:function(){this.fetchCurrentUser()},methods:c(c(c(c({},(0,i.nv)("user",["fetchCurrentUser"])),(0,i.nv)("auth",["logout"])),(0,i.nv)("modal",["openModal"])),(0,i.nv)(["toggleSidebar"]))};var p=n(3379),m=n.n(p),f=n(2921),h={insert:"head",singleton:!1};m()(f.Z,h);f.Z.locals;var _=n(1900);const v=(0,_.Z)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",{staticClass:"fixed top-0 left-0 z-40 flex items-center justify-between w-full px-4 py-3 md:h-16 md:px-8 bg-gradient-to-r from-primary-500 to-primary-400"},[e._m(0),e._v(" "),n("ul",{staticClass:"float-right h-8 m-0 list-none md:h-9"},[n("global-search",{staticClass:"hidden float-left mr-2 md:block"}),e._v(" "),n("a",{staticClass:"flex float-left p-1 ml-3 overflow-visible text-sm text-black ease-linear bg-white border-0 rounded cursor-pointer md:hidden md:ml-0 hamburger hamburger--arrowturn",class:{"is-active":e.isSidebarOpen},attrs:{href:"#"},on:{click:e.toggleSidebar}},[e._m(1)]),e._v(" "),n("li",{staticClass:"relative hidden float-left m-0 md:block"},[n("sw-dropdown",[n("a",{staticClass:"inline-block text-sm text-black bg-white rounded-sm",staticStyle:{padding:"6px"},attrs:{slot:"activator",href:"#"},slot:"activator"},[n("plus-icon",{staticClass:"w-6 h-6"})],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/invoices/create"}},[n("document-text-icon",{staticClass:"h-5 mr-2 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.new_invoice"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/estimates/create"}},[n("document-icon",{staticClass:"h-5 mr-2 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.new_estimate"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/customers/create"}},[n("user-icon",{staticClass:"h-5 mr-2 text-gray-600"}),e._v("\n "+e._s(e.$t("customers.new_customer"))+"\n ")],1)],1)],1),e._v(" "),n("li",{staticClass:"relative block float-left ml-2"},[n("sw-dropdown",[n("a",{staticClass:"inline-block text-sm text-black bg-white rounded-sm avatar",attrs:{slot:"activator",href:"#","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},slot:"activator"},[n("img",{staticClass:"w-8 h-8 rounded-sm md:h-9 md:w-9",attrs:{src:e.profilePicture,alt:"Avatar"}})]),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/settings"}},[n("cog-icon",{staticClass:"w-4 h-4 mr-2 text-gray-600"}),e._v("\n "+e._s(e.$t("navigation.settings"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.logout}},[n("logout-icon",{staticClass:"w-4 h-4 mr-2 text-gray-600"}),e._v("\n "+e._s(e.$t("navigation.logout"))+"\n ")],1)],1)],1)],1)])}),[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",{staticClass:"float-none text-lg not-italic font-black tracking-wider text-white brand-main md:float-left font-base",attrs:{href:"/admin/dashboard"}},[n("img",{staticClass:"hidden h-6 md:block",attrs:{id:"logo-white",src:"/assets/img/logo-white.png",alt:"Crater Logo"}}),e._v(" "),n("img",{staticClass:"block h-8 md:hidden",attrs:{id:"logo-mobile",src:"/assets/img/crater-white-small.png",alt:"Crater Logo"}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"relative inline-block w-6 h-6"},[t("div",{staticClass:"block hamburger-inner top-1/2"})])}],!1,null,null,null).exports;const g=(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",{staticClass:"absolute bottom-0 flex items-center justify-end w-full h-10 py-2 pr-8 text-sm font-normal text-gray-700 bg-white"},[e._v("\n "+e._s(e.$t("general.powered_by"))+"\n\n "),n("a",{staticClass:"pl-1 font-normal text-gray-900",attrs:{href:"http://bytefury.com/",target:"_blank"}},[e._v("\n "+e._s(e.$t("general.bytefury"))+"\n ")])])}),[],!1,null,null,null).exports;function y(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return b(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 b(e,t)}(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 b(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 w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const D={components:{HomeIcon:s.tvw,UserIcon:s.tBG,StarIcon:s.r7p,DocumentIcon:s.$lS,DocumentTextIcon:s.YHR,CreditCardIcon:s.ciH,CalculatorIcon:s.Xki,ChartBarIcon:s.DEq,CogIcon:s.IEm,UsersIcon:s.oyc},computed:x(x(x({},(0,i.Se)(["isSidebarOpen"])),(0,i.Se)("user",["currentUser"])),{},{menuItems:function(){var e=[[{title:"navigation.dashboard",icon:"home-icon",route:"/admin/dashboard"},{title:"navigation.customers",icon:"user-icon",route:"/admin/customers"},{title:"navigation.items",icon:"star-icon",route:"/admin/items"}],[{title:"navigation.estimates",icon:"document-icon",route:"/admin/estimates"},{title:"navigation.invoices",icon:"document-text-icon",route:"/admin/invoices"},{title:"navigation.payments",icon:"credit-card-icon",route:"/admin/payments"},{title:"navigation.expenses",icon:"calculator-icon",route:"/admin/expenses"}],[{title:"navigation.reports",icon:"chart-bar-icon",route:"/admin/reports"},{title:"navigation.settings",icon:"cog-icon",route:"/admin/settings"}]];return"super admin"==this.currentUser.role&&(e[2]=[{title:"navigation.users",icon:"users-icon",route:"/admin/users"}].concat(y(e[2]))),e}}),methods:x(x({},(0,i.nv)(["toggleSidebar"])),{},{hasActiveUrl:function(e){return this.isActive=!0,this.$route.path.indexOf(e)>-1},hasStaticUrl:function(e){return this.$route.path.indexOf(e)}})};function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const L={components:{SiteHeader:v,SiteSidebar:(0,_.Z)(D,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("sw-transition",{attrs:{type:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isSidebarOpen,expression:"isSidebarOpen"}],staticClass:"fixed top-0 left-0 z-20 w-full h-full",staticStyle:{background:"rgba(48, 75, 88, 0.5)"},on:{click:function(t){return t.preventDefault(),e.toggleSidebar(t)}}})]),e._v(" "),n("div",{staticClass:"hidden w-56 h-screen pb-32 overflow-y-auto bg-white border-r border-gray-200 border-solid xl:w-64 sw-scroll md:block"},e._l(e.menuItems,(function(t,r){return n("sw-list",{key:r,attrs:{variant:"sidebar"}},e._l(t,(function(t,r){return n("sw-list-item",{key:r,attrs:{title:e.$t(t.title),active:e.hasActiveUrl(t.route),to:t.route,"tag-name":"router-link"}},[n(t.icon,{tag:"component",staticClass:"h-5",attrs:{slot:"icon"},slot:"icon"})],1)})),1)})),1),e._v(" "),n("transition",{attrs:{"enter-class":"-translate-x-full","enter-active-class":"transition duration-300 ease-in-out transform","enter-to-class":"translate-x-0","leave-active-class":"transition duration-300 ease-in-out transform","leave-class":"translate-x-0","leave-to-class":"-translate-x-full"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isSidebarOpen,expression:"isSidebarOpen"}],staticClass:"fixed top-0 z-30 w-64 h-screen pt-16 pb-32 overflow-y-auto bg-white border-r border-gray-200 border-solid sw-scroll md:hidden"},e._l(e.menuItems,(function(t,r){return n("sw-list",{key:r,attrs:{variant:"sidebar"}},e._l(t,(function(t,r){return n("sw-list-item",{key:r,attrs:{title:e.$t(t.title),active:e.hasActiveUrl(t.route),to:t.route,"tag-name":"router-link"},nativeOn:{click:function(t){return e.toggleSidebar(t)}}},[n(t.icon,{tag:"component",staticClass:"h-5",attrs:{slot:"icon"},slot:"icon"})],1)})),1)})),1)])],1)}),[],!1,null,null,null).exports,SiteFooter:g,BaseModal:n(7557).Z,RefreshIcon:o.DuK},computed:S(S(S({},(0,i.Se)(["isAppLoaded"])),(0,i.Se)("company",{selectedCompany:"getSelectedCompany"})),{},{isShow:function(){return!0}}),created:function(){var e=this;this.bootstrap().then((function(){e.setInitialCompany()}))},methods:S(S(S({},(0,i.nv)(["bootstrap"])),(0,i.nv)("company",["setSelectedCompany"])),{},{setInitialCompany:function(){this.setSelectedCompany(this.selectedCompany)}})};const T=(0,_.Z)(L,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isAppLoaded?n("div",{staticClass:"h-full"},[n("base-modal"),e._v(" "),n("site-header"),e._v(" "),n("div",{staticClass:"flex h-screen pt-16 pb-10 overflow-hidden"},[n("site-sidebar"),e._v(" "),n("router-view")],1),e._v(" "),n("site-footer")],1):n("div",{staticClass:"h-full"},[n("refresh-icon",{staticClass:"h-6 animate-spin"})],1)}),[],!1,null,null,null).exports;var O=n(964),E={insert:"head",singleton:!1};m()(O.Z,E);O.Z.locals;const A=(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"grid h-full grid-cols-12 overflow-y-hidden bg-gray-100"},[n("div",{staticClass:"flex items-center justify-center w-full max-w-sm col-span-12 p-4 mx-auto text-gray-900 md:p-8 md:col-span-6 lg:col-span-4 flex-2 md:pb-48 md:pt-40"},[n("div",{staticClass:"w-full"},[e._m(0),e._v(" "),n("router-view"),e._v(" "),n("div",{staticClass:"pt-24 mt-0 text-sm not-italic font-medium leading-relaxed text-left text-gray-500 md:pt-40"},[n("p",{staticClass:"mb-3"},[e._v(e._s(e.$t("layout_login.copyright_crater")))])])],1)]),e._v(" "),n("div",{staticClass:"relative flex-col items-center justify-center hidden w-full h-full pl-10 bg-no-repeat bg-cover md:col-span-6 lg:col-span-8 md:flex content-box"},[n("div",{staticClass:"pl-20 xl:pl-0"},[n("h1",{staticClass:"hidden mb-3 text-3xl font-bold leading-normal text-white xl:text-5xl xl:leading-tight md:none lg:block"},[e._v("\n "+e._s(e.$t("layout_login.super_simple_invoicing"))+" "),n("br"),e._v("\n "+e._s(e.$t("layout_login.for_freelancer"))+" "),n("br"),e._v("\n "+e._s(e.$t("layout_login.small_businesses"))+" "),n("br")]),e._v(" "),n("p",{staticClass:"hidden text-sm not-italic font-normal leading-normal text-gray-100 xl:text-base xl:leading-6 md:none lg:block"},[e._v("\n "+e._s(e.$t("layout_login.crater_help"))),n("br"),e._v("\n "+e._s(e.$t("layout_login.invoices_and_estimates"))),n("br")])]),e._v(" "),n("div",{staticClass:"absolute z-50 w-full bg-no-repeat content-bottom"})])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("a",{attrs:{href:"/admin"}},[t("img",{staticClass:"block w-48 h-auto max-w-full mb-32 text-primary-400",attrs:{src:"/assets/img/crater-logo.png",alt:"Crater Logo"}})])}],!1,null,"f30130f4",null).exports;const j={watch:{$route:"onRouteChange"}};const $=(0,_.Z)(j,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"site-wrapper h-full text-base"},[t("div",{staticClass:"container mx-auto"},[t("router-view")],1)])}),[],!1,null,null,null).exports;var P=n(7757),Y=n.n(P);const N=(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M19.22 38.44C29.8349 38.44 38.44 29.8349 38.44 19.22C38.44 8.60509 29.8349 0 19.22 0C8.60509 0 0 8.60509 0 19.22C0 29.8349 8.60509 38.44 19.22 38.44Z",fill:"#3B5998"}}),e._v(" "),n("path",{attrs:{d:"M23.442 18.5216H20.833V28.08H16.88V18.5216H15V15.1624H16.88V12.9887C16.88 11.4342 17.6184 9 20.8682 9L23.7962 9.01225V12.2729H21.6717C21.3232 12.2729 20.8332 12.447 20.8332 13.1886V15.1656H23.7874L23.442 18.5216Z",fill:"white"}})])}),[],!1,null,null,null).exports;const z=(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M19.4104 39.0002C30.0264 39.0002 38.6324 30.3942 38.6324 19.7782C38.6324 9.16215 30.0264 0.556152 19.4104 0.556152C8.79435 0.556152 0.188354 9.16215 0.188354 19.7782C0.188354 30.3942 8.79435 39.0002 19.4104 39.0002Z",fill:"#55ACEE"}}),e._v(" "),n("path",{attrs:{d:"M31.1843 14.3704C30.3605 14.7357 29.4744 14.9827 28.5452 15.0931C29.494 14.5246 30.2221 13.6251 30.5658 12.5516C29.678 13.0783 28.6942 13.4603 27.6481 13.6663C26.81 12.7737 25.6159 12.2158 24.2936 12.2158C21.7566 12.2158 19.699 14.2734 19.699 16.8104C19.699 17.1706 19.7397 17.5211 19.8185 17.8576C16 17.666 12.6143 15.837 10.348 13.0563C9.95261 13.7348 9.72577 14.5246 9.72577 15.3665C9.72577 16.9602 10.5375 18.3671 11.7697 19.1908C11.0169 19.1672 10.3079 18.9606 9.68876 18.6155C9.68842 18.635 9.68842 18.6546 9.68842 18.6738C9.68842 20.9 11.2728 22.7568 13.3743 23.1786C12.9892 23.2841 12.5825 23.34 12.1641 23.34C11.8673 23.34 11.5799 23.3115 11.2996 23.2581C11.8841 25.083 13.5806 26.4115 15.5916 26.4489C14.0188 27.6814 12.038 28.4157 9.88476 28.4157C9.5147 28.4157 9.14806 28.3941 8.78931 28.3512C10.8216 29.6554 13.2373 30.4157 15.8318 30.4157C24.2829 30.4157 28.9046 23.4147 28.9046 17.3426C28.9046 17.1435 28.9002 16.9451 28.8913 16.7484C29.7897 16.1008 30.5685 15.2918 31.1843 14.3704Z",fill:"#F1F2F2"}})])}),[],!1,null,null,null).exports;const I=(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{width:"40",height:"39",viewBox:"0 0 40 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("circle",{attrs:{cx:"20.0078",cy:"19.7782",r:"18.7188",fill:"#F2F2F2",stroke:"#F2F2F2","stroke-width":"1.00639"}}),e._v(" "),n("path",{attrs:{d:"M13.744 21.9871L12.9733 24.8641L10.1565 24.9237C9.31465 23.3623 8.83716 21.5759 8.83716 19.6775C8.83716 17.8418 9.2836 16.1107 10.075 14.5864H10.0756L12.5833 15.0462L13.6819 17.5389C13.4519 18.2092 13.3266 18.9288 13.3266 19.6775C13.3267 20.4902 13.4739 21.2688 13.744 21.9871Z",fill:"#FBBB00"}}),e._v(" "),n("path",{attrs:{d:"M30.7842 17.6089C30.9114 18.2786 30.9777 18.9701 30.9777 19.677C30.9777 20.4695 30.8943 21.2426 30.7356 21.9883C30.1967 24.526 28.7886 26.7419 26.8379 28.3099L26.8373 28.3093L23.6786 28.1482L23.2316 25.3575C24.5259 24.5984 25.5375 23.4104 26.0703 21.9883H20.1508V17.6089H26.1567H30.7842Z",fill:"#518EF8"}}),e._v(" "),n("path",{attrs:{d:"M26.8374 28.3096L26.838 28.3102C24.9409 29.8351 22.531 30.7475 19.9076 30.7475C15.6918 30.7475 12.0264 28.3911 10.1566 24.9235L13.7441 21.9868C14.679 24.4819 17.0859 26.258 19.9076 26.258C21.1204 26.258 22.2567 25.9301 23.2317 25.3578L26.8374 28.3096Z",fill:"#28B446"}}),e._v(" "),n("path",{attrs:{d:"M26.9737 11.1555L23.3874 14.0916C22.3783 13.4608 21.1855 13.0964 19.9075 13.0964C17.022 13.0964 14.5701 14.954 13.682 17.5386L10.0757 14.5861H10.0751C11.9175 11.0339 15.6291 8.60693 19.9075 8.60693C22.5936 8.60693 25.0564 9.56373 26.9737 11.1555Z",fill:"#F14336"}})])}),[],!1,null,null,null).exports;function F(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q=n(379),V=q.required,W=q.email,U=q.minLength;const K={components:{IconFacebook:N,IconTwitter:z,IconGoogle:I,EyeIcon:s.tEF,EyeOffIcon:s.Xl7},data:function(){return{loginData:{email:"",password:"",remember:""},submitted:!1,isLoading:!1,isShowPassword:!1}},validations:{loginData:{email:{required:V,email:W},password:{required:V,minLength:U(8)}}},computed:{emailError:function(){return this.$v.loginData.email.$error?this.$v.loginData.email.required?this.$v.loginData.email.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},passwordError:function(){return this.$v.loginData.password.$error?this.$v.loginData.password.required?this.$v.loginData.password.minLength?void 0:this.$tc("validation.password_min_length",this.$v.loginData.password.$params.minLength.min,{count:this.$v.loginData.password.$params.minLength.min}):this.$tc("validation.required"):""},getInputType:function(){return this.isShowPassword?"text":"password"}},methods:R(R({},(0,i.nv)("auth",["login"])),{},{validateBeforeSubmit:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(axios.defaults.withCredentials=!0,t.$v.loginData.$touch(),!t.$v.$invalid){e.next=4;break}return e.abrupt("return",!0);case 4:return t.isLoading=!0,e.prev=5,e.next=8,t.login(t.loginData);case 8:t.$router.push("/admin/dashboard"),t.isLoading=!1,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),t.isLoading=!1;case 15:case"end":return e.stop()}}),e,null,[[5,12]])})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){F(i,r,a,o,s,"next",e)}function s(e){F(i,r,a,o,s,"throw",e)}o(void 0)}))})()}})};const Z=(0,_.Z)(K,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{id:"loginForm"},on:{submit:function(t){return t.preventDefault(),e.validateBeforeSubmit(t)}}},[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("login.email"),error:e.emailError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.loginData.email.$error,placeholder:e.$t(e.login.login_placeholder),focus:"",type:"email",name:"email"},on:{input:function(t){return e.$v.loginData.email.$touch()}},model:{value:e.loginData.email,callback:function(t){e.$set(e.loginData,"email",t)},expression:"loginData.email"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("login.password"),error:e.passwordError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.loginData.password.$error,type:e.getInputType,name:"password"},on:{input:function(t){return e.$v.loginData.password.$touch()}},scopedSlots:e._u([{key:"rightIcon",fn:function(){return[e.isShowPassword?n("eye-off-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}}):n("eye-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}})]},proxy:!0}]),model:{value:e.loginData.password,callback:function(t){e.$set(e.loginData,"password",t)},expression:"loginData.password"}})],1),e._v(" "),n("div",{staticClass:"mt-5 mb-8"},[n("div",{staticClass:"mb-4"},[n("router-link",{staticClass:"text-sm text-primary-400 hover:text-gray-700",attrs:{to:"forgot-password"}},[e._v("\n "+e._s(e.$t("login.forgot_password"))+"\n ")])],1)]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,type:"submit",variant:"primary"}},[e._v("\n "+e._s(e.$t("login.login"))+"\n ")])],1)}),[],!1,null,null,null).exports;n(8486);function G(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var J=n(379),X=J.required;const Q={data:function(){return{formData:{email:""},isSent:!1,isLoading:!1}},validations:{formData:{email:{email:J.email,required:X}}},methods:{validateBeforeSubmit:function(e){var t,n=this;return(t=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.$v.formData.$touch(),n.$v.formData.$invalid){e.next=15;break}return e.prev=2,n.isLoading=!0,e.next=6,axios.post("/api/v1/auth/password/email",n.formData);case 6:e.sent.data&&toastr.success("Mail sent successfuly!","Success"),n.isSent=!0,n.isLoading=!1,e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),n.isLoading=!1;case 15:case"end":return e.stop()}}),e,null,[[2,12]])})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){G(i,r,a,o,s,"next",e)}function s(e){G(i,r,a,o,s,"throw",e)}o(void 0)}))})()}}};const ee=(0,_.Z)(Q,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{id:"loginForm"},on:{submit:function(t){return t.preventDefault(),e.validateBeforeSubmit(t)}}},[n("div",{staticClass:"mb-4"},[n("sw-input",{attrs:{invalid:e.$v.formData.email.$error,disabled:e.isSent,placeholder:e.$t("login.enter_email"),focus:"",name:"email"},on:{blur:function(t){return e.$v.formData.email.$touch()}},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email",t)},expression:"formData.email"}}),e._v(" "),e.$v.formData.email.$error?n("div",[e.$v.formData.email.required?e._e():n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]),e._v(" "),e.$v.formData.email.email?e._e():n("span",{staticClass:"text-sm text-danger"},[e._v("\n "+e._s(e.$t("validation.email_incorrect"))+"\n ")])]):e._e()],1),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,type:"submit",variant:"primary"}},[e.isSent?n("div",[e._v("\n "+e._s(e.$t("validation.not_yet"))+"\n ")]):n("div",[e._v("\n "+e._s(e.$t("validation.send_reset_link"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 mb-4 text-sm"},[n("router-link",{staticClass:"text-sm text-primary-400 hover:text-gray-700",attrs:{to:"/login"}},[e._v("\n "+e._s(e.$t("general.back_to_login"))+"\n ")])],1)],1)}),[],!1,null,null,null).exports;function te(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var ne=n(379),re=ne.required,ae=ne.email,ie=ne.sameAs;const oe={data:function(){return{formData:{email:"",password:"",password_confirmation:""},isLoading:!1}},validations:{formData:{email:{required:re,email:ae},password:{required:re,minLength:(0,ne.minLength)(8)},password_confirmation:{sameAsPassword:ie("password")}}},methods:{validateBeforeSubmit:function(e){var t,n=this;return(t=Y().mark((function e(){var t,r;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.$v.formData.$touch(),n.$v.formData.$invalid){e.next=15;break}return e.prev=2,t={email:n.formData.email,password:n.formData.password,password_confirmation:n.formData.password_confirmation,token:n.$route.params.token},n.isLoading=!0,e.next=7,axios.post("/api/v1/auth/reset/password",t);case 7:r=e.sent,n.isLoading=!1,r.data&&(toastr.success(n.$t("login.password_reset_successfully"),"Success"),n.$router.push("/login")),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),e.t0.response&&403===e.t0.response.status&&(toastr.error(e.t0.response.data,n.$t("validation.email_incorrect")),n.isLoading=!1);case 15:case"end":return e.stop()}}),e,null,[[2,12]])})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){te(i,r,a,o,s,"next",e)}function s(e){te(i,r,a,o,s,"throw",e)}o(void 0)}))})()}}};const se=(0,_.Z)(oe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{id:"loginForm"},on:{submit:function(t){return t.preventDefault(),e.validateBeforeSubmit(t)}}},[n("div",{staticClass:"mb-4 form-group"},[n("sw-input-group",{attrs:{label:e.$t("login.email"),required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.email.$error,placeholder:e.$t("login.enter_email"),type:"email",name:"email"},on:{input:function(t){return e.$v.formData.email.$touch()}},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email","string"==typeof t?t.trim():t)},expression:"formData.email"}})],1),e._v(" "),e.$v.formData.email.$error?n("div",[e.$v.formData.email.required?e._e():n("span",{staticClass:"text-sm help-block text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]),e._v(" "),e.$v.formData.email.email?e._e():n("span",{staticClass:"text-sm help-block text-danger"},[e._v("\n "+e._s(e.$t("validation.email_incorrect"))+"\n ")])]):e._e()],1),e._v(" "),n("div",{staticClass:"mb-4 form-group"},[n("sw-input-group",{attrs:{label:e.$t("login.password"),required:""}},[n("sw-input",{attrs:{id:"password",invalid:e.$v.formData.password.$error,placeholder:e.$t("login.enter_password"),type:"password",name:"password"},on:{input:function(t){return e.$v.formData.password.$touch()}},model:{value:e.formData.password,callback:function(t){e.$set(e.formData,"password","string"==typeof t?t.trim():t)},expression:"formData.password"}})],1),e._v(" "),e.$v.formData.password.$error?n("div",[e.$v.formData.password.required?e._e():n("span",{staticClass:"text-sm help-block text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]),e._v(" "),e.$v.formData.password.minLength?e._e():n("span",{staticClass:"text-sm help-block text-danger"},[e._v("\n "+e._s(e.$tc("validation.password_length",e.$v.formData.password.minLength.min,{count:e.$v.formData.password.$params.minLength.min}))+"\n ")])]):e._e()],1),e._v(" "),n("div",{staticClass:"mb-8 form-group"},[n("sw-input-group",{attrs:{label:e.$t("login.retype_password"),required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.password_confirmation.$error,placeholder:e.$t("login.retype_password"),type:"password",name:"password_confirmation"},on:{input:function(t){return e.$v.formData.password_confirmation.$touch()}},model:{value:e.formData.password_confirmation,callback:function(t){e.$set(e.formData,"password_confirmation","string"==typeof t?t.trim():t)},expression:"formData.password_confirmation"}})],1),e._v(" "),e.$v.formData.password_confirmation.$error?n("div",[e.$v.formData.password_confirmation.sameAsPassword?e._e():n("span",{staticClass:"text-sm help-block text-danger"},[e._v("\n "+e._s(e.$t("validation.password_incorrect"))+"\n ")])]):e._e()],1),e._v(" "),n("sw-button",{attrs:{type:"submit",variant:"primary"}},[e._v("\n "+e._s(e.$t("login.reset_password"))+"\n ")])],1)}),[],!1,null,null,null).exports;const le={data:function(){return{name:"",email:"",password:"",password_confirmation:""}},methods:{validateBeforeSubmit:function(e){this.$validator.validateAll().then((function(e){e&&alert("Form Submitted!")}))}}};const ce=(0,_.Z)(le,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{id:"registerForm",action:"",method:"post"}},[n("div",{staticClass:"form-group"},[n("input",{staticClass:"form-control form-control-danger",attrs:{placeholder:e.$t("login.enter_email"),type:"email",name:"email"}})]),e._v(" "),e._m(0),e._v(" "),e._m(1),e._v(" "),n("sw-button",{staticClass:"btn btn-login btn-full"},[e._v(e._s(e.$t("login.register")))])],1)}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"form-group"},[t("input",{staticClass:"form-control form-control-danger",attrs:{id:"password",type:"password",placeholder:"Enter Password",name:"password"}})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"form-group"},[t("input",{staticClass:"form-control form-control-danger",attrs:{type:"password",placeholder:"Retype Password",name:"password_confirmation"}})])}],!1,null,null,null).exports;const ue={components:{ArrowLeftIcon:o.Y4O},mounted:function(){this.setLayoutClasses()},destroyed:function(){document.getElementsByTagName("body")[0].classList-=" bg-black"},methods:{setLayoutClasses:function(){document.getElementsByTagName("body")[0].classList+=" bg-black"}}};const de=(0,_.Z)(ue,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w-full h-full"},[n("div",{staticClass:"flex items-center justify-center w-full h-full"},[n("div",{staticClass:"flex flex-col items-center justify-center"},[n("h1",{staticClass:"text-primary-500",staticStyle:{"font-size":"10rem"}},[e._v("\n "+e._s(e.$t("general.four_zero_four"))+"\n ")]),e._v(" "),n("h5",{staticClass:"mb-10 text-3xl text-primary-500"},[e._v("\n "+e._s(e.$t("general.you_got_lost"))+"\n ")]),e._v(" "),n("router-link",{staticClass:"flex items-center w-32 h-12 px-2 py-1 text-base font-medium leading-none text-center text-white whitespace-nowrap rounded bg-primary-500 btn-lg hover:text-white",attrs:{to:"/admin/dashboard"}},[n("arrow-left-icon",{staticClass:"mr-2 text-white icon"}),e._v("\n "+e._s(e.$t("general.go_home"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const he={components:{DollarIcon:(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("circle",{attrs:{cx:"25",cy:"25",r:"25",fill:"#FDE4E5"}}),e._v(" "),n("path",{attrs:{d:"M27.2031 23.6016C28.349 23.9401 29.2083 24.6562 29.7812 25.75C30.3802 26.8438 30.4714 27.9766 30.0547 29.1484C29.7422 30.0078 29.2083 30.6979 28.4531 31.2188C27.6979 31.7135 26.8516 31.974 25.9141 32V33.875C25.9141 34.0573 25.849 34.2005 25.7188 34.3047C25.6146 34.4349 25.4714 34.5 25.2891 34.5H24.0391C23.8568 34.5 23.7005 34.4349 23.5703 34.3047C23.4661 34.2005 23.4141 34.0573 23.4141 33.875V32C22.1641 32 21.0443 31.6094 20.0547 30.8281C19.8984 30.6979 19.8073 30.5417 19.7812 30.3594C19.7552 30.1771 19.8203 30.0208 19.9766 29.8906L21.3047 28.5625C21.5651 28.3281 21.8255 28.3021 22.0859 28.4844C22.4766 28.7448 22.9193 28.875 23.4141 28.875H25.9922C26.3307 28.875 26.6042 28.7708 26.8125 28.5625C27.0469 28.3281 27.1641 28.0417 27.1641 27.7031C27.1641 27.1302 26.8906 26.7656 26.3438 26.6094L22.3203 25.4375C21.4349 25.1771 20.6927 24.7083 20.0938 24.0312C19.4948 23.3542 19.1432 22.5729 19.0391 21.6875C18.9349 20.4115 19.2995 19.3177 20.1328 18.4062C20.9922 17.4688 22.0599 17 23.3359 17H23.4141V15.125C23.4141 14.9427 23.4661 14.7995 23.5703 14.6953C23.7005 14.5651 23.8568 14.5 24.0391 14.5H25.2891C25.4714 14.5 25.6146 14.5651 25.7188 14.6953C25.849 14.7995 25.9141 14.9427 25.9141 15.125V17C27.1641 17 28.2839 17.3906 29.2734 18.1719C29.4297 18.3021 29.5208 18.4583 29.5469 18.6406C29.5729 18.8229 29.5078 18.9792 29.3516 19.1094L28.0234 20.4375C27.763 20.6719 27.5026 20.6979 27.2422 20.5156C26.8516 20.2552 26.4089 20.125 25.9141 20.125H23.3359C22.9974 20.125 22.7109 20.2422 22.4766 20.4766C22.2682 20.6849 22.1641 20.9583 22.1641 21.2969C22.1641 21.5312 22.2422 21.7526 22.3984 21.9609C22.5547 22.1693 22.75 22.3125 22.9844 22.3906L27.2031 23.6016Z",fill:"#FB7178"}})])}),[],!1,null,null,null).exports,ContactIcon:(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("circle",{attrs:{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"}}),e._v(" "),n("path",{attrs:{d:"M28.2656 23.0547C27.3021 24.0182 26.1302 24.5 24.75 24.5C23.3698 24.5 22.1849 24.0182 21.1953 23.0547C20.2318 22.0651 19.75 20.8802 19.75 19.5C19.75 18.1198 20.2318 16.9479 21.1953 15.9844C22.1849 14.9948 23.3698 14.5 24.75 14.5C26.1302 14.5 27.3021 14.9948 28.2656 15.9844C29.2552 16.9479 29.75 18.1198 29.75 19.5C29.75 20.8802 29.2552 22.0651 28.2656 23.0547ZM28.2656 25.75C29.6979 25.75 30.9219 26.2708 31.9375 27.3125C32.9792 28.3281 33.5 29.5521 33.5 30.9844V32.625C33.5 33.1458 33.3177 33.5885 32.9531 33.9531C32.5885 34.3177 32.1458 34.5 31.625 34.5H17.875C17.3542 34.5 16.9115 34.3177 16.5469 33.9531C16.1823 33.5885 16 33.1458 16 32.625V30.9844C16 29.5521 16.5078 28.3281 17.5234 27.3125C18.5651 26.2708 19.8021 25.75 21.2344 25.75H21.8984C22.8099 26.1667 23.7604 26.375 24.75 26.375C25.7396 26.375 26.6901 26.1667 27.6016 25.75H28.2656Z",fill:"#5851D8"}})])}),[],!1,null,null,null).exports,InvoiceIcon:(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("circle",{attrs:{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"}}),e._v(" "),n("path",{attrs:{d:"M28.25 24.5V27H20.75V24.5H28.25ZM31.7266 18.6016C31.9089 18.7839 32 19.0052 32 19.2656V19.5H27V14.5H27.2344C27.4948 14.5 27.7161 14.5911 27.8984 14.7734L31.7266 18.6016ZM25.75 19.8125C25.75 20.0729 25.8411 20.2943 26.0234 20.4766C26.2057 20.6589 26.4271 20.75 26.6875 20.75H32V33.5625C32 33.8229 31.9089 34.0443 31.7266 34.2266C31.5443 34.4089 31.3229 34.5 31.0625 34.5H17.9375C17.6771 34.5 17.4557 34.4089 17.2734 34.2266C17.0911 34.0443 17 33.8229 17 33.5625V15.4375C17 15.1771 17.0911 14.9557 17.2734 14.7734C17.4557 14.5911 17.6771 14.5 17.9375 14.5H25.75V19.8125ZM19.5 17.3125V17.9375C19.5 18.1458 19.6042 18.25 19.8125 18.25H22.9375C23.1458 18.25 23.25 18.1458 23.25 17.9375V17.3125C23.25 17.1042 23.1458 17 22.9375 17H19.8125C19.6042 17 19.5 17.1042 19.5 17.3125ZM19.5 19.8125V20.4375C19.5 20.6458 19.6042 20.75 19.8125 20.75H22.9375C23.1458 20.75 23.25 20.6458 23.25 20.4375V19.8125C23.25 19.6042 23.1458 19.5 22.9375 19.5H19.8125C19.6042 19.5 19.5 19.6042 19.5 19.8125ZM29.5 31.6875V31.0625C29.5 30.8542 29.3958 30.75 29.1875 30.75H26.0625C25.8542 30.75 25.75 30.8542 25.75 31.0625V31.6875C25.75 31.8958 25.8542 32 26.0625 32H29.1875C29.3958 32 29.5 31.8958 29.5 31.6875ZM29.5 23.875C29.5 23.6927 29.4349 23.5495 29.3047 23.4453C29.2005 23.3151 29.0573 23.25 28.875 23.25H20.125C19.9427 23.25 19.7865 23.3151 19.6562 23.4453C19.5521 23.5495 19.5 23.6927 19.5 23.875V27.625C19.5 27.8073 19.5521 27.9635 19.6562 28.0938C19.7865 28.1979 19.9427 28.25 20.125 28.25H28.875C29.0573 28.25 29.2005 28.1979 29.3047 28.0938C29.4349 27.9635 29.5 27.8073 29.5 27.625V23.875Z",fill:"#5851D8"}})])}),[],!1,null,null,null).exports,EstimateIcon:(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("circle",{attrs:{cx:"25",cy:"25",r:"25",fill:"#EAF1FB"}}),e._v(" "),n("path",{attrs:{d:"M26.75 19.8125C26.75 20.0729 26.8411 20.2943 27.0234 20.4766C27.2057 20.6589 27.4271 20.75 27.6875 20.75H33V33.5625C33 33.8229 32.9089 34.0443 32.7266 34.2266C32.5443 34.4089 32.3229 34.5 32.0625 34.5H18.9375C18.6771 34.5 18.4557 34.4089 18.2734 34.2266C18.0911 34.0443 18 33.8229 18 33.5625V15.4375C18 15.1771 18.0911 14.9557 18.2734 14.7734C18.4557 14.5911 18.6771 14.5 18.9375 14.5H26.75V19.8125ZM33 19.2656V19.5H28V14.5H28.2344C28.4948 14.5 28.7161 14.5911 28.8984 14.7734L32.7266 18.6016C32.9089 18.7839 33 19.0052 33 19.2656Z",fill:"#5851D8"}})])}),[],!1,null,null,null).exports},data:function(){return me({},this.$store.state.dashboard)},computed:me(me(me({},(0,i.Se)("user",{user:"currentUser"})),(0,i.Se)("dashboard",["getContacts","getInvoices","getEstimates","getTotalDueAmount","getDashboardDataLoaded"])),(0,i.Se)("company",["defaultCurrency"]))};const _e=(0,_.Z)(he,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"grid gap-6 sm:grid-cols-2 lg:grid-cols-9 xl:gap-8"},[n("router-link",{staticClass:"relative flex justify-between p-3 bg-white rounded shadow hover:bg-gray-100 lg:col-span-3 xl:p-4",attrs:{slot:"item-title",to:"/admin/invoices"},slot:"item-title"},[n("div",[e.getDashboardDataLoaded?n("span",{staticClass:"text-xl font-semibold leading-tight text-black xl:text-3xl"},[n("span",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.getTotalDueAmount,e.defaultCurrency))}})]):e._e(),e._v(" "),n("span",{staticClass:"block mt-1 text-sm leading-tight text-gray-500 xl:text-lg"},[e._v("\n "+e._s(e.$t("dashboard.cards.due_amount"))+"\n ")])]),e._v(" "),n("div",{staticClass:"flex items-center"},[n("dollar-icon",{staticClass:"w-10 h-10 xl:w-12 xl:h-12"})],1)]),e._v(" "),n("router-link",{staticClass:"relative flex justify-between p-3 bg-white rounded shadow hover:bg-gray-100 lg:col-span-2 xl:p-4",attrs:{slot:"item-title",to:"/admin/customers"},slot:"item-title"},[n("div",[e.getDashboardDataLoaded?n("span",{staticClass:"text-xl font-semibold leading-tight text-black xl:text-3xl"},[e._v("\n "+e._s(e.getContacts)+"\n ")]):e._e(),e._v(" "),n("span",{staticClass:"block mt-1 text-sm leading-tight text-gray-500 xl:text-lg"},[e._v("\n "+e._s(e.$t("dashboard.cards.customers"))+"\n ")])]),e._v(" "),n("div",{staticClass:"flex items-center"},[n("contact-icon",{staticClass:"w-10 h-10 xl:w-12 xl:h-12"})],1)]),e._v(" "),n("router-link",{staticClass:"relative flex justify-between p-3 bg-white rounded shadow hover:bg-gray-100 lg:col-span-2 xl:p-4",attrs:{slot:"item-title",to:"/admin/invoices"},slot:"item-title"},[n("div",[e.getDashboardDataLoaded?n("span",{staticClass:"text-xl font-semibold leading-tight text-black xl:text-3xl"},[e._v("\n "+e._s(e.getInvoices)+"\n ")]):e._e(),e._v(" "),n("span",{staticClass:"block mt-1 text-sm leading-tight text-gray-500 xl:text-lg"},[e._v("\n "+e._s(e.$t("dashboard.cards.invoices"))+"\n ")])]),e._v(" "),n("div",{staticClass:"flex items-center"},[n("invoice-icon",{staticClass:"w-10 h-10 xl:w-12 xl:h-12"})],1)]),e._v(" "),n("router-link",{staticClass:"relative flex justify-between p-3 bg-white rounded shadow hover:bg-gray-100 lg:col-span-2 xl:p-4",attrs:{slot:"item-title",to:"/admin/estimates"},slot:"item-title"},[n("div",[e.getDashboardDataLoaded?n("span",{staticClass:"text-xl font-semibold leading-tight text-black xl:text-3xl"},[e._v("\n "+e._s(e.getEstimates)+"\n ")]):e._e(),e._v(" "),n("span",{staticClass:"block mt-1 text-sm leading-tight text-gray-500 xl:text-lg"},[e._v("\n "+e._s(e.$t("dashboard.cards.estimates"))+"\n ")])]),e._v(" "),n("div",{staticClass:"flex items-center"},[n("estimate-icon",{staticClass:"w-10 h-10 xl:w-12 xl:h-12"})],1)])],1)}),[],!1,null,null,null).exports;const ve={name:"SweetModal",props:{title:{type:String,required:!1,default:""},overlayTheme:{type:String,required:!1,default:"light"},modalTheme:{type:String,required:!1,default:"light"},blocking:{type:Boolean,required:!1,default:!1},pulseOnBlock:{type:Boolean,required:!1,default:!0},icon:{type:String,required:!1,default:""},hideCloseButton:{type:Boolean,required:!1,default:!1},enableMobileFullscreen:{type:Boolean,required:!1,default:!0},width:{type:[Number,String],required:!1,default:null}},mounted(){this.tabs=this.$children.filter((e=>e.cmpName&&"tab"==e.cmpName)),this.has_tabs&&(this.currentTab=this._changeTab(this.tabs[0])),document.addEventListener("keyup",this._onDocumentKeyup)},beforeDestroy(){document.removeEventListener("keyup",this._onDocumentKeyup)},data:()=>({visible:!1,is_open:!1,is_bouncing:!1,tabs:[],backups:{body:{height:null,overflow:null}}}),computed:{has_title(){return this.title||this.$slots.title},has_tabs(){return this.tabs.length>0},has_content(){return this.$slots.default},current_tab(){return this.tabs.filter((e=>!0===e.active))[0]},overlay_classes(){return["sweet-modal-overlay","theme-"+this.overlayTheme,"sweet-modal-clickable",{"is-visible":this.visible,blocking:this.blocking}]},modal_classes(){return["sweet-modal","theme-"+this.modalTheme,{"has-title":this.has_title,"has-tabs":this.has_tabs,"has-content":this.has_content,"has-icon":this.icon,"is-mobile-fullscreen":this.enableMobileFullscreen,"is-visible":this.visible,"is-alert":this.icon&&!this.has_tabs||!this.icon&&!this.title&&!this.$slots.title,bounce:this.is_bouncing}]},modal_style(){let e=this.width,t=null;return null!==e&&(Number(e)==e&&(e+="px"),t="none"),{width:e,maxWidth:t}}},methods:{open(e=null){if(e&&this.has_tabs){let t=this.tabs.filter((t=>t.id===e));if(t.length>0)this.currentTab=this._changeTab(t[0]);else{let t=this.tabs[e];t&&(this.currentTab=this._changeTab(t))}}this.is_open=!0,this._lockBody(),this._animateIcon(),setTimeout((()=>this.visible=!0),30),this.$emit("open")},close(){this.visible=!1,this._unlockBody(),setTimeout((()=>this.is_open=!1),300),this.$emit("close")},bounce(){this.is_bouncing=!0,setTimeout((()=>this.is_bouncing=!1),330)},_lockBody(){this.backups.body.height=document.body.style.height,this.backups.body.overflow=document.body.style.overflow,document.body.style.height="100%",document.body.style.overflow="hidden"},_unlockBody(){document.body.style.height=this.backups.body.height,document.body.style.overflow=this.backups.body.overflow},_onOverlayClick(e){e.target.classList&&!e.target.classList.contains("sweet-modal-clickable")||(this.blocking?this.pulseOnBlock&&this.bounce():this.close())},_onDocumentKeyup(e){27==e.keyCode&&(this.blocking?this.pulseOnBlock&&this.bounce():this.close())},_changeTab(e){this.tabs.map((t=>t.active=t==e)),this.currentTab=e},_getClassesForTab:e=>["sweet-modal-tab",{active:e.active,disabled:e.disabled}],_animateIcon(){if(this.icon)switch(this.icon){case"success":setTimeout((()=>{this._applyClasses(this.$refs.icon_success,{"":["animate"],".sweet-modal-tip":["animateSuccessTip"],".sweet-modal-long":["animateSuccessLong"]})}),80);break;case"warning":this._applyClasses(this.$refs.icon_warning,{"":["pulseWarning"],".sweet-modal-body":["pulseWarningIns"],".sweet-modal-dot":["pulseWarningIns"]});break;case"error":setTimeout((()=>{this._applyClasses(this.$refs.icon_error,{"":["animateErrorIcon"],".sweet-modal-x-mark":["animateXMark"]})}),80)}},_applyClasses(e,t){for(let n in t){let r,a=t[n];r=""==n?e:e.querySelector(n),r.classList.remove(...a),r.classList.add(...a)}}}};var ge=n(1713),ye={insert:"head",singleton:!1};m()(ge.Z,ye);ge.Z.locals;(0,_.Z)(ve,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.is_open,expression:"is_open"}],class:e.overlay_classes,on:{click:e._onOverlayClick}},[n("div",{class:e.modal_classes,style:e.modal_style},[n("div",{staticClass:"sweet-box-actions"},[e._t("box-action"),e._v(" "),e.hideCloseButton?e._e():n("div",{staticClass:"sweet-action-close",on:{click:e.close}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#292c34"}})])])],2),e._v(" "),e.has_title||e.has_tabs?n("div",{staticClass:"sweet-title"},[e.has_tabs&&!e.has_title?[n("ul",{staticClass:"sweet-modal-tabs"},e._l(e.tabs,(function(t){return n("li",{class:e._getClassesForTab(t)},[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),e._changeTab(t)}}},[n("div",{staticClass:"sweet-modal-valign"},[t.icon?n("span",{staticClass:"sweet-modal-tab-icon",domProps:{innerHTML:e._s(t.icon)}}):e._e(),e._v(" "),n("span",{staticClass:"sweet-modal-tab-title"},[e._v(e._s(t.title))])])])])})),0)]:e._e(),e._v(" "),e.has_title?[e.title?n("h2",{domProps:{innerHTML:e._s(e.title)}}):e._e(),e._v(" "),e._t("title")]:e._e()],2):e._e(),e._v(" "),e.has_title&&e.has_tabs?n("ul",{staticClass:"sweet-modal-tabs"},e._l(e.tabs,(function(t){return n("li",{class:e._getClassesForTab(t)},[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),e._changeTab(t)}}},[n("div",{staticClass:"sweet-modal-valign"},[t.icon?n("span",{staticClass:"sweet-modal-tab-icon",domProps:{innerHTML:e._s(t.icon)}}):e._e(),e._v(" "),n("span",{staticClass:"sweet-modal-tab-title"},[e._v(e._s(t.title))])])])])})),0):e._e(),e._v(" "),n("div",{ref:"content",staticClass:"sweet-content"},["error"==e.icon?n("div",{ref:"icon_error",staticClass:"sweet-modal-icon sweet-modal-error"},[e._m(0)]):e._e(),e._v(" "),"warning"==e.icon?n("div",{ref:"icon_warning",staticClass:"sweet-modal-icon sweet-modal-warning"},[n("span",{staticClass:"sweet-modal-body"}),e._v(" "),n("span",{staticClass:"sweet-modal-dot"})]):e._e(),e._v(" "),"info"==e.icon?n("div",{ref:"icon_info",staticClass:"sweet-modal-icon sweet-modal-info"}):e._e(),e._v(" "),"success"==e.icon?n("div",{ref:"icon_success",staticClass:"sweet-modal-icon sweet-modal-success"},[n("span",{staticClass:"sweet-modal-line sweet-modal-tip"}),e._v(" "),n("span",{staticClass:"sweet-modal-line sweet-modal-long"}),e._v(" "),n("div",{staticClass:"sweet-modal-placeholder"}),e._v(" "),n("div",{staticClass:"sweet-modal-fix"})]):e._e(),e._v(" "),e.$slots.default?n("div",{staticClass:"sweet-content-content"},[e._t("default")],2):e._e()]),e._v(" "),e.$slots.button?n("div",{staticClass:"sweet-buttons"},[e._t("button")],2):e._e()])])}),[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"sweet-modal-x-mark"},[n("span",{staticClass:"sweet-modal-line sweet-modal-left"}),e._v(" "),n("span",{staticClass:"sweet-modal-line sweet-modal-right"})])}],!1,null,null,null).exports;const be={props:{title:{type:String,required:!0},id:{type:String,required:!0},icon:{type:String,required:!1,default:null},disabled:{type:Boolean,required:!1,default:!1}},data:()=>({active:!1}),computed:{cmpName:()=>"tab"}};(0,_.Z)(be,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:["sweet-modal-tab",{active:e.active}]},[e._t("default")],2)}),[],!1,null,null,null).exports;var we=n(7432),xe=n.n(we);function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Me={props:{labels:{type:Array,require:!0,default:Array},values:{type:Array,require:!0,default:Array},invoices:{type:Array,require:!0,default:Array},expenses:{type:Array,require:!0,default:Array},receipts:{type:Array,require:!0,default:Array},income:{type:Array,require:!0,default:Array},formatMoney:{type:Function,require:!1,default:Function},FormatGraphMoney:{type:Function,require:!1,default:Function}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){De(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,i.Se)("company",["defaultCurrency"])),watch:{labels:function(e){this.update()}},mounted:function(){var e=this,t=this.$refs.graph.getContext("2d"),n={responsive:!0,maintainAspectRatio:!1,tooltips:{enabled:!0,callbacks:{label:function(t,n){return e.FormatGraphMoney(Math.round(100*t.value),e.defaultCurrency)}}},legend:{display:!1}},r={labels:this.labels,datasets:[{label:"Sales",fill:!1,lineTension:.3,backgroundColor:"rgba(230, 254, 249)",borderColor:"#040405",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"#040405",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"#040405",pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:2,pointRadius:4,pointHitRadius:10,data:this.invoices.map((function(e){return e/100}))},{label:"Receipts",fill:!1,lineTension:.3,backgroundColor:"rgba(230, 254, 249)",borderColor:"rgb(2, 201, 156)",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"rgb(2, 201, 156)",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"rgb(2, 201, 156)",pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:2,pointRadius:4,pointHitRadius:10,data:this.receipts.map((function(e){return e/100}))},{label:"Expenses",fill:!1,lineTension:.3,backgroundColor:"rgba(245, 235, 242)",borderColor:"rgb(255,0,0)",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"rgb(255,0,0)",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"rgb(255,0,0)",pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:2,pointRadius:4,pointHitRadius:10,data:this.expenses.map((function(e){return e/100}))},{label:"Net Income",fill:!1,lineTension:.3,backgroundColor:"rgba(236, 235, 249)",borderColor:"rgba(88, 81, 216, 1)",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",pointBorderColor:"rgba(88, 81, 216, 1)",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBackgroundColor:"rgba(88, 81, 216, 1)",pointHoverBorderColor:"rgba(220,220,220,1)",pointHoverBorderWidth:2,pointRadius:4,pointHitRadius:10,data:this.income.map((function(e){return e/100}))}]};this.myLineChart=new(xe())(t,{type:"line",data:r,options:n})},methods:{update:function(){this.myLineChart.data.labels=this.labels,this.myLineChart.data.datasets[0].data=this.invoices.map((function(e){return e/100})),this.myLineChart.data.datasets[1].data=this.receipts.map((function(e){return e/100})),this.myLineChart.data.datasets[2].data=this.expenses.map((function(e){return e/100})),this.myLineChart.data.datasets[3].data=this.income.map((function(e){return e/100})),this.myLineChart.update({lazy:!0})},beforeDestroy:function(){this.myLineChart.destroy()}}};var Se=n(434),Ce={insert:"head",singleton:!1};m()(Se.Z,Ce);Se.Z.locals;const Le=(0,_.Z)(Me,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"graph-container"},[t("canvas",{ref:"graph",attrs:{id:"graph"}})])}),[],!1,null,"878dc3be",null).exports;function Te(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const je={components:{LineChart:Le,ChartSquareBarIcon:s.iGq},data:function(){return Ee(Ee({},this.$store.state.dashboard),{},{isLoaded:!1,years:["This year","Previous year"],selectedYear:"This year"})},computed:Ee(Ee(Ee({},(0,i.Se)("user",{user:"currentUser"})),(0,i.Se)("dashboard",["getChartMonths","getChartInvoices","getChartExpenses","getNetProfits","getReceiptTotals","getTotalSales","getTotalReceipts","getTotalExpenses","getNetProfit"])),(0,i.Se)("company",["defaultCurrency"])),watch:{selectedYear:function(e){if("Previous year"===e){this.loadData({previous_year:!0})}else this.loadData()}},created:function(){this.loadData()},methods:Ee(Ee({},(0,i.nv)("dashboard",["loadData"])),{},{loadData:function(e){var t,n=this;return(t=Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.$store.dispatch("dashboard/loadData",e);case 2:n.isLoaded=!0;case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){Te(i,r,a,o,s,"next",e)}function s(e){Te(i,r,a,o,s,"throw",e)}o(void 0)}))})()}})};const $e=(0,_.Z)(je,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"grid grid-cols-10 mt-8 bg-white rounded shadow"},[n("div",{staticClass:"grid grid-cols-1 col-span-10 px-4 py-5 lg:col-span-7 xl:col-span-8 sm:p-6"},[n("div",{staticClass:"flex justify-between mt-1 mb-6"},[n("h6",{staticClass:"flex items-center sw-section-title"},[n("chart-square-bar-icon",{staticClass:"h-5 text-primary-400"}),e._v(e._s(e.$t("dashboard.monthly_chart.title"))+"\n ")],1),e._v(" "),n("div",{staticClass:"w-40 h-10",staticStyle:{"z-index":"0"}},[n("sw-select",{attrs:{options:e.years,"allow-empty":!1,"show-labels":!1,placeholder:e.$t("dashboard.select_year")},model:{value:e.selectedYear,callback:function(t){e.selectedYear=t},expression:"selectedYear"}})],1)]),e._v(" "),e.isLoaded?n("line-chart",{staticClass:"sm:w-full",attrs:{"format-money":e.$utils.formatMoney,"format-graph-money":e.$utils.formatGraphMoney,invoices:e.getChartInvoices,expenses:e.getChartExpenses,receipts:e.getReceiptTotals,income:e.getNetProfits,labels:e.getChartMonths}}):e._e()],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 grid-cols-3 col-span-10 text-center border-t border-l border-gray-200 border-solid lg:border-t-0 lg:text-right lg:col-span-3 xl:col-span-2 lg:grid-cols-1"},[n("div",{staticClass:"p-6"},[n("span",{staticClass:"text-xs leading-5 lg:text-sm"},[e._v("\n "+e._s(e.$t("dashboard.chart_info.total_sales"))+"\n ")]),e._v(" "),n("br"),e._v(" "),e.isLoaded?n("span",{staticClass:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl"},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.getTotalSales,e.defaultCurrency))}})]):e._e()]),e._v(" "),n("div",{staticClass:"p-6"},[n("span",{staticClass:"text-xs leading-5 lg:text-sm"},[e._v("\n "+e._s(e.$t("dashboard.chart_info.total_receipts"))+"\n ")]),e._v(" "),n("br"),e._v(" "),e.isLoaded?n("span",{staticClass:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl",staticStyle:{color:"#00c99c"}},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.getTotalReceipts,e.defaultCurrency))}})]):e._e()]),e._v(" "),n("div",{staticClass:"p-6"},[n("span",{staticClass:"text-xs leading-5 lg:text-sm"},[e._v("\n "+e._s(e.$t("dashboard.chart_info.total_expense"))+"\n ")]),e._v(" "),n("br"),e._v(" "),e.isLoaded?n("span",{staticClass:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl",staticStyle:{color:"#fb7178"}},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.getTotalExpenses,e.defaultCurrency))}})]):e._e()]),e._v(" "),n("div",{staticClass:"col-span-3 p-6 border-t border-gray-200 border-solid lg:col-span-1"},[n("span",{staticClass:"text-xs leading-5 lg:text-sm"},[e._v("\n "+e._s(e.$t("dashboard.chart_info.net_income"))+"\n ")]),e._v(" "),n("br"),e._v(" "),n("span",{staticClass:"block mt-1 text-xl font-semibold leading-8 lg:text-2xl",staticStyle:{color:"#5851d8"}},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.getNetProfit,e.defaultCurrency))}})])])])])}),[],!1,null,null,null).exports;function Pe(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ye(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Pe(i,r,a,o,s,"next",e)}function s(e){Pe(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(n),!0).forEach((function(t){Ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fe={components:{PencilIcon:o.vdY,EyeIcon:o.tEF,PaperAirplaneIcon:o.Rdq,CheckCircleIcon:o.rE2,TrashIcon:o.XHJ,DocumentTextIcon:o.YHR,XCircleIcon:o.oOx},data:function(){return ze(ze({},this.$store.state.dashboard),{},{currency:{precision:2,thousand_separator:",",decimal_separator:".",symbol:"$"},isLoaded:!1,fetching:!1})},computed:ze(ze({},(0,i.Se)("user",{user:"currentUser"})),(0,i.Se)("dashboard",["getDashboardDataLoaded","getDueInvoices","getRecentEstimates"])),methods:ze(ze(ze(ze(ze({},(0,i.nv)("dashboard",["loadData"])),(0,i.nv)("invoice",["deleteInvoice","sendEmail","markAsSent"])),(0,i.nv)("estimate",["deleteEstimate","markAsAccepted","markAsRejected","convertToInvoice"])),(0,i.nv)("estimate",{sendEstimateEmail:"sendEmail",markEstimateAsSent:"markAsSent"})),{},{loadData:function(e){var t=this;return Ye(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.$store.dispatch("dashboard/loadData",e);case 2:t.isLoaded=!0;case 3:case"end":return n.stop()}}),n)})))()},removeEstimate:function(e){var t=this;return Ye(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,window.swal({title:t.$t("general.are_you_sure"),text:t.$tc("estimates.confirm_delete",1),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var e=Ye(Y().mark((function e(n){var r;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=5;break}return e.next=3,t.deleteEstimate({ids:[t.id]});case 3:(r=e.sent).data.success?(window.toastr.success(t.$tc("estimates.deleted_message",1)),t.refreshEstTable()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},refreshInvTable:function(){this.$refs.inv_table.refresh()},refreshEstTable:function(){this.$refs.est_table.refresh()},convertInToinvoice:function(e){var t=this;return Ye(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_conversion"),icon:"/assets/icon/file-alt-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ye(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=6;break}return n.next=3,t.convertToInvoice(e);case 3:a=n.sent,t.selectAllField=!1,a.data?(window.toastr.success(t.$t("estimates.conversion_message")),t.$router.push("invoices/".concat(a.data.invoice.id,"/edit"))):a.data.error&&window.toastr.error(a.data.message);case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},onMarkAsSent:function(e){var t=this;return Ye(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_sent"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ye(Y().mark((function n(r){var a,i;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return a={id:e,status:"SENT"},n.next=4,t.markEstimateAsSent(a);case 4:i=n.sent,t.refreshEstTable(),i.data&&window.toastr.success(t.$tc("estimates.mark_as_sent_successfully"));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},removeInvoice:function(e){var t=this;return Ye(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,window.swal({title:t.$t("general.are_you_sure"),text:t.$tc("invoices.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var e=Ye(Y().mark((function e(n){var r;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=5;break}return e.next=3,t.deleteInvoice({ids:[t.id]});case 3:(r=e.sent).data.success?(window.toastr.success(t.$tc("invoices.deleted_message")),t.refreshInvTable()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},sendInvoice:function(e){var t=this;return Ye(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("invoices.confirm_send"),icon:"/assets/icon/paper-plane-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ye(Y().mark((function n(r){var a,i;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=13;break}return a={id:e},n.next=4,t.sendEmail(a);case 4:if(i=n.sent,t.refreshInvTable(),!i.data.success){n.next=9;break}return window.toastr.success(t.$tc("invoices.send_invoice_successfully")),n.abrupt("return",!0);case 9:if("user_email_does_not_exist"!==i.data.error){n.next=12;break}return window.toastr.error(t.$tc("invoices.user_email_does_not_exist")),n.abrupt("return",!1);case 12:window.toastr.error(t.$tc("invoices.something_went_wrong"));case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},sentInvoice:function(e){var t=this;return Ye(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("invoices.invoice_mark_as_sent"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ye(Y().mark((function n(r){var a,i;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return a={id:e,status:"SENT"},n.next=4,t.markAsSent(a);case 4:i=n.sent,t.refreshInvTable(),i.data&&window.toastr.success(t.$tc("invoices.mark_as_sent_successfully"));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},onMarkAsAccepted:function(e){var t=this;return Ye(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_accepted"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ye(Y().mark((function n(r){var a,i;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return a={id:e},n.next=4,t.markAsAccepted(a);case 4:i=n.sent,t.refreshEstTable(),i.data&&(t.refreshEstTable(),window.toastr.success(t.$tc("estimates.marked_as_accepted_message")));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},onMarkAsRejected:function(e){var t=this;return Ye(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_rejected"),icon:"/assets/icon/times-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ye(Y().mark((function n(r){var a,i;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return a={id:e},n.next=4,t.markAsRejected(a);case 4:i=n.sent,t.refreshEstTable(),i.data&&(t.refreshEstTable(),window.toastr.success(t.$tc("estimates.marked_as_rejected_message")));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},sendEstimate:function(e){var t=this;return Ye(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_send_estimate"),icon:"/assets/icon/paper-plane-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ye(Y().mark((function n(r){var a,i;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=13;break}return a={id:e},n.next=4,t.sendEstimateEmail(a);case 4:if(i=n.sent,t.refreshEstTable(),!i.data.success){n.next=9;break}return window.toastr.success(t.$tc("estimates.send_estimate_successfully")),n.abrupt("return",!0);case 9:if("user_email_does_not_exist"!==i.data.error){n.next=12;break}return window.toastr.error(t.$tc("estimates.user_email_does_not_exist")),n.abrupt("return",!0);case 12:window.toastr.error(t.$tc("estimates.something_went_wrong"));case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()}})};const He={components:{DashboardStats:_e,DashboardChart:$e,DashboardTable:(0,_.Z)(Fe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.getDashboardDataLoaded?e._e():n("base-loader"),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-6 mt-10 xl:grid-cols-2"},[n("div",{staticClass:"due-invoices"},[n("div",{staticClass:"relative z-10 flex items-center justify-between"},[n("h6",{staticClass:"mb-0 text-xl font-semibold leading-normal"},[e._v("\n "+e._s(e.$t("dashboard.recent_invoices_card.title"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{"tag-name":"router-link",to:"/admin/invoices",variant:"primary-outline"}},[e._v("\n "+e._s(e.$t("dashboard.recent_invoices_card.view_all"))+"\n ")])],1),e._v(" "),n("sw-table-component",{ref:"inv_table",attrs:{data:e.getDueInvoices,"show-filter":!1,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!0,label:e.$t("dashboard.recent_invoices_card.due_on"),show:"formattedDueDate"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("dashboard.recent_invoices_card.due_on")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.formattedDueDate))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("dashboard.recent_invoices_card.customer"),show:"user.name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("dashboard.recent_invoices_card.customer")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"invoices/"+t.id+"/view"}}},[e._v("\n "+e._s(t.user.name)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.status"),"sort-as":"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("invoices.status")))]),e._v(" "),n("sw-badge",{attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color}},[e._v("\n "+e._s("PARTIALLY_PAID"!=t.status?t.status:t.status.replace("_"," "))+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("dashboard.recent_invoices_card.amount_due"),show:"due_amount","sort-as":"due_amount"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("dashboard.recent_invoices_card.amount_due")))]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.due_amount,t.user.currency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown dashboard-recent-invoice-options no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("sw-dropdown",{},[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"invoices/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"invoices/"+t.id+"/view"}},[n("eye-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.view"))+"\n ")],1),e._v(" "),"DRAFT"===t.status?n("sw-dropdown-item",{on:{click:function(n){return e.sentInvoice(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.mark_as_sent"))+"\n ")],1):e._e(),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeInvoice(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)}}])})],1)],1),e._v(" "),n("div",{staticClass:"recent-estimates"},[n("div",{staticClass:"relative z-10 flex items-center justify-between"},[n("h6",{staticClass:"mb-0 text-xl font-semibold leading-normal"},[e._v("\n "+e._s(e.$t("dashboard.recent_estimate_card.title"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{"tag-name":"router-link",to:"/admin/estimates",variant:"primary-outline"}},[e._v("\n "+e._s(e.$t("dashboard.recent_estimate_card.view_all"))+"\n ")])],1),e._v(" "),n("sw-table-component",{ref:"est_table",attrs:{data:e.getRecentEstimates,"show-filter":!1,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!0,label:e.$t("dashboard.recent_estimate_card.date"),show:"formattedExpiryDate"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("dashboard.recent_estimate_card.date")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.formattedExpiryDate))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("dashboard.recent_estimate_card.customer"),show:"user.name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("dashboard.recent_estimate_card.customer")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"estimates/"+t.id+"/view"}}},[e._v("\n "+e._s(t.user.name)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("estimates.status"),show:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("estimates.status")))]),e._v(" "),n("sw-badge",{staticClass:"px-3 py-1",attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color}},[e._v("\n "+e._s(t.status)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("dashboard.recent_estimate_card.amount_due"),show:"total","sort-as":"total"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("dashboard.recent_estimate_card.amount_due")))]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.total,t.user.currency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("sw-dropdown",{},[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"estimates/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"estimates/"+t.id+"/view"}},[n("eye-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.view"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.convertInToinvoice(t.id)}}},[n("document-text-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.convert_to_invoice"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.onMarkAsSent(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.mark_as_sent"))+"\n ")],1),e._v(" "),"ACCEPTED"!==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.onMarkAsAccepted(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.mark_as_accepted"))+"\n ")],1):e._e(),e._v(" "),"REJECTED"!==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.onMarkAsRejected(t.id)}}},[n("x-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.mark_as_rejected"))+"\n ")],1):e._e(),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeEstimate(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)}}])})],1)],1)])],1)}),[],!1,null,null,null).exports}};const Re=(0,_.Z)(He,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",[n("dashboard-stats"),e._v(" "),n("dashboard-chart"),e._v(" "),n("dashboard-table")],1)}),[],!1,null,null,null).exports;const Be=(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{width:"125",height:"110",viewBox:"0 0 125 110",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("g",{attrs:{"clip-path":"url(#clip0)"}},[n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M46.8031 84.4643C46.8031 88.8034 43.3104 92.3215 39.0026 92.3215C34.6948 92.3215 31.2021 88.8034 31.2021 84.4643C31.2021 80.1252 34.6948 76.6072 39.0026 76.6072C43.3104 76.6072 46.8031 80.1252 46.8031 84.4643Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M60.4536 110H64.3539V72.6785H60.4536V110Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M85.8055 76.6072H70.2045C69.1319 76.6072 68.2544 77.4911 68.2544 78.5715V82.5C68.2544 83.5804 69.1319 84.4643 70.2045 84.4643H85.8055C86.878 84.4643 87.7556 83.5804 87.7556 82.5V78.5715C87.7556 77.4911 86.878 76.6072 85.8055 76.6072ZM70.2045 82.5H85.8055V78.5715H70.2045V82.5Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M91.6556 1.96429C94.8811 1.96429 97.506 4.60821 97.506 7.85714V19.6429H83.8181L85.308 21.6071H99.4561V7.85714C99.4561 3.53571 95.9459 0 91.6556 0H33.152C28.8618 0 25.3516 3.53571 25.3516 7.85714V21.6071H39.3203L40.8745 19.6429H27.3017V7.85714C27.3017 4.60821 29.9265 1.96429 33.152 1.96429H91.6556Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M122.858 92.3213H117.007C115.935 92.3213 115.057 93.2052 115.057 94.2856V102.143C115.057 103.223 115.935 104.107 117.007 104.107H122.858C123.93 104.107 124.808 103.223 124.808 102.143V94.2856C124.808 93.2052 123.93 92.3213 122.858 92.3213ZM117.007 102.143H122.858V94.2856H117.007V102.143Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M103.356 43.2142V70.7142H21.4511V43.2142H26.1821V41.2498H19.501V72.6783H105.306V41.2498H98.3541L98.2839 43.2142H103.356Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M101.406 21.6071C104.632 21.6071 107.257 24.251 107.257 27.5V41.25H98.2257L98.0853 43.2142H109.207V27.5C109.207 23.1609 105.714 19.6428 101.406 19.6428H83.8182L85.0878 21.6071H101.406ZM40.8746 19.6428H23.4016C19.0937 19.6428 15.6011 23.1609 15.6011 27.5V43.2142H26.1961L26.3365 41.25H17.5512V27.5C17.5512 24.251 20.1761 21.6071 23.4016 21.6071H39.3204L40.8746 19.6428Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M62.4041 9.82153C45.1709 9.82153 31.2021 23.8917 31.2021 41.2501C31.2021 58.6085 45.1709 72.6787 62.4041 72.6787C79.6373 72.6787 93.606 58.6085 93.606 41.2501C93.606 23.8917 79.6373 9.82153 62.4041 9.82153ZM62.4041 11.7858C78.5335 11.7858 91.6559 25.0035 91.6559 41.2501C91.6559 57.4967 78.5335 70.7144 62.4041 70.7144C46.2746 70.7144 33.1523 57.4967 33.1523 41.2501C33.1523 25.0035 46.2746 11.7858 62.4041 11.7858Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M62.4041 19.6428C45.1709 19.6428 31.2021 23.8916 31.2021 41.25C31.2021 58.6084 45.1709 66.7857 62.4041 66.7857C79.6373 66.7857 93.606 58.6084 93.606 41.25C93.606 23.8916 79.6373 19.6428 62.4041 19.6428ZM62.4041 21.6071C82.6346 21.6071 91.6559 27.665 91.6559 41.25C91.6559 56.0096 80.7216 64.8214 62.4041 64.8214C44.0866 64.8214 33.1523 56.0096 33.1523 41.25C33.1523 27.665 42.1735 21.6071 62.4041 21.6071Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M101.406 70.7144H23.4014C10.478 70.7144 0 81.2685 0 94.2858V110H124.808V94.2858C124.808 81.2685 114.33 70.7144 101.406 70.7144ZM101.406 72.6786C113.234 72.6786 122.858 82.3724 122.858 94.2858V108.036H1.95012V94.2858C1.95012 82.3724 11.574 72.6786 23.4014 72.6786H101.406Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33.152 33.3928H29.2518C27.0969 33.3928 25.3516 35.1509 25.3516 37.3214V45.1785C25.3516 47.3491 27.0969 49.1071 29.2518 49.1071H33.152V33.3928ZM31.2019 35.3571V47.1428H29.2518C28.1773 47.1428 27.3017 46.2609 27.3017 45.1785V37.3214C27.3017 36.2391 28.1773 35.3571 29.2518 35.3571H31.2019Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95.556 33.3928H91.6558V49.1071H95.556C97.7109 49.1071 99.4562 47.3491 99.4562 45.1785V37.3214C99.4562 35.1509 97.7109 33.3928 95.556 33.3928ZM95.556 35.3571C96.6305 35.3571 97.5061 36.2391 97.5061 37.3214V45.1785C97.5061 46.2609 96.6305 47.1428 95.556 47.1428H93.6059V35.3571H95.556Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M94.581 15.7144C94.0447 15.7144 93.606 16.1563 93.606 16.6965V34.3751C93.606 34.9152 94.0447 35.3572 94.581 35.3572C95.1173 35.3572 95.5561 34.9152 95.5561 34.3751V16.6965C95.5561 16.1563 95.1173 15.7144 94.581 15.7144Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M38.0273 41.2499C37.4891 41.2499 37.0522 40.8099 37.0522 40.2678C37.0522 33.3142 44.1409 25.5356 53.6283 25.5356C54.1665 25.5356 54.6033 25.9756 54.6033 26.5178C54.6033 27.0599 54.1665 27.4999 53.6283 27.4999C45.2564 27.4999 39.0024 34.2414 39.0024 40.2678C39.0024 40.8099 38.5655 41.2499 38.0273 41.2499Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M97.5059 110H99.456V72.6785H97.5059V110Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M25.3516 110H27.3017V72.6785H25.3516V110Z",fill:"#55547A"}})]),e._v(" "),n("defs",[n("clipPath",{attrs:{id:"clip0"}},[n("rect",{attrs:{width:"124.808",height:"110",fill:"white"}})])])])}),[],!1,null,null,null).exports;function qe(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ve(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){qe(i,r,a,o,s,"next",e)}function s(e){qe(i,r,a,o,s,"throw",e)}o(void 0)}))}}function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(Object(n),!0).forEach((function(t){Ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ze={components:{AstronautIcon:Be,ChevronDownIcon:o.v4q,PlusSmIcon:o.d2U,FilterIcon:o.k1n,XIcon:o.b0D,TrashIcon:o.XHJ,PencilIcon:o.vdY,EyeIcon:o.tEF},data:function(){return{showFilters:!1,isRequestOngoing:!0,filters:{display_name:"",contact_name:"",phone:""}}},computed:Ue(Ue({showEmptyScreen:function(){return!this.totalCustomers&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"}},(0,i.Se)("customer",["customers","selectedCustomers","totalCustomers","selectAllField"])),{},{selectField:{get:function(){return this.selectedCustomers},set:function(e){this.selectCustomer(e)}},selectAllFieldStatus:{get:function(){return this.selectAllField},set:function(e){this.setSelectAllState(e)}}}),watch:{filters:{handler:"setFilters",deep:!0}},destroyed:function(){this.selectAllField&&this.selectAllCustomers()},methods:Ue(Ue({},(0,i.nv)("customer",["fetchCustomers","selectAllCustomers","selectCustomer","deleteCustomer","deleteMultipleCustomers","setSelectAllState"])),{},{refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return Ve(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={display_name:t.filters.display_name,contact_name:t.filters.contact_name,phone:t.filters.phone,orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchCustomers(i);case 5:return o=n.sent,t.isRequestOngoing=!1,n.abrupt("return",{data:o.data.customers.data,pagination:{totalPages:o.data.customers.last_page,currentPage:r}});case 8:case"end":return n.stop()}}),n)})))()},setFilters:function(){this.refreshTable()},clearFilter:function(){this.filters={display_name:"",contact_name:"",phone:""}},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},removeCustomer:function(e){var t=this;return Ve(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$tc("customers.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ve(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=10;break}return n.next=3,t.deleteCustomer({ids:[e]});case 3:if(!(a=n.sent).data.success){n.next=8;break}return window.toastr.success(t.$tc("customers.deleted_message",1)),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:return window.toastr.error(a.data.message),n.abrupt("return",!0);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},removeMultipleCustomers:function(){var e=this;return Ve(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("customers.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=Ve(Y().mark((function t(n){var r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,e.deleteMultipleCustomers();case 3:(r=t.sent).data.success?(window.toastr.success(e.$tc("customers.deleted_message",2)),e.refreshTable()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}})};const Ge=(0,_.Z)(Ze,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"customer-create"},[n("sw-page-header",{attrs:{title:e.$t("customers.title")}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{title:e.$t("general.home"),to:"dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("customers.customer",2),to:"#",active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalCustomers,expression:"totalCustomers"}],attrs:{size:"lg",variant:"primary-outline"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"h-4 ml-1 -mr-1 font-bold"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"customers/create",size:"lg",variant:"primary"}},[n("plus-sm-icon",{staticClass:"h-6 mr-1 -ml-2 font-bold"}),e._v("\n "+e._s(e.$t("customers.new_customer"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}]},[n("sw-input-group",{staticClass:"flex-1 mt-2",attrs:{label:e.$t("customers.display_name")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",autocomplete:"off"},model:{value:e.filters.display_name,callback:function(t){e.$set(e.filters,"display_name",t)},expression:"filters.display_name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$t("customers.contact_name")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"address_name",autocomplete:"off"},model:{value:e.filters.contact_name,callback:function(t){e.$set(e.filters,"contact_name",t)},expression:"filters.contact_name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$t("customers.phone")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"phone",autocomplete:"off"},model:{value:e.filters.phone,callback:function(t){e.$set(e.filters,"phone",t)},expression:"filters.phone"}})],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-black cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v(e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),n("sw-empty-table-placeholder",{directives:[{name:"show",rawName:"v-show",value:e.showEmptyScreen,expression:"showEmptyScreen"}],attrs:{title:e.$t("customers.no_customers"),description:e.$t("customers.list_of_customers")}},[n("astronaut-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/customers/create",size:"lg",variant:"primary-outline"},slot:"actions"},[e._v("\n "+e._s(e.$t("customers.add_new_customer"))+"\n ")])],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative table-container"},[n("div",{staticClass:"relative flex items-center justify-between h-10 mt-5 border-b-2 border-gray-200 border-solid"},[n("p",{staticClass:"text-sm"},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.customers.length))]),e._v("\n "+e._s(e.$t("general.of"))+" "),n("b",[e._v(e._s(e.totalCustomers))])]),e._v(" "),n("sw-transition",{attrs:{type:"fade"}},[e.selectedCustomers.length?n("sw-dropdown",[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultipleCustomers}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-12"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllCustomers},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllCustomers},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{"show-filter":!1,data:e.fetchData,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"relative block"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,filterable:!0,label:e.$t("customers.display_name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("customers.display_name")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"customers/"+t.id+"/view"}}},[e._v("\n "+e._s(t.name)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("customers.contact_name"),show:"contact_name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("customers.contact_name")))]),e._v(" "),n("span",[e._v("\n "+e._s(t.contact_name?t.contact_name:"No Contact Name")+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("customers.phone"),show:"phone"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("customers.phone")))]),e._v(" "),n("span",[e._v("\n "+e._s(t.phone?t.phone:"No Contact")+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("customers.amount_due"),show:"due_amount"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("customers.amount_due"))+" ")]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.due_amount,t.currency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("customers.added_on"),"sort-as":"created_at",show:"formattedCreatedAt"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("customers.action"))+" ")]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{to:"customers/"+t.id+"/edit","tag-name":"router-link"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{to:"customers/"+t.id+"/view","tag-name":"router-link"}},[n("eye-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.view"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeCustomer(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)],1)}),[],!1,null,null,null).exports;var Je=n(7113),Xe=(n(6486),n(254));function Qe(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function et(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Qe(i,r,a,o,s,"next",e)}function s(e){Qe(i,r,a,o,s,"throw",e)}o(void 0)}))}}function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach((function(t){rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var at=n(379),it=at.required,ot=at.minLength,st=at.email,lt=at.url,ct=at.maxLength;const ut={components:{DocumentDuplicateIcon:o.eXB},mixins:[Xe.Z],data:function(){return{isCopyFromBilling:!1,isLoading:!1,initLoad:!1,formData:{name:null,contact_name:null,email:null,phone:null,currency_id:null,website:null,addresses:[]},currency:null,billing:{name:null,country_id:null,state:null,city:null,phone:null,zip:null,address_street_1:null,address_street_2:null,type:"billing"},shipping:{name:null,country_id:null,state:null,city:null,phone:null,zip:null,address_street_1:null,address_street_2:null,type:"shipping"},currencyList:[],billing_country:null,shipping_country:null,countries:[]}},validations:{formData:{name:{required:it,minLength:ot(3)},email:{email:st},website:{url:lt}},billing:{address_street_1:{maxLength:ct(255)},address_street_2:{maxLength:ct(255)}},shipping:{address_street_1:{maxLength:ct(255)},address_street_2:{maxLength:ct(255)}}},computed:nt(nt(nt({},(0,i.Se)(["currencies"])),(0,i.Se)("company",["defaultCurrency"])),{},{isEdit:function(){return"customers.edit"===this.$route.name},pageTitle:function(){return"customers.edit"===this.$route.name?this.$t("customers.edit_customer"):this.$t("customers.new_customer")},hasBillingAdd:function(){var e=this.billing;return!!(e.name||e.country_id||e.state||e.city||e.phone||e.zip||e.address_street_1||e.address_street_2)},hasShippingAdd:function(){var e=this.shipping;return!!(e.name||e.country_id||e.state||e.city||e.phone||e.zip||e.address_street_1||e.address_street_2)},displayNameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?this.$tc("validation.name_min_length",this.$v.formData.name.$params.minLength.min,{count:this.$v.formData.name.$params.minLength.min}):this.$tc("validation.required"):""},emailError:function(){return this.$v.formData.email.$error?this.$v.formData.email.email?void 0:this.$tc("validation.email_incorrect"):""},urlError:function(){return this.$v.formData.website.$error?this.$v.formData.website.url?void 0:this.$tc("validation.invalid_url"):""},billAddress1Error:function(){return this.$v.billing.address_street_1.$error?this.$v.billing.address_street_1.maxLength?void 0:this.$t("validation.address_maxlength"):""},billAddress2Error:function(){return this.$v.billing.address_street_2.$error?this.$v.billing.address_street_2.maxLength?void 0:this.$t("validation.address_maxlength"):""},shipAddress1Error:function(){return this.$v.shipping.address_street_1.$error?this.$v.shipping.address_street_1.maxLength?void 0:this.$t("validation.address_maxlength"):""},shipAddress2Error:function(){return this.$v.shipping.address_street_2.$error?this.$v.shipping.address_street_2.maxLength?void 0:this.$t("validation.address_maxlength"):""}}),watch:{billing_country:function(e){e?(this.billing.country_id=e.id,this.isDisabledBillingState=!1):this.billing.country_id=null},shipping_country:function(e){if(e)return this.shipping.country_id=e.id,!0;this.shipping.country_id=null}},created:function(){this.fetchInitData()},mounted:function(){if(this.isEdit)return this.loadCustomer(),!0;this.currency=this.defaultCurrency,this.setInitialCustomFields("Customer")},methods:nt(nt(nt({},(0,i.nv)("customer",["addCustomer","fetchCustomer","updateCustomer","fetchViewCustomer"])),(0,i.nv)("customFields",["fetchCustomFields"])),{},{currencyNameWithCode:function(e){var t=e.name,n=e.code;return"".concat(n," - ").concat(t)},loadCustomer:function(){var e=this;return et(Y().mark((function t(){var n,r,a,i;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={id:e.$route.params.id},t.next=3,e.fetchCustomer(n);case 3:return r=t.sent,e.formData=nt(nt({},e.formData),r.data.customer),r.data.customer.billing_address&&(e.billing=r.data.customer.billing_address,r.data.customer.billing_address.country_id&&(e.billing_country=r.data.customer.billing_address.country)),r.data.customer.shipping_address&&(e.shipping=r.data.customer.shipping_address,r.data.customer.shipping_address.country_id&&(e.shipping_country=r.data.customer.shipping_address.country)),e.formData.currency_id=r.data.customer.currency_id,e.currency=r.data.customer.currency,t.next=11,e.fetchCustomFields({type:"Customer",limit:"all"});case 11:a=t.sent,i=a.data.customFields.data,e.formData.fields=r.data.customer.fields,e.setEditCustomFields(r.data.customer.fields,i);case 15:case"end":return t.stop()}}),t)})))()},fetchInitData:function(){var e=this;return et(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.initLoad=!0,t.next=3,window.axios.get("/api/v1/countries");case 3:(n=t.sent)&&(e.countries=n.data.countries),e.initLoad=!1;case 6:case"end":return t.stop()}}),t)})))()},copyAddress:function(e){!0===e?(this.isCopyFromBilling=!0,this.shipping=nt(nt({},this.billing),{},{type:"shipping"}),this.shipping_country=this.billing_country,this.shipping_state=this.billing_state,this.shipping_city=this.billing_city):(this.shipping=nt(nt({},Je.Z),{},{type:"shipping"}),this.shipping_country=null,this.shipping_state=null,this.shipping_city=null)},submitCustomerData:function(){var e=this;return et(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.$v.formData.$touch(),t.next=3,e.touchCustomField();case 3:if(n=t.sent,!e.$v.$invalid&&!n.error){t.next=6;break}return t.abrupt("return",!0);case 6:if(e.hasBillingAdd&&e.hasShippingAdd?e.formData.addresses=[nt({},e.billing),nt({},e.shipping)]:e.hasBillingAdd?e.formData.addresses=[nt({},e.billing)]:e.hasShippingAdd&&(e.formData.addresses=[nt({},e.shipping)]),t.prev=7,r=null,e.isLoading=!0,e.currency&&(e.formData.currency_id=e.currency.id),!e.isEdit){t.next=19;break}return t.next=14,e.updateCustomer(e.formData);case 14:(r=t.sent).data.success&&(e.$router.push("/admin/customers/".concat(r.data.customer.id,"/view")),window.toastr.success(e.$t("customers.updated_message"))),r.data.error&&window.toastr.error(e.$t("validation.email_already_taken")),t.next=23;break;case 19:return t.next=21,e.addCustomer(e.formData);case 21:(r=t.sent).data.success&&(e.$router.push("/admin/customers/".concat(r.data.customer.id,"/view")),window.toastr.success(e.$t("customers.created_message")));case 23:return e.isLoading=!1,t.abrupt("return",!0);case 27:t.prev=27,t.t0=t.catch(7),e.isLoading=!1,err.response.data.errors.email&&window.toastr.error(e.$t("validation.email_already_taken"));case 31:case"end":return t.stop()}}),t,null,[[7,27]])})))()}})};const dt=(0,_.Z)(ut,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"customer-create"},[e.initLoad?n("base-loader"):n("form",{on:{submit:function(t){return t.preventDefault(),e.submitCustomerData(t)}}},[n("sw-page-header",{staticClass:"mb-5",attrs:{title:e.pageTitle}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"/admin/dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"/admin/customers",title:e.$tc("customers.customer",2)}}),e._v(" "),"customers.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("customers.edit_customer"),active:""}}):n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("customers.new_customer"),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{staticClass:"hidden md:relative md:flex",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit",size:"lg"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n\n "+e._s(e.isEdit?e.$t("customers.update_customer"):e.$t("customers.save_customer"))+"\n ")],1)],1)],2),e._v(" "),n("sw-card",{attrs:{variant:"customer-card"}},[n("div",{staticClass:"grid grid-cols-5 gap-4 mb-8"},[n("h6",{staticClass:"col-span-5 sw-section-title lg:col-span-1"},[e._v("\n "+e._s(e.$t("customers.basic_info"))+"\n ")]),e._v(" "),n("div",{staticClass:"grid col-span-5 lg:col-span-4 gap-y-6 gap-x-4 md:grid-cols-6"},[n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.display_name"),error:e.displayNameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.name.$error,focus:"",type:"text",name:"name",tabindex:"1"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.primary_contact_name")}},[n("sw-input",{attrs:{label:e.$t("customers.contact_name"),type:"text",tabindex:"2"},model:{value:e.formData.contact_name,callback:function(t){e.$set(e.formData,"contact_name","string"==typeof t?t.trim():t)},expression:"formData.contact_name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.email"),error:e.emailError}},[n("sw-input",{attrs:{invalid:e.$v.formData.email.$error,type:"text",name:"email",tabindex:"3"},on:{input:function(t){return e.$v.formData.email.$touch()}},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email","string"==typeof t?t.trim():t)},expression:"formData.email"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.phone")}},[n("sw-input",{attrs:{type:"text",name:"phone",tabindex:"4"},model:{value:e.formData.phone,callback:function(t){e.$set(e.formData,"phone","string"==typeof t?t.trim():t)},expression:"formData.phone"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.primary_currency")}},[n("sw-select",{attrs:{options:e.currencies,"custom-label":e.currencyNameWithCode,"allow-empty":!1,searchable:!0,"show-labels":!1,tabindex:5,placeholder:e.$t("customers.select_currency"),label:"name","track-by":"id"},model:{value:e.currency,callback:function(t){e.currency=t},expression:"currency"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.website"),error:e.urlError}},[n("sw-input",{attrs:{invalid:e.$v.formData.website.$error,type:"url",tabindex:"6"},on:{input:function(t){return e.$v.formData.website.$touch()}},model:{value:e.formData.website,callback:function(t){e.$set(e.formData,"website",t)},expression:"formData.website"}})],1)],1)]),e._v(" "),n("sw-divider",{staticClass:"mb-5 md:mb-8"}),e._v(" "),n("div",{staticClass:"grid grid-cols-5 gap-4 mb-8"},[n("h6",{staticClass:"col-span-5 sw-section-title lg:col-span-1"},[e._v("\n "+e._s(e.$t("customers.billing_address"))+"\n ")]),e._v(" "),n("div",{staticClass:"grid col-span-5 lg:col-span-4 gap-y-6 gap-x-4 md:grid-cols-6"},[n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.name")}},[n("sw-input",{attrs:{type:"text",name:"address_name",tabindex:"7"},model:{value:e.billing.name,callback:function(t){e.$set(e.billing,"name","string"==typeof t?t.trim():t)},expression:"billing.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.country")}},[n("sw-select",{attrs:{options:e.countries,searchable:!0,"show-labels":!1,"allow-empty":!0,tabindex:8,placeholder:e.$t("general.select_country"),label:"name","track-by":"id"},model:{value:e.billing_country,callback:function(t){e.billing_country=t},expression:"billing_country"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.state")}},[n("sw-input",{attrs:{name:"billing.state",type:"text",tabindex:"9"},model:{value:e.billing.state,callback:function(t){e.$set(e.billing,"state",t)},expression:"billing.state"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.city")}},[n("sw-input",{attrs:{name:"billing.city",type:"text",tabindex:"10"},model:{value:e.billing.city,callback:function(t){e.$set(e.billing,"city",t)},expression:"billing.city"}})],1),e._v(" "),n("div",{staticClass:"md:col-span-3"},[n("sw-input-group",{attrs:{label:e.$t("customers.address"),error:e.billAddress1Error}},[n("sw-textarea",{attrs:{placeholder:e.$t("general.street_1"),type:"text",name:"billing_street1",rows:"3",tabindex:"11"},on:{input:function(t){return e.$v.billing.address_street_1.$touch()}},model:{value:e.billing.address_street_1,callback:function(t){e.$set(e.billing,"address_street_1","string"==typeof t?t.trim():t)},expression:"billing.address_street_1"}})],1),e._v(" "),n("sw-input-group",{attrs:{error:e.billAddress2Error}},[n("sw-textarea",{attrs:{placeholder:e.$t("general.street_2"),type:"text",name:"billing_street2",rows:"3",tabindex:"12"},on:{input:function(t){return e.$v.billing.address_street_2.$touch()}},model:{value:e.billing.address_street_2,callback:function(t){e.$set(e.billing,"address_street_2","string"==typeof t?t.trim():t)},expression:"billing.address_street_2"}})],1)],1),e._v(" "),n("div",{staticClass:"md:col-span-3"},[n("sw-input-group",{staticClass:"mb-6",attrs:{label:e.$t("customers.phone")}},[n("sw-input",{attrs:{type:"text",name:"phone",tabindex:"13"},model:{value:e.billing.phone,callback:function(t){e.$set(e.billing,"phone","string"==typeof t?t.trim():t)},expression:"billing.phone"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("customers.zip_code")}},[n("sw-input",{attrs:{tabindex:"14",type:"text",name:"zip"},model:{value:e.billing.zip,callback:function(t){e.$set(e.billing,"zip","string"==typeof t?t.trim():t)},expression:"billing.zip"}})],1)],1)],1)]),e._v(" "),n("sw-divider",{staticClass:"mb-5 md:mb-8"}),e._v(" "),n("div",{staticClass:"flex items-center justify-start mb-6 md:justify-end md:mb-0"},[n("div",{staticClass:"p-1"},[n("sw-button",{ref:"sameAddress",staticClass:"h-8 px-3 py-1 mb-4",attrs:{variant:"primary",type:"button"},on:{click:function(t){return e.copyAddress(!0)}}},[n("document-duplicate-icon",{staticClass:"h-4 mr-1 -ml-2"}),e._v(" "),n("span",{staticClass:"text-xs"},[e._v("\n "+e._s(e.$t("customers.copy_billing_address"))+"\n ")])],1)],1)]),e._v(" "),n("div",{staticClass:"grid grid-cols-5 gap-4 mb-8"},[n("h6",{staticClass:"col-span-5 sw-section-title lg:col-span-1"},[e._v("\n "+e._s(e.$t("customers.shipping_address"))+"\n ")]),e._v(" "),n("div",{staticClass:"grid col-span-5 lg:col-span-4 gap-y-6 gap-x-4 md:grid-cols-6"},[n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.name")}},[n("sw-input",{attrs:{type:"text",name:"address_name",tabindex:"15"},model:{value:e.shipping.name,callback:function(t){e.$set(e.shipping,"name","string"==typeof t?t.trim():t)},expression:"shipping.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.country")}},[n("sw-select",{attrs:{options:e.countries,searchable:!0,"show-labels":!1,tabindex:16,"allow-empty":!0,placeholder:e.$t("general.select_country"),label:"name","track-by":"id"},model:{value:e.shipping_country,callback:function(t){e.shipping_country=t},expression:"shipping_country"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.state")}},[n("sw-input",{attrs:{name:"shipping.state",type:"text",tabindex:"17"},model:{value:e.shipping.state,callback:function(t){e.$set(e.shipping,"state",t)},expression:"shipping.state"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.city")}},[n("sw-input",{attrs:{name:"shipping.city",type:"text",tabindex:"18"},model:{value:e.shipping.city,callback:function(t){e.$set(e.shipping,"city",t)},expression:"shipping.city"}})],1),e._v(" "),n("sw-input-group",{staticClass:"md:col-span-3",attrs:{label:e.$t("customers.address")}},[n("sw-textarea",{attrs:{tabindex:19,placeholder:e.$t("general.street_1"),type:"text",name:"street_1",rows:"3"},on:{input:function(t){return e.$v.shipping.address_street_1.$touch()}},model:{value:e.shipping.address_street_1,callback:function(t){e.$set(e.shipping,"address_street_1","string"==typeof t?t.trim():t)},expression:"shipping.address_street_1"}}),e._v(" "),e.$v.shipping.address_street_1.$error?n("div",[e.$v.shipping.address_street_1.maxLength?e._e():n("span",{staticClass:"text-sm text-danger"},[e._v(e._s(e.$t("validation.address_maxlength")))])]):e._e(),e._v(" "),n("sw-textarea",{attrs:{tabindex:20,placeholder:e.$t("general.street_2"),type:"text",name:"street_2",rows:"3"},on:{input:function(t){return e.$v.shipping.address_street_2.$touch()}},model:{value:e.shipping.address_street_2,callback:function(t){e.$set(e.shipping,"address_street_2","string"==typeof t?t.trim():t)},expression:"shipping.address_street_2"}}),e._v(" "),e.$v.shipping.address_street_2.$error?n("div",[e.$v.shipping.address_street_2.maxLength?e._e():n("span",{staticClass:"text-danger"},[e._v(e._s(e.$t("validation.address_maxlength")))])]):e._e()],1),e._v(" "),n("div",{staticClass:"md:col-span-3"},[n("sw-input-group",{staticClass:"mb-6",attrs:{label:e.$t("customers.phone")}},[n("sw-input",{attrs:{type:"text",name:"phone",tabindex:"21"},model:{value:e.shipping.phone,callback:function(t){e.$set(e.shipping,"phone","string"==typeof t?t.trim():t)},expression:"shipping.phone"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("customers.zip_code")}},[n("sw-input",{attrs:{type:"text",name:"zip",tabindex:"22"},model:{value:e.shipping.zip,callback:function(t){e.$set(e.shipping,"zip","string"==typeof t?t.trim():t)},expression:"shipping.zip"}})],1)],1)],1)]),e._v(" "),e.customFields.length>0?n("sw-divider",{staticClass:"mb-5 md:mb-8"}):e._e(),e._v(" "),e.customFields.length>0?n("div",{staticClass:"grid grid-cols-5 gap-4 mb-8"},[n("h6",{staticClass:"col-span-5 sw-section-title lg:col-span-1"},[e._v("\n "+e._s(e.$t("settings.custom_fields.title"))+"\n ")]),e._v(" "),n("div",{staticClass:"grid col-span-5 lg:col-span-4 gap-y-6 gap-x-4 md:grid-cols-6"},e._l(e.customFields,(function(t,r){return n("sw-input-group",{key:r,staticClass:"md:col-span-3",attrs:{label:t.label,required:!!t.is_required}},[n(t.type+"Field",{tag:"component",attrs:{type:t.type.label,field:t,isEdit:e.isEdit,"invalid-fields":e.invalidFields,tabindex:23+r},on:{update:e.setCustomFieldValue}})],1)})),1)]):e._e(),e._v(" "),n("sw-button",{staticClass:"flex w-full sm:hidden md:hidden",attrs:{disabled:e.isLoading,loading:e.isLoading,variant:"primary",type:"submit",size:"lg"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.isEdit?e.$t("customers.update_customer"):e.$t("customers.save_customer"))+"\n ")],1)],1)],1)],1)}),[],!1,null,null,null).exports;function pt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function mt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){pt(i,r,a,o,s,"next",e)}function s(e){pt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){_t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vt=n(6486);const gt={components:{FilterIcon:o.k1n,SortAscendingIcon:o.TV4,SortDescendingIcon:o.mcG,SearchIcon:o.W1M},data:function(){return{id:null,customers:[],customer:null,currency:null,searchData:{orderBy:null,orderByField:null,searchText:null},isSearching:!1}},computed:ht(ht({getOrderBy:function(){return"asc"===this.searchData.orderBy||null==this.searchData.orderBy},getOrderName:function(){return this.getOrderBy?this.$t("general.ascending"):this.$t("general.descending")}},(0,i.Se)("company",["defaultCurrency"])),(0,i.Se)("customer",["selectedViewCustomer"])),watch:{$route:function(e,t){this.loadCustomer()}},created:function(){this.loadCustomers(),this.loadCustomer(),this.onSearch=vt.debounce(this.onSearch,500)},methods:ht(ht({},(0,i.nv)("customer",["fetchCustomers"])),{},{hasActiveUrl:function(e){return this.$route.params.id==e},loadCustomers:function(){var e=this;return mt(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchCustomers({limit:"all"});case 2:(n=t.sent).data.customers&&(e.customers=n.data.customers.data),setTimeout((function(){e.scrollToCustomer()}),500);case 5:case"end":return t.stop()}}),t)})))()},scrollToCustomer:function(){var e=document.getElementById("customer-".concat(this.$route.params.id));e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"))},loadCustomer:function(){var e=this;return mt(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.customer=e.selectedViewCustomer,e.currency=e.selectedViewCustomer.currency;case 2:case"end":return t.stop()}}),t)})))()},onSearch:function(){var e=this;return mt(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},""!==e.searchData.searchText&&null!==e.searchData.searchText&&void 0!==e.searchData.searchText&&(n.display_name=e.searchData.searchText),null!==e.searchData.orderBy&&void 0!==e.searchData.orderBy&&(n.orderBy=e.searchData.orderBy),null!==e.searchData.orderByField&&void 0!==e.searchData.orderByField&&(n.orderByField=e.searchData.orderByField),e.isSearching=!0,t.prev=5,t.next=8,e.fetchCustomers(ht({},n));case 8:r=t.sent,e.isSearching=!1,r.data&&(e.customers=r.data.customers.data),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(5),e.isSearching=!1;case 16:case"end":return t.stop()}}),t,null,[[5,13]])})))()},sortData:function(){return"asc"===this.searchData.orderBy?(this.searchData.orderBy="desc",this.onSearch(),!0):(this.searchData.orderBy="asc",this.onSearch(),!0)}})};const yt=(0,_.Z)(gt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},[n("div",{staticClass:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},[n("sw-input",{staticClass:"mb-6",attrs:{placeholder:e.$t("general.search"),type:"text",variant:"gray"},on:{input:function(t){return e.onSearch()}},model:{value:e.searchData.searchText,callback:function(t){e.$set(e.searchData,"searchText",t)},expression:"searchData.searchText"}},[n("search-icon",{staticClass:"h-5",attrs:{slot:"rightIcon"},slot:"rightIcon"})],1),e._v(" "),n("div",{staticClass:"flex mb-6 ml-3",attrs:{role:"group","aria-label":"First group"}},[n("sw-dropdown",{attrs:{"close-on-select":!1,align:"left",position:"bottom-start"}},[n("sw-button",{attrs:{slot:"activator",size:"md",variant:"gray-light"},slot:"activator"},[n("filter-icon",{staticClass:"h-5"})],1),e._v(" "),n("div",{staticClass:"px-2 py-1 pb-2 mb-2 text-sm border-b border-gray-200 border-solid"},[e._v("\n "+e._s(e.$t("general.sort_by"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{staticClass:"flex cursor-pointer"},[n("sw-input-group",{staticClass:"-mt-3 font-normal"},[n("sw-radio",{attrs:{id:"filter_create_date",label:e.$t("customers.create_date"),size:"sm",name:"filter",value:"invoices.created_at"},on:{change:e.onSearch},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1),e._v(" "),n("sw-dropdown-item",{staticClass:"flex cursor-pointer"},[n("sw-input-group",{staticClass:"-mt-3 font-normal"},[n("sw-radio",{attrs:{id:"filter_display_name",label:e.$t("customers.display_name"),size:"sm",name:"filter",value:"users.name"},on:{change:e.onSearch},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1)],1),e._v(" "),n("sw-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top-center",value:{content:e.getOrderName},expression:"{ content: getOrderName }",modifiers:{"top-center":!0}}],staticClass:"ml-1",attrs:{size:"md",variant:"gray-light"},on:{click:e.sortData}},[e.getOrderBy?n("sort-ascending-icon",{staticClass:"h-5"}):n("sort-descending-icon",{staticClass:"h-5"})],1)],1)],1),e._v(" "),e.isSearching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):n("div",{staticClass:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sidebar sw-scroll"},[e._l(e.customers,(function(t,r){return n("router-link",{key:r,class:["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":e.hasActiveUrl(t.id)}],staticStyle:{"border-top":"1px solid rgba(185, 193, 209, 0.41)"},attrs:{to:"/admin/customers/"+t.id+"/view",id:"customer-"+t.id}},[n("div",[n("div",{staticClass:"pr-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),t.contact_name?n("div",{staticClass:"mt-1 text-xs not-italic font-medium leading-5 text-gray-600"},[e._v("\n "+e._s(t.contact_name)+"\n ")]):e._e()]),e._v(" "),n("div",{staticClass:"flex-1 whitespace-nowrap right"},[n("div",{staticClass:"text-xl not-italic font-semibold leading-8 text-right text-gray-900",domProps:{innerHTML:e._s(e.$utils.formatMoney(t.due_amount,t.currency))}})])])})),e._v(" "),e.customers.length?e._e():n("p",{staticClass:"flex justify-center px-4 mt-5 text-sm text-gray-600"},[e._v("\n "+e._s(e.$t("customers.no_matching_customers"))+"\n ")])],2)],1)}),[],!1,null,null,null).exports;function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xt={data:function(){return{customer:null,customFields:[]}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){wt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({getFormattedBillingAddress:function(){var e="";return this.selectedViewCustomer.customer&&this.selectedViewCustomer.customer.billing_address?(this.selectedViewCustomer.customer.billing_address.address_street_1&&(e+="<span>".concat(this.selectedViewCustomer.customer.billing_address.address_street_1,",</span><br>")),this.selectedViewCustomer.customer.billing_address.address_street_2&&(e+="<span>".concat(this.selectedViewCustomer.customer.billing_address.address_street_2,",</span><br>")),this.selectedViewCustomer.customer.billing_address.city&&(e+="<span>".concat(this.selectedViewCustomer.customer.billing_address.city,",</span> ")),this.selectedViewCustomer.customer.billing_address.state&&(e+="<span>".concat(this.selectedViewCustomer.customer.billing_address.state,",</span><br>")),this.selectedViewCustomer.customer.billing_address.country&&(e+="<span>".concat(this.selectedViewCustomer.customer.billing_address.country.name,".</span> ")),this.selectedViewCustomer.customer.billing_address.zip&&(e+="<span>".concat(this.selectedViewCustomer.customer.billing_address.zip,".</span> ")),e):e},getFormattedShippingAddress:function(){var e="";return this.selectedViewCustomer.customer&&this.selectedViewCustomer.customer.shipping_address?(this.selectedViewCustomer.customer.shipping_address.address_street_1&&(e+="<span>".concat(this.selectedViewCustomer.customer.shipping_address.address_street_1,",</span><br>")),this.selectedViewCustomer.customer.shipping_address.address_street_2&&(e+="<span>".concat(this.selectedViewCustomer.customer.shipping_address.address_street_2,",</span><br>")),this.selectedViewCustomer.customer.shipping_address.city&&(e+="<span>".concat(this.selectedViewCustomer.customer.shipping_address.city,",</span> ")),this.selectedViewCustomer.customer.shipping_address.state&&(e+="<span>".concat(this.selectedViewCustomer.customer.shipping_address.state,",</span><br>")),this.selectedViewCustomer.customer.shipping_address.country&&(e+="<span>".concat(this.selectedViewCustomer.customer.shipping_address.country.name,".</span> ")),this.selectedViewCustomer.customer.shipping_address.zip&&(e+="<span>".concat(this.selectedViewCustomer.customer.shipping_address.zip,".</span> ")),e):e},getCustomField:function(){return this.selectedViewCustomer.customer.fields?this.selectedViewCustomer.customer.fields:[]}},(0,i.Se)("customer",["selectedViewCustomer"])),watch:{$route:function(e,t){this.customer=this.selectedViewCustomer}}};function kt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Dt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){kt(i,r,a,o,s,"next",e)}function s(e){kt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){Ct(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lt={components:{LineChart:Le,CustomerInfo:(0,_.Z)(xt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pt-6 mt-5 border-t-2 border-solid lg:pt-8 md:pt-4",staticStyle:{"border-top-color":"#f9fbff"}},[n("div",{staticClass:"col-span-12"},[n("p",{staticClass:"text-gray-500 uppercase sw-section-title"},[e._v("\n "+e._s(e.$t("customers.basic_info"))+"\n ")]),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mt-5 lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-1"},[n("div",[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.display_name"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(e.selectedViewCustomer.customer&&e.selectedViewCustomer.customer.name?e.selectedViewCustomer.customer.name:"")+"\n ")])]),e._v(" "),n("div",[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.primary_contact_name"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(e.selectedViewCustomer.customer&&e.selectedViewCustomer.customer.contact_name?e.selectedViewCustomer.customer.contact_name:"")+"\n ")])]),e._v(" "),n("div",[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.email"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(e.selectedViewCustomer.customer&&e.selectedViewCustomer.customer.email?e.selectedViewCustomer.customer.email:"")+"\n ")])])]),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mt-5 lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-1"},[n("div",[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("wizard.currency"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(e.selectedViewCustomer.customer.currency?e.selectedViewCustomer.customer.currency.code+" ("+e.selectedViewCustomer.customer.currency.symbol+")":"")+"\n ")])]),e._v(" "),n("div",[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.phone_number"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(e.selectedViewCustomer.customer&&e.selectedViewCustomer.customer.phone?e.selectedViewCustomer.customer.phone:"")+"\n ")])]),e._v(" "),n("div",[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.website"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(e.selectedViewCustomer.customer&&e.selectedViewCustomer.customer.website?e.selectedViewCustomer.customer.website:"")+"\n ")])])]),e._v(" "),e.getFormattedShippingAddress.length||e.getFormattedBillingAddress.length?n("p",{staticClass:"mt-8 text-gray-500 uppercase sw-section-title"},[e._v("\n "+e._s(e.$t("customers.address"))+"\n ")]):e._e(),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 md:grid-cols-2 sm:grid-cols-1 lg:grid-cols-2"},[e.getFormattedBillingAddress.length?n("div",{staticClass:"mt-5"},[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.billing_address"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic",domProps:{innerHTML:e._s(e.getFormattedBillingAddress)}})]):e._e(),e._v(" "),e.getFormattedShippingAddress.length?n("div",{staticClass:"mt-5"},[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(e.$t("customers.shipping_address"))+"\n ")]),e._v(" "),n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic",domProps:{innerHTML:e._s(e.getFormattedShippingAddress)}})]):e._e()]),e._v(" "),e.getCustomField.length>0?n("p",{staticClass:"mt-8 text-gray-500 uppercase sw-section-title"},[e._v("\n "+e._s(e.$t("settings.custom_fields.title"))+"\n ")]):e._e(),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mt-5 lg:grid-cols-3 md:grid-cols-2 sm:grid-cols-1"},e._l(e.getCustomField,(function(t,r){return n("div",{key:r,attrs:{required:!!t.is_required}},[n("p",{staticClass:"mb-1 text-sm font-normal leading-5 non-italic text-primary-800"},[e._v("\n "+e._s(t.custom_field.label)+"\n ")]),e._v(" "),"Switch"===t.type?n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[1===t.defaultAnswer?n("span",[e._v(" Yes ")]):n("span",[e._v(" No ")])]):n("p",{staticClass:"text-sm font-bold leading-5 text-black non-italic"},[e._v("\n "+e._s(t.defaultAnswer)+"\n ")])])})),0)])])}),[],!1,null,null,null).exports,ChartSquareBarIcon:s.iGq},data:function(){return{id:null,customers:[],isLoaded:!1,chartData:null,years:["This year","Previous year"],selectedYear:"This year"}},computed:St(St({},(0,i.Se)("company",["defaultCurrency"])),{},{getChartInvoices:function(){return this.chartData&&this.chartData.invoiceTotals?this.chartData.invoiceTotals:[]},getChartExpenses:function(){return this.chartData&&this.chartData.expenseTotals?this.chartData.expenseTotals:[]},getReceiptTotals:function(){return this.chartData&&this.chartData.receiptTotals?this.chartData.receiptTotals:[]},getNetProfits:function(){return this.chartData&&this.chartData.netProfits?this.chartData.netProfits:[]},getChartMonths:function(){return this.chartData&&this.chartData.months?this.chartData.months:[]},getFormattedSalesTotal:function(){return this.chartData&&this.chartData.salesTotal?this.$utils.formatMoney(this.chartData.salesTotal,this.defaultCurrency):0},getFormattedTotalReceipts:function(){return this.chartData&&this.chartData.totalReceipts?this.$utils.formatMoney(this.chartData.totalReceipts,this.defaultCurrency):0},getFormattedTotalExpenses:function(){return this.chartData&&this.chartData.totalExpenses?this.$utils.formatMoney(this.chartData.totalExpenses,this.defaultCurrency):0},getFormattedTotalNetProfit:function(){return this.chartData&&this.chartData.netProfit?this.$utils.formatMoney(this.chartData.netProfit,this.defaultCurrency):0}}),watch:{$route:function(e,t){this.loadCustomer(),this.selectedYear="This year"}},created:function(){this.loadCustomer()},methods:St(St({},(0,i.nv)("customer",["fetchViewCustomer"])),{},{loadCustomer:function(){var e=this;return Dt(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoaded=!1,t.next=3,e.fetchViewCustomer({id:e.$route.params.id});case 3:(n=t.sent).data&&(e.chartData=n.data.chartData),e.isLoaded=!1;case 6:case"end":return t.stop()}}),t)})))()},onChangeYear:function(e){var t=this;return Dt(Y().mark((function n(){var r,a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("Previous year"!=e){n.next=6;break}return n.next=3,t.fetchViewCustomer({id:t.$route.params.id,previous_year:!0});case 3:return(r=n.sent).data&&(t.chartData=r.data.chartData),n.abrupt("return",!0);case 6:return n.next=8,t.fetchViewCustomer({id:t.$route.params.id});case 8:return(a=n.sent).data&&(t.chartData=a.data.chartData),n.abrupt("return",!0);case 11:case"end":return n.stop()}}),n)})))()}})};const Tt=(0,_.Z)(Lt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.chartData?n("sw-card",{staticClass:"flex flex-col mt-6"},[n("div",{staticClass:"grid grid-cols-12"},[n("div",{staticClass:"col-span-12 xl:col-span-9 xxl:col-span-10"},[n("div",{staticClass:"flex justify-between mt-1 mb-6"},[n("h6",{staticClass:"flex items-center sw-section-title"},[n("chart-square-bar-icon",{staticClass:"h-5 text-primary-400"}),e._v(e._s(e.$t("dashboard.monthly_chart.title"))+"\n ")],1),e._v(" "),n("div",{staticClass:"w-40 h-10"},[n("sw-select",{attrs:{options:e.years,"allow-empty":!1,"show-labels":!1,placeholder:e.$t("dashboard.select_year")},on:{select:e.onChangeYear},model:{value:e.selectedYear,callback:function(t){e.selectedYear=t},expression:"selectedYear"}})],1)]),e._v(" "),n("line-chart",{staticClass:"sm:w-full",attrs:{"format-money":e.$utils.formatMoney,"format-graph-money":e.$utils.formatGraphMoney,invoices:e.getChartInvoices,expenses:e.getChartExpenses,receipts:e.getReceiptTotals,income:e.getNetProfits,labels:e.getChartMonths}})],1),e._v(" "),n("div",{staticClass:"grid col-span-12 mt-6 text-center xl:mt-0 sm:grid-cols-4 xl:text-right xl:col-span-3 xl:grid-cols-1 xxl:col-span-2"},[n("div",{staticClass:"px-6 py-2"},[n("span",{staticClass:"text-xs leading-5 lg:text-sm"},[e._v("\n "+e._s(e.$t("dashboard.chart_info.total_sales"))+"\n ")]),e._v(" "),n("br"),e._v(" "),n("span",{staticClass:"block mt-1 text-xl font-semibold leading-8"},[n("div",{domProps:{innerHTML:e._s(e.getFormattedSalesTotal)}})])]),e._v(" "),n("div",{staticClass:"px-6 py-2"},[n("span",{staticClass:"text-xs leading-5 lg:text-sm"},[e._v("\n "+e._s(e.$t("dashboard.chart_info.total_receipts"))+"\n ")]),e._v(" "),n("br"),e._v(" "),n("span",{staticClass:"block mt-1 text-xl font-semibold leading-8",staticStyle:{color:"#00c99c"}},[n("div",{domProps:{innerHTML:e._s(e.getFormattedTotalReceipts)}})])]),e._v(" "),n("div",{staticClass:"px-6 py-2"},[n("span",{staticClass:"text-xs leading-5 lg:text-sm"},[e._v("\n "+e._s(e.$t("dashboard.chart_info.total_expense"))+"\n ")]),e._v(" "),n("br"),e._v(" "),n("span",{staticClass:"block mt-1 text-xl font-semibold leading-8",staticStyle:{color:"#fb7178"}},[n("div",{domProps:{innerHTML:e._s(e.getFormattedTotalExpenses)}})])]),e._v(" "),n("div",{staticClass:"px-6 py-2"},[n("span",{staticClass:"text-xs leading-5 lg:text-sm"},[e._v("\n "+e._s(e.$t("dashboard.chart_info.net_income"))+"\n ")]),e._v(" "),n("br"),e._v(" "),n("span",{staticClass:"block mt-1 text-xl font-semibold leading-8",staticStyle:{color:"#5851d8"}},[n("div",{domProps:{innerHTML:e._s(e.getFormattedTotalNetProfit)}})])])])]),e._v(" "),n("customer-info")],1):e._e()}),[],!1,null,null,null).exports;function Ot(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Et(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ot(i,r,a,o,s,"next",e)}function s(e){Ot(i,r,a,o,s,"throw",e)}o(void 0)}))}}function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){$t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pt={components:{LineChart:Le,DotsHorizontalIcon:o.nWS,CustomerViewSidebar:yt,DocumentIcon:o.$lS,DocumentTextIcon:o.YHR,CreditCardIcon:o.ciH,CalculatorIcon:o.Xki,CustomerChart:Tt,TrashIcon:o.XHJ},data:function(){return{customer:null}},computed:jt(jt({},(0,i.Se)("customer",["selectedViewCustomer"])),{},{pageTitle:function(){return this.selectedViewCustomer.customer?this.selectedViewCustomer.customer.name:""}}),created:function(){this.fetchViewCustomer({id:this.$route.params.id})},methods:jt(jt({},(0,i.nv)("customer",["fetchViewCustomer","selectCustomer","deleteMultipleCustomers"])),{},{removeCustomer:function(e){var t=this;return Et(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$tc("customers.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Et(Y().mark((function n(r){var a,i;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=13;break}return a=[e],t.selectCustomer(a),n.next=5,t.deleteMultipleCustomers();case 5:if(!(i=n.sent).data.success){n.next=12;break}return window.toastr.success(t.$tc("customers.deleted_message")),t.$router.push("/admin/customers"),n.abrupt("return",!0);case 12:request.data.error&&window.toastr.error(i.data.message);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()}})};const Yt=(0,_.Z)(Pt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"xl:pl-96"},[n("sw-page-header",{attrs:{title:e.pageTitle}},[n("template",{slot:"actions"},[n("sw-button",{staticClass:"mr-3",attrs:{"tag-name":"router-link",to:"/admin/customers/"+e.$route.params.id+"/edit",variant:"primary-outline"}},[e._v("\n "+e._s(e.$t("general.edit"))+"\n ")]),e._v(" "),n("sw-dropdown",{attrs:{position:"bottom-end"}},[n("sw-button",{staticClass:"mr-3",attrs:{slot:"activator",variant:"primary"},slot:"activator"},[e._v("\n "+e._s(e.$t("customers.new_transaction"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/estimates/create?customer="+e.$route.params.id}},[n("document-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.new_estimate"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/invoices/create?customer="+e.$route.params.id}},[n("document-text-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.new_invoice"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/payments/create?customer="+e.$route.params.id}},[n("credit-card-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("payments.new_payment"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/expenses/create?customer="+e.$route.params.id}},[n("calculator-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("expenses.new_expense"))+"\n ")],1)],1),e._v(" "),n("sw-dropdown",[n("sw-button",{attrs:{slot:"activator",variant:"primary"},slot:"activator"},[n("dots-horizontal-icon",{staticClass:"h-5 -ml-1 -mr-1"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(t){return e.removeCustomer(e.$route.params.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)],1)],2),e._v(" "),n("customer-view-sidebar"),e._v(" "),n("customer-chart")],1)}),[],!1,null,null,null).exports;function Nt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function zt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Nt(i,r,a,o,s,"next",e)}function s(e){Nt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rt={components:{SatelliteIcon:(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{width:"110",height:"110",viewBox:"0 0 110 110",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("g",{attrs:{"clip-path":"url(#clip0)"}},[n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.76398 22.9512L4.54883 21.7361L21.7363 4.54858L22.9515 5.76374L5.76398 22.9512Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M88.264 105.451L87.0488 104.236L104.236 87.0486L105.451 88.2637L88.264 105.451Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M29.8265 81.3887L28.6113 80.1736L38.9238 69.8611L40.139 71.0762L29.8265 81.3887Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.9375 81.6406C30.9375 83.0637 29.7825 84.2188 28.3594 84.2188C26.9362 84.2188 25.7812 83.0637 25.7812 81.6406C25.7812 80.2175 26.9362 79.0625 28.3594 79.0625C29.7825 79.0625 30.9375 80.2175 30.9375 81.6406Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M77.3435 61.5801C76.4635 61.5801 75.5835 61.9152 74.9132 62.5873L62.5863 74.9124C61.244 76.2548 61.244 78.4324 62.5863 79.7748L92.8123 110.001L110 92.8132L79.7738 62.5873C79.1035 61.9152 78.2235 61.5801 77.3435 61.5801ZM77.3435 63.2988C77.8024 63.2988 78.2338 63.4776 78.5587 63.8024L107.569 92.8132L92.8123 107.569L63.8015 78.5596C63.4767 78.2348 63.2979 77.8034 63.2979 77.3445C63.2979 76.8838 63.4767 76.4524 63.8015 76.1276L76.1284 63.8024C76.4532 63.4776 76.8846 63.2988 77.3435 63.2988Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.1875 0L0 17.1875L30.2259 47.4134C30.8963 48.0838 31.7763 48.4206 32.6562 48.4206C33.5363 48.4206 34.4162 48.0838 35.0866 47.4134L47.4134 35.0866C48.7558 33.7442 48.7558 31.5683 47.4134 30.2259L17.1875 0ZM17.1875 2.43031L46.1983 31.4411C46.5231 31.7659 46.7019 32.1973 46.7019 32.6562C46.7019 33.1152 46.5231 33.5466 46.1983 33.8714L33.8714 46.1983C33.5466 46.5231 33.1152 46.7019 32.6562 46.7019C32.1973 46.7019 31.7659 46.5231 31.4411 46.1983L2.43031 17.1875L17.1875 2.43031Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M60.156 28.9238C59.276 28.9238 58.396 29.259 57.7257 29.931L29.9301 57.7249C28.5878 59.0673 28.5878 61.2449 29.9301 62.5873L47.4132 80.0687C48.0835 80.7407 48.9635 81.0759 49.8435 81.0759C50.7235 81.0759 51.6035 80.7407 52.2738 80.0687L80.0695 52.2748C81.4118 50.9324 81.4118 48.7548 80.0695 47.4124L62.5863 29.931C61.916 29.259 61.036 28.9238 60.156 28.9238ZM60.156 30.6426C60.6149 30.6426 61.0463 30.8213 61.3712 31.1462L78.8543 48.6276C79.1792 48.9524 79.3579 49.3838 79.3579 49.8445C79.3579 50.3034 79.1792 50.7348 78.8543 51.0596L51.0587 78.8535C50.7338 79.1784 50.3024 79.3571 49.8435 79.3571C49.3846 79.3571 48.9532 79.1784 48.6284 78.8535L31.1453 61.3721C30.8204 61.0473 30.6417 60.6159 30.6417 60.157C30.6417 59.6963 30.8204 59.2649 31.1453 58.9401L58.9409 31.1462C59.2657 30.8213 59.6971 30.6426 60.156 30.6426Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M71.0765 40.1387L69.8613 38.9236L72.4395 36.3455L73.6546 37.5606L71.0765 40.1387Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M72.9858 24.8608C69.6291 28.2176 69.6291 33.6574 72.9858 37.0141C74.6633 38.6916 76.8633 39.5321 79.0633 39.5321C81.2616 39.5321 83.4616 38.6916 85.1391 37.0141L72.9858 24.8608ZM73.1388 27.4441L82.5558 36.8612C81.5091 37.4816 80.3111 37.8133 79.0633 37.8133C77.226 37.8133 75.5003 37.0966 74.201 35.799C72.9033 34.4996 72.1883 32.774 72.1883 30.9383C72.1883 29.6888 72.5183 28.4908 73.1388 27.4441Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M86.1459 32.0051C85.9259 32.0051 85.7059 31.9209 85.5374 31.7542C85.2023 31.4173 85.2023 30.8742 85.5374 30.5373C86.3504 29.7261 86.7973 28.6467 86.7973 27.5003C86.7973 26.3522 86.3504 25.2728 85.5374 24.4615C83.9149 22.839 81.0859 22.839 79.4616 24.4615C79.1265 24.7984 78.5834 24.7984 78.2465 24.4615C77.9113 24.1264 77.9113 23.5833 78.2465 23.2464C80.5187 20.9742 84.4821 20.9742 86.7543 23.2464C87.8904 24.3825 88.516 25.8933 88.516 27.5003C88.516 29.1073 87.8904 30.6181 86.7543 31.7542C86.5859 31.9209 86.3659 32.0051 86.1459 32.0051Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M89.792 35.6514C89.572 35.6514 89.352 35.5672 89.1836 35.4004C88.8484 35.0636 88.8484 34.5204 89.1836 34.1836C90.9711 32.3978 91.9525 30.0259 91.9525 27.4994C91.9525 24.9745 90.9711 22.6009 89.1836 20.8151C87.3978 19.0294 85.0259 18.0462 82.4994 18.0462C79.9745 18.0462 77.6009 19.0294 75.8152 20.8151C75.48 21.1503 74.9352 21.1503 74.6 20.8151C74.2648 20.48 74.2648 19.9351 74.6 19.6C78.9553 15.2447 86.0434 15.2447 90.4005 19.6C94.7558 23.9553 94.7558 31.0434 90.4005 35.4004C90.232 35.5672 90.012 35.6514 89.792 35.6514Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M93.4379 39.297C93.2179 39.297 92.9979 39.2128 92.8295 39.0461C92.4944 38.7092 92.4944 38.1661 92.8295 37.8292C95.5898 35.0706 97.1092 31.4028 97.1092 27.4995C97.1092 23.5979 95.5898 19.9284 92.8295 17.1698C90.0709 14.4112 86.4031 12.8901 82.4998 12.8901C78.5983 12.8901 74.9287 14.4112 72.1701 17.1698C71.835 17.505 71.2901 17.505 70.955 17.1698C70.6198 16.8347 70.6198 16.2898 70.955 15.9547C74.0384 12.8712 78.1394 11.1714 82.4998 11.1714C86.862 11.1714 90.9612 12.8712 94.0464 15.9547C97.1298 19.0381 98.8279 23.139 98.8279 27.4995C98.8279 31.8617 97.1298 35.9609 94.0464 39.0461C93.8779 39.2128 93.6579 39.297 93.4379 39.297Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.7832 40.9981L8.8457 10.0606L10.0609 8.84546L40.9984 39.783L39.7832 40.9981Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99.9395 101.154L69.002 70.2169L70.2171 69.0017L101.155 99.9392L99.9395 101.154Z",fill:"#817AE3"}})]),e._v(" "),n("defs",[n("clipPath",{attrs:{id:"clip0"}},[n("rect",{attrs:{width:"110",height:"110",fill:"white"}})])])])}),[],!1,null,null,null).exports,FilterIcon:o.k1n,XIcon:o.b0D,PlusIcon:o.pOD,ChevronDownIcon:o.v4q,PencilIcon:o.vdY,TrashIcon:o.XHJ},data:function(){return{id:null,showFilters:!1,sortedBy:"created_at",isRequestOngoing:!0,filters:{name:"",unit:"",price:""}}},computed:Ft(Ft(Ft({},(0,i.Se)("item",["items","selectedItems","totalItems","selectAllField","itemUnits"])),(0,i.Se)("company",["defaultCurrency"])),{},{showEmptyScreen:function(){return!this.totalItems&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"},selectField:{get:function(){return this.selectedItems},set:function(e){this.selectItem(e)}},selectAllFieldStatus:{get:function(){return this.selectAllField},set:function(e){this.setSelectAllState(e)}}}),watch:{filters:{handler:"setFilters",deep:!0}},mounted:function(){this.fetchItemUnits({limit:"all"})},destroyed:function(){this.selectAllField&&this.selectAllItems()},methods:Ft(Ft({},(0,i.nv)("item",["fetchItems","selectAllItems","selectItem","deleteItem","deleteMultipleItems","setSelectAllState","fetchItemUnits"])),{},{refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return zt(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={search:null!==t.filters.name?t.filters.name:"",unit_id:null!==t.filters.unit?t.filters.unit.id:"",price:Math.round(100*t.filters.price),orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchItems(i);case 5:return o=n.sent,t.isRequestOngoing=!1,n.abrupt("return",{data:o.data.items.data,pagination:{totalPages:o.data.items.last_page,currentPage:r}});case 8:case"end":return n.stop()}}),n)})))()},setFilters:function(){this.refreshTable()},clearFilter:function(){this.filters={name:"",unit:"",price:""}},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},removeItems:function(e){var t=this;return zt(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,swal({title:t.$t("general.are_you_sure"),text:t.$tc("items.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=zt(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=13;break}return n.next=3,t.deleteItem({ids:[e]});case 3:if(!(a=n.sent).data.success){n.next=8;break}return window.toastr.success(t.$tc("items.deleted_message",1)),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:if("item_attached"!==a.data.error){n.next=11;break}return window.toastr.error(t.$tc("items.item_attached_message"),t.$t("general.action_failed")),n.abrupt("return",!0);case 11:return window.toastr.error(a.data.message),n.abrupt("return",!0);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},removeMultipleItems:function(){var e=this;return zt(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("items.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=zt(Y().mark((function t(n){var r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,e.deleteMultipleItems();case 3:(r=t.sent).data.success||r.data.items?(window.toastr.success(e.$tc("items.deleted_message",2)),e.$refs.table.refresh()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}})};const Bt=(0,_.Z)(Rt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",[n("sw-page-header",{attrs:{title:e.$t("items.title")}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{title:e.$t("general.home"),to:"dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("items.item",2),to:"#",active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalItems,expression:"totalItems"}],attrs:{variant:"primary-outline",size:"lg"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"w-4 h-4 ml-2 -mr-1"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"items/create",variant:"primary",size:"lg"}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("items.add_item"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}]},[n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0",attrs:{label:e.$tc("items.name")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",autocomplete:"off"},model:{value:e.filters.name,callback:function(t){e.$set(e.filters,"name",t)},expression:"filters.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$tc("items.unit")}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.itemUnits,searchable:!0,"show-labels":!1,placeholder:e.$t("items.select_a_unit"),label:"name",autocomplete:"off"},model:{value:e.filters.unit,callback:function(t){e.$set(e.filters,"unit",t)},expression:"filters.unit"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$tc("items.price")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",autocomplete:"off"},model:{value:e.filters.price,callback:function(t){e.$set(e.filters,"price",t)},expression:"filters.price"}})],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-gray-900 cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v("\n "+e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),n("sw-empty-table-placeholder",{directives:[{name:"show",rawName:"v-show",value:e.showEmptyScreen,expression:"showEmptyScreen"}],attrs:{title:e.$t("items.no_items"),description:e.$t("items.list_of_items")}},[n("satellite-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/items/create",size:"lg",variant:"primary-outline"},slot:"actions"},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("items.add_new_item"))+"\n ")],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative table-container"},[n("div",{staticClass:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},[n("p",{staticClass:"text-sm"},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.items.length))]),e._v("\n "+e._s(e.$t("general.of"))+" "),n("b",[e._v(e._s(e.totalItems))])]),e._v(" "),n("sw-transition",[e.selectedItems.length?n("sw-dropdown",[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultipleItems}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-12"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllItems},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllItems},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{data:e.fetchData,"show-filter":!1,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"custom-control custom-checkbox"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("items.name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("items.name")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"items/"+t.id+"/edit"}}},[e._v("\n "+e._s(t.name)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("items.unit"),show:"unit_name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("items.unit")))]),e._v(" "),n("span",[e._v("\n "+e._s(t.unit_name?t.unit_name:"Not selected")+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("items.price"),show:"price"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("items.price"))+" ")]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.price,e.defaultCurrency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("items.added_on"),"sort-as":"created_at",show:"formattedCreatedAt"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("items.action"))+" ")]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{to:"items/"+t.id+"/edit","tag-name":"router-link"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeItems(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)],1)}),[],!1,null,null,null).exports;function qt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Vt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){qt(i,r,a,o,s,"next",e)}function s(e){qt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){Kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zt=n(379),Gt=Zt.required,Jt=Zt.minLength,Xt=Zt.numeric,Qt=Zt.minValue,en=Zt.maxLength;const tn={components:{ShoppingCartIcon:o.Q1y},data:function(){return{isLoading:!1,title:"Add Item",units:[],taxes:[],taxPerItem:"",formData:{name:"",description:"",price:"",unit_id:null,unit:null,taxes:[]},money:{decimal:".",thousands:",",prefix:"$ ",precision:2,masked:!1}}},computed:Ut(Ut(Ut(Ut(Ut({},(0,i.Se)("company",["defaultCurrencyForInput"])),(0,i.Se)("item",["itemUnits"])),(0,i.Se)("taxType",["taxTypes"])),{},{price:{get:function(){return this.formData.price/100},set:function(e){this.formData.price=Math.round(100*e)}},pageTitle:function(){return"items.edit"===this.$route.name?this.$t("items.edit_item"):this.$t("items.new_item")}},(0,i.Se)("taxType",["taxTypes"])),{},{isEdit:function(){return"items.edit"===this.$route.name},isTaxPerItem:function(){return"YES"===this.taxPerItem?1:0},getTaxTypes:function(){return this.taxTypes.map((function(e){return Ut(Ut({},e),{},{tax_type_id:e.id,tax_name:e.name+" ("+e.percent+"%)"})}))},nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?this.$v.formData.name.minLength?void 0:this.$tc("validation.name_min_length",this.$v.formData.name.$params.minLength.min,{count:this.$v.formData.name.$params.minLength.min}):this.$t("validation.required"):""},priceError:function(){return this.$v.formData.price.$error?this.$v.formData.price.required?this.$v.formData.price.maxLength?this.$v.formData.price.minValue?void 0:this.$t("validation.price_minvalue"):this.$t("validation.price_maxlength"):this.$t("validation.required"):""},descriptionError:function(){return this.$v.formData.description.$error?this.$v.formData.description.maxLength?void 0:this.$t("validation.description_maxlength"):""}}),created:function(){this.loadData()},mounted:function(){this.setTaxPerItem(),this.$v.formData.$reset()},validations:{formData:{name:{required:Gt,minLength:Jt(3)},price:{required:Gt,numeric:Xt,maxLength:en(20),minValue:Qt(.1)},description:{maxLength:en(65e3)}}},methods:Ut(Ut(Ut(Ut(Ut({},(0,i.nv)("item",["addItem","fetchItem","updateItem","fetchItemUnits"])),(0,i.nv)("taxType",["fetchTaxTypes"])),(0,i.nv)("company",["fetchCompanySettings"])),(0,i.nv)("modal",["openModal"])),{},{setTaxPerItem:function(){var e=this;return Vt(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchCompanySettings(["tax_per_item"]);case 2:(n=t.sent).data&&("YES"===n.data.tax_per_item?e.taxPerItem="YES":e.taxPerItem="NO");case 4:case"end":return t.stop()}}),t)})))()},loadData:function(){var e=this;return Vt(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isEdit){t.next=16;break}return t.next=3,e.fetchItem(e.$route.params.id);case 3:if(n=t.sent,e.formData=Ut(Ut({},n.data.item),{},{unit:null}),e.fractional_price=n.data.item.price,!e.formData.unit_id){t.next=10;break}return t.next=9,e.fetchItemUnits({limit:"all"});case 9:e.formData.unit=e.itemUnits.find((function(e){return n.data.item.unit_id===e.id}));case 10:if(!e.formData.taxes){t.next=14;break}return t.next=13,e.fetchTaxTypes({limit:"all"});case 13:e.formData.taxes=n.data.item.taxes.map((function(e){return Ut(Ut({},e),{},{tax_name:e.name+"("+e.percent+"%)"})}));case 14:t.next=18;break;case 16:e.fetchItemUnits({limit:"all"}),e.fetchTaxTypes({limit:"all"});case 18:case"end":return t.stop()}}),t)})))()},submitItem:function(){var e=this;return Vt(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!1);case 3:if(e.formData.unit&&(e.formData.unit_id=e.formData.unit.id),e.isLoading=!0,!e.isEdit){t.next=11;break}return t.next=8,e.updateItem(e.formData);case 8:n=t.sent,t.next=15;break;case 11:return r=Ut(Ut({},e.formData),{},{taxes:e.formData.taxes.map((function(t){return{tax_type_id:t.id,amount:e.formData.price*t.percent/100,percent:t.percent,name:t.name,collective_tax:0}}))}),t.next=14,e.addItem(r);case 14:n=t.sent;case 15:if(!n.data){t.next=27;break}if(e.isLoading=!1,e.isEdit){t.next=23;break}return window.toastr.success(e.$tc("items.created_message")),e.$router.push("/admin/items"),t.abrupt("return",!0);case 23:return window.toastr.success(e.$tc("items.updated_message")),e.$router.push("/admin/items"),t.abrupt("return",!0);case 26:window.toastr.error(n.data.error);case 27:case"end":return t.stop()}}),t)})))()},addItemUnit:function(){var e=this;return Vt(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.openModal({title:e.$t("settings.customization.items.add_item_unit"),componentName:"ItemUnit"});case 1:case"end":return t.stop()}}),t)})))()}})};const nn=(0,_.Z)(tn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",[n("sw-page-header",{staticClass:"mb-3",attrs:{title:e.pageTitle}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{title:e.$t("general.home"),to:"/admin/dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("items.item",2),to:"/admin/items"}}),e._v(" "),"items.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{title:e.$t("items.edit_item"),to:"#",active:""}}):n("sw-breadcrumb-item",{attrs:{title:e.$t("items.new_item"),to:"#",active:""}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-12"},[n("div",{staticClass:"col-span-12 md:col-span-6"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitItem(t)}}},[n("sw-card",[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("items.name"),error:e.nameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.name.$error,focus:"",type:"text",name:"name"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name","string"==typeof t?t.trim():t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("items.price"),error:e.priceError,required:""}},[n("sw-money",{staticClass:"relative w-full focus:border focus:border-solid focus:border-primary-500",attrs:{invalid:e.$v.formData.price.$error,currency:e.defaultCurrencyForInput},on:{input:function(t){return e.$v.formData.price.$touch()}},model:{value:e.price,callback:function(t){e.price="string"==typeof t?t.trim():t},expression:"price"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("items.unit")}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.itemUnits,searchable:!0,"show-labels":!1,placeholder:e.$t("items.select_a_unit"),label:"name"},model:{value:e.formData.unit,callback:function(t){e.$set(e.formData,"unit",t)},expression:"formData.unit"}},[n("div",{staticClass:"flex items-center justify-center w-full px-6 py-3 text-base bg-gray-200 cursor-pointer text-primary-400",attrs:{slot:"afterList"},on:{click:e.addItemUnit},slot:"afterList"},[n("shopping-cart-icon",{staticClass:"h-5 mr-2 -ml-2 text-center text-primary-400"}),e._v(" "),n("label",{staticClass:"ml-2 text-sm leading-none text-primary-400"},[e._v(e._s(e.$t("settings.customization.items.add_item_unit")))])],1)])],1),e._v(" "),e.isTaxPerItem?n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("items.taxes")}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.getTaxTypes,searchable:!0,"show-labels":!1,"allow-empty":!0,multiple:!0,"track-by":"tax_type_id",label:"tax_name"},model:{value:e.formData.taxes,callback:function(t){e.$set(e.formData,"taxes",t)},expression:"formData.taxes"}})],1):e._e(),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("items.description"),error:e.descriptionError}},[n("sw-textarea",{attrs:{rows:"2",name:"description"},on:{input:function(t){return e.$v.formData.description.$touch()}},model:{value:e.formData.description,callback:function(t){e.$set(e.formData,"description",t)},expression:"formData.description"}})],1),e._v(" "),n("div",{staticClass:"mb-4"},[n("sw-button",{staticClass:"flex justify-center w-full md:w-auto",attrs:{loading:e.isLoading,variant:"primary",size:"lg"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.isEdit?e.$t("items.update_item"):e.$t("items.save_item"))+"\n ")],1)],1)],1)],1)])])],1)}),[],!1,null,null,null).exports;const rn=(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{width:"154",height:"110",viewBox:"0 0 154 110",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("g",{attrs:{"clip-path":"url(#clip0)"}},[n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33.4784 93.2609C33.4784 94.5809 32.4071 95.6522 31.0871 95.6522C29.7671 95.6522 28.6958 94.5809 28.6958 93.2609C28.6958 91.9409 29.7671 90.8696 31.0871 90.8696C32.4071 90.8696 33.4784 91.9409 33.4784 93.2609Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M78.913 93.2609C78.913 94.5809 77.8417 95.6522 76.5217 95.6522C75.2017 95.6522 74.1304 94.5809 74.1304 93.2609C74.1304 91.9409 75.2017 90.8696 76.5217 90.8696C77.8417 90.8696 78.913 91.9409 78.913 93.2609Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M124.348 93.2609C124.348 94.5809 123.277 95.6522 121.957 95.6522C120.637 95.6522 119.565 94.5809 119.565 93.2609C119.565 91.9409 120.637 90.8696 121.957 90.8696C123.277 90.8696 124.348 91.9409 124.348 93.2609Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M148.261 54.9999C149.578 54.9999 150.652 56.0736 150.652 57.3913V83.6956C150.652 87.658 147.441 90.8695 143.478 90.8695H137.352V93.2608H143.478C148.761 93.2608 153.043 88.978 153.043 83.6956V57.3913C153.043 54.7489 150.903 52.6086 148.261 52.6086H4.78261C2.14022 52.6086 0 54.7489 0 57.3913V83.6956C0 88.978 4.28283 93.2608 9.56522 93.2608H15.4478V90.8695H9.56522C5.60283 90.8695 2.3913 87.658 2.3913 83.6956V57.3913C2.3913 56.0713 3.46261 54.9999 4.78261 54.9999H148.261ZM106.243 90.8695H91.7113L92.1011 93.2608H106.145L106.243 90.8695ZM60.8946 90.8695H46.5587L46.4607 93.2608H60.6985L60.8946 90.8695Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M38.2611 45.4348H23.9133C22.5933 45.4348 21.522 46.5061 21.522 47.8261V52.6087C21.522 53.9287 22.5933 55 23.9133 55H38.2611C39.5811 55 40.6524 53.9287 40.6524 52.6087V47.8261C40.6524 46.5061 39.5811 45.4348 38.2611 45.4348ZM23.9133 52.6087H38.2611V47.8261H23.9133V52.6087Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28.6957 62.174C28.6957 63.494 27.6244 64.5653 26.3044 64.5653C24.9844 64.5653 23.9131 63.494 23.9131 62.174C23.9131 60.854 24.9844 59.7827 26.3044 59.7827C27.6244 59.7827 28.6957 60.854 28.6957 62.174Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M38.2606 62.174C38.2606 63.494 37.1893 64.5653 35.8693 64.5653C34.5493 64.5653 33.478 63.494 33.478 62.174C33.478 60.854 34.5493 59.7827 35.8693 59.7827C37.1893 59.7827 38.2606 60.854 38.2606 62.174Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M59.7826 64.5653H45.4348C44.1195 64.5653 43.0435 63.4892 43.0435 62.174C43.0435 60.8588 44.1195 59.7827 45.4348 59.7827H59.7826C61.0978 59.7827 62.1739 60.8588 62.1739 62.174C62.1739 63.4892 61.0978 64.5653 59.7826 64.5653Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M101.793 40.0497L118.533 11.354L119.982 13.6162L104.754 39.722L101.793 40.0497Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M110.163 40.0496L124.556 15.3761L127.383 15.2781L112.973 39.9826L110.163 40.0496Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M74.1304 7.17402H119.565V4.78271H74.1304V7.17402Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M74.1304 14.3478H119.565V11.9565H74.1304V14.3478Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M71.7389 2.3913V16.7391H50.2172C48.8996 16.7391 47.8259 15.6654 47.8259 14.3478V11.9565H45.4346V14.3478C45.4346 16.9902 47.5748 19.1304 50.2172 19.1304H74.1302V0H50.2172C47.5748 0 45.4346 2.14022 45.4346 4.78261V7.17391H47.8259V4.78261C47.8259 3.465 48.8996 2.3913 50.2172 2.3913H71.7389Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M124.348 2.39136C120.385 2.39136 117.174 5.60288 117.174 9.56527C117.174 13.5277 120.385 16.7392 124.348 16.7392C128.31 16.7392 131.522 13.5277 131.522 9.56527C131.522 5.60288 128.31 2.39136 124.348 2.39136ZM124.348 4.78266C126.985 4.78266 129.13 6.92766 129.13 9.56527C129.13 12.2029 126.985 14.3479 124.348 14.3479C121.71 14.3479 119.565 12.2029 119.565 9.56527C119.565 6.92766 121.71 4.78266 124.348 4.78266Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M108.902 38.261C98.1965 38.261 89.1358 45.2986 86.0869 55.0001H131.718C128.669 45.2986 119.608 38.261 108.902 38.261ZM108.902 40.6523C117.219 40.6523 124.608 45.3416 128.191 52.6088H89.6141C93.1963 45.3416 100.585 40.6523 108.902 40.6523Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M31.0868 76.5217C21.842 76.5217 14.3477 84.0161 14.3477 93.2609C14.3477 102.506 21.842 110 31.0868 110C40.3316 110 47.8259 102.506 47.8259 93.2609C47.8259 84.0161 40.3316 76.5217 31.0868 76.5217ZM31.0868 78.913C38.9972 78.913 45.4346 85.3504 45.4346 93.2609C45.4346 101.171 38.9972 107.609 31.0868 107.609C23.1764 107.609 16.739 101.171 16.739 93.2609C16.739 85.3504 23.1764 78.913 31.0868 78.913Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M121.956 76.5217C112.712 76.5217 105.217 84.0161 105.217 93.2609C105.217 102.506 112.712 110 121.956 110C131.201 110 138.696 102.506 138.696 93.2609C138.696 84.0161 131.201 76.5217 121.956 76.5217ZM121.956 78.913C129.867 78.913 136.304 85.3504 136.304 93.2609C136.304 101.171 129.867 107.609 121.956 107.609C114.046 107.609 107.609 101.171 107.609 93.2609C107.609 85.3504 114.046 78.913 121.956 78.913Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M76.5218 76.5217C67.2771 76.5217 59.7827 84.0161 59.7827 93.2609C59.7827 102.506 67.2771 110 76.5218 110C85.7666 110 93.261 102.506 93.261 93.2609C93.261 84.0161 85.7666 76.5217 76.5218 76.5217ZM76.5218 78.913C84.4323 78.913 90.8697 85.3504 90.8697 93.2609C90.8697 101.171 84.4323 107.609 76.5218 107.609C68.6114 107.609 62.174 101.171 62.174 93.2609C62.174 85.3504 68.6114 78.913 76.5218 78.913Z",fill:"#55547A"}})]),e._v(" "),n("defs",[n("clipPath",{attrs:{id:"clip0"}},[n("rect",{attrs:{width:"153.043",height:"110",fill:"white"}})])])])}),[],!1,null,null,null).exports;var an=n(381),on=n.n(an);function sn(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ln(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){sn(i,r,a,o,s,"next",e)}function s(e){sn(i,r,a,o,s,"throw",e)}o(void 0)}))}}function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){dn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pn={components:{MoonWalkerIcon:rn,PlusIcon:o.pOD,FilterIcon:o.k1n,XIcon:o.b0D,ChevronDownIcon:o.v4q,DotsHorizontalIcon:s.nWS,PencilIcon:o.vdY,DocumentDuplicateIcon:o.eXB,TrashIcon:o.XHJ,CheckCircleIcon:o.rE2,PaperAirplaneIcon:o.Rdq,DocumentTextIcon:o.YHR,XCircleIcon:o.oOx,EyeIcon:o.tEF,CreditCardIcon:o.ciH,HashtagIcon:o.jdL},data:function(){return{showFilters:!1,currency:null,status:[{label:"Status",isDisable:!0,options:[{name:"DRAFT",value:"DRAFT"},{name:"DUE",value:"DUE"},{name:"SENT",value:"SENT"},{name:"VIEWED",value:"VIEWED"},{name:"OVERDUE",value:"OVERDUE"},{name:"COMPLETED",value:"COMPLETED"}]},{label:"Paid Status",options:[{name:"UNPAID",value:"UNPAID"},{name:"PAID",value:"PAID"},{name:"PARTIALLY PAID",value:"PARTIALLY_PAID"}]}],isRequestOngoing:!0,activeTab:this.$t("general.due"),filters:{customer:"",status:{name:"DUE",value:"DUE"},from_date:"",to_date:"",invoice_number:""}}},computed:un(un(un({showEmptyScreen:function(){return!this.totalInvoices&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"}},(0,i.Se)("customer",["customers"])),(0,i.Se)("invoice",["selectedInvoices","totalInvoices","invoices","selectAllField"])),{},{selectField:{get:function(){return this.selectedInvoices},set:function(e){this.selectInvoice(e)}},selectAllFieldStatus:{get:function(){return this.selectAllField},set:function(e){this.setSelectAllState(e)}}}),watch:{filters:{handler:"setFilters",deep:!0}},destroyed:function(){this.selectAllField&&this.selectAllInvoices()},methods:un(un(un(un({},(0,i.nv)("invoice",["fetchInvoices","getRecord","selectInvoice","resetSelectedInvoices","selectAllInvoices","deleteInvoice","deleteMultipleInvoices","sendEmail","markAsSent","setSelectAllState","cloneInvoice"])),(0,i.nv)("customer",["fetchCustomers"])),(0,i.nv)("modal",["openModal"])),{},{sendInvoice:function(e){var t=this;return ln(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.openModal({title:t.$t("invoices.send_invoice"),componentName:"SendInvoiceModal",id:e.id,data:e,variant:"lg"});case 1:case"end":return n.stop()}}),n)})))()},markInvoiceAsSent:function(e){var t=this;return ln(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("invoices.invoice_mark_as_sent"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=ln(Y().mark((function n(r){var a,i;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return a={id:e,status:"SENT"},n.next=4,t.markAsSent(a);case 4:i=n.sent,t.refreshTable(),i.data&&window.toastr.success(t.$tc("invoices.mark_as_sent_successfully"));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},onCloneInvoice:function(e){var t=this;return ln(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("invoices.confirm_clone"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=ln(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=6;break}return n.next=3,t.cloneInvoice({id:e});case 3:a=n.sent,t.refreshTable(),a.data&&(window.toastr.success(t.$tc("invoices.cloned_successfully")),t.$router.push("/admin/invoices/".concat(a.data.invoice.id,"/edit")));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},setStatusFilter:function(e){if(this.activeTab==e.title)return!0;switch(this.activeTab=e.title,e.title){case this.$t("general.due"):this.filters.status={name:"DUE",value:"DUE"};break;case this.$t("general.draft"):this.filters.status={name:"DRAFT",value:"DRAFT"};break;default:this.filters.status={name:"",value:""}}},refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return ln(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={customer_id:t.filters.customer?t.filters.customer.id:"",status:t.filters.status.value,from_date:t.filters.from_date,to_date:t.filters.to_date,invoice_number:t.filters.invoice_number,orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchInvoices(i);case 5:return o=n.sent,t.isRequestOngoing=!1,t.currency=o.data.currency,n.abrupt("return",{data:o.data.invoices.data,pagination:{totalPages:o.data.invoices.last_page,currentPage:r,count:o.data.invoices.count}});case 9:case"end":return n.stop()}}),n)})))()},setFilters:function(){this.resetSelectedInvoices(),this.refreshTable()},clearFilter:function(){this.filters.customer&&this.$refs.customerSelect.$refs.baseSelect.removeElement(this.filters.customer),this.filters={customer:"",status:"",from_date:"",to_date:"",invoice_number:""},this.activeTab=this.$t("general.all")},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},onSelectCustomer:function(e){this.filters.customer=e},removeInvoice:function(e){var t=this;return ln(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,swal({title:t.$t("general.are_you_sure"),text:t.$tc("invoices.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=ln(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=13;break}return n.next=3,t.deleteInvoice({ids:[e]});case 3:if(!(a=n.sent).data.success){n.next=8;break}return window.toastr.success(t.$tc("invoices.deleted_message")),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:if("payment_attached"!==a.data.error){n.next=11;break}return window.toastr.error(t.$t("invoices.payment_attached_message"),t.$t("general.action_failed")),n.abrupt("return",!0);case 11:return window.toastr.error(a.data.error),n.abrupt("return",!0);case 13:t.resetSelectedInvoices();case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},removeMultipleInvoices:function(){var e=this;return ln(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("invoices.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=ln(Y().mark((function t(n){var r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=8;break}return t.next=3,e.deleteMultipleInvoices();case 3:if("payment_attached"!==(r=t.sent).data.error){t.next=7;break}return window.toastr.error(e.$t("invoices.payment_attached_message"),e.$t("general.action_failed")),t.abrupt("return",!0);case 7:r.data?(e.$refs.table.refresh(),e.resetSelectedInvoices(),window.toastr.success(e.$tc("invoices.deleted_message",2))):r.data.error&&window.toastr.error(r.data.message);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},clearCustomerSearch:function(e,t){var n=this;return ln(Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.filters.customer="",n.refreshTable();case 2:case"end":return e.stop()}}),e)})))()},clearStatusSearch:function(e,t){var n=this;return ln(Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.filters.status="",n.refreshTable();case 2:case"end":return e.stop()}}),e)})))()},setActiveTab:function(e){switch(e.value){case"DRAFT":this.activeTab=this.$t("general.draft");break;case"DUE":this.activeTab=this.$t("general.due");break;default:this.activeTab=this.$t("general.all")}}})};const mn=(0,_.Z)(pn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",[n("sw-page-header",{attrs:{title:e.$t("invoices.title")}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$tc("invoices.invoice",2),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalInvoices,expression:"totalInvoices"}],attrs:{size:"lg",variant:"primary-outline"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"w-4 h-4 ml-2 -mr-1"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"/admin/invoices/create",size:"lg",variant:"primary"}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("invoices.new_invoice"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}],staticClass:"relative grid grid-flow-col grid-rows"},[n("sw-input-group",{staticClass:"mt-2",attrs:{label:e.$tc("customers.customer",1)}},[n("base-customer-select",{ref:"customerSelect",on:{select:e.onSelectCustomer,deselect:e.clearCustomerSearch}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-2 xl:mx-8",attrs:{label:e.$t("invoices.status")}},[n("sw-select",{attrs:{options:e.status,"group-select":!1,searchable:!0,"show-labels":!1,placeholder:e.$t("general.select_a_status"),"allow-empty":!1,"group-values":"options","group-label":"label","track-by":"name",label:"name"},on:{remove:function(t){return e.clearStatusSearch()},select:e.setActiveTab},model:{value:e.filters.status,callback:function(t){e.$set(e.filters,"status",t)},expression:"filters.status"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-2",attrs:{label:e.$t("general.from")}},[n("base-date-picker",{attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},model:{value:e.filters.from_date,callback:function(t){e.$set(e.filters,"from_date",t)},expression:"filters.from_date"}})],1),e._v(" "),n("div",{staticClass:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",staticStyle:{"margin-top":"3.5rem"}}),e._v(" "),n("sw-input-group",{staticClass:"mt-2",attrs:{label:e.$t("general.to")}},[n("base-date-picker",{attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},model:{value:e.filters.to_date,callback:function(t){e.$set(e.filters,"to_date",t)},expression:"filters.to_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-2 xl:ml-8",attrs:{label:e.$t("invoices.invoice_number")}},[n("sw-input",{model:{value:e.filters.invoice_number,callback:function(t){e.$set(e.filters,"invoice_number",t)},expression:"filters.invoice_number"}},[n("hashtag-icon",{staticClass:"h-5 ml-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"})],1)],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-black cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v(e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),n("sw-empty-table-placeholder",{directives:[{name:"show",rawName:"v-show",value:e.showEmptyScreen,expression:"showEmptyScreen"}],attrs:{title:e.$t("invoices.no_invoices"),description:e.$t("invoices.list_of_invoices")}},[n("moon-walker-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/invoices/create",size:"lg",variant:"primary-outline"},slot:"actions"},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("invoices.new_invoice"))+"\n ")],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative"},[n("div",{staticClass:"relative mt-5"},[n("p",{staticClass:"absolute right-0 m-0 text-sm",staticStyle:{top:"50px"}},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.invoices.length))]),e._v("\n\n "+e._s(e.$t("general.of"))+" "),n("b",[e._v(e._s(e.totalInvoices))])]),e._v(" "),n("sw-tabs",{attrs:{"active-tab":e.activeTab},on:{update:e.setStatusFilter}},[n("sw-tab-item",{attrs:{title:e.$t("general.due"),filter:"DUE"}}),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("general.draft"),filter:"DRAFT"}}),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("general.all"),filter:""}})],1),e._v(" "),n("sw-transition",{attrs:{type:"fade"}},[e.selectedInvoices.length?n("sw-dropdown",{staticClass:"absolute float-right",staticStyle:{"margin-top":"-35px"}},[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultipleInvoices}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.invoices&&e.invoices.length,expression:"invoices && invoices.length"}],staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-12"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllInvoices},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllInvoices},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{"show-filter":!1,data:e.fetchData,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"relative block"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.date"),"sort-as":"invoice_date",show:"formattedInvoiceDate"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.number"),show:"invoice_number"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("invoices.number")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"invoices/"+t.id+"/view"}}},[e._v("\n "+e._s(t.invoice_number)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.customer"),width:"20%",show:"name"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.status"),"sort-as":"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("invoices.status")))]),e._v(" "),n("sw-badge",{attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color}},[e._v("\n "+e._s(t.status.replace("_"," "))+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.paid_status"),"sort-as":"paid_status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("invoices.paid_status")))]),e._v(" "),n("sw-badge",{attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color}},[e._v("\n "+e._s(t.paid_status.replace("_"," "))+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.amount_due"),"sort-as":"due_amount"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("invoices.amount_due")))]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.due_amount,t.user.currency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("invoices.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"invoices/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"invoices/"+t.id+"/view"}},[n("eye-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.view"))+"\n ")],1),e._v(" "),"DRAFT"==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.sendInvoice(t)}}},[n("paper-airplane-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.send_invoice"))+"\n ")],1):e._e(),e._v(" "),"SENT"===t.status||"VIEWED"===t.status?n("sw-dropdown-item",{on:{click:function(n){return e.sendInvoice(t)}}},[n("paper-airplane-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.resend_invoice"))+"\n ")],1):e._e(),e._v(" "),"DRAFT"==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.markInvoiceAsSent(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.mark_as_sent"))+"\n ")],1):e._e(),e._v(" "),"SENT"===t.status||"VIEWED"===t.status||"OVERDUE"===t.status?n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"/admin/payments/"+t.id+"/create"}},[n("credit-card-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("payments.record_payment"))+"\n ")],1):e._e(),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.onCloneInvoice(t.id)}}},[n("document-duplicate-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("invoices.clone_invoice"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeInvoice(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)],1)}),[],!1,null,null,null).exports;var fn=n(9980),hn=n.n(fn),_n=n(1518),vn=n.n(_n);const gn={name:"",tax_type_id:0,amount:null,percent:null,compound_tax:!1},yn={invoice_id:null,item_id:null,name:"",title:"",description:null,quantity:1,price:0,discount_type:"fixed",discount_val:0,discount:0,total:0,totalTax:0,totalSimpleTax:0,totalCompoundTax:0,tax:0,taxes:[]};function bn(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){kn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dn={components:{XCircleIcon:o.oOx,ShoppingCartIcon:o.Q1y},props:{item:{type:Object,required:!0},invalid:{type:Boolean,required:!1,default:!1},invalidDescription:{type:Boolean,required:!1,default:!1},taxPerItem:{type:String,default:""},taxes:{type:Array,default:null}},data:function(){return{itemSelect:null,loading:!1}},computed:xn({},(0,i.Se)("item",["items"])),watch:{invalidDescription:function(e){console.log(e)}},methods:xn(xn(xn({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("item",["fetchItems"])),{},{searchItems:function(e){var t,n=this;return(t=Y().mark((function t(){var r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={search:e,filter:{name:e,unit:"",price:""},orderByField:"",orderBy:"",page:1},n.item&&(r.item_id=n.item.item_id),n.loading=!0,t.next=5,n.fetchItems(r);case 5:n.loading=!1;case 6:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){bn(i,r,a,o,s,"next",e)}function s(e){bn(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onTextChange:function(e){this.searchItems(e),this.$emit("search",e)},openItemModal:function(){this.$emit("onSelectItem"),this.openModal({title:this.$t("items.add_item"),componentName:"ItemModal",data:{taxPerItem:this.taxPerItem,taxes:this.taxes}})},onSelect:function(e){this.$emit("select",e),this.fetchItems()},deselectItem:function(){this.itemSelect=null,this.$emit("deselect")}})};const Mn=(0,_.Z)(Dn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex-1 text-sm"},[e.item.item_id?n("div",{staticClass:"relative flex items-center h-10 pl-2 bg-gray-100 border border-gray-200 border-solid rounded"},[e._v("\n "+e._s(e.item.name)+"\n\n "),n("span",{staticClass:"absolute text-gray-400 cursor-pointer",staticStyle:{top:"8px",right:"10px"},on:{click:e.deselectItem}},[n("x-circle-icon",{staticClass:"h-5"})],1)]):n("sw-select",{ref:"baseSelect",staticClass:"multi-select-item",attrs:{options:e.items,loading:e.loading,"show-labels":!1,"preserve-search":!0,"initial-search":e.item.name,invalid:e.invalid,placeholder:e.$t("invoices.item.select_an_item"),label:"name"},on:{value:e.onTextChange,select:e.onSelect},model:{value:e.itemSelect,callback:function(t){e.itemSelect=t},expression:"itemSelect"}},[n("div",{attrs:{slot:"afterList"},slot:"afterList"},[n("button",{staticClass:"flex items-center justify-center w-full p-3 bg-gray-200 border-none outline-none",attrs:{type:"button"},on:{click:e.openItemModal}},[n("shopping-cart-icon",{staticClass:"h-5 mr-2 -ml-2 text-center text-primary-400"}),e._v(" "),n("label",{staticClass:"ml-2 text-sm leading-none text-primary-400"},[e._v(e._s(e.$t("general.add_new_item")))])],1)])]),e._v(" "),n("div",{staticClass:"w-full pt-1 text-xs text-light"},[n("sw-textarea",{directives:[{name:"autoresize",rawName:"v-autoresize"}],staticClass:"w-full text-xs text-gray-600 border-none resize-none",attrs:{"invalid-description":e.invalidDescription,placeholder:e.$t("invoices.item.type_item_description"),type:"text",variant:"inv-desc"},on:{input:function(t){return e.$emit("onDesriptionInput")}},model:{value:e.item.description,callback:function(t){e.$set(e.item,"description",t)},expression:"item.description"}}),e._v(" "),e.invalidDescription?n("div",[n("span",{staticClass:"text-xs text-danger"},[e._v("\n "+e._s(e.$tc("validation.description_maxlength"))+"\n ")])]):e._e()],1)],1)}),[],!1,null,null,null).exports;function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tn={components:{CheckCircleIcon:o.rE2,TrashIcon:o.XHJ},props:{index:{type:Number,required:!0},taxData:{type:Object,required:!0},taxes:{type:Array,default:[]},total:{type:Number,default:0},totalTax:{type:Number,default:0},currency:{type:[Object,String],required:!0}},data:function(){return{tax:Cn({},this.taxData),selectedTax:null}},computed:Cn(Cn({},(0,i.Se)("taxType",["taxTypes"])),{},{filteredTypes:function(){var e=this;return this.taxTypes.map((function(e){return Cn({},e)})).map((function(t){var n=e.taxes.find((function(e){return e.tax_type_id===t.id}));return t.$isDisabled=!!n,t}))},taxAmount:function(){return this.tax.compound_tax&&this.total?Math.round((this.total+this.totalTax)*this.tax.percent/100):this.total&&this.tax.percent?Math.round(this.total*this.tax.percent/100):0}}),watch:{total:{handler:"updateTax"},totalTax:{handler:"updateTax"}},created:function(){var e=this;this.taxData.tax_type_id>0&&(this.selectedTax=this.taxTypes.find((function(t){return t.id===e.taxData.tax_type_id}))),this.updateTax(),window.hub.$on("newTax",(function(t){e.selectedTax||(e.selectedTax=t,e.onSelectTax(t))}))},methods:Cn(Cn({},(0,i.nv)("modal",["openModal"])),{},{customLabel:function(e){var t=e.name,n=e.percent;return"".concat(t," - ").concat(n,"%")},onSelectTax:function(e){this.tax.percent=e.percent,this.tax.tax_type_id=e.id,this.tax.compound_tax=e.compound_tax,this.tax.name=e.name,this.updateTax()},updateTax:function(){0!==this.tax.tax_type_id&&this.$emit("update",{index:this.index,item:Cn(Cn({},this.tax),{},{amount:this.taxAmount})})},removeTax:function(){this.$emit("remove",this.index,this.tax)},openTaxModal:function(){this.openModal({title:this.$t("settings.tax_types.add_tax"),componentName:"TaxTypeModal"})}})};const On=(0,_.Z)(Tn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex items-center justify-between mb-3"},[n("div",{staticClass:"flex items-center",staticStyle:{flex:"4"}},[n("label",{staticClass:"pr-2 mb-0",attrs:{align:"right"}},[e._v("\n "+e._s(e.$t("general.tax"))+"\n ")]),e._v(" "),n("sw-select",{attrs:{options:e.filteredTypes,"allow-empty":!1,"show-labels":!1,"custom-label":e.customLabel,placeholder:e.$t("general.select_a_tax"),"track-by":"name",label:"name"},on:{select:function(t){return e.onSelectTax(t)}},model:{value:e.selectedTax,callback:function(t){e.selectedTax=t},expression:"selectedTax"}},[n("div",{attrs:{slot:"afterList"},slot:"afterList"},[n("button",{staticClass:"flex items-center justify-center w-full px-2 py-2 bg-gray-200 border-none outline-none",attrs:{type:"button"},on:{click:e.openTaxModal}},[n("check-circle-icon",{staticClass:"h-5 text-primary-400"}),e._v(" "),n("label",{staticClass:"ml-2 text-sm leading-none text-primary-400"},[e._v(e._s(e.$t("invoices.add_new_tax")))])],1)])]),e._v(" "),n("br")],1),e._v(" "),n("div",{staticClass:"text-sm text-right",staticStyle:{flex:"3"},domProps:{innerHTML:e._s(e.$utils.formatMoney(e.taxAmount,e.currency))}}),e._v(" "),n("div",{staticClass:"flex items-center justify-center w-6 h-10 mx-2 cursor-pointer"},[e.taxes.length&&e.index!==e.taxes.length-1?n("trash-icon",{staticClass:"h-5 text-gray-700",on:{click:e.removeTax}}):e._e()],1)])}),[],!1,null,null,null).exports;const En=(0,_.Z)({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{staticClass:"svg-inline--fa fa-grip-vertical fa-w-10",attrs:{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"grip-vertical",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",width:"15",height:"15"}},[t("path",{attrs:{fill:"currentColor",d:"M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"}})])}),[],!1,null,null,null).exports;function An(e){return function(e){if(Array.isArray(e))return jn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return jn(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 jn(e,t)}(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 jn(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 $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){Yn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nn=n(379),zn=Nn.required,In=Nn.minValue,Fn=Nn.between,Hn=Nn.maxLength;const Rn={components:{Tax:On,ItemSelect:Mn,TrashIcon:o.XHJ,ViewGridIcon:o.XOb,ChevronDownIcon:o.v4q,DragIcon:En},props:{itemData:{type:Object,default:null},index:{type:Number,default:null},type:{type:String,default:""},currency:{type:[Object,String],required:!0},taxPerItem:{type:String,default:""},discountPerItem:{type:String,default:""},invoiceItems:{type:Array,default:null}},data:function(){return{isClosePopup:!1,itemSelect:null,item:Pn({},this.itemData),maxDiscount:0,money:{decimal:".",thousands:",",prefix:"$ ",precision:2,masked:!1},isSelected:!1}},computed:Pn(Pn(Pn(Pn({},(0,i.Se)("item",["items"])),(0,i.Se)("modal",["modalActive"])),(0,i.Se)("company",["defaultCurrencyForInput"])),{},{customerCurrency:function(){return this.currency?{decimal:this.currency.decimal_separator,thousands:this.currency.thousand_separator,prefix:this.currency.symbol+" ",precision:this.currency.precision,masked:!1}:this.defaultCurrenctForInput},showRemoveItemIcon:function(){return 1!=this.invoiceItems.length},subtotal:function(){return this.item.price*this.item.quantity},discount:{get:function(){return this.item.discount},set:function(e){"percentage"===this.item.discount_type?this.item.discount_val=this.subtotal*e/100:this.item.discount_val=Math.round(100*e),this.item.discount=e}},total:function(){return this.subtotal-this.item.discount_val},totalSimpleTax:function(){return Math.round(window._.sumBy(this.item.taxes,(function(e){return e.compound_tax?0:e.amount})))},totalCompoundTax:function(){return Math.round(window._.sumBy(this.item.taxes,(function(e){return e.compound_tax?e.amount:0})))},totalTax:function(){return this.totalSimpleTax+this.totalCompoundTax},price:{get:function(){return parseFloat(this.item.price)>0?this.item.price/100:this.item.price},set:function(e){parseFloat(e)>0?(this.item.price=Math.round(100*e),this.maxDiscount=this.item.price):this.item.price=e}}}),watch:{item:{handler:"updateItem",deep:!0},subtotal:function(e){"percentage"===this.item.discount_type&&(this.item.discount_val=this.item.discount*e/100)},modalActive:function(e){e||(this.isSelected=!1)}},validations:function(){return{item:{name:{required:zn},quantity:{required:zn,minValue:In(0),maxLength:Hn(20)},price:{required:zn,minValue:In(1),maxLength:Hn(20)},discount_val:{between:Fn(0,this.maxDiscount)},description:{maxLength:Hn(65e3)}}}},mounted:function(){this.$v.item.$reset()},created:function(){var e=this;window.hub.$on("checkItems",this.validateItem),window.hub.$on("newItem",(function(t){"YES"===e.taxPerItem&&(e.item.taxes=t.taxes),!e.item.item_id&&e.modalActive&&e.isSelected&&e.onSelectItem(t)}))},methods:{updateTax:function(e){this.$set(this.item.taxes,e.index,e.item),0!==this.item.taxes[this.item.taxes.length-1].tax_type_id&&this.item.taxes.push(Pn(Pn({},gn),{},{id:vn().raw()})),this.updateItem()},removeTax:function(e){this.item.taxes.splice(e,1),this.updateItem()},taxWithPercentage:function(e){var t=e.name,n=e.percent;return"".concat(t," (").concat(n,"%)")},searchVal:function(e){this.item.name=e},deselectItem:function(){var e=this;this.item=Pn(Pn({},yn),{},{id:this.item.id,taxes:[Pn(Pn({},gn),{},{id:vn().raw()})]}),this.$nextTick((function(){e.$refs.itemSelect.$refs.baseSelect.$refs.search.focus()}))},onSelectItem:function(e){var t=this;if(this.item.name=e.name,this.item.price=e.price,this.item.item_id=e.id,this.item.description=e.description,this.item.unit_name=e.unit_name,"YES"===this.taxPerItem&&e.taxes){var n=0;e.taxes.forEach((function(e){t.updateTax({index:n,item:Pn({},e)}),n++}))}},selectFixed:function(){"fixed"!==this.item.discount_type&&(this.item.discount_val=Math.round(100*this.item.discount),this.item.discount_type="fixed")},selectPercentage:function(){"percentage"!==this.item.discount_type&&(this.item.discount_val=this.subtotal*this.item.discount/100,this.item.discount_type="percentage")},updateItem:function(){this.$emit("update",{index:this.index,item:Pn(Pn({},this.item),{},{total:this.total,totalSimpleTax:this.totalSimpleTax,totalCompoundTax:this.totalCompoundTax,totalTax:this.totalTax,tax:this.totalTax,taxes:An(this.item.taxes)})})},removeItem:function(){this.$emit("remove",this.index)},validateItem:function(){this.$v.item.$touch(),null!==this.item?this.$emit("itemValidate",this.index,!this.$v.$invalid):this.$emit("itemValidate",this.index,!1)}}};const Bn=(0,_.Z)(Rn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"box-border bg-white border border-gray-200 border-solid rounded-b"},[n("td",{staticClass:"p-0 text-left align-top",attrs:{colspan:"5"}},[n("table",{staticClass:"w-full"},[n("colgroup",[n("col",{staticStyle:{width:"40%"}}),e._v(" "),n("col",{staticStyle:{width:"10%"}}),e._v(" "),n("col",{staticStyle:{width:"15%"}}),e._v(" "),"YES"===e.discountPerItem?n("col",{staticStyle:{width:"15%"}}):e._e(),e._v(" "),n("col",{staticStyle:{width:"15%"}})]),e._v(" "),n("tbody",[n("tr",[n("td",{staticClass:"px-5 py-4 text-left align-top"},[n("div",{staticClass:"flex justify-start"},[n("div",{staticClass:"flex items-center justify-center w-12 h-5 mt-2 text-gray-400 cursor-move handle"},[n("drag-icon")],1),e._v(" "),n("item-select",{ref:"itemSelect",attrs:{invalid:e.$v.item.name.$error,"invalid-description":e.$v.item.description.$error,item:e.item,"tax-per-item":e.taxPerItem,taxes:e.item.taxes},on:{search:e.searchVal,select:e.onSelectItem,deselect:e.deselectItem,onDesriptionInput:function(t){return e.$v.item.description.$touch()},onSelectItem:function(t){e.isSelected=!0}}})],1)]),e._v(" "),n("td",{staticClass:"px-5 py-4 text-right align-top"},[n("sw-input",{attrs:{invalid:e.$v.item.quantity.$error,type:"text",small:""},on:{keyup:e.updateItem,input:function(t){return e.$v.item.quantity.$touch()}},model:{value:e.item.quantity,callback:function(t){e.$set(e.item,"quantity",t)},expression:"item.quantity"}}),e._v(" "),e.$v.item.quantity.$error?n("div",[e.$v.item.quantity.maxLength?e._e():n("span",{staticClass:"text-danger"},[e._v("\n "+e._s(e.$t("validation.quantity_maxlength"))+"\n ")])]):e._e()],1),e._v(" "),n("td",{staticClass:"px-5 py-4 text-left align-top"},[n("div",{staticClass:"flex flex-col"},[n("div",{staticClass:"flex-auto flex-fill bd-highlight"},[n("div",{staticClass:"relative w-full"},[n("sw-money",{attrs:{currency:e.customerCurrency,invalid:e.$v.item.price.$error},on:{input:function(t){return e.$v.item.price.$touch()}},model:{value:e.price,callback:function(t){e.price=t},expression:"price"}})],1),e._v(" "),e.$v.item.price.$error?n("div",[e.$v.item.price.maxLength?e._e():n("span",{staticClass:"text-danger"},[e._v("\n "+e._s(e.$t("validation.price_maxlength"))+"\n ")])]):e._e()])])]),e._v(" "),"YES"===e.discountPerItem?n("td",{staticClass:"px-5 py-4 text-left align-top"},[n("div",{staticClass:"flex flex-col"},[n("div",{staticClass:"flex flex-auto",attrs:{role:"group"}},[n("sw-input",{staticClass:"border-r-0 rounded-tr-none rounded-br-none",attrs:{invalid:e.$v.item.discount_val.$error},on:{input:function(t){return e.$v.item.discount_val.$touch()}},model:{value:e.discount,callback:function(t){e.discount=t},expression:"discount"}}),e._v(" "),n("sw-dropdown",[n("sw-button",{staticStyle:{height:"43px"},attrs:{slot:"activator",type:"button","data-toggle":"dropdown",size:"discount","aria-haspopup":"true","aria-expanded":"false",variant:"white"},slot:"activator"},[n("span",{staticClass:"flex items-center"},[e._v("\n "+e._s("fixed"==e.item.discount_type?e.currency.symbol:"%")+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1)]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectFixed}},[e._v("\n "+e._s(e.$t("general.fixed"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectPercentage}},[e._v("\n "+e._s(e.$t("general.percentage"))+"\n ")])],1)],1)])]):e._e(),e._v(" "),n("td",{staticClass:"px-5 py-4 text-right align-top"},[n("div",{staticClass:"flex items-center justify-end text-sm"},[n("span",[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.total,e.currency))}})]),e._v(" "),n("div",{staticClass:"flex items-center justify-center w-6 h-10 mx-2 cursor-pointer"},[e.showRemoveItemIcon?n("trash-icon",{staticClass:"h-5 text-gray-700",on:{click:e.removeItem}}):e._e()],1)])])]),e._v(" "),"YES"===e.taxPerItem?n("tr",{staticClass:"tax-tr"},[n("td",{staticClass:"px-5 py-4 text-left align-top"}),e._v(" "),n("td",{staticClass:"px-5 py-4 text-left align-top",attrs:{colspan:"4"}},e._l(e.item.taxes,(function(t,r){return n("tax",{key:t.id,attrs:{index:r,"tax-data":t,taxes:e.item.taxes,"discounted-total":e.total,"total-tax":e.totalSimpleTax,total:e.total,currency:e.currency},on:{update:e.updateTax,remove:e.removeTax}})})),1)]):e._e()])])])])}),[],!1,null,null,null).exports;function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach((function(t){Wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Un={components:{UserIcon:o.tBG},props:{valid:{type:Object,default:function(){}},customerId:{type:Number,default:null}},computed:Vn({},(0,i.Se)("invoice",["getTemplateId","selectedCustomer"])),created:function(){this.resetSelectedCustomer(),this.customerId&&this.selectCustomer(this.customerId)},methods:Vn(Vn(Vn({},(0,i.nv)("invoice",["resetSelectedCustomer","selectCustomer"])),(0,i.nv)("modal",["openModal"])),{},{editCustomer:function(){this.openModal({title:this.$t("customers.edit_customer"),componentName:"CustomerModal",id:this.selectedCustomer.id,data:this.selectedCustomer})}})};const Kn=(0,_.Z)(Un,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"col-span-5 pr-0"},[e.selectedCustomer?n("div",{staticClass:"flex flex-col p-4 bg-white border border-gray-200 border-solid",staticStyle:{"min-height":"170px"}},[n("div",{staticClass:"relative flex justify-between mb-2"},[n("label",{staticClass:"flex-1 font-medium"},[e._v(e._s(e.selectedCustomer.name))]),e._v(" "),n("a",{staticClass:"relative my-0 ml-0 mr-6 text-sm font-medium cursor-pointer text-primary-500",on:{click:function(t){return t.preventDefault(),e.editCustomer(t)}}},[e._v("\n "+e._s(e.$t("general.edit"))+"\n ")]),e._v(" "),n("a",{staticClass:"relative my-0 ml-2 mr-6 text-sm font-medium cursor-pointer text-primary-500",on:{click:function(t){return t.preventDefault(),e.resetSelectedCustomer(t)}}},[e._v("\n "+e._s(e.$t("general.deselect"))+"\n ")])]),e._v(" "),n("div",{staticClass:"grid grid-cols-2 gap-4 mt-1"},[e.selectedCustomer.billing_address?n("div",[n("div",{staticClass:"flex flex-col"},[n("label",{staticClass:"mb-1 text-sm font-medium text-gray-500 uppercase whitespace-nowrap"},[e._v("\n "+e._s(e.$t("general.bill_to"))+"\n ")]),e._v(" "),n("div",{staticClass:"flex flex-col flex-1 p-0"},[e.selectedCustomer.billing_address.name?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.billing_address.name)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.billing_address.address_street_1?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.billing_address.address_street_1)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.billing_address.address_street_2?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.billing_address.address_street_2)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.billing_address.city&&e.selectedCustomer.billing_address.state?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.billing_address.city)+",\n "+e._s(e.selectedCustomer.billing_address.state)+"\n "+e._s(e.selectedCustomer.billing_address.zip)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.billing_address.country?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.billing_address.country.name)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.billing_address.phone?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.billing_address.phone)+"\n ")]):e._e()])])]):e._e(),e._v(" "),e.selectedCustomer.shipping_address?n("div",{staticClass:"col col-6"},[n("div",{staticClass:"flex flex-col"},[n("label",{staticClass:"mb-1 text-sm font-medium text-gray-500 uppercase whitespace-nowrap"},[e._v("\n "+e._s(e.$t("general.ship_to"))+"\n ")]),e._v(" "),n("div",{staticClass:"flex flex-col flex-1 p-0"},[e.selectedCustomer.shipping_address.name?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.shipping_address.name)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.shipping_address.address_street_1?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.shipping_address.address_street_1)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.shipping_address.address_street_2?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.shipping_address.address_street_2)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.shipping_address.city&&e.selectedCustomer.shipping_address?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.shipping_address.city)+",\n "+e._s(e.selectedCustomer.shipping_address.state)+"\n "+e._s(e.selectedCustomer.shipping_address.zip)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.shipping_address.country?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.shipping_address.country.name)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.shipping_address.phone?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.shipping_address.phone)+"\n ")]):e._e()])])]):e._e()])]):n("div",[n("sw-popup",{class:["add-customer p-0",{"border border-solid border-danger rounded":e.valid.$error}]},[n("div",{staticClass:"relative flex justify-center px-0 py-16 bg-white border border-gray-200 border-solid rounded-md",staticStyle:{"min-height":"170px"},attrs:{slot:"activator"},slot:"activator"},[n("user-icon",{staticClass:"flex justify-center w-10 h-10 p-2 mr-5 text-sm text-white bg-gray-200 rounded-full font-base"}),e._v(" "),n("div",{staticClass:"mt-1"},[n("label",{staticClass:"text-lg"},[e._v("\n "+e._s(e.$t("customers.new_customer"))+"\n "),n("span",{staticClass:"text-danger"},[e._v(" * ")])]),e._v(" "),e.valid.$error&&!e.valid.required?n("p",{staticClass:"text-danger"},[e._v("\n "+e._s(e.$t("validation.required"))+"\n ")]):e._e()])],1),e._v(" "),n("customer-select-popup",{attrs:{"user-id":e.customerId,type:"invoice"}})],1)],1)])}),[],!1,null,null,null).exports;function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach((function(t){Jn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xn={components:{TrashIcon:o.XHJ},props:{index:{type:Number,required:!0},tax:{type:Object,required:!0},taxes:{type:Array,required:!0},total:{type:Number,default:0},totalTax:{type:Number,default:0},currency:{type:[Object,String],required:!0}},computed:{taxAmount:function(){return this.tax.compound_tax&&this.total?Math.round((this.total+this.totalTax)*this.tax.percent/100):this.total&&this.tax.percent?Math.round(this.total*this.tax.percent/100):0}},watch:{total:{handler:"updateTax"},totalTax:{handler:"updateTax"}},methods:{updateTax:function(){this.$emit("update",{index:this.index,item:Gn(Gn({},this.tax),{},{amount:this.taxAmount})})}}};const Qn=(0,_.Z)(Xn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex items-center justify-between w-full mt-2 text-sm"},[n("label",{staticClass:"font-semibold leading-5 text-gray-500 uppercase"},[e._v("\n "+e._s(e.tax.name)+" ("+e._s(e.tax.percent)+"%)\n ")]),e._v(" "),n("label",{staticClass:"flex items-center justify-center text-lg text-black"},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.tax.amount,e.currency))}}),e._v(" "),n("trash-icon",{staticClass:"h-5 ml-2",on:{click:function(t){return e.$emit("remove",e.index)}}})],1)])}),[],!1,null,null,null).exports;function er(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tr(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 tr(e,t)}(e,t)||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.")}()}function tr(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 nr(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function rr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){nr(i,r,a,o,s,"next",e)}function s(e){nr(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ir(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){or(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function or(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sr=n(379),lr=sr.required,cr=sr.between,ur=sr.maxLength,dr=sr.numeric;const pr={components:{InvoiceItem:Bn,CustomerSelect:Kn,Tax:Qn,draggable:hn(),PlusSmIcon:s.d2U,ChevronDownIcon:o.v4q,PencilIcon:o.vdY,ShoppingCartIcon:o.Q1y,HashtagIcon:o.jdL},mixins:[Xe.Z],data:function(){return{newInvoice:{invoice_date:null,due_date:null,invoice_number:null,user_id:null,invoice_template_id:1,sub_total:null,total:null,tax:null,notes:null,discount_type:"fixed",discount_val:0,discount:0,reference_number:null,items:[ir(ir({},yn),{},{id:vn().raw(),taxes:[ir(ir({},gn),{},{id:vn().raw()})]})],taxes:[]},selectedCurrency:"",taxPerItem:null,discountPerItem:null,isLoadingInvoice:!1,isLoadingData:!1,isLoading:!1,maxDiscount:0,invoicePrefix:null,invoiceNumAttribute:null,InvoiceFields:["customer","customerCustom","company","invoice","invoiceCustom"],customerId:null}},validations:function(){return{newInvoice:{invoice_date:{required:lr},due_date:{required:lr},discount_val:{between:cr(0,this.subtotal)},reference_number:{maxLength:ur(255)}},selectedCustomer:{required:lr},invoiceNumAttribute:{required:lr,numeric:dr}}},computed:ir(ir(ir(ir(ir(ir({},(0,i.Se)("company",["itemDiscount"])),(0,i.Se)("company",["defaultCurrency"])),(0,i.Se)("notes",["notes"])),(0,i.Se)("invoice",["getTemplateId","selectedCustomer","selectedNote"])),(0,i.Se)("invoiceTemplate",["getInvoiceTemplates"])),{},{currency:function(){return this.selectedCurrency},pageTitle:function(){return this.isEdit?this.$t("invoices.edit_invoice"):this.$t("invoices.new_invoice")},isEdit:function(){return"invoices.edit"===this.$route.name},subtotalWithDiscount:function(){return this.subtotal-this.newInvoice.discount_val},total:function(){return this.subtotalWithDiscount+this.totalTax},subtotal:function(){return this.newInvoice.items.reduce((function(e,t){return e+t.total}),0)},discount:{get:function(){return this.newInvoice.discount},set:function(e){"percentage"===this.newInvoice.discount_type?this.newInvoice.discount_val=this.subtotal*e/100:this.newInvoice.discount_val=Math.round(100*e),this.newInvoice.discount=e}},totalSimpleTax:function(){return Math.round(window._.sumBy(this.newInvoice.taxes,(function(e){return e.compound_tax?0:e.amount})))},totalCompoundTax:function(){return Math.round(window._.sumBy(this.newInvoice.taxes,(function(e){return e.compound_tax?e.amount:0})))},totalTax:function(){return"NO"===this.taxPerItem||null===this.taxPerItem?this.totalSimpleTax+this.totalCompoundTax:Math.round(window._.sumBy(this.newInvoice.items,(function(e){return e.tax})))},allTaxes:function(){var e=[];return this.newInvoice.items.forEach((function(t){t.taxes.forEach((function(t){var n=e.find((function(e){return e.tax_type_id===t.tax_type_id}));n?n.amount+=t.amount:t.tax_type_id&&e.push({tax_type_id:t.tax_type_id,amount:t.amount,percent:t.percent,name:t.name})}))})),e},invoiceDateError:function(){return this.$v.newInvoice.invoice_date.$error?this.$v.newInvoice.invoice_date.required?void 0:this.$t("validation.required"):""},dueDateError:function(){return this.$v.newInvoice.due_date.$error?this.$v.newInvoice.due_date.required?void 0:this.$t("validation.required"):""},invoiceNumError:function(){return this.$v.invoiceNumAttribute.$error?this.$v.invoiceNumAttribute.required?this.$v.invoiceNumAttribute.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""},referenceError:function(){return this.$v.newInvoice.reference_number.$error?this.$v.newInvoice.reference_number.maxLength?void 0:this.$tc("validation.ref_number_maxlength"):""}}),watch:{selectedCustomer:function(e){e&&e.currency?this.selectedCurrency=e.currency:this.selectedCurrency=this.defaultCurrency},selectedNote:function(){this.selectedNote&&(this.newInvoice.notes=this.selectedNote)},subtotal:function(e){"percentage"===this.newInvoice.discount_type&&(this.newInvoice.discount_val=this.newInvoice.discount*e/100)}},created:function(){this.loadData(),this.fetchInitialData(),window.hub.$on("newTax",this.onSelectTax),this.$route.query.customer&&(this.customerId=parseInt(this.$route.query.customer))},methods:ir(ir(ir(ir(ir(ir(ir(ir({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("invoice",["addInvoice","fetchInvoice","getInvoiceNumber","selectCustomer","updateInvoice","resetSelectedNote"])),(0,i.nv)("invoiceTemplate",["fetchInvoiceTemplates"])),(0,i.nv)("company",["fetchCompanySettings"])),(0,i.nv)("item",["fetchItems"])),(0,i.nv)("taxType",["fetchTaxTypes"])),(0,i.nv)("customFields",["fetchCustomFields"])),{},{selectFixed:function(){"fixed"!==this.newInvoice.discount_type&&(this.newInvoice.discount_val=Math.round(100*this.newInvoice.discount),this.newInvoice.discount_type="fixed")},selectPercentage:function(){"percentage"!==this.newInvoice.discount_type&&(this.newInvoice.discount_val=this.subtotal*this.newInvoice.discount/100,this.newInvoice.discount_type="percentage")},updateTax:function(e){Object.assign(this.newInvoice.taxes[e.index],ir({},e.item))},fetchInitialData:function(){var e=this;return rr(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isLoadingData=!0,e.isEdit){t.next=6;break}return t.next=4,e.fetchCompanySettings(["discount_per_item","tax_per_item"]);case 4:(n=t.sent).data&&(e.discountPerItem=n.data.discount_per_item,e.taxPerItem=n.data.tax_per_item);case 6:Promise.all([e.fetchItems({filter:{},orderByField:"",orderBy:""}),e.fetchInvoiceTemplates(),e.resetSelectedNote(),e.getInvoiceNumber(),e.fetchCompanySettings(["invoice_auto_generate"])]).then(function(){var t=rr(Y().mark((function t(n){var r,a,i;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=er(n,5),r[0],r[1],r[2],a=r[3],i=r[4],!e.isEdit&&i.data&&"YES"===i.data.invoice_auto_generate?a.data&&(e.invoiceNumAttribute=a.data.nextNumber,e.invoicePrefix=a.data.prefix):e.invoicePrefix=a.data.prefix,e.isLoadingData=!1;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){console.log(e)}));case 7:case"end":return t.stop()}}),t)})))()},loadData:function(){var e=this;return rr(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isEdit){t.next=4;break}return e.isLoadingInvoice=!0,Promise.all([e.fetchInvoice(e.$route.params.id),e.fetchCustomFields({type:"Invoice",limit:"all"}),e.fetchTaxTypes({limit:"all"})]).then(function(){var t=rr(Y().mark((function t(n){var r,a,i,o,s;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=er(n,2),a=r[0],i=r[1],a.data&&(e.customerId=a.data.invoice.user_id,e.newInvoice=a.data.invoice,e.formData=ir(ir({},e.formData),a.data.invoice),e.newInvoice.invoice_date=on()(a.data.invoice.invoice_date,"YYYY-MM-DD").toString(),e.newInvoice.due_date=on()(a.data.invoice.due_date,"YYYY-MM-DD").toString(),e.discountPerItem=a.data.invoice.discount_per_item,e.selectedCurrency=e.defaultCurrency,e.invoiceNumAttribute=a.data.nextInvoiceNumber,e.invoicePrefix=a.data.invoicePrefix,e.taxPerItem=a.data.invoice.tax_per_item,o=a.data.invoice.fields,i.data&&(s=i.data.customFields.data,e.setEditCustomFields(o,s))),e.isLoadingInvoice=!1;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){console.log(e)})),t.abrupt("return",!0);case 4:return e.isLoadingInvoice=!0,t.next=7,e.setInitialCustomFields("Invoice");case 7:return t.next=9,e.fetchTaxTypes({limit:"all"});case 9:e.selectedCurrency=e.defaultCurrency,e.newInvoice.invoice_date=on()().toString(),e.newInvoice.due_date=on()().add(7,"days").toString(),e.isLoadingInvoice=!1;case 13:case"end":return t.stop()}}),t)})))()},openTemplateModal:function(){this.openModal({title:this.$t("general.choose_template"),componentName:"InvoiceTemplate",data:this.getInvoiceTemplates})},addItem:function(){this.newInvoice.items.push(ir(ir({},yn),{},{id:vn().raw(),taxes:[ir(ir({},gn),{},{id:vn().raw()})]}))},removeItem:function(e){this.newInvoice.items.splice(e,1)},updateItem:function(e){Object.assign(this.newInvoice.items[e.index],ir({},e.item))},submitForm:function(){var e=this;return rr(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.touchCustomField();case 2:if(n=t.sent,e.checkValid()&&!n.error){t.next=5;break}return t.abrupt("return",!1);case 5:if(e.isLoading=!0,e.newInvoice.invoice_number=e.invoicePrefix+"-"+e.invoiceNumAttribute,r=ir(ir(ir({},e.formData),e.newInvoice),{},{sub_total:e.subtotal,total:e.total,tax:e.totalTax,user_id:null,invoice_template_id:e.getTemplateId}),null!=e.selectedCustomer&&(r.user_id=e.selectedCustomer.id),"invoices.edit"!==e.$route.name){t.next=12;break}return e.submitUpdate(r),t.abrupt("return");case 12:e.submitCreate(r);case 13:case"end":return t.stop()}}),t)})))()},submitCreate:function(e){var t=this;this.addInvoice(e).then((function(e){e.data&&(t.$router.push("/admin/invoices/".concat(e.data.invoice.id,"/view")),window.toastr.success(t.$t("invoices.created_message"))),t.isLoading=!1})).catch((function(e){t.isLoading=!1}))},submitUpdate:function(e){var t=this;this.updateInvoice(e).then((function(e){t.isLoading=!1,e.data.success&&(t.$router.push("/admin/invoices/".concat(e.data.invoice.id,"/view")),window.toastr.success(t.$t("invoices.updated_message"))),"invalid_due_amount"===e.data.error&&window.toastr.error(t.$t("invoices.invalid_due_amount_message"))})).catch((function(e){t.isLoading=!1}))},checkItemsData:function(e,t){this.newInvoice.items[e].valid=t},onSelectTax:function(e){var t=0;e.compound_tax&&this.subtotalWithDiscount?t=Math.round((this.subtotalWithDiscount+this.totalSimpleTax)*e.percent/100):this.subtotalWithDiscount&&e.percent&&(t=Math.round(this.subtotalWithDiscount*e.percent/100)),this.newInvoice.taxes.push(ir(ir({},gn),{},{id:vn().raw(),name:e.name,percent:e.percent,compound_tax:e.compound_tax,tax_type_id:e.id,amount:t})),this.$refs&&this.$refs.taxModal.close()},removeInvoiceTax:function(e){this.newInvoice.taxes.splice(e,1)},checkValid:function(){this.$v.newInvoice.$touch(),this.$v.selectedCustomer.$touch(),this.$v.invoiceNumAttribute.$touch(),window.hub.$emit("checkItems");var e=!0;return this.newInvoice.items.forEach((function(t){t.valid||(e=!1)})),!this.$v.selectedCustomer.$invalid&&!this.$v.invoiceNumAttribute.$invalid&&!1===this.$v.newInvoice.$invalid&&!0===e},onSelectNote:function(e){this.newInvoice.notes=""+e.notes,this.$refs.notePopup.close()}})};var mr=n(9963),fr={insert:"head",singleton:!1};m()(mr.Z,fr);mr.Z.locals;const hr=(0,_.Z)(pr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"relative invoice-create-page"},[e.isLoadingInvoice||e.isLoadingData?n("base-loader"):n("form",{on:{submit:function(t){return t.preventDefault(),e.submitForm(t)}}},[n("sw-page-header",{attrs:{title:e.pageTitle}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{title:e.$t("general.home"),to:"/admin/dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("invoices.invoice",2),to:"/admin/invoices"}}),e._v(" "),"invoice.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{title:e.$t("invoices.edit_invoice"),to:"#",active:""}}):n("sw-breadcrumb-item",{attrs:{title:e.$t("invoices.new_invoice"),to:"#",active:""}})],1),e._v(" "),n("template",{slot:"actions"},["invoices.edit"===e.$route.name?n("sw-button",{staticClass:"mr-3",attrs:{disabled:e.isLoading,href:"/invoices/pdf/"+e.newInvoice.unique_hash,"tag-name":"a",variant:"primary-outline",target:"_blank"}},[e._v("\n "+e._s(e.$t("general.view_pdf"))+"\n ")]):e._e(),e._v(" "),n("sw-button",{staticClass:"flex justify-center w-full lg:w-auto",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit",size:"lg"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.$t("invoices.save_invoice"))+"\n ")],1)],1)],2),e._v(" "),n("div",{staticClass:"grid-cols-12 gap-8 mt-6 mb-8 lg:grid"},[n("customer-select",{staticClass:"col-span-5 pr-0",attrs:{valid:e.$v.selectedCustomer,"customer-id":e.customerId}}),e._v(" "),n("div",{staticClass:"grid grid-cols-1 col-span-7 gap-4 mt-8 lg:gap-6 lg:mt-0 lg:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("invoices.invoice_date"),error:e.invoiceDateError,required:""}},[n("base-date-picker",{staticClass:"mt-2",attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.newInvoice.invoice_date.$touch()}},model:{value:e.newInvoice.invoice_date,callback:function(t){e.$set(e.newInvoice,"invoice_date",t)},expression:"newInvoice.invoice_date"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("invoices.due_date"),error:e.dueDateError,required:""}},[n("base-date-picker",{staticClass:"mt-2",attrs:{invalid:e.$v.newInvoice.due_date.$error,"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.newInvoice.due_date.$touch()}},model:{value:e.newInvoice.due_date,callback:function(t){e.$set(e.newInvoice,"due_date",t)},expression:"newInvoice.due_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"lg:mt-0",attrs:{label:e.$t("invoices.invoice_number"),error:e.invoiceNumError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{prefix:e.invoicePrefix+" - ",invalid:e.$v.invoiceNumAttribute.$error},on:{input:function(t){return e.$v.invoiceNumAttribute.$touch()}},model:{value:e.invoiceNumAttribute,callback:function(t){e.invoiceNumAttribute=t},expression:"invoiceNumAttribute"}},[n("hashtag-icon",{staticClass:"h-4 ml-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"})],1)],1),e._v(" "),n("sw-input-group",{staticClass:"lg:mt-0",attrs:{label:e.$t("invoices.ref_number"),error:e.referenceError}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.newInvoice.reference_number.$error},on:{input:function(t){return e.$v.newInvoice.reference_number.$touch()}},model:{value:e.newInvoice.reference_number,callback:function(t){e.$set(e.newInvoice,"reference_number",t)},expression:"newInvoice.reference_number"}},[n("hashtag-icon",{staticClass:"h-4 ml-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"})],1)],1)],1)],1),e._v(" "),n("table",{staticClass:"w-full text-center item-table"},[n("colgroup",[n("col",{staticStyle:{width:"40%"}}),e._v(" "),n("col",{staticStyle:{width:"10%"}}),e._v(" "),n("col",{staticStyle:{width:"15%"}}),e._v(" "),"YES"===e.discountPerItem?n("col",{staticStyle:{width:"15%"}}):e._e(),e._v(" "),n("col",{staticStyle:{width:"15%"}})]),e._v(" "),n("thead",{staticClass:"bg-white border border-gray-200 border-solid"},[n("tr",[n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",{staticClass:"pl-12"},[e._v("\n "+e._s(e.$tc("items.item",2))+"\n ")])]),e._v(" "),n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-right text-gray-700 border-t border-b border-gray-200 border-solid"},[e._v("\n "+e._s(e.$t("invoices.item.quantity"))+"\n ")]),e._v(" "),n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},[e._v("\n "+e._s(e.$t("invoices.item.price"))+"\n ")]),e._v(" "),"YES"===e.discountPerItem?n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},[e._v("\n "+e._s(e.$t("invoices.item.discount"))+"\n ")]):e._e(),e._v(" "),n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-right text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",{staticClass:"pr-10"},[e._v("\n "+e._s(e.$t("invoices.item.amount"))+"\n ")])])])]),e._v(" "),n("draggable",{staticClass:"item-body",attrs:{tag:"tbody",handle:".handle"},model:{value:e.newInvoice.items,callback:function(t){e.$set(e.newInvoice,"items",t)},expression:"newInvoice.items"}},e._l(e.newInvoice.items,(function(t,r){return n("invoice-item",{key:t.id,attrs:{index:r,"item-data":t,"invoice-items":e.newInvoice.items,currency:e.currency,"tax-per-item":e.taxPerItem,"discount-per-item":e.discountPerItem},on:{remove:e.removeItem,update:e.updateItem,itemValidate:e.checkItemsData}})})),1)],1),e._v(" "),n("div",{staticClass:"flex items-center justify-center w-full px-6 py-3 text-base border-b border-gray-200 border-solid cursor-pointer text-primary-400 hover:bg-gray-200",on:{click:e.addItem}},[n("shopping-cart-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("invoices.add_item"))+"\n ")],1),e._v(" "),n("div",{staticClass:"block my-10 invoice-foot lg:justify-between lg:flex lg:items-start"},[n("div",{staticClass:"w-full lg:w-1/2"},[n("div",{staticClass:"mb-6"},[n("sw-popup",{ref:"notePopup",staticClass:"z-10 text-sm font-semibold leading-5 text-primary-400"},[n("div",{staticClass:"float-right mt-1",attrs:{slot:"activator"},slot:"activator"},[e._v("\n + "+e._s(e.$t("general.insert_note"))+"\n ")]),e._v(" "),n("note-select-popup",{attrs:{type:"Invoice"},on:{select:e.onSelectNote}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("invoices.notes")}},[n("base-custom-input",{attrs:{fields:e.InvoiceFields},model:{value:e.newInvoice.notes,callback:function(t){e.$set(e.newInvoice,"notes",t)},expression:"newInvoice.notes"}})],1)],1),e._v(" "),e.customFields.length>0?n("div",{staticClass:"grid gap-x-4 gap-y-2 md:gap-x-8 md:gap-y-4 grid-col-1 md:grid-cols-2"},e._l(e.customFields,(function(t,r){return n("sw-input-group",{key:r,attrs:{label:t.label,required:!!t.is_required}},[n(t.type+"Field",{tag:"component",attrs:{type:t.type.label,field:t,"is-edit":e.isEdit,"invalid-fields":e.invalidFields},on:{update:e.setCustomFieldValue}})],1)})),1):e._e(),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-1",attrs:{label:e.$t("invoices.invoice_template"),required:""}},[n("sw-button",{staticClass:"flex justify-center w-full text-sm text-black lg:w-auto hover:bg-gray-400",attrs:{type:"button",variant:"gray"},on:{click:e.openTemplateModal}},[n("span",{staticClass:"flex text-black"},[e._v("\n "+e._s(e.$t("invoices.template"))+" "+e._s(e.getTemplateId)+"\n "),n("pencil-icon",{staticClass:"h-5 ml-2 -mr-1"})],1)])],1)],1),e._v(" "),n("div",{staticClass:"px-5 py-4 mt-6 bg-white border border-gray-200 border-solid rounded invoice-total lg:mt-0"},[n("div",{staticClass:"flex items-center justify-between w-full"},[n("label",{staticClass:"text-sm font-semibold leading-5 text-gray-500 uppercase"},[e._v(e._s(e.$t("invoices.sub_total")))]),e._v(" "),n("label",{staticClass:"flex items-center justify-center m-0 text-lg text-black uppercase"},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.subtotal,e.currency))}})])]),e._v(" "),e._l(e.allTaxes,(function(t){return n("div",{key:t.tax_type_id,staticClass:"flex items-center justify-between w-full"},[n("label",{staticClass:"m-0 text-sm font-semibold leading-5 text-gray-500 uppercase"},[e._v(e._s(t.name)+" - "+e._s(t.percent)+"%\n ")]),e._v(" "),n("label",{staticClass:"flex items-center justify-center m-0 text-lg text-black uppercase",staticStyle:{"font-size":"18px"}},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.amount,e.currency))}})])])})),e._v(" "),"NO"===e.discountPerItem||null===e.discountPerItem?n("div",{staticClass:"flex items-center justify-between w-full mt-2"},[n("label",{staticClass:"text-sm font-semibold leading-5 text-gray-500 uppercase"},[e._v(e._s(e.$t("invoices.discount")))]),e._v(" "),n("div",{staticClass:"flex",staticStyle:{width:"105px"},attrs:{role:"group"}},[n("sw-input",{staticClass:"border-r-0 rounded-tr-sm rounded-br-sm",attrs:{invalid:e.$v.newInvoice.discount_val.$error},on:{input:function(t){return e.$v.newInvoice.discount_val.$touch()}},model:{value:e.discount,callback:function(t){e.discount=t},expression:"discount"}}),e._v(" "),n("sw-dropdown",{attrs:{position:"bottom-end"}},[n("sw-button",{staticStyle:{height:"43px"},attrs:{slot:"activator",type:"button","data-toggle":"dropdown",size:"discount","aria-haspopup":"true","aria-expanded":"false",variant:"white"},slot:"activator"},[n("span",{staticClass:"flex"},[e._v("\n "+e._s("fixed"==e.newInvoice.discount_type?e.currency.symbol:"%")+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1)]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectFixed}},[e._v("\n "+e._s(e.$t("general.fixed"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectPercentage}},[e._v("\n "+e._s(e.$t("general.percentage"))+"\n ")])],1)],1)]):e._e(),e._v(" "),!e.taxPerItem?e._e():n("div",e._l(e.newInvoice.taxes,(function(t,r){return n("tax",{key:t.id,attrs:{index:r,total:e.subtotalWithDiscount,tax:t,taxes:e.newInvoice.taxes,currency:e.currency,"total-tax":e.totalSimpleTax},on:{remove:e.removeInvoiceTax,update:e.updateTax}})})),1),e._v(" "),"NO"===e.taxPerItem||null===e.taxPerItem?n("sw-popup",{ref:"taxModal",staticClass:"my-3 text-sm font-semibold leading-5 text-primary-400"},[n("div",{staticClass:"float-right pt-2 pb-5",attrs:{slot:"activator"},slot:"activator"},[e._v("\n + "+e._s(e.$t("invoices.add_tax"))+"\n ")]),e._v(" "),n("tax-select-popup",{attrs:{taxes:e.newInvoice.taxes},on:{select:e.onSelectTax}})],1):e._e(),e._v(" "),n("div",{staticClass:"flex items-center justify-between w-full pt-2 mt-5 border-t border-gray-200 border-solid"},[n("label",{staticClass:"text-sm font-semibold leading-5 text-gray-500 uppercase"},[e._v("\n "+e._s(e.$t("invoices.total"))+" "+e._s(e.$t("invoices.amount"))+":\n ")]),e._v(" "),n("label",{staticClass:"flex items-center justify-center text-lg uppercase text-primary-400"},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.total,e.currency))}})])])],2)])],1)],1)}),[],!1,null,null,null).exports;function _r(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function vr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){_r(i,r,a,o,s,"next",e)}function s(e){_r(i,r,a,o,s,"throw",e)}o(void 0)}))}}function gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gr(Object(n),!0).forEach((function(t){br(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wr=n(6486);const xr={components:{DotsHorizontalIcon:o.nWS,FilterIcon:o.k1n,SortAscendingIcon:o.TV4,SortDescendingIcon:o.mcG,SearchIcon:o.W1M,LinkIcon:o.xPt,PencilIcon:o.vdY,TrashIcon:o.XHJ},data:function(){return{id:null,count:null,invoices:[],invoice:null,currency:null,searchData:{orderBy:null,orderByField:null,searchText:null},isRequestOnGoing:!1,isSearching:!1,isSendingEmail:!1,isMarkingAsSent:!1}},computed:{pageTitle:function(){return this.invoice.invoice_number},getOrderBy:function(){return"asc"===this.searchData.orderBy||null==this.searchData.orderBy},getOrderName:function(){return this.getOrderBy?this.$t("general.ascending"):this.$t("general.descending")},shareableLink:function(){return"/invoices/pdf/".concat(this.invoice.unique_hash)},getCurrentInvoiceId:function(){return this.invoice&&this.invoice.id?this.invoice.id:null}},watch:{$route:function(e,t){this.loadInvoice()}},created:function(){this.loadInvoices(),this.loadInvoice(),this.onSearch=wr.debounce(this.onSearch,500)},methods:yr(yr(yr({},(0,i.nv)("invoice",["fetchInvoices","getRecord","searchInvoice","markAsSent","sendEmail","deleteInvoice","selectInvoice","fetchInvoice"])),(0,i.nv)("modal",["openModal"])),{},{hasActiveUrl:function(e){return this.$route.params.id==e},loadInvoices:function(){var e=this;return vr(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchInvoices({limit:"all"});case 2:(n=t.sent).data&&(e.invoices=n.data.invoices.data),setTimeout((function(){e.scrollToInvoice()}),500);case 5:case"end":return t.stop()}}),t)})))()},scrollToInvoice:function(){var e=document.getElementById("invoice-".concat(this.$route.params.id));e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"))},loadInvoice:function(){var e=this;return vr(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchInvoice(e.$route.params.id);case 2:(n=t.sent).data&&(e.invoice=n.data.invoice);case 4:case"end":return t.stop()}}),t)})))()},onSearch:function(){var e=this;return vr(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="",""!==e.searchData.searchText&&null!==e.searchData.searchText&&void 0!==e.searchData.searchText&&(n+="search=".concat(e.searchData.searchText,"&")),null!==e.searchData.orderBy&&void 0!==e.searchData.orderBy&&(n+="orderBy=".concat(e.searchData.orderBy,"&")),null!==e.searchData.orderByField&&void 0!==e.searchData.orderByField&&(n+="orderByField=".concat(e.searchData.orderByField)),e.isSearching=!0,t.next=7,e.searchInvoice(n);case 7:r=t.sent,e.isSearching=!1,r.data&&(e.invoices=r.data.invoices.data);case 10:case"end":return t.stop()}}),t)})))()},sortData:function(){return"asc"===this.searchData.orderBy?(this.searchData.orderBy="desc",this.onSearch(),!0):(this.searchData.orderBy="asc",this.onSearch(),!0)},onMarkAsSent:function(){var e=this;return vr(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:window.swal({title:e.$t("general.are_you_sure"),text:e.$t("invoices.invoice_mark_as_sent"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=vr(Y().mark((function t(n){var r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=7;break}return e.isMarkingAsSent=!0,t.next=4,e.markAsSent({id:e.invoice.id,status:"SENT"});case 4:r=t.sent,e.isMarkingAsSent=!1,r.data&&(e.invoice.status="SENT",window.toastr.success(e.$tc("invoices.marked_as_sent_message")));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},onSendInvoice:function(){var e=this;return vr(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.openModal({title:e.$t("invoices.send_invoice"),componentName:"SendInvoiceModal",id:e.invoice.id,data:e.invoice});case 1:case"end":return t.stop()}}),t)})))()},copyPdfUrl:function(){var e="".concat(window.location.origin,"/invoices/pdf/").concat(this.invoice.unique_hash);this.$utils.copyTextToClipboard(e);window.toastr.success(this.$t("general.copied_pdf_url_clipboard"))},removeInvoice:function(e){var t=this;return vr(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:"you will not be able to recover this invoice!",icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=vr(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=5;break}return n.next=3,t.deleteInvoice({ids:[e]});case 3:(a=n.sent).data.success?(window.toastr.success(t.$tc("invoices.deleted_message",1)),t.$router.push("/admin/invoices")):a.data.error&&window.toastr.error(a.data.message);case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()}})};const kr=(0,_.Z)(xr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.invoice?n("base-page",{staticClass:"xl:pl-96"},[n("sw-page-header",{attrs:{title:e.pageTitle}},[n("template",{slot:"actions"},[n("div",{staticClass:"mr-3 text-sm"},["DRAFT"===e.invoice.status?n("sw-button",{attrs:{disabled:e.isMarkingAsSent,variant:"primary-outline"},on:{click:e.onMarkAsSent}},[e._v("\n "+e._s(e.$t("invoices.mark_as_sent"))+"\n ")]):e._e()],1),e._v(" "),"DRAFT"===e.invoice.status?n("sw-button",{staticClass:"text-sm",attrs:{disabled:e.isSendingEmail,variant:"primary"},on:{click:e.onSendInvoice}},[e._v("\n "+e._s(e.$t("invoices.send_invoice"))+"\n ")]):e._e(),e._v(" "),"SENT"===e.invoice.status||"OVERDUE"===e.invoice.status||"VIEWED"===e.invoice.status?n("sw-button",{staticClass:"text-sm",attrs:{to:"/admin/payments/"+e.$route.params.id+"/create","tag-name":"router-link",variant:"primary"}},[e._v("\n "+e._s(e.$t("payments.record_payment"))+"\n ")]):e._e(),e._v(" "),n("sw-dropdown",{staticClass:"ml-3"},[n("sw-button",{staticClass:"h-10",attrs:{slot:"activator",variant:"primary"},slot:"activator"},[n("dots-horizontal-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.copyPdfUrl}},[n("link-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.copy_pdf_url"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{to:"/admin/invoices/"+e.$route.params.id+"/edit","tag-name":"router-link"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(t){return e.removeInvoice(e.$route.params.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)],1)],2),e._v(" "),n("div",{staticClass:"fixed top-0 left-0 hidden h-full pt-16 pb-5 ml-56 bg-white xl:ml-64 w-88 xl:block"},[n("div",{staticClass:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},[n("sw-input",{staticClass:"mb-6",attrs:{placeholder:e.$t("general.search"),type:"text",variant:"gray"},on:{input:e.onSearch},model:{value:e.searchData.searchText,callback:function(t){e.$set(e.searchData,"searchText",t)},expression:"searchData.searchText"}},[n("search-icon",{staticClass:"h-5",attrs:{slot:"rightIcon"},slot:"rightIcon"})],1),e._v(" "),n("div",{staticClass:"flex mb-6 ml-3",attrs:{role:"group","aria-label":"First group"}},[n("sw-dropdown",{attrs:{"close-on-select":!1,align:"left",position:"bottom-start"}},[n("sw-button",{attrs:{slot:"activator",size:"md",variant:"gray-light"},slot:"activator"},[n("filter-icon",{staticClass:"h-5"})],1),e._v(" "),n("div",{staticClass:"px-2 py-1 mb-2 border-b border-gray-200 border-solid"},[e._v("\n "+e._s(e.$t("general.sort_by"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{staticClass:"flex px-1 py-1 cursor-pointer"},[n("sw-input-group",{staticClass:"-mt-2 text-sm font-normal"},[n("sw-radio",{attrs:{id:"filter_invoice_date",label:e.$t("invoices.invoice_date"),name:"filter",size:"sm",value:"invoice_date"},on:{change:e.onSearch},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1),e._v(" "),n("sw-dropdown-item",{staticClass:"flex px-1 py-1 cursor-pointer"},[n("sw-input-group",{staticClass:"-mt-2 font-normal"},[n("sw-radio",{attrs:{id:"filter_due_date",label:e.$t("invoices.due_date"),name:"filter",size:"sm",value:"due_date"},on:{change:e.onSearch},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1),e._v(" "),n("sw-dropdown-item",{staticClass:"flex px-1 py-1 cursor-pointer"},[n("sw-input-group",{staticClass:"-mt-2 font-normal"},[n("sw-radio",{attrs:{id:"filter_invoice_number",label:e.$t("invoices.invoice_number"),size:"sm",type:"radio",name:"filter",value:"invoice_number"},on:{change:e.onSearch},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1)],1),e._v(" "),n("sw-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top-center",value:{content:e.getOrderName},expression:"{ content: getOrderName }",modifiers:{"top-center":!0}}],staticClass:"ml-1",attrs:{size:"md",variant:"gray-light"},on:{click:e.sortData}},[e.getOrderBy?n("sort-ascending-icon",{staticClass:"h-5"}):n("sort-descending-icon",{staticClass:"h-5"})],1)],1)],1),e._v(" "),e.isSearching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):n("div",{staticClass:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sw-scroll"},[e._l(e.invoices,(function(t,r){return n("router-link",{key:r,class:["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":e.hasActiveUrl(t.id)}],staticStyle:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"},attrs:{to:"/admin/invoices/"+t.id+"/view",id:"invoice-"+t.id}},[n("div",{staticClass:"flex-2"},[n("div",{staticClass:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},[e._v("\n "+e._s(t.user.name)+"\n ")]),e._v(" "),n("div",{staticClass:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},[e._v("\n "+e._s(t.invoice_number)+"\n ")]),e._v(" "),n("sw-badge",{staticClass:"px-1 text-xs",attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color,"font-size":e.$utils.getBadgeStatusColor(t.status).fontSize}},[e._v("\n "+e._s(t.status)+"\n ")])],1),e._v(" "),n("div",{staticClass:"flex-1 whitespace-nowrap right"},[n("div",{staticClass:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900",domProps:{innerHTML:e._s(e.$utils.formatMoney(t.due_amount,t.user.currency))}}),e._v(" "),n("div",{staticClass:"text-sm not-italic font-normal leading-5 text-right text-gray-600"},[e._v("\n "+e._s(t.formattedInvoiceDate)+"\n ")])])])})),e._v(" "),e.invoices.length?e._e():n("p",{staticClass:"flex justify-center px-4 mt-5 text-sm text-gray-600"},[e._v("\n "+e._s(e.$t("invoices.no_matching_invoices"))+"\n ")])],2)],1),e._v(" "),n("div",{staticClass:"flex flex-col min-h-0 mt-8 overflow-hidden",staticStyle:{height:"75vh"}},[n("iframe",{staticClass:"flex-1 border border-gray-400 border-solid rounded-md frame-style",attrs:{src:""+e.shareableLink}})])],1):e._e()}),[],!1,null,null,null).exports;function Dr(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Mr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Dr(i,r,a,o,s,"next",e)}function s(e){Dr(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){Lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tr={components:{CapsuleIcon:(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{width:"118",height:"110",viewBox:"0 0 118 110",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("g",{attrs:{"clip-path":"url(#clip0)"}},[n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M58.6672 32.9999C42.1415 32.9999 32.973 28.5119 32.5898 28.3194L33.4093 26.6804C33.4992 26.7244 42.6127 31.1666 58.6672 31.1666C74.542 31.1666 83.8388 26.7208 83.9323 26.6768L84.7354 28.3231C84.3449 28.5156 74.9618 32.9999 58.6672 32.9999Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M25.2438 39.0117L28.4191 40.8451C28.839 41.0871 29.1415 41.4831 29.2698 41.9597C29.3963 42.4346 29.3321 42.9296 29.0901 43.3494L14.4235 68.7521C14.099 69.3167 13.4866 69.6669 12.8248 69.6669C12.504 69.6669 12.1978 69.5844 11.9191 69.4231L8.74382 67.5897L7.82715 69.1774L11.0025 71.0107C11.5763 71.3426 12.2051 71.5002 12.8248 71.5002C14.0953 71.5002 15.3346 70.8421 16.0111 69.6687L30.6778 44.2661C31.6861 42.5189 31.083 40.2657 29.3358 39.2574L26.1605 37.4241L25.2438 39.0117Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M91.1729 37.4241L87.9976 39.2574C86.2504 40.2657 85.6472 42.5189 86.6556 44.2661L101.322 69.6687C101.999 70.8421 103.238 71.5002 104.509 71.5002C105.128 71.5002 105.757 71.3426 106.331 71.0107L109.506 69.1774L108.59 67.5897L105.414 69.4231C105.139 69.5826 104.826 69.6669 104.509 69.6669C103.847 69.6669 103.234 69.3167 102.91 68.7521L88.2432 43.3494C88.0012 42.9296 87.9371 42.4346 88.0636 41.9597C88.1919 41.4831 88.4944 41.0871 88.9142 40.8451L92.0896 39.0117L91.1729 37.4241Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M115.5 84.3333V87.6993C115.5 89.2797 114.424 90.6308 112.88 90.9883C112.013 91.19 111.049 91.4393 109.96 91.7198C102.573 93.6228 88.8268 97.1667 58.6667 97.1667C28.292 97.1667 14.6942 93.6338 7.38833 91.7345C6.29383 91.4503 5.324 91.1992 4.44767 90.9938C2.90767 90.6363 1.83333 89.2833 1.83333 87.7067V84.3333L0 82.5V87.7067C0 90.134 1.66833 92.2295 4.0315 92.7795C10.9322 94.3873 23.6812 99 58.6667 99C93.3478 99 106.372 94.3818 113.296 92.7758C115.661 92.2258 117.333 90.1285 117.333 87.6993V82.5",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M79.6139 20.1666L115.245 81.7354C115.841 82.7566 115.344 84.0656 114.214 84.4102C107.345 86.4966 89.3159 89.8333 58.6662 89.8333C27.9744 89.8333 9.97652 86.3371 3.12535 84.2526C1.99602 83.9079 1.49919 82.5989 2.09502 81.5778L37.7204 20.1666L36.6662 18.3333L0.503686 80.6666C-0.686148 82.7071 0.322186 85.3251 2.58085 86.0163C9.60985 88.1704 27.7104 91.6666 58.6662 91.6666C89.4625 91.6666 107.664 88.3189 114.742 86.1666C117.008 85.4772 118.022 82.8574 116.829 80.8133L80.6662 18.3333",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M110.814 92.4116L115.245 100.069C115.841 101.089 115.344 102.4 114.214 102.742C107.345 104.831 89.3159 108.167 58.6662 108.167C27.9744 108.167 9.97469 104.671 3.12535 102.585C1.99602 102.242 1.49919 100.931 2.09502 99.9117L6.41985 92.4556L4.75885 91.6672L0.503686 99.0006C-0.686148 101.041 0.322185 103.657 2.58085 104.35C9.60985 106.504 27.7104 110.001 58.6662 110.001C89.4625 110.001 107.664 106.653 114.742 104.501C117.007 103.811 118.022 101.191 116.829 99.1472L112.682 91.9789L110.814 92.4116Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M58.667 0C47.238 0 36.667 7.1335 36.667 18.3407V20.1667C36.667 20.1667 42.6052 23.8333 58.667 23.8333C74.6665 23.8333 80.667 20.1667 80.667 20.1667V18.3333C80.667 7.24167 70.767 0 58.667 0ZM58.667 1.83333C70.3527 1.83333 78.8337 8.7725 78.8337 18.3333V19.0172C76.6887 19.9302 70.5103 22 58.667 22C46.7705 22 40.6197 19.9283 38.5003 19.0227V18.3407C38.5003 12.3658 41.7692 8.55617 44.51 6.41117C48.2317 3.50167 53.3907 1.83333 58.667 1.83333Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M69.6667 53.1666C70.6768 53.1666 71.5 53.9898 71.5 54.9999V89.8333H73.3333V54.9999C73.3333 52.9741 71.6925 51.3333 69.6667 51.3333H47.6667C45.6408 51.3333 44 52.9741 44 54.9999V89.8333H45.8333V54.9999C45.8333 53.9898 46.6565 53.1666 47.6667 53.1666H69.6667Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M58.6667 56.8333C53.6048 56.8333 49.5 60.9381 49.5 65.9999C49.5 71.0618 53.6048 75.1666 58.6667 75.1666C63.7285 75.1666 67.8333 71.0618 67.8333 65.9999C67.8333 60.9381 63.7285 56.8333 58.6667 56.8333ZM58.6667 58.6666C62.711 58.6666 66 61.9556 66 65.9999C66 70.0443 62.711 73.3333 58.6667 73.3333C54.6223 73.3333 51.3333 70.0443 51.3333 65.9999C51.3333 61.9556 54.6223 58.6666 58.6667 58.6666Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M63.2503 66C62.7443 66 62.3337 65.5893 62.3337 65.0833C62.3337 63.5672 61.0998 62.3333 59.5837 62.3333C59.0777 62.3333 58.667 61.9227 58.667 61.4167C58.667 60.9107 59.0777 60.5 59.5837 60.5C62.11 60.5 64.167 62.5552 64.167 65.0833C64.167 65.5893 63.7563 66 63.2503 66Z",fill:"#817AE3"}})]),e._v(" "),n("defs",[n("clipPath",{attrs:{id:"clip0"}},[n("rect",{attrs:{width:"117.333",height:"110",fill:"white"}})])])])}),[],!1,null,null,null).exports,PlusIcon:o.pOD,FilterIcon:o.k1n,XIcon:o.b0D,ChevronDownIcon:o.v4q,EyeIcon:o.tEF,PencilIcon:o.vdY,TrashIcon:o.XHJ},data:function(){return{showFilters:!1,sortedBy:"created_at",isRequestOngoing:!0,filters:{customer:"",payment_mode:"",payment_number:""}}},computed:Cr(Cr(Cr({showEmptyScreen:function(){return!this.totalPayments&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"}},(0,i.Se)("customer",["customers"])),(0,i.Se)("payment",["selectedPayments","totalPayments","payments","selectAllField","paymentModes"])),{},{selectField:{get:function(){return this.selectedPayments},set:function(e){this.selectPayment(e)}},selectAllFieldStatus:{get:function(){return this.selectAllField},set:function(e){this.setSelectAllState(e)}}}),watch:{filters:{handler:"setFilters",deep:!0}},mounted:function(){this.fetchPaymentModes({limit:"all"})},destroyed:function(){this.selectAllField&&this.selectAllPayments()},methods:Cr(Cr({},(0,i.nv)("payment",["fetchPayments","selectAllPayments","selectPayment","deletePayment","deleteMultiplePayments","setSelectAllState","fetchPaymentModes"])),{},{fetchData:function(e){var t=this;return Mr(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={customer_id:t.filters.customer?t.filters.customer.id:"",payment_method_id:null!==t.filters.payment_mode?t.filters.payment_mode.id:"",payment_number:t.filters.payment_number,orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchPayments(i);case 5:return o=n.sent,t.isRequestOngoing=!1,n.abrupt("return",{data:o.data.payments.data,pagination:{totalPages:o.data.payments.last_page,currentPage:r,count:o.data.payments.count}});case 8:case"end":return n.stop()}}),n)})))()},refreshTable:function(){this.$refs.table.refresh()},setFilters:function(){this.refreshTable()},clearFilter:function(){this.filters.customer&&this.$refs.customerSelect.$refs.baseSelect.removeElement(this.filters.customer),this.filters={customer:"",payment_mode:"",payment_number:""}},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},onSelectCustomer:function(e){this.filters.customer=e},removePayment:function(e){var t=this;return Mr(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$tc("payments.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Mr(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=10;break}return n.next=3,t.deletePayment({ids:[e]});case 3:if(!(a=n.sent).data.success){n.next=8;break}return window.toastr.success(t.$tc("payments.deleted_message",1)),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:return window.toastr.error(a.data.message),n.abrupt("return",!0);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},removeMultiplePayments:function(){var e=this;return Mr(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("payments.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=Mr(Y().mark((function t(n){var r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,e.deleteMultiplePayments();case 3:(r=t.sent).data.success?(window.toastr.success(e.$tc("payments.deleted_message",2)),e.$refs.table.refresh()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},clearCustomerSearch:function(e,t){var n=this;return Mr(Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.filters.customer="",n.refreshTable();case 2:case"end":return e.stop()}}),e)})))()},showModel:function(e){this.selectedRow=e,this.$refs.Delete_modal.open()},removeSelectedItems:function(){var e=this;return Mr(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.$refs.Delete_modal.close(),t.next=3,e.selectedRow.forEach((function(t){e.deletePayment(e.id)}));case 3:e.$refs.table.refresh();case 4:case"end":return t.stop()}}),t)})))()}})};const Or=(0,_.Z)(Tr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"payments"},[n("sw-page-header",{attrs:{title:e.$t("payments.title")}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$tc("payments.payment",2),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalPayments,expression:"totalPayments"}],attrs:{variant:"primary-outline",size:"lg"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"w-4 h-4 ml-2 -mr-1"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"payments/create",variant:"primary",size:"lg"}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("payments.add_payment"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}],staticClass:"mt-3"},[n("sw-input-group",{staticClass:"flex-1 mt-2",attrs:{label:e.$t("payments.customer"),color:"black-light"}},[n("base-customer-select",{ref:"customerSelect",on:{select:e.onSelectCustomer,deselect:e.clearCustomerSearch}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 lg:ml-6",attrs:{label:e.$t("payments.payment_number")}},[n("sw-input",{attrs:{placeholder:e.$t(e.payments.payment_number),name:"payment_number"},model:{value:e.filters.payment_number,callback:function(t){e.$set(e.filters,"payment_number",t)},expression:"filters.payment_number"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 lg:ml-6",attrs:{label:e.$t("payments.payment_mode")}},[n("sw-select",{attrs:{options:e.paymentModes,searchable:!0,"show-labels":!1,placeholder:e.$t("payments.payment_mode"),label:"name"},model:{value:e.filters.payment_mode,callback:function(t){e.$set(e.filters,"payment_mode",t)},expression:"filters.payment_mode"}})],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-gray-900 cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v(e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),e.showEmptyScreen?n("sw-empty-table-placeholder",{attrs:{title:e.$t("payments.no_payments"),description:e.$t("payments.list_of_payments")}},[n("capsule-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/payments/create",size:"lg",variant:"primary-outline"},slot:"actions"},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("payments.add_new_payment"))+"\n ")],1)],1):e._e(),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative table-container"},[n("div",{staticClass:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},[n("p",{staticClass:"text-sm"},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.payments.length))]),e._v("\n "+e._s(e.$t("general.of"))+" "),n("b",[e._v(e._s(e.totalPayments))])]),e._v(" "),n("sw-transition",{attrs:{type:"fade"}},[e.selectedPayments.length?n("sw-dropdown",[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultiplePayments}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-12"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllPayments},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllPayments},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{data:e.fetchData,"show-filter":!1,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"relative block"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("payments.date"),"sort-as":"payment_date",show:"formattedPaymentDate"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("payments.payment_number"),show:"payment_number"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("payments.payment_number")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"payments/"+t.id+"/view"}}},[e._v("\n "+e._s(t.payment_number)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("payments.customer"),show:"name"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("payments.payment_mode"),show:"payment_mode"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("payments.payment_mode")))]),e._v(" "),n("span",[e._v("\n "+e._s(t.payment_mode?t.payment_mode:"Not selected")+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("payments.invoice"),"sort-as":"invoice_id",show:"invoice_number"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("invoices.invoice_number")))]),e._v(" "),n("span",[e._v("\n "+e._s(t.invoice_number?t.invoice_number:"No Invoice")+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("payments.amount")},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("payments.amount")))]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.amount,t.user.currency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("payments.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"payments/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"payments/"+t.id+"/view"}},[n("eye-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.view"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removePayment(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)],1)}),[],!1,null,null,null).exports;function Er(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ar(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Er(i,r,a,o,s,"next",e)}function s(e){Er(i,r,a,o,s,"throw",e)}o(void 0)}))}}function jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(n),!0).forEach((function(t){Pr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yr=n(379),Nr=Yr.required,zr=Yr.between,Ir=Yr.numeric;const Fr={components:{ShoppingCartIcon:o.Q1y},mixins:[Xe.Z],data:function(){return{formData:{user_id:null,payment_number:null,payment_date:new Date,amount:100,payment_method:null,invoice_id:null,notes:null,payment_method_id:null},money:{decimal:".",thousands:",",prefix:"$ ",precision:2,masked:!1},customer:null,invoice:null,invoiceList:[],isLoading:!1,isRequestOnGoing:!1,maxPayableAmount:Number.MAX_SAFE_INTEGER,isSettingInitialData:!0,paymentNumAttribute:null,paymentPrefix:"",PaymentFields:["customer","company","customerCustom","payment","paymentCustom"]}},validations:function(){return{customer:{required:Nr},formData:{payment_date:{required:Nr},amount:{required:Nr,between:zr(1,this.maxPayableAmount+1)}},paymentNumAttribute:{required:Nr,numeric:Ir}}},computed:$r($r($r($r({},(0,i.Se)("company",["defaultCurrencyForInput"])),(0,i.Se)("payment",["paymentModes","selectedNote"])),(0,i.Se)("customer",["customers"])),{},{amount:{get:function(){return this.formData.amount/100},set:function(e){this.formData.amount=Math.round(100*e)}},pageTitle:function(){return"payments.edit"===this.$route.name?this.$t("payments.edit_payment"):this.$t("payments.new_payment")},isEdit:function(){return"payments.edit"===this.$route.name},customerCurrency:function(){return this.customer&&this.customer.currency?{decimal:this.customer.currency.decimal_separator,thousands:this.customer.currency.thousand_separator,prefix:this.customer.currency.symbol+" ",precision:this.customer.currency.precision,masked:!1}:this.defaultCurrencyForInput},customerError:function(){return this.$v.customer.$error?this.$v.customer.required?void 0:this.$tc("validation.required"):""},DateError:function(){return this.$v.formData.payment_date.$error?this.$v.formData.payment_date.required?void 0:this.$t("validation.required"):""},amountError:function(){return this.$v.formData.amount.$error?this.$v.formData.amount.required?!this.$v.formData.amount.between&&this.$v.formData.amount.numeric&&this.amount<=0?this.$t("validation.payment_greater_than_zero"):!this.$v.formData.amount.between&&this.amount>0?this.$t("validation.payment_greater_than_due_amount"):void 0:this.$t("validation.required"):""},paymentNumError:function(){return this.$v.paymentNumAttribute.$error?this.$v.paymentNumAttribute.required?this.$v.paymentNumAttribute.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""}}),watch:{customer:function(e){this.formData.user_id=e.id,this.isEdit||(this.isSettingInitialData?this.isSettingInitialData=!1:(this.invoice=null,this.formData.invoice_id=null),this.formData.amount=0,this.invoiceList=[],this.fetchCustomerInvoices(e.id))},selectedNote:function(){this.selectedNote&&(this.formData.notes=this.selectedNote)},invoice:function(e){e&&(this.formData.invoice_id=e.id,this.isEdit||this.setPaymentAmountByInvoiceData(e.id))}},mounted:function(){var e=this;return Ar(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$v.formData.$reset(),e.resetSelectedNote(),e.$nextTick((function(){e.loadData(),e.$route.params.id&&!e.isEdit&&e.setInvoicePaymentData()}));case 3:case"end":return t.stop()}}),t)})))()},methods:$r($r($r($r($r($r({},(0,i.nv)("invoice",["fetchInvoice","fetchInvoices"])),(0,i.nv)("payment",["addPayment","updatePayment","fetchPayment","fetchPaymentModes","resetSelectedNote"])),(0,i.nv)("company",["fetchCompanySettings"])),(0,i.nv)("modal",["openModal"])),(0,i.nv)("customer",["fetchCustomers"])),{},{invoiceWithAmount:function(e){var t=e.invoice_number,n=e.due_amount;return"".concat(t," (").concat(this.$utils.formatGraphMoney(n,this.customer.currency),")")},addPaymentMode:function(){var e=this;return Ar(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.openModal({title:e.$t("settings.customization.payments.add_payment_mode"),componentName:"PaymentMode"});case 1:case"end":return t.stop()}}),t)})))()},checkAutoGenerate:function(){var e=this;return Ar(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchCompanySettings(["payment_auto_generate"]);case 2:return n=t.sent,t.next=5,axios.get("/api/v1/next-number?key=payment");case 5:if(r=t.sent,!n.data||"YES"!==n.data.payment_auto_generate){t.next=13;break}if(!r.data){t.next=11;break}return e.paymentNumAttribute=r.data.nextNumber,e.paymentPrefix=r.data.prefix,t.abrupt("return",!0);case 11:t.next=14;break;case 13:e.paymentPrefix=r.data.prefix;case 14:case"end":return t.stop()}}),t)})))()},loadData:function(){var e=this;return Ar(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isEdit){t.next=26;break}return e.isRequestOnGoing=!0,t.next=4,e.fetchPayment(e.$route.params.id);case 4:return n=t.sent,e.formData=$r($r({},e.formData),n.data.payment),e.customer=n.data.payment.user,e.formData.payment_date=on()(n.data.payment.payment_date,"YYYY-MM-DD").toString(),e.formData.amount=parseFloat(n.data.payment.amount),e.paymentPrefix=n.data.payment_prefix,e.paymentNumAttribute=n.data.nextPaymentNumber,e.formData.payment_method=n.data.payment.payment_method,null!==n.data.payment.invoice&&(e.maxPayableAmount=parseInt(n.data.payment.amount)+parseInt(n.data.payment.invoice.due_amount),e.invoice=n.data.payment.invoice),t.next=15,e.fetchCustomFields({type:"Payment",limit:"all"});case 15:if(r=t.sent,e.setEditCustomFields(n.data.payment.fields,r.data.customFields.data),!e.formData.payment_method_id){t.next=20;break}return t.next=20,e.fetchPaymentModes({limit:"all"});case 20:if(!e.formData.user_id){t.next=23;break}return t.next=23,e.fetchCustomers({limit:"all"});case 23:e.isRequestOnGoing=!1,t.next=35;break;case 26:return e.isRequestOnGoing=!0,e.checkAutoGenerate(),e.setInitialCustomFields("Payment"),e.formData.payment_date=on()().toString(),e.fetchPaymentModes({limit:"all"}),t.next=33,e.fetchCustomers({limit:"all"});case 33:e.$route.query.customer&&e.setPaymentCustomer(parseInt(e.$route.query.customer)),e.isRequestOnGoing=!1;case 35:return t.abrupt("return",!0);case 36:case"end":return t.stop()}}),t)})))()},setPaymentCustomer:function(e){this.customer=this.customers.find((function(t){return t.id===e}))},setInvoicePaymentData:function(){var e=this;return Ar(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchInvoice(e.$route.params.id);case 2:n=t.sent,e.customer=n.data.invoice.user,e.invoice=n.data.invoice;case 5:case"end":return t.stop()}}),t)})))()},setPaymentAmountByInvoiceData:function(e){var t=this;return Ar(Y().mark((function n(){var r;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.fetchInvoice(e);case 2:r=n.sent,t.formData.amount=r.data.invoice.due_amount,t.maxPayableAmount=r.data.invoice.due_amount;case 5:case"end":return n.stop()}}),n)})))()},fetchCustomerInvoices:function(e){var t=this;return Ar(Y().mark((function n(){var r,a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={customer_id:e,status:"UNPAID"},n.next=3,t.fetchInvoices(r);case 3:a=n.sent,t.invoiceList=a.data.invoices.data;case 5:case"end":return n.stop()}}),n)})))()},submitPaymentData:function(){var e=this;return Ar(Y().mark((function t(){var n,r,a,i,o;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.touchCustomField();case 2:if(n=t.sent,e.$v.customer.$touch(),e.$v.formData.$touch(),!e.$v.$invalid&&!n.error){t.next=7;break}return t.abrupt("return",!0);case 7:if(e.formData.payment_number=e.paymentPrefix+"-"+e.paymentNumAttribute,!e.isEdit){t.next=35;break}return r={editData:$r($r({},e.formData),{},{payment_method_id:e.formData.payment_method?e.formData.payment_method.id:null,payment_date:on()(e.formData.payment_date).format("YYYY-MM-DD")}),id:e.$route.params.id},t.prev=10,e.isLoading=!0,t.next=14,e.updatePayment(r);case 14:if(!(a=t.sent).data.success){t.next=20;break}return e.isLoading=!1,e.$router.push("/admin/payments/".concat(a.data.payment.id,"/view")),window.toastr.success(e.$t("payments.updated_message")),t.abrupt("return",!0);case 20:if("invalid_amount"!==a.data.error){t.next=23;break}return window.toastr.error(e.$t("invalid_amount_message")),t.abrupt("return",!1);case 23:window.toastr.error(a.data.error),t.next=33;break;case 26:if(t.prev=26,t.t0=t.catch(10),e.isLoading=!1,!t.t0.response.data.errors.payment_number){t.next=32;break}return window.toastr.error(t.t0.response.data.errors.payment_number),t.abrupt("return",!0);case 32:window.toastr.error(t.t0.response.data.message);case 33:t.next=59;break;case 35:return i=$r($r({},e.formData),{},{payment_method_id:e.formData.payment_method?e.formData.payment_method.id:null,payment_date:on()(e.formData.payment_date).format("YYYY-MM-DD")}),e.isLoading=!0,t.prev=37,t.next=40,e.addPayment(i);case 40:if(!(o=t.sent).data.success){t.next=46;break}return e.$router.push("/admin/payments/".concat(o.data.payment.id,"/view")),window.toastr.success(e.$t("payments.created_message")),e.isLoading=!0,t.abrupt("return",!0);case 46:if("invalid_amount"!==o.data.error){t.next=49;break}return window.toastr.error(e.$t("invalid_amount_message")),t.abrupt("return",!1);case 49:window.toastr.error(o.data.error),t.next=59;break;case 52:if(t.prev=52,t.t1=t.catch(37),e.isLoading=!1,!t.t1.response.data.errors.payment_number){t.next=58;break}return window.toastr.error(t.t1.response.data.errors.payment_number),t.abrupt("return",!0);case 58:window.toastr.error(t.t1.response.data.message);case 59:case"end":return t.stop()}}),t,null,[[10,26],[37,52]])})))()},onSelectNote:function(e){this.formData.notes=""+e.notes,this.$refs.notePopup.close()}})};const Hr=(0,_.Z)(Fr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"relative payment-create"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitPaymentData(t)}}},[n("sw-page-header",{staticClass:"mb-5",attrs:{title:e.pageTitle}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{title:e.$t("general.home"),to:"/admin/dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("payments.payment",2),to:"/admin/payments"}}),e._v(" "),"payments.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{title:e.$t("payments.edit_payment"),to:"#",active:""}}):n("sw-breadcrumb-item",{attrs:{title:e.$t("payments.new_payment"),to:"#",active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{staticClass:"hidden sm:flex",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit",size:"lg"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.isEdit?e.$t("payments.update_payment"):e.$t("payments.save_payment"))+"\n ")],1)],1)],2),e._v(" "),e.isRequestOnGoing?n("base-loader",{attrs:{"show-bg-overlay":!0}}):n("sw-card",[n("div",{staticClass:"grid gap-6 grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("payments.date"),error:e.DateError,required:""}},[n("base-date-picker",{staticClass:"mt-1",attrs:{invalid:e.$v.formData.payment_date.$error,"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.formData.payment_date.$touch()}},model:{value:e.formData.payment_date,callback:function(t){e.$set(e.formData,"payment_date",t)},expression:"formData.payment_date"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("payments.payment_number"),error:e.paymentNumError,required:""}},[n("sw-input",{staticClass:"mt-1",attrs:{prefix:e.paymentPrefix+" - ",invalid:e.$v.paymentNumAttribute.$error},on:{input:function(t){return e.$v.paymentNumAttribute.$touch()}},model:{value:e.paymentNumAttribute,callback:function(t){e.paymentNumAttribute="string"==typeof t?t.trim():t},expression:"paymentNumAttribute"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("payments.customer"),error:e.customerError,required:""}},[n("sw-select",{staticClass:"mt-1",attrs:{options:e.customers,searchable:!0,"show-labels":!1,"allow-empty":!1,disabled:e.isEdit,placeholder:e.$t("customers.select_a_customer"),label:"name","track-by":"id"},model:{value:e.customer,callback:function(t){e.customer=t},expression:"customer"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("payments.invoice")}},[n("sw-select",{staticClass:"mt-1",attrs:{options:e.invoiceList,searchable:!0,"show-labels":!1,"allow-empty":!1,disabled:e.isEdit,placeholder:e.$t("invoices.select_invoice"),"custom-label":e.invoiceWithAmount,"track-by":"invoice_number"},model:{value:e.invoice,callback:function(t){e.invoice=t},expression:"invoice"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("payments.amount"),error:e.amountError,required:""}},[n("div",{staticClass:"relative w-full mt-1"},[n("sw-money",{staticClass:"relative w-full focus:border focus:border-solid focus:border-primary-500",attrs:{currency:e.customerCurrency,invalid:e.$v.formData.amount.$error},on:{input:function(t){return e.$v.formData.amount.$touch()}},model:{value:e.amount,callback:function(t){e.amount=t},expression:"amount"}})],1)]),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("payments.payment_mode")}},[n("sw-select",{staticClass:"mt-1",attrs:{options:e.paymentModes,searchable:!0,"show-labels":!1,placeholder:e.$t("payments.select_payment_mode"),"max-height":150,label:"name"},model:{value:e.formData.payment_method,callback:function(t){e.$set(e.formData,"payment_method",t)},expression:"formData.payment_method"}},[n("div",{attrs:{slot:"afterList"},slot:"afterList"},[n("button",{staticClass:"flex items-center justify-center w-full px-2 py-2 bg-gray-200 border-none outline-none text-primary-400",attrs:{type:"button"},on:{click:e.addPaymentMode}},[n("shopping-cart-icon",{staticClass:"h-5 mr-3 text-primary-400"}),e._v(" "),n("label",[e._v(e._s(e.$t("settings.customization.payments.add_payment_mode")))])],1)])])],1)],1),e._v(" "),e.customFields.length>0?n("div",[n("div",{staticClass:"grid gap-6 mt-6 grid-col-1 md:grid-cols-2"},e._l(e.customFields,(function(t,r){return n("sw-input-group",{key:r,attrs:{label:t.label,required:!!t.is_required}},[n(t.type+"Field",{tag:"component",attrs:{type:t.type.label,field:t,"is-edit":e.isEdit,"invalid-fields":e.invalidFields},on:{update:e.setCustomFieldValue}})],1)})),1)]):e._e(),e._v(" "),n("sw-popup",{ref:"notePopup",staticClass:"my-6 text-sm font-semibold leading-5 text-primary-400"},[n("div",{staticClass:"float-right mt-1",attrs:{slot:"activator"},slot:"activator"},[e._v("\n + "+e._s(e.$t("general.insert_note"))+"\n ")]),e._v(" "),n("note-select-popup",{attrs:{type:"Payment"},on:{select:e.onSelectNote}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("payments.note")}},[n("base-custom-input",{staticClass:"mb-4",attrs:{fields:e.PaymentFields},model:{value:e.formData.notes,callback:function(t){e.$set(e.formData,"notes",t)},expression:"formData.notes"}})],1),e._v(" "),n("sw-button",{staticClass:"flex w-full mt-4 sm:hidden md:hidden",attrs:{disabled:e.isLoading,loading:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.isEdit?e.$t("payments.update_payment"):e.$t("payments.save_payment"))+"\n ")],1)],1)],1)])}),[],!1,null,null,null).exports;function Rr(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Br(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Rr(i,r,a,o,s,"next",e)}function s(e){Rr(i,r,a,o,s,"throw",e)}o(void 0)}))}}function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){Wr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ur=n(6486);const Kr={components:{DotsHorizontalIcon:o.nWS,FilterIcon:o.k1n,SortAscendingIcon:o.TV4,SortDescendingIcon:o.mcG,SearchIcon:o.W1M,TrashIcon:o.XHJ,PencilIcon:o.vdY,LinkIcon:o.xPt},data:function(){return{id:null,count:null,payments:[],payment:null,currency:null,searchData:{orderBy:null,orderByField:null,searchText:null},isRequestOnGoing:!1,isSearching:!1,isSendingEmail:!1,isMarkingAsSent:!1}},computed:{pageTitle:function(){return this.payment.payment_number},getOrderBy:function(){return"asc"===this.searchData.orderBy||null==this.searchData.orderBy},getOrderName:function(){return this.getOrderBy?this.$t("general.ascending"):this.$t("general.descending")},shareableLink:function(){return"/payments/pdf/".concat(this.payment.unique_hash)}},watch:{$route:function(e,t){this.loadPayment()}},created:function(){this.loadPayments(),this.loadPayment(),this.onSearch=Ur.debounce(this.onSearch,500)},methods:Vr(Vr(Vr({},(0,i.nv)("payment",["fetchPayments","fetchPayment","sendEmail","deletePayment","searchPayment"])),(0,i.nv)("modal",["openModal"])),{},{hasActiveUrl:function(e){return this.$route.params.id==e},loadPayments:function(){var e=this;return Br(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchPayments({limit:"all"});case 2:(n=t.sent).data&&(e.payments=n.data.payments.data),setTimeout((function(){e.scrollToPayment()}),500);case 5:case"end":return t.stop()}}),t)})))()},scrollToPayment:function(){var e=document.getElementById("payment-".concat(this.$route.params.id));e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"))},loadPayment:function(){var e=this;return Br(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchPayment(e.$route.params.id);case 2:(n=t.sent).data&&(e.payment=n.data.payment);case 4:case"end":return t.stop()}}),t)})))()},onSearch:function(){var e=this;return Br(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="",""!==e.searchData.searchText&&null!==e.searchData.searchText&&void 0!==e.searchData.searchText&&(n+="search=".concat(e.searchData.searchText,"&")),null!==e.searchData.orderBy&&void 0!==e.searchData.orderBy&&(n+="orderBy=".concat(e.searchData.orderBy,"&")),null!==e.searchData.orderByField&&void 0!==e.searchData.orderByField&&(n+="orderByField=".concat(e.searchData.orderByField)),e.isSearching=!0,t.next=7,e.searchPayment(n);case 7:r=t.sent,e.isSearching=!1,r.data&&(e.payments=r.data.payments.data);case 10:case"end":return t.stop()}}),t)})))()},sortData:function(){return"asc"===this.searchData.orderBy?(this.searchData.orderBy="desc",this.onSearch(),!0):(this.searchData.orderBy="asc",this.onSearch(),!0)},onPaymentSend:function(){var e=this;return Br(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.openModal({title:e.$t("payments.send_payment"),componentName:"SendPaymentModal",id:e.payment.id,data:e.payment,variant:"lg"});case 1:case"end":return t.stop()}}),t)})))()},copyPdfUrl:function(){var e="".concat(window.location.origin,"/payments/pdf/").concat(this.payment.unique_hash);this.$utils.copyTextToClipboard(e);window.toastr.success(this.$t("general.copied_pdf_url_clipboard"))},removePayment:function(e){var t=this;return Br(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,window.swal({title:t.$t("general.are_you_sure"),text:"you will not be able to recover this payment!",icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Br(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=5;break}return n.next=3,t.deletePayment({ids:[e]});case 3:(a=n.sent).data.success?(window.toastr.success(t.$tc("payments.deleted_message",1)),t.$router.push("/admin/payments")):a.data.error&&window.toastr.error(a.data.message);case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()}})};const Zr=(0,_.Z)(Kr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.payment?n("base-page",{staticClass:"xl:pl-96"},[n("sw-page-header",{attrs:{title:e.pageTitle}},[n("template",{slot:"actions"},[n("sw-button",{attrs:{disabled:e.isSendingEmail,variant:"primary"},on:{click:e.onPaymentSend}},[e._v("\n "+e._s(e.$t("payments.send_payment_receipt"))+"\n ")]),e._v(" "),n("sw-dropdown",{staticClass:"ml-3"},[n("sw-button",{staticClass:"h-10",attrs:{slot:"activator",variant:"primary"},slot:"activator"},[n("dots-horizontal-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.copyPdfUrl}},[n("link-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.copy_pdf_url"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{to:"/admin/payments/"+e.$route.params.id+"/edit","tag-name":"router-link"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(t){return e.removePayment(e.$route.params.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)],1)],2),e._v(" "),n("div",{staticClass:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},[n("div",{staticClass:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},[n("sw-input",{staticClass:"mb-6",attrs:{placeholder:e.$t("general.search"),type:"text",variant:"gray"},on:{input:e.onSearch},model:{value:e.searchData.searchText,callback:function(t){e.$set(e.searchData,"searchText",t)},expression:"searchData.searchText"}},[n("search-icon",{staticClass:"h-5",attrs:{slot:"rightIcon"},slot:"rightIcon"})],1),e._v(" "),n("div",{staticClass:"flex mb-6 ml-3",attrs:{role:"group","aria-label":"First group"}},[n("sw-dropdown",{attrs:{position:"bottom-start"}},[n("sw-button",{attrs:{slot:"activator",size:"md",variant:"gray-light"},slot:"activator"},[n("filter-icon",{staticClass:"h-5"})],1),e._v(" "),n("div",{staticClass:"px-2 pb-2 mb-1 text-sm border-b border-gray-200 border-solid"},[e._v("\n "+e._s(e.$t("general.sort_by"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{staticClass:"flex cursor-pointer"},[n("sw-input-group",{staticClass:"-mt-3 font-normal"},[n("sw-radio",{attrs:{id:"filter_invoice_number",label:e.$t("invoices.title"),size:"sm",name:"filter",value:"invoice_number"},on:{change:e.onSearch},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1),e._v(" "),n("sw-dropdown-item",{staticClass:"flex cursor-pointer"},[n("sw-input-group",{staticClass:"-mt-3 font-normal"},[n("sw-radio",{attrs:{id:"filter_payment_date",label:e.$t("payments.date"),size:"sm",name:"filter",value:"payment_date"},on:{change:e.onSearch},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1),e._v(" "),n("sw-dropdown-item",{staticClass:"flex cursor-pointer"},[n("sw-input-group",{staticClass:"-mt-3 font-normal"},[n("sw-radio",{attrs:{id:"filter_payment_number",label:e.$t("payments.payment_number"),size:"sm",name:"filter",value:"payment_number"},on:{change:e.onSearch},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1)],1),e._v(" "),n("sw-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top-center",value:{content:e.getOrderName},expression:"{ content: getOrderName }",modifiers:{"top-center":!0}}],staticClass:"ml-1",attrs:{size:"md",variant:"gray-light"},on:{click:e.sortData}},[e.getOrderBy?n("sort-ascending-icon",{staticClass:"h-5"}):n("sort-descending-icon",{staticClass:"h-5"})],1)],1)],1),e._v(" "),e.isSearching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):n("div",{staticClass:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sw-scroll"},[e._l(e.payments,(function(t,r){return n("router-link",{key:r,class:["flex justify-between p-4 items-center cursor-pointer hover:bg-gray-100 border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":e.hasActiveUrl(t.id)}],staticStyle:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"},attrs:{to:"/admin/payments/"+t.id+"/view",id:"payment-"+t.id}},[n("div",{staticClass:"flex-2"},[n("div",{staticClass:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},[e._v("\n "+e._s(t.user.name)+"\n ")]),e._v(" "),n("div",{staticClass:"mb-1 text-xs not-italic font-medium leading-5 text-gray-500 capitalize"},[e._v("\n "+e._s(t.payment_number)+"\n ")]),e._v(" "),n("div",{staticClass:"mb-1 text-xs not-italic font-medium leading-5 text-gray-500 capitalize"},[e._v("\n "+e._s(t.invoice_number)+"\n ")])]),e._v(" "),n("div",{staticClass:"flex-1 whitespace-nowrap right"},[n("div",{staticClass:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900",domProps:{innerHTML:e._s(e.$utils.formatMoney(t.amount,t.user.currency))}}),e._v(" "),n("div",{staticClass:"text-sm text-right text-gray-500 non-italic"},[e._v("\n "+e._s(t.formattedPaymentDate)+"\n ")])])])})),e._v(" "),e.payments.length?e._e():n("p",{staticClass:"flex justify-center px-4 mt-5 text-sm text-gray-600"},[e._v("\n "+e._s(e.$t("payments.no_matching_payments"))+"\n ")])],2)],1),e._v(" "),n("div",{staticClass:"flex flex-col min-h-0 mt-8 overflow-hidden",staticStyle:{height:"75vh"}},[n("iframe",{staticClass:"flex-1 border border-gray-400 border-solid rounded-md",attrs:{src:""+e.shareableLink}})])],1):e._e()}),[],!1,null,null,null).exports;function Gr(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Jr(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Gr(i,r,a,o,s,"next",e)}function s(e){Gr(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){ea(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ea(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ta={components:{MoonWalkerIcon:rn,DotsHorizontalIcon:s.nWS,PlusIcon:o.pOD,FilterIcon:o.k1n,XIcon:o.b0D,ChevronDownIcon:o.v4q,PencilIcon:o.vdY,TrashIcon:o.XHJ,CheckCircleIcon:o.rE2,PaperAirplaneIcon:o.Rdq,DocumentTextIcon:o.YHR,XCircleIcon:o.oOx,EyeIcon:o.tEF,HashtagIcon:o.jdL},data:function(){return{showFilters:!1,currency:null,status:["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"],isRequestOngoing:!0,activeTab:this.$t("general.draft"),filters:{customer:"",status:"DRAFT",from_date:"",to_date:"",estimate_number:""}}},computed:Qr(Qr(Qr({showEmptyScreen:function(){return!this.totalEstimates&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"}},(0,i.Se)("customer",["customers"])),(0,i.Se)("estimate",["selectedEstimates","totalEstimates","estimates","selectAllField"])),{},{selectField:{get:function(){return this.selectedEstimates},set:function(e){this.selectEstimate(e)}},selectAllFieldStatus:{get:function(){return this.selectAllField},set:function(e){this.setSelectAllState(e)}}}),watch:{filters:{handler:"setFilters",deep:!0}},destroyed:function(){this.selectAllField&&this.selectAllEstimates()},methods:Qr(Qr(Qr({},(0,i.nv)("estimate",["fetchEstimates","resetSelectedEstimates","getRecord","selectEstimate","selectAllEstimates","deleteEstimate","deleteMultipleEstimates","markAsSent","convertToInvoice","setSelectAllState","markAsAccepted","markAsRejected","sendEmail"])),(0,i.nv)("modal",["openModal"])),{},{refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return Jr(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={customer_id:""===t.filters.customer?t.filters.customer:t.filters.customer.id,status:t.filters.status,from_date:t.filters.from_date,to_date:t.filters.to_date,estimate_number:t.filters.estimate_number,orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchEstimates(i);case 5:return o=n.sent,t.isRequestOngoing=!1,t.currency=o.data.currency,n.abrupt("return",{data:o.data.estimates.data,pagination:{totalPages:o.data.estimates.last_page,currentPage:r,count:o.data.estimates.count}});case 9:case"end":return n.stop()}}),n)})))()},setStatusFilter:function(e){if(this.activeTab==e.title)return!0;switch(this.activeTab=e.title,e.title){case this.$t("general.draft"):this.filters.status="DRAFT";break;case this.$t("general.sent"):this.filters.status="SENT";break;default:this.filters.status=""}},onMarkAsAccepted:function(e){var t=this;return Jr(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_accepted"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Jr(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=6;break}return a={id:e,status:"ACCEPTED"},n.next=4,t.markAsAccepted(a);case 4:n.sent.data&&(t.$refs.table.refresh(),window.toastr.success(t.$tc("estimates.marked_as_accepted_message")));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},onMarkAsRejected:function(e){var t=this;return Jr(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_rejected"),icon:"/assets/icon/times-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Jr(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=6;break}return a={id:e,status:"REJECTED"},n.next=4,t.markAsRejected(a);case 4:n.sent.data&&(t.$refs.table.refresh(),window.toastr.success(t.$tc("estimates.marked_as_rejected_message")));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},setFilters:function(){this.resetSelectedEstimates(),this.$refs.table.refresh()},clearFilter:function(){this.filters.customer&&this.$refs.customerSelect.$refs.baseSelect.removeElement(this.filters.customer),this.filters={customer:"",status:"",from_date:"",to_date:"",estimate_number:""},this.activeTab=this.$t("general.all")},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},onSelectCustomer:function(e){this.filters.customer=e},removeEstimate:function(e){var t=this;return Jr(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,swal({title:t.$t("general.are_you_sure"),text:t.$tc("estimates.confirm_delete",1),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var e=Jr(Y().mark((function e(n){var r;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=5;break}return e.next=3,t.deleteEstimate({ids:[t.id]});case 3:(r=e.sent).data.success?(t.$refs.table.refresh(),t.resetSelectedEstimates(),window.toastr.success(t.$tc("estimates.deleted_message",1))):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},convertInToinvoice:function(e){var t=this;return Jr(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_conversion"),icon:"/assets/icon/file-alt-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Jr(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=5;break}return n.next=3,t.convertToInvoice(e);case 3:(a=n.sent).data?(window.toastr.success(t.$t("estimates.conversion_message")),t.$router.push("invoices/".concat(a.data.invoice.id,"/edit"))):a.data.error&&window.toastr.error(a.data.message);case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},removeMultipleEstimates:function(){var e=this;return Jr(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("estimates.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=Jr(Y().mark((function t(n){var r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,e.deleteMultipleEstimates();case 3:(r=t.sent).data.success?(e.$refs.table.refresh(),e.resetSelectedEstimates(),window.toastr.success(e.$tc("estimates.deleted_message",2))):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},clearCustomerSearch:function(e,t){var n=this;return Jr(Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.filters.customer="",n.refreshTable();case 2:case"end":return e.stop()}}),e)})))()},clearStatusSearch:function(e,t){var n=this;return Jr(Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.filters.status="",n.refreshTable();case 2:case"end":return e.stop()}}),e)})))()},onMarkAsSent:function(e){var t=this;return Jr(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_sent"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Jr(Y().mark((function n(r){var a,i;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return a={id:e,status:"SENT"},n.next=4,t.markAsSent(a);case 4:i=n.sent,t.refreshTable(),i.data&&window.toastr.success(t.$tc("estimates.mark_as_sent_successfully"));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},sendEstimate:function(e){var t=this;return Jr(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.openModal({title:t.$t("estimates.send_estimate"),componentName:"SendEstimateModal",id:e.id,data:e,variant:"lg"});case 1:case"end":return n.stop()}}),n)})))()},setActiveTab:function(e){switch(e){case"DRAFT":this.activeTab=this.$t("general.draft");break;case"SENT":this.activeTab=this.$t("general.sent");break;default:this.activeTab=this.$t("general.all")}}})};const na=(0,_.Z)(ta,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",[n("sw-page-header",{attrs:{title:e.$t("estimates.title")}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$tc("estimates.estimate",2),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalEstimates,expression:"totalEstimates"}],attrs:{size:"lg",variant:"primary-outline"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"w-4 h-4 ml-2 -mr-1"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"estimates/create",size:"lg",variant:"primary"}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("estimates.new_estimate"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}],staticClass:"relative grid grid-flow-col grid-rows"},[n("sw-input-group",{staticClass:"mt-2",attrs:{label:e.$tc("customers.customer",1)}},[n("base-customer-select",{ref:"customerSelect",on:{select:e.onSelectCustomer,deselect:e.clearCustomerSearch}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-2 xl:mx-8",attrs:{label:e.$t("estimates.status")}},[n("sw-select",{attrs:{options:e.status,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$t("general.select_a_status")},on:{select:e.setActiveTab,remove:function(t){return e.clearStatusSearch()}},model:{value:e.filters.status,callback:function(t){e.$set(e.filters,"status",t)},expression:"filters.status"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-2",attrs:{label:e.$t("general.from"),color:"black-light"}},[n("base-date-picker",{attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},model:{value:e.filters.from_date,callback:function(t){e.$set(e.filters,"from_date",t)},expression:"filters.from_date"}})],1),e._v(" "),n("div",{staticClass:"hidden w-8 h-0 mx-4 border border-gray-400 border-solid xl:block",staticStyle:{"margin-top":"3.5rem"}}),e._v(" "),n("sw-input-group",{staticClass:"mt-2",attrs:{label:e.$t("general.to"),color:"black-light"}},[n("base-date-picker",{attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},model:{value:e.filters.to_date,callback:function(t){e.$set(e.filters,"to_date",t)},expression:"filters.to_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-2 xl:ml-8",attrs:{label:e.$t("estimates.estimate_number"),color:"black-light"}},[n("sw-input",{model:{value:e.filters.estimate_number,callback:function(t){e.$set(e.filters,"estimate_number",t)},expression:"filters.estimate_number"}},[n("hashtag-icon",{staticClass:"h-5 ml-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"})],1)],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-black cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v(e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),n("sw-empty-table-placeholder",{directives:[{name:"show",rawName:"v-show",value:e.showEmptyScreen,expression:"showEmptyScreen"}],attrs:{title:e.$t("estimates.no_estimates"),description:e.$t("estimates.list_of_estimates")}},[n("moon-walker-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/estimates/create",size:"lg",variant:"primary-outline"},slot:"actions"},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("estimates.add_new_estimate"))+"\n ")],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative"},[n("div",{staticClass:"relative mt-5"},[n("p",{staticClass:"absolute right-0 m-0 text-sm",staticStyle:{top:"50px"}},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.estimates.length))]),e._v("\n "+e._s(e.$t("general.of"))+" "),n("b",[e._v(e._s(e.totalEstimates))])]),e._v(" "),n("sw-tabs",{staticClass:"mb-10",attrs:{"active-tab":e.activeTab},on:{update:e.setStatusFilter}},[n("sw-tab-item",{attrs:{title:e.$t("general.draft"),filter:"DRAFT"}}),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("general.sent"),filter:"SENT"}}),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("general.all"),filter:""}})],1),e._v(" "),n("sw-transition",{attrs:{type:"fade"}},[e.selectedEstimates.length?n("sw-dropdown",{staticClass:"absolute float-right",staticStyle:{"margin-top":"-70px"}},[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultipleEstimates}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.estimates&&e.estimates.length,expression:"estimates && estimates.length"}],staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-6"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllEstimates},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllEstimates},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{"show-filter":!1,data:e.fetchData,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"flex items-center"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("estimates.date"),"sort-as":"estimate_date",show:"formattedEstimateDate"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$tc("estimates.estimate",1),show:"estimate_number"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$tc("estimates.estimate",1)))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"estimates/"+t.id+"/view"}}},[e._v("\n "+e._s(t.estimate_number)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("estimates.customer"),"sort-as":"name",show:"name"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("estimates.status"),show:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("estimates.status")))]),e._v(" "),n("sw-badge",{staticClass:"px-3 py-1",attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color}},[e._v("\n "+e._s(t.status)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("invoices.total"),"sort-as":"total"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("estimates.total")))]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.total,t.user.currency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("estimates.action"))+" ")]),e._v(" "),n("sw-dropdown",{attrs:{containerClass:"w-56"}},[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"estimates/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeEstimate(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"estimates/"+t.id+"/view"}},[n("eye-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.view"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.convertInToinvoice(t.id)}}},[n("document-text-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.convert_to_invoice"))+"\n ")],1),e._v(" "),"SENT"!==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.onMarkAsSent(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.mark_as_sent"))+"\n ")],1):e._e(),e._v(" "),"SENT"!==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.sendEstimate(t)}}},[n("paper-airplane-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.send_estimate"))+"\n ")],1):e._e(),e._v(" "),"SENT"==t.status||"VIEWED"==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.sendEstimate(t)}}},[n("paper-airplane-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.resend_estimate"))+"\n ")],1):e._e(),e._v(" "),"ACCEPTED"!==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.onMarkAsAccepted(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.mark_as_accepted"))+"\n ")],1):e._e(),e._v(" "),"REJECTED"!==t.status?n("sw-dropdown-item",{on:{click:function(n){return e.onMarkAsRejected(t.id)}}},[n("x-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("estimates.mark_as_rejected"))+"\n ")],1):e._e()],1)]}}])})],1)],1)],1)}),[],!1,null,null,null).exports;const ra={estimate_id:null,item_id:null,name:"",title:"",description:null,quantity:1,price:0,discount_type:"fixed",discount_val:0,discount:0,total:0,totalTax:0,totalSimpleTax:0,totalCompoundTax:0,tax:0,taxes:[]};function aa(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach((function(t){sa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var la=n(379).maxLength;const ca={components:{XCircleIcon:o.oOx,ShoppingCartIcon:o.Q1y},props:{item:{type:Object,required:!0},invalid:{type:Boolean,required:!1,default:!1},invalidDescription:{type:Boolean,required:!1,default:!1},taxPerItem:{type:String,default:""},taxes:{type:Array,default:null}},data:function(){return{itemSelect:null,loading:!1}},validations:function(){return{item:{description:{maxLength:la(255)}}}},computed:oa({},(0,i.Se)("item",["items"])),watch:{invalidDescription:function(e){console.log(e)}},methods:oa(oa(oa({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("item",["fetchItems"])),{},{searchItems:function(e){var t,n=this;return(t=Y().mark((function t(){var r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={search:e,filter:{name:e,unit:"",price:""},orderByField:"",orderBy:"",page:1},n.item&&(r.item_id=n.item.item_id),n.loading=!0,t.next=5,n.fetchItems(r);case 5:n.loading=!1;case 6:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(e){aa(i,r,a,o,s,"next",e)}function s(e){aa(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onTextChange:function(e){this.searchItems(e),this.$emit("search",e)},openItemModal:function(){this.$emit("onSelectItem"),this.openModal({title:this.$t("items.add_item"),componentName:"ItemModal",data:{taxPerItem:this.taxPerItem,taxes:this.taxes}})},onSelect:function(e){this.$emit("select",e),this.fetchItems()},deselectItem:function(){this.itemSelect=null,this.$emit("deselect")}})};const ua=(0,_.Z)(ca,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex-1 text-sm"},[e.item.item_id?n("div",{staticClass:"relative flex items-center h-10 pl-2 bg-gray-200 border border-gray-200 border-solid rounded"},[e._v("\n "+e._s(e.item.name)+"\n\n "),n("span",{staticClass:"absolute text-gray-400 cursor-pointer",staticStyle:{top:"8px",right:"10px"},on:{click:e.deselectItem}},[n("x-circle-icon",{staticClass:"h-5"})],1)]):n("sw-select",{ref:"baseSelect",staticClass:"multi-select-item",attrs:{options:e.items,loading:e.loading,"show-labels":!1,"preserve-search":!0,"initial-search":e.item.name,invalid:e.invalid,placeholder:e.$t("estimates.item.select_an_item"),label:"name"},on:{value:e.onTextChange,select:e.onSelect},model:{value:e.itemSelect,callback:function(t){e.itemSelect=t},expression:"itemSelect"}},[n("div",{attrs:{slot:"afterList"},slot:"afterList"},[n("button",{staticClass:"flex items-center justify-center w-full p-3 bg-gray-200 border-none outline-none",attrs:{type:"button"},on:{click:e.openItemModal}},[n("shopping-cart-icon",{staticClass:"h-5 text-primary-400"}),e._v(" "),n("label",{staticClass:"ml-2 text-sm leading-none text-primary-400"},[e._v(e._s(e.$t("general.add_new_item")))])],1)])]),e._v(" "),n("div",{staticClass:"w-full pt-1 text-xs text-light"},[n("sw-textarea",{directives:[{name:"autoresize",rawName:"v-autoresize"}],staticClass:"w-full text-gray-600 border-none resize-none",attrs:{"invalid-description":e.invalidDescription,placeholder:e.$t("estimates.item.type_item_description"),type:"text",rows:"1",variant:"inv-desc"},on:{input:function(t){return e.$emit("onDesriptionInput")}},model:{value:e.item.description,callback:function(t){e.$set(e.item,"description","string"==typeof t?t.trim():t)},expression:"item.description"}}),e._v(" "),e.invalidDescription?n("div",[n("span",{staticClass:"text-danger"},[e._v(e._s(e.$tc("validation.description_maxlength")))])]):e._e()],1)],1)}),[],!1,null,null,null).exports;function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?da(Object(n),!0).forEach((function(t){ma(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):da(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ma(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fa={components:{CheckCircleIcon:o.rE2,TrashIcon:o.XHJ},props:{index:{type:Number,required:!0},taxData:{type:Object,required:!0},taxes:{type:Array,default:[]},total:{type:Number,default:0},totalTax:{type:Number,default:0},currency:{type:[Object,String],required:!0}},data:function(){return{tax:pa({},this.taxData),selectedTax:null}},computed:pa(pa({},(0,i.Se)("taxType",["taxTypes"])),{},{filteredTypes:function(){var e=this;return this.taxTypes.map((function(e){return pa({},e)})).map((function(t){var n=e.taxes.find((function(e){return e.tax_type_id===t.id}));return t.$isDisabled=!!n,t}))},taxAmount:function(){return this.tax.compound_tax&&this.total?(this.total+this.totalTax)*this.tax.percent/100:this.total&&this.tax.percent?this.total*this.tax.percent/100:0}}),watch:{total:{handler:"updateTax"},totalTax:{handler:"updateTax"}},created:function(){var e=this;this.taxData.tax_type_id>0&&(this.selectedTax=this.taxTypes.find((function(t){return t.id===e.taxData.tax_type_id}))),window.hub.$on("newTax",(function(t){e.selectedTax||(e.selectedTax=t,e.onSelectTax(t))})),this.updateTax()},methods:pa(pa({},(0,i.nv)("modal",["openModal"])),{},{customLabel:function(e){var t=e.name,n=e.percent;return"".concat(t," - ").concat(n,"%")},onSelectTax:function(e){this.tax.percent=e.percent,this.tax.tax_type_id=e.id,this.tax.compound_tax=e.compound_tax,this.tax.name=e.name,this.updateTax()},updateTax:function(){0!==this.tax.tax_type_id&&this.$emit("update",{index:this.index,item:pa(pa({},this.tax),{},{amount:this.taxAmount})})},removeTax:function(){this.$emit("remove",this.index,this.tax)},openTaxModal:function(){this.openModal({title:this.$t("settings.tax_types.add_tax"),componentName:"TaxTypeModal"})}})};const ha=(0,_.Z)(fa,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex items-center justify-between mb-3"},[n("div",{staticClass:"flex items-center text-base",staticStyle:{flex:"4"}},[n("label",{staticClass:"pr-2 mb-0",attrs:{align:"right"}},[e._v("\n "+e._s(e.$t("estimates.tax"))+"\n ")]),e._v(" "),n("sw-select",{attrs:{options:e.filteredTypes,"allow-empty":!1,"show-labels":!1,"custom-label":e.customLabel,placeholder:e.$t("general.select_a_tax"),"track-by":"name",label:"name"},on:{select:function(t){return e.onSelectTax(t)}},model:{value:e.selectedTax,callback:function(t){e.selectedTax=t},expression:"selectedTax"}},[n("div",{attrs:{slot:"afterList"},slot:"afterList"},[n("button",{staticClass:"flex items-center justify-center w-full px-2 py-2 bg-gray-200 border-none outline-none",attrs:{type:"button"},on:{click:e.openTaxModal}},[n("check-circle-icon",{staticClass:"h-5 text-primary-400"}),e._v(" "),n("label",{staticClass:"ml-2 text-sm leading-none text-primary-400"},[e._v(e._s(e.$t("estimates.add_new_tax")))])],1)])]),e._v(" "),n("br")],1),e._v(" "),n("div",{staticClass:"text-sm text-right",staticStyle:{flex:"3"}},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.taxAmount,e.currency))}})]),e._v(" "),n("div",{staticClass:"flex items-center justify-center w-6 h-10 mx-2 cursor-pointer"},[e.taxes.length&&e.index!==e.taxes.length-1?n("trash-icon",{staticClass:"h-5 text-gray-700",attrs:{icon:"trash-alt"},on:{click:e.removeTax}}):e._e()],1)])}),[],!1,null,null,null).exports;function _a(e){return function(e){if(Array.isArray(e))return va(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return va(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 va(e,t)}(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 va(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 ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ga(Object(n),!0).forEach((function(t){ba(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ba(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wa=n(379),xa=wa.required,ka=wa.minValue,Da=wa.between,Ma=wa.maxLength;const Sa={components:{Tax:ha,ItemSelect:ua,TrashIcon:o.XHJ,ChevronDownIcon:o.v4q,DragIcon:En},props:{itemData:{type:Object,default:null},index:{type:Number,default:null},type:{type:String,default:""},currency:{type:[Object,String],required:!0},taxPerItem:{type:String,default:""},discountPerItem:{type:String,default:""},estimateItems:{type:Array,required:!0}},data:function(){return{isClosePopup:!1,itemSelect:null,item:ya({},this.itemData),maxDiscount:0,money:{decimal:".",thousands:",",prefix:"$ ",precision:2,masked:!1},isSelected:!1}},computed:ya(ya(ya(ya({},(0,i.Se)("item",["items"])),(0,i.Se)("modal",["modalActive"])),(0,i.Se)("company",["defaultCurrencyForInput"])),{},{customerCurrency:function(){return this.currency?{decimal:this.currency.decimal_separator,thousands:this.currency.thousand_separator,prefix:this.currency.symbol+" ",precision:this.currency.precision,masked:!1}:this.defaultCurrencyForInput},isShowRemoveItemIcon:function(){return 1!=this.estimateItems.length},subtotal:function(){return this.item.price*this.item.quantity},discount:{get:function(){return this.item.discount},set:function(e){"percentage"===this.item.discount_type?this.item.discount_val=this.subtotal*e/100:this.item.discount_val=Math.round(100*e),this.item.discount=e}},total:function(){return this.subtotal-this.item.discount_val},totalSimpleTax:function(){return Math.round(window._.sumBy(this.item.taxes,(function(e){return e.compound_tax?0:e.amount})))},totalCompoundTax:function(){return Math.round(window._.sumBy(this.item.taxes,(function(e){return e.compound_tax?e.amount:0})))},totalTax:function(){return this.totalSimpleTax+this.totalCompoundTax},price:{get:function(){return parseFloat(this.item.price)>0?this.item.price/100:this.item.price},set:function(e){parseFloat(e)>0?(this.item.price=Math.round(100*e),this.maxDiscount=this.item.price):this.item.price=e}}}),watch:{item:{handler:"updateItem",deep:!0},subtotal:function(e){"percentage"===this.item.discount_type&&(this.item.discount_val=this.item.discount*e/100)},modalActive:function(e){e||(this.isSelected=!1)}},validations:function(){return{item:{name:{required:xa},quantity:{required:xa,minValue:ka(0),maxLength:Ma(20)},price:{required:xa,minValue:ka(1),maxLength:Ma(20)},discount_val:{between:Da(0,this.maxDiscount)},description:{maxLength:Ma(65e3)}}}},created:function(){var e=this;window.hub.$on("checkItems",this.validateItem),window.hub.$on("newItem",(function(t){"YES"===e.taxPerItem&&(e.item.taxes=t.taxes),!e.item.item_id&&e.modalActive&&e.isSelected&&e.onSelectItem(t)}))},mounted:function(){this.$v.item.$reset()},methods:{updateTax:function(e){this.$set(this.item.taxes,e.index,e.item),0!==this.item.taxes[this.item.taxes.length-1].tax_type_id&&this.item.taxes.push(ya(ya({},gn),{},{id:vn().raw()})),this.updateItem()},removeTax:function(e){this.item.taxes.splice(e,1),this.updateItem()},taxWithPercentage:function(e){var t=e.name,n=e.percent;return"".concat(t," (").concat(n,"%)")},searchVal:function(e){this.item.name=e},deselectItem:function(){var e=this;this.item=ya(ya({},ra),{},{id:this.item.id,taxes:[ya(ya({},gn),{},{id:vn().raw()})]}),this.$nextTick((function(){e.$refs.itemSelect.$refs.baseSelect.$refs.search.focus()}))},onSelectItem:function(e){var t=this;if(this.item.name=e.name,this.item.price=e.price,this.item.item_id=e.id,this.item.description=e.description,this.item.unit_name=e.unit_name,"YES"===this.taxPerItem&&e.taxes){var n=0;e.taxes.forEach((function(e){t.updateTax({index:n,item:ya({},e)}),n++}))}},selectFixed:function(){"fixed"!==this.item.discount_type&&(this.item.discount_val=Math.round(100*this.item.discount),this.item.discount_type="fixed")},selectPercentage:function(){"percentage"!==this.item.discount_type&&(this.item.discount_val=this.subtotal*this.item.discount/100,this.item.discount_type="percentage")},updateItem:function(){this.$emit("update",{index:this.index,item:ya(ya({},this.item),{},{total:this.total,totalSimpleTax:this.totalSimpleTax,totalCompoundTax:this.totalCompoundTax,totalTax:this.totalTax,tax:this.totalTax,taxes:_a(this.item.taxes)})})},removeItem:function(){this.$emit("remove",this.index)},validateItem:function(){this.$v.item.$touch(),null!==this.item?this.$emit("itemValidate",this.index,!this.$v.$invalid):this.$emit("itemValidate",this.index,!1)}}};const Ca=(0,_.Z)(Sa,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",{staticClass:"box-border bg-white border border-gray-200 border-solid rounded-b"},[n("td",{staticClass:"p-0 text-left align-top",attrs:{colspan:"5"}},[n("table",{staticClass:"w-full"},[n("colgroup",[n("col",{staticStyle:{width:"40%"}}),e._v(" "),n("col",{staticStyle:{width:"10%"}}),e._v(" "),n("col",{staticStyle:{width:"15%"}}),e._v(" "),"YES"===e.discountPerItem?n("col",{staticStyle:{width:"15%"}}):e._e(),e._v(" "),n("col",{staticStyle:{width:"15%"}})]),e._v(" "),n("tbody",[n("tr",[n("td",{staticClass:"px-5 py-4 text-left align-top"},[n("div",{staticClass:"flex justify-start"},[n("div",{staticClass:"flex items-center justify-center w-12 h-5 mt-2 text-gray-400 cursor-move handle"},[n("drag-icon")],1),e._v(" "),n("item-select",{ref:"itemSelect",attrs:{invalid:e.$v.item.name.$error,"invalid-description":e.$v.item.description.$error,item:e.item,"tax-per-item":e.taxPerItem,taxes:e.item.taxes},on:{search:e.searchVal,select:e.onSelectItem,deselect:e.deselectItem,onDesriptionInput:function(t){return e.$v.item.description.$touch()},onSelectItem:function(t){e.isSelected=!0}}})],1)]),e._v(" "),n("td",{staticClass:"px-5 py-4 text-right align-top"},[n("sw-input",{attrs:{invalid:e.$v.item.quantity.$error,type:"text",small:""},on:{keyup:e.updateItem,input:function(t){return e.$v.item.quantity.$touch()}},model:{value:e.item.quantity,callback:function(t){e.$set(e.item,"quantity",t)},expression:"item.quantity"}}),e._v(" "),e.$v.item.quantity.$error?n("div",[e.$v.item.quantity.maxLength?e._e():n("span",{staticClass:"text-danger"},[e._v("\n "+e._s(e.$t("validation.quantity_maxlength"))+"\n ")])]):e._e()],1),e._v(" "),n("td",{staticClass:"px-5 py-4 text-left align-top"},[n("div",{staticClass:"flex flex-col"},[n("div",{staticClass:"flex-auto flex-fill bd-highlight"},[n("div",{staticClass:"relative w-full"},[n("sw-money",{attrs:{currency:e.customerCurrency,invalid:e.$v.item.price.$error},on:{input:function(t){return e.$v.item.price.$touch()}},model:{value:e.price,callback:function(t){e.price=t},expression:"price"}})],1),e._v(" "),e.$v.item.price.$error?n("div",[e.$v.item.price.maxLength?e._e():n("span",{staticClass:"text-danger"},[e._v("\n "+e._s(e.$t("validation.price_maxlength"))+"\n ")])]):e._e()])])]),e._v(" "),"YES"===e.discountPerItem?n("td",{staticClass:"px-5 py-4 text-left align-top"},[n("div",{staticClass:"flex flex-col"},[n("div",{staticClass:"flex flex-auto",attrs:{role:"group"}},[n("sw-input",{staticClass:"border-r-0 rounded-tr-none rounded-br-none",attrs:{invalid:e.$v.item.discount_val.$error},on:{input:function(t){return e.$v.item.discount_val.$touch()}},model:{value:e.discount,callback:function(t){e.discount=t},expression:"discount"}}),e._v(" "),n("sw-dropdown",[n("sw-button",{staticStyle:{height:"43px"},attrs:{slot:"activator",type:"button","data-toggle":"dropdown",size:"discount","aria-haspopup":"true","aria-expanded":"false",variant:"white"},slot:"activator"},[n("span",{staticClass:"flex"},[e._v("\n "+e._s("fixed"==e.item.discount_type?e.currency.symbol:"%")+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1)]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectFixed}},[e._v("\n "+e._s(e.$t("general.fixed"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectPercentage}},[e._v("\n "+e._s(e.$t("general.percentage"))+"\n ")])],1)],1)])]):e._e(),e._v(" "),n("td",{staticClass:"px-5 py-4 text-right align-top"},[n("div",{staticClass:"flex items-center justify-end text-sm"},[n("span",[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.total,e.currency))}})]),e._v(" "),n("div",{staticClass:"flex items-center justify-center w-6 h-10 mx-2 cursor-pointer"},[e.isShowRemoveItemIcon?n("trash-icon",{staticClass:"h-5 text-gray-700",on:{click:e.removeItem}}):e._e()],1)])])]),e._v(" "),"YES"===e.taxPerItem?n("tr",{staticClass:"tax-tr"},[n("td",{staticClass:"px-5 py-4 text-left align-top"}),e._v(" "),n("td",{staticClass:"px-5 py-4 text-left align-top",attrs:{colspan:"4"}},e._l(e.item.taxes,(function(t,r){return n("tax",{key:t.id,attrs:{index:r,"tax-data":t,taxes:e.item.taxes,"discounted-total":e.total,"total-tax":e.totalSimpleTax,total:e.total,currency:e.currency},on:{update:e.updateTax,remove:e.removeTax}})})),1)]):e._e()])])])])}),[],!1,null,null,null).exports;function La(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach((function(t){Oa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ea={components:{UserIcon:o.tBG},props:{valid:{type:Object,default:function(){}},customerId:{type:Number,default:null}},computed:Ta({},(0,i.Se)("estimate",["getTemplateId","selectedCustomer"])),created:function(){this.resetSelectedCustomer(),this.customerId&&this.selectCustomer(this.customerId)},methods:Ta(Ta(Ta({},(0,i.nv)("estimate",["resetSelectedCustomer","selectCustomer"])),(0,i.nv)("modal",["openModal"])),{},{editCustomer:function(){this.openModal({title:this.$t("customers.edit_customer"),componentName:"CustomerModal",id:this.selectedCustomer.id,data:this.selectedCustomer})}})};const Aa=(0,_.Z)(Ea,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"col-span-5 pr-0"},[e.selectedCustomer?n("div",{staticClass:"flex flex-col p-4 bg-white border border-gray-200 border-solid",staticStyle:{"min-height":"170px"}},[n("div",{staticClass:"relative flex justify-between mb-1"},[n("label",{staticClass:"flex-1 font-medium"},[e._v(e._s(e.selectedCustomer.name))]),e._v(" "),n("a",{staticClass:"relative my-0 ml-0 mr-6 text-sm font-medium cursor-pointer text-primary-500",on:{click:function(t){return t.preventDefault(),e.editCustomer(t)}}},[e._v("\n "+e._s(e.$t("general.edit"))+"\n ")]),e._v(" "),n("a",{staticClass:"relative my-0 ml-0 mr-6 text-sm font-medium cursor-pointer text-primary-500",on:{click:function(t){return t.preventDefault(),e.resetSelectedCustomer(t)}}},[e._v("\n "+e._s(e.$t("general.deselect"))+"\n ")])]),e._v(" "),n("div",{staticClass:"grid grid-cols-2 gap-4 mt-1"},[e.selectedCustomer.billing_address?n("div",[n("div",{staticClass:"flex flex-col"},[n("label",{staticClass:"mb-1 text-sm font-medium text-gray-500 uppercase whitespace-nowrap"},[e._v("\n "+e._s(e.$t("general.bill_to"))+"\n ")]),e._v(" "),n("div",{staticClass:"flex flex-col flex-1 p-0"},[e.selectedCustomer.billing_address.name?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.billing_address.name)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.billing_address.address_street_1?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.billing_address.address_street_1)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.billing_address.address_street_2?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.billing_address.address_street_2)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.billing_address.city&&e.selectedCustomer.billing_address.state?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.billing_address.city)+",\n "+e._s(e.selectedCustomer.billing_address.state)+"\n "+e._s(e.selectedCustomer.billing_address.zip)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.billing_address.country?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.billing_address.country.name)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.billing_address.phone?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.billing_address.phone)+"\n ")]):e._e()])])]):e._e(),e._v(" "),e.selectedCustomer.shipping_address?n("div",[n("div",{staticClass:"flex flex-col"},[n("label",{staticClass:"mb-1 text-sm font-medium text-gray-500 uppercase whitespace-nowrap"},[e._v("\n "+e._s(e.$t("general.ship_to"))+"\n ")]),e._v(" "),n("div",{staticClass:"flex flex-col flex-1 p-0"},[e.selectedCustomer.shipping_address.name?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.shipping_address.name)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.shipping_address.address_street_1?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.shipping_address.address_street_1)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.shipping_address.address_street_2?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.shipping_address.address_street_2)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.shipping_address.city&&e.selectedCustomer.shipping_address?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.shipping_address.city)+",\n "+e._s(e.selectedCustomer.shipping_address.state)+"\n "+e._s(e.selectedCustomer.shipping_address.zip)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.shipping_address.country?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.shipping_address.country.name)+"\n ")]):e._e(),e._v(" "),e.selectedCustomer.shipping_address.phone?n("label",{staticClass:"relative w-11/12 text-sm truncate"},[e._v("\n "+e._s(e.selectedCustomer.shipping_address.phone)+"\n ")]):e._e()])])]):e._e()])]):n("div",[n("sw-popup",{class:["p-0",{"border border-solid border-danger rounded":e.valid.$error}]},[n("div",{staticClass:"relative flex justify-center px-0 py-16 bg-white border border-gray-200 border-solid rounded",staticStyle:{"min-height":"170px"},attrs:{slot:"activator"},slot:"activator"},[n("user-icon",{staticClass:"flex justify-center w-10 h-10 p-2 mr-5 text-sm text-white bg-gray-200 rounded-full font-base"}),e._v(" "),n("div",{staticClass:"mt-1"},[n("label",{staticClass:"text-lg"},[e._v("\n "+e._s(e.$t("customers.new_customer"))+"\n "),n("span",{staticClass:"text-danger"},[e._v(" * ")])]),e._v(" "),e.valid.$error&&!e.valid.required?n("p",{staticClass:"text-danger"},[e._v("\n "+e._s(e.$t("estimates.errors.required"))+"\n ")]):e._e()])],1),e._v(" "),n("customer-select-popup",{attrs:{"user-id":e.customerId,type:"estimate"}})],1)],1)])}),[],!1,null,null,null).exports;function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(n),!0).forEach((function(t){Pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ya={components:{TrashIcon:o.XHJ},props:{index:{type:Number,required:!0},tax:{type:Object,required:!0},taxes:{type:Array,required:!0},total:{type:Number,default:0},totalTax:{type:Number,default:0},currency:{type:[Object,String],required:!0}},computed:{taxAmount:function(){return this.tax.compound_tax&&this.total?Math.round((this.total+this.totalTax)*this.tax.percent/100):this.total&&this.tax.percent?Math.round(this.total*this.tax.percent/100):0}},watch:{total:{handler:"updateTax"},totalTax:{handler:"updateTax"}},methods:{updateTax:function(){this.$emit("update",{index:this.index,item:$a($a({},this.tax),{},{amount:this.taxAmount})})}}};const Na=(0,_.Z)(Ya,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex items-center justify-between w-full mt-2 text-sm"},[n("label",{staticClass:"font-semibold leading-5 text-gray-500 uppercase"},[e._v("\n "+e._s(e.tax.name)+" ("+e._s(e.tax.percent)+"%)\n ")]),e._v(" "),n("label",{staticClass:"flex items-center justify-center text-lg text-black"},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.tax.amount,e.currency))}}),e._v(" "),n("trash-icon",{staticClass:"h-5 ml-2",on:{click:function(t){return e.$emit("remove",e.index)}}})],1)])}),[],!1,null,null,null).exports;function za(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ia(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 Ia(e,t)}(e,t)||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.")}()}function Ia(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 Fa(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ha(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Fa(i,r,a,o,s,"next",e)}function s(e){Fa(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){qa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Va=n(379),Wa=Va.required,Ua=Va.between,Ka=Va.maxLength,Za=Va.numeric;const Ga={components:{EstimateItem:Ca,CustomerSelect:Aa,Tax:Na,draggable:hn(),ChevronDownIcon:o.v4q,PencilIcon:s.vdY,ShoppingCartIcon:o.Q1y,PlusSmIcon:s.d2U,HashtagIcon:o.jdL},mixins:[Xe.Z],data:function(){return{newEstimate:{estimate_date:null,expiry_date:null,estimate_number:null,user_id:null,estimate_template_id:1,sub_total:null,total:null,tax:null,notes:null,discount_type:"fixed",discount_val:0,reference_number:null,discount:0,items:[Ba(Ba({},ra),{},{id:vn().raw(),taxes:[Ba(Ba({},gn),{},{id:vn().raw()})]})],taxes:[]},selectedCurrency:"",taxPerItem:null,discountPerItem:null,isLoadingEstimate:!1,isLoadingData:!1,isLoading:!1,maxDiscount:0,estimateNumAttribute:null,estimatePrefix:null,EstimateFields:["customer","company","customerCustom","estimate","estimateCustom"],customerId:null}},validations:function(){return{newEstimate:{estimate_date:{required:Wa},expiry_date:{required:Wa},discount_val:{between:Ua(0,this.subtotal)},reference_number:{maxLength:Ka(255)}},selectedCustomer:{required:Wa},estimateNumAttribute:{required:Wa,numeric:Za}}},computed:Ba(Ba(Ba(Ba(Ba({},(0,i.Se)("company",["itemDiscount"])),(0,i.Se)("company",["defaultCurrency"])),(0,i.Se)("estimate",["getTemplateId","selectedCustomer","selectedNote"])),(0,i.Se)("estimateTemplate",["getEstimateTemplates"])),{},{currency:function(){return this.selectedCurrency},pageTitle:function(){return this.isEdit?this.$t("estimates.edit_estimate"):this.$t("estimates.new_estimate")},isEdit:function(){return"estimates.edit"===this.$route.name},subtotalWithDiscount:function(){return this.subtotal-this.newEstimate.discount_val},total:function(){return this.subtotalWithDiscount+this.totalTax},subtotal:function(){return this.newEstimate.items.reduce((function(e,t){return e+t.total}),0)},discount:{get:function(){return this.newEstimate.discount},set:function(e){"percentage"===this.newEstimate.discount_type?this.newEstimate.discount_val=this.subtotal*e/100:this.newEstimate.discount_val=Math.round(100*e),this.newEstimate.discount=e}},totalSimpleTax:function(){return window._.sumBy(this.newEstimate.taxes,(function(e){return e.compound_tax?0:e.amount}))},totalCompoundTax:function(){return window._.sumBy(this.newEstimate.taxes,(function(e){return e.compound_tax?e.amount:0}))},totalTax:function(){return"NO"===this.taxPerItem||null===this.taxPerItem?this.totalSimpleTax+this.totalCompoundTax:window._.sumBy(this.newEstimate.items,(function(e){return e.tax}))},allTaxes:function(){var e=[];return this.newEstimate.items.forEach((function(t){t.taxes.forEach((function(t){var n=e.find((function(e){return e.tax_type_id===t.tax_type_id}));n?n.amount+=t.amount:t.tax_type_id&&e.push({tax_type_id:t.tax_type_id,amount:t.amount,percent:t.percent,name:t.name})}))})),e},estimateDateError:function(){return this.$v.newEstimate.estimate_date.$error?this.$v.newEstimate.estimate_date.required?void 0:this.$t("validation.required"):""},estimateNumError:function(){return this.$v.estimateNumAttribute.$error?this.$v.estimateNumAttribute.required?this.$v.estimateNumAttribute.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("estimates.errors.required"):""},expiryDateError:function(){return this.$v.newEstimate.expiry_date.$error?this.$v.newEstimate.expiry_date.required?void 0:this.$t("validation.required"):""},referenceNumError:function(){return this.$v.newEstimate.reference_number.$error?this.$v.newEstimate.reference_number.maxLength?void 0:this.$tc("validation.ref_number_maxlength"):""}}),watch:{selectedCustomer:function(e){e&&e.currency?this.selectedCurrency=e.currency:this.selectedCurrency=this.defaultCurrency},selectedNote:function(){this.selectedNote&&(this.newEstimate.notes=this.selectedNote)},subtotal:function(e){"percentage"===this.newEstimate.discount_type&&(this.newEstimate.discount_val=this.newEstimate.discount*e/100)}},created:function(){this.loadData(),this.fetchInitialItems(),window.hub.$on("newTax",this.onSelectTax),this.$route.query.customer&&(this.customerId=parseInt(this.$route.query.customer))},methods:Ba(Ba(Ba(Ba(Ba(Ba(Ba(Ba({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("estimate",["addEstimate","fetchEstimate","getEstimateNumber","selectCustomer","updateEstimate","resetSelectedNote"])),(0,i.nv)("item",["fetchItems"])),(0,i.nv)("taxType",["fetchTaxTypes"])),(0,i.nv)("company",["fetchCompanySettings"])),(0,i.nv)("estimateTemplate",["fetchEstimateTemplates"])),(0,i.nv)("customFields",["fetchCustomFields"])),{},{selectFixed:function(){"fixed"!==this.newEstimate.discount_type&&(this.newEstimate.discount_val=Math.round(100*this.newEstimate.discount),this.newEstimate.discount_type="fixed")},selectPercentage:function(){"percentage"!==this.newEstimate.discount_type&&(this.newEstimate.discount_val=this.subtotal*this.newEstimate.discount/100,this.newEstimate.discount_type="percentage")},updateTax:function(e){Object.assign(this.newEstimate.taxes[e.index],Ba({},e.item))},fetchInitialItems:function(){var e=this;return Ha(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isLoadingData=!0,e.isEdit){t.next=6;break}return t.next=4,e.fetchCompanySettings(["discount_per_item","tax_per_item"]);case 4:(n=t.sent).data&&(e.discountPerItem=n.data.discount_per_item,e.taxPerItem=n.data.tax_per_item);case 6:Promise.all([e.fetchItems({filter:{},orderByField:"",orderBy:""}),e.resetSelectedNote(),e.fetchEstimateTemplates(),e.getEstimateNumber(),e.fetchCompanySettings(["estimate_auto_generate"])]).then(function(){var t=Ha(Y().mark((function t(n){var r,a,i;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=za(n,5),r[0],r[1],r[2],a=r[3],i=r[4],!e.isEdit&&i.data&&"YES"===i.data.estimate_auto_generate?a.data&&(e.estimateNumAttribute=a.data.nextNumber,e.estimatePrefix=a.data.prefix):e.estimatePrefix=a.data.prefix,e.isLoadingData=!1;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){console.log(e)}));case 7:case"end":return t.stop()}}),t)})))()},loadData:function(){var e=this;return Ha(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isEdit){t.next=4;break}return e.isLoadingEstimate=!0,Promise.all([e.fetchEstimate(e.$route.params.id),e.fetchCustomFields({type:"Estimate",limit:"all"}),e.fetchTaxTypes({limit:"all"})]).then(function(){var t=Ha(Y().mark((function t(n){var r,a,i,o,s;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=za(n,2),a=r[0],i=r[1],a.data&&(e.customerId=a.data.estimate.user_id,e.newEstimate=a.data.estimate,e.formData=Ba(Ba({},e.formData),a.data.estimate),e.newEstimate.estimate_date=on()(a.data.estimate.estimate_date,"YYYY-MM-DD").toString(),e.newEstimate.expiry_date=on()(a.data.estimate.expiry_date,"YYYY-MM-DD").toString(),e.discountPerItem=a.data.estimate.discount_per_item,e.taxPerItem=a.data.estimate.tax_per_item,e.selectedCurrency=e.defaultCurrency,e.estimateTemplates=a.data.estimate.estimateTemplates,e.estimateNumAttribute=a.data.nextEstimateNumber,e.estimatePrefix=a.data.estimatePrefix,o=a.data.estimate.fields,i.data&&(s=i.data.customFields.data,e.setEditCustomFields(o,s))),e.isLoadingEstimate=!1,t.abrupt("return");case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){console.log(e)})),t.abrupt("return",!0);case 4:return e.isLoadingEstimate=!0,t.next=7,e.setInitialCustomFields("Estimate");case 7:return t.next=9,e.fetchTaxTypes({limit:"all"});case 9:e.selectedCurrency=e.defaultCurrency,e.newEstimate.estimate_date=on()().toString(),e.newEstimate.expiry_date=on()().add(7,"days").toString(),e.isLoadingEstimate=!1;case 13:case"end":return t.stop()}}),t)})))()},openTemplateModal:function(){this.openModal({title:this.$t("general.choose_template"),componentName:"EstimateTemplate",data:this.getEstimateTemplates})},addItem:function(){this.newEstimate.items.push(Ba(Ba({},ra),{},{id:vn().raw(),taxes:[Ba(Ba({},gn),{},{id:vn().raw()})]}))},removeItem:function(e){this.newEstimate.items.splice(e,1)},updateItem:function(e){Object.assign(this.newEstimate.items[e.index],Ba({},e.item))},submitForm:function(){var e=this;return Ha(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.touchCustomField();case 2:if(n=t.sent,e.checkValid()&&!n.error){t.next=5;break}return t.abrupt("return",!1);case 5:if(e.isLoading=!0,e.newEstimate.estimate_number=e.estimatePrefix+"-"+e.estimateNumAttribute,r=Ba(Ba(Ba({},e.formData),e.newEstimate),{},{estimate_date:on()(e.newEstimate.estimate_date).format("YYYY-MM-DD"),expiry_date:on()(e.newEstimate.expiry_date).format("YYYY-MM-DD"),sub_total:e.subtotal,total:e.total,tax:e.totalTax,user_id:null,estimate_template_id:e.getTemplateId}),null!=e.selectedCustomer&&(r.user_id=e.selectedCustomer.id),"estimates.edit"!==e.$route.name){t.next=12;break}return e.submitUpdate(r),t.abrupt("return");case 12:e.submitCreate(r);case 13:case"end":return t.stop()}}),t)})))()},submitCreate:function(e){var t=this;this.addEstimate(e).then((function(e){e.data&&(t.$router.push("/admin/estimates/".concat(e.data.estimate.id,"/view")),window.toastr.success(t.$t("estimates.created_message"))),t.isLoading=!1})).catch((function(e){t.isLoading=!1}))},submitUpdate:function(e){var t=this;this.updateEstimate(e).then((function(e){t.isLoading=!1,e.data&&(t.$router.push("/admin/estimates/".concat(e.data.estimate.id,"/view")),window.toastr.success(t.$t("estimates.updated_message")))})).catch((function(e){t.isLoading=!1}))},checkItemsData:function(e,t){this.newEstimate.items[e].valid=t},onSelectTax:function(e){var t=0;e.compound_tax&&this.subtotalWithDiscount?t=Math.round((this.subtotalWithDiscount+this.totalSimpleTax)*e.percent/100):this.subtotalWithDiscount&&e.percent&&(t=Math.round(this.subtotalWithDiscount*e.percent/100)),this.newEstimate.taxes.push(Ba(Ba({},gn),{},{id:vn().raw(),name:e.name,percent:e.percent,compound_tax:e.compound_tax,tax_type_id:e.id,amount:t})),this.$refs&&this.$refs.taxModal.close()},removeEstimateTax:function(e){this.newEstimate.taxes.splice(e,1)},checkValid:function(){this.$v.newEstimate.$touch(),this.$v.selectedCustomer.$touch(),this.$v.estimateNumAttribute.$touch(),window.hub.$emit("checkItems");var e=!0;return this.newEstimate.items.forEach((function(t){t.valid||(e=!1)})),!this.$v.selectedCustomer.$invalid&&!this.$v.estimateNumAttribute.$invalid&&!1===this.$v.newEstimate.$invalid&&!0===e},onSelectNote:function(e){this.newEstimate.notes=""+e.notes,this.$refs.notePopup.close()}})};var Ja=n(2828),Xa={insert:"head",singleton:!1};m()(Ja.Z,Xa);Ja.Z.locals;const Qa=(0,_.Z)(Ga,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"relative estimate-create-page"},[e.isLoadingEstimate||e.isLoadingData?n("base-loader"):n("form",{on:{submit:function(t){return t.preventDefault(),e.submitForm(t)}}},[n("sw-page-header",{attrs:{title:e.pageTitle}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{title:e.$t("general.home"),to:"/admin/dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("estimates.estimate",2),to:"/admin/estimates"}}),e._v(" "),"estimates.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{title:e.$t("estimates.edit_estimate"),to:"#",active:""}}):n("sw-breadcrumb-item",{attrs:{title:e.$t("estimates.new_estimate"),to:"#",active:""}})],1),e._v(" "),n("template",{slot:"actions"},["estimates.edit"===e.$route.name?n("sw-button",{staticClass:"mr-3",attrs:{href:"/estimates/pdf/"+e.newEstimate.unique_hash,"tag-name":"a",target:"_blank",variant:"primary-outline",type:"button"}},[n("span",{staticClass:"flex"},[e._v("\n "+e._s(e.$t("general.view_pdf"))+"\n ")])]):e._e(),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit",size:"lg"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.$t("estimates.save_estimate"))+"\n ")],1)],1)],2),e._v(" "),n("div",{staticClass:"grid-cols-12 gap-8 mt-6 mb-8 lg:grid"},[n("customer-select",{staticClass:"col-span-5 pr-0",attrs:{valid:e.$v.selectedCustomer,"customer-id":e.customerId}}),e._v(" "),n("div",{staticClass:"grid grid-cols-1 col-span-7 gap-4 mt-8 lg:gap-6 lg:mt-0 lg:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("reports.estimates.estimate_date"),erorr:e.estimateDateError,required:""}},[n("base-date-picker",{staticClass:"mt-2",attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.newEstimate.estimate_date.$touch()}},model:{value:e.newEstimate.estimate_date,callback:function(t){e.$set(e.newEstimate,"estimate_date",t)},expression:"newEstimate.estimate_date"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("estimates.due_date"),error:e.expiryDateError,required:""}},[n("base-date-picker",{staticClass:"mt-2",attrs:{invalid:e.$v.newEstimate.expiry_date.$error,"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.newEstimate.expiry_date.$touch()}},model:{value:e.newEstimate.expiry_date,callback:function(t){e.$set(e.newEstimate,"expiry_date",t)},expression:"newEstimate.expiry_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"lg:mt-0",attrs:{label:e.$t("estimates.estimate_number"),error:e.estimateNumError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{prefix:e.estimatePrefix+" - ",invalid:e.$v.estimateNumAttribute.$error},on:{input:function(t){return e.$v.estimateNumAttribute.$touch()}},model:{value:e.estimateNumAttribute,callback:function(t){e.estimateNumAttribute=t},expression:"estimateNumAttribute"}},[n("hashtag-icon",{staticClass:"h-4 ml-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"})],1)],1),e._v(" "),n("sw-input-group",{staticClass:"lg:mt-0",attrs:{label:e.$t("estimates.ref_number"),error:e.referenceNumError}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.newEstimate.reference_number.$error},on:{input:function(t){return e.$v.newEstimate.reference_number.$touch()}},model:{value:e.newEstimate.reference_number,callback:function(t){e.$set(e.newEstimate,"reference_number",t)},expression:"newEstimate.reference_number"}},[n("hashtag-icon",{staticClass:"h-4 ml-1 text-gray-500",attrs:{slot:"leftIcon"},slot:"leftIcon"})],1)],1)],1)],1),e._v(" "),n("table",{staticClass:"w-full text-center item-table"},[n("colgroup",[n("col",{staticStyle:{width:"40%"}}),e._v(" "),n("col",{staticStyle:{width:"10%"}}),e._v(" "),n("col",{staticStyle:{width:"15%"}}),e._v(" "),"YES"===e.discountPerItem?n("col",{staticStyle:{width:"15%"}}):e._e(),e._v(" "),n("col",{staticStyle:{width:"15%"}})]),e._v(" "),n("thead",{staticClass:"bg-white border border-gray-200 border-solid"},[n("tr",[n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",{staticClass:"pl-12"},[e._v("\n "+e._s(e.$tc("items.item",2))+"\n ")])]),e._v(" "),n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-right text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",[e._v("\n "+e._s(e.$t("estimates.item.quantity"))+"\n ")])]),e._v(" "),n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",[e._v("\n "+e._s(e.$t("estimates.item.price"))+"\n ")])]),e._v(" "),"YES"===e.discountPerItem?n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-left text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",[e._v("\n "+e._s(e.$t("estimates.item.discount"))+"\n ")])]):e._e(),e._v(" "),n("th",{staticClass:"px-5 py-3 text-sm not-italic font-medium leading-5 text-right text-gray-700 border-t border-b border-gray-200 border-solid"},[n("span",{staticClass:"pr-10 column-heading"},[e._v("\n "+e._s(e.$t("estimates.item.amount"))+"\n ")])])])]),e._v(" "),n("draggable",{staticClass:"item-body",attrs:{tag:"tbody",handle:".handle"},model:{value:e.newEstimate.items,callback:function(t){e.$set(e.newEstimate,"items",t)},expression:"newEstimate.items"}},e._l(e.newEstimate.items,(function(t,r){return n("estimate-item",{key:t.id,attrs:{index:r,"item-data":t,currency:e.currency,"estimate-items":e.newEstimate.items,"tax-per-item":e.taxPerItem,"discount-per-item":e.discountPerItem},on:{remove:e.removeItem,update:e.updateItem,itemValidate:e.checkItemsData}})})),1)],1),e._v(" "),n("div",{staticClass:"flex items-center justify-center w-full px-6 py-3 text-base border-b border-gray-200 border-solid cursor-pointer text-primary-400 hover:bg-gray-200",on:{click:e.addItem}},[n("shopping-cart-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("estimates.add_item"))+"\n ")],1),e._v(" "),n("div",{staticClass:"block my-10 estimate-foot lg:flex lg:justify-between lg:items-start"},[n("div",{staticClass:"w-full lg:w-1/2"},[n("div",{staticClass:"mb-6"},[n("sw-popup",{ref:"notePopup",staticClass:"z-10 text-sm font-semibold leading-5 text-primary-400"},[n("div",{staticClass:"float-right mt-1",attrs:{slot:"activator"},slot:"activator"},[e._v("\n + "+e._s(e.$t("general.insert_note"))+"\n ")]),e._v(" "),n("note-select-popup",{attrs:{type:"Estimate"},on:{select:e.onSelectNote}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("estimates.notes")}},[n("base-custom-input",{attrs:{fields:e.EstimateFields},model:{value:e.newEstimate.notes,callback:function(t){e.$set(e.newEstimate,"notes",t)},expression:"newEstimate.notes"}})],1)],1),e._v(" "),e.customFields.length>0?n("div",{staticClass:"grid gap-x-4 gap-y-2 md:gap-x-8 md:gap-y-4 grid-col-1 md:grid-cols-2"},e._l(e.customFields,(function(t,r){return n("sw-input-group",{key:r,attrs:{label:t.label,required:!!t.is_required}},[n(t.type+"Field",{tag:"component",attrs:{type:t.type.label,field:t,"is-edit":e.isEdit,"invalid-fields":e.invalidFields},on:{update:e.setCustomFieldValue}})],1)})),1):e._e(),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-1",attrs:{label:e.$t("estimates.estimate_template"),required:""}},[n("sw-button",{staticClass:"flex justify-center w-full text-sm lg:w-auto hover:bg-gray-400",attrs:{type:"button",variant:"gray"},on:{click:e.openTemplateModal}},[n("span",{staticClass:"flex text-black"},[e._v("\n "+e._s(e.$t("estimates.estimate_template"))+" "+e._s(e.getTemplateId)+"\n "),n("pencil-icon",{staticClass:"h-5 ml-2 -mr-1"})],1)])],1)],1),e._v(" "),n("div",{staticClass:"px-5 py-4 mt-6 bg-white border border-gray-200 border-solid rounded estimate-total lg:mt-0"},[n("div",{staticClass:"flex items-center justify-between w-full"},[n("label",{staticClass:"text-sm font-semibold leading-5 text-gray-500 uppercase"},[e._v(e._s(e.$t("estimates.sub_total")))]),e._v(" "),n("label",{staticClass:"flex items-center justify-center m-0 text-lg text-black uppercase"},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.subtotal,e.currency))}})])]),e._v(" "),e._l(e.allTaxes,(function(t){return n("div",{key:t.tax_type_id,staticClass:"flex items-center justify-between w-full"},[n("label",{staticClass:"m-0 text-sm font-semibold leading-5 text-gray-500 uppercase"},[e._v(e._s(t.name)+" - "+e._s(t.percent)+"%\n ")]),e._v(" "),n("label",{staticClass:"flex items-center justify-center m-0 text-lg text-black uppercase",staticStyle:{"font-size":"18px"}},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.amount,e.currency))}})])])})),e._v(" "),"NO"===e.discountPerItem||null===e.discountPerItem?n("div",{staticClass:"flex items-center justify-between w-full mt-2"},[n("label",{staticClass:"text-sm font-semibold leading-5 text-gray-500 uppercase"},[e._v(e._s(e.$t("estimates.discount")))]),e._v(" "),n("div",{staticClass:"flex",staticStyle:{width:"105px"},attrs:{role:"group"}},[n("sw-input",{staticClass:"border-r-0 rounded-tr-sm rounded-br-sm",attrs:{invalid:e.$v.newEstimate.discount_val.$error},on:{input:function(t){return e.$v.newEstimate.discount_val.$touch()}},model:{value:e.discount,callback:function(t){e.discount=t},expression:"discount"}}),e._v(" "),n("sw-dropdown",{attrs:{position:"bottom-end"}},[n("sw-button",{staticStyle:{height:"43px"},attrs:{slot:"activator",type:"button","data-toggle":"dropdown",size:"discount","aria-haspopup":"true","aria-expanded":"false",variant:"white"},slot:"activator"},[n("span",{staticClass:"flex"},[e._v("\n "+e._s("fixed"==e.newEstimate.discount_type?e.currency.symbol:"%")+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1)]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectFixed}},[e._v("\n "+e._s(e.$t("general.fixed"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{on:{click:e.selectPercentage}},[e._v("\n "+e._s(e.$t("general.percentage"))+"\n ")])],1)],1)]):e._e(),e._v(" "),"NO"===e.taxPerItem||null===e.taxPerItem?n("div",e._l(e.newEstimate.taxes,(function(t,r){return n("tax",{key:t.id,attrs:{index:r,total:e.subtotalWithDiscount,tax:t,taxes:e.newEstimate.taxes,currency:e.currency,"total-tax":e.totalSimpleTax},on:{remove:e.removeEstimateTax,update:e.updateTax}})})),1):e._e(),e._v(" "),"NO"===e.taxPerItem||null===e.taxPerItem?n("sw-popup",{ref:"taxModal",staticClass:"my-3 text-sm font-semibold leading-5 text-primary-400"},[n("div",{staticClass:"float-right pt-2 pb-4",attrs:{slot:"activator"},slot:"activator"},[e._v("\n + "+e._s(e.$t("estimates.add_tax"))+"\n ")]),e._v(" "),n("tax-select-popup",{attrs:{taxes:e.newEstimate.taxes},on:{select:e.onSelectTax}})],1):e._e(),e._v(" "),n("div",{staticClass:"flex items-center justify-between w-full pt-2 mt-5 border-t border-gray-200 border-solid"},[n("label",{staticClass:"m-0 text-sm font-semibold leading-5 text-gray-500 uppercase"},[e._v(e._s(e.$t("estimates.total"))+" "+e._s(e.$t("estimates.amount"))+":")]),e._v(" "),n("label",{staticClass:"flex items-center justify-center text-lg uppercase text-primary-400"},[n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(e.total,e.currency))}})])])],2)])],1)],1)}),[],!1,null,null,null).exports;var ei;function ti(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ni(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ti(i,r,a,o,s,"next",e)}function s(e){ti(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){ii(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ii(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oi=n(6486);const si={components:{DotsHorizontalIcon:o.nWS,FilterIcon:o.k1n,SortAscendingIcon:o.TV4,SortDescendingIcon:o.mcG,SearchIcon:o.W1M,LinkIcon:o.xPt,TrashIcon:o.XHJ,PencilIcon:o.vdY},data:function(){return{id:null,count:null,estimates:[],estimate:null,currency:null,searchData:{orderBy:null,orderByField:null,searchText:null},status:["DRAFT","SENT","VIEWED","EXPIRED","ACCEPTED","REJECTED"],isMarkAsSent:!1,isSendingEmail:!1,isRequestOnGoing:!1,isSearching:!1}},computed:{pageTitle:function(){return this.estimate.estimate_number},getOrderBy:function(){return"asc"===this.searchData.orderBy||null==this.searchData.orderBy},getOrderName:function(){return this.getOrderBy?this.$t("general.ascending"):this.$t("general.descending")},shareableLink:function(){return"/estimates/pdf/".concat(this.estimate.unique_hash)},getCurrentEstimateId:function(){return this.estimate&&this.estimate.id?this.estimate.id:null}},watch:{$route:function(e,t){this.loadEstimate()}},created:function(){this.loadEstimates(),this.loadEstimate(),this.onSearched=oi.debounce(this.onSearched,500)},methods:ai(ai(ai({},(0,i.nv)("estimate",["fetchEstimates","getRecord","searchEstimate","markAsSent","sendEmail","deleteEstimate","selectEstimate","fetchViewEstimate"])),(0,i.nv)("modal",["openModal"])),{},(ei={hasActiveUrl:function(e){return this.$route.params.id==e},loadEstimates:function(){var e=this;return ni(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchEstimates({limit:"all"});case 2:(n=t.sent).data&&(e.estimates=n.data.estimates.data),setTimeout((function(){e.scrollToEstimate()}),500);case 5:case"end":return t.stop()}}),t)})))()},scrollToEstimate:function(){var e=document.getElementById("estimate-".concat(this.$route.params.id));e&&(e.scrollIntoView({behavior:"smooth"}),e.classList.add("shake"))},loadEstimate:function(){var e=this;return ni(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchViewEstimate(e.$route.params.id);case 2:(n=t.sent).data&&(e.estimate=ai({},n.data.estimate));case 4:case"end":return t.stop()}}),t)})))()},copyPdfUrl:function(){var e="".concat(window.location.origin,"/estimates/pdf/").concat(this.estimate.unique_hash);this.$utils.copyTextToClipboard(e);window.toastr.success(this.$tc("general.copied_pdf_url_clipboard"))},onSearched:function(){var e=this;return ni(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="",""!==e.searchData.searchText&&null!==e.searchData.searchText&&void 0!==e.searchData.searchText&&(n+="search=".concat(e.searchData.searchText,"&")),null!==e.searchData.orderBy&&void 0!==e.searchData.orderBy&&(n+="orderBy=".concat(e.searchData.orderBy,"&")),null!==e.searchData.orderByField&&void 0!==e.searchData.orderByField&&(n+="orderByField=".concat(e.searchData.orderByField)),e.isSearching=!0,t.next=7,e.searchEstimate(n);case 7:r=t.sent,e.isSearching=!1,r.data&&(e.estimates=r.data.estimates.data);case 10:case"end":return t.stop()}}),t)})))()},sortData:function(){return"asc"===this.searchData.orderBy?(this.searchData.orderBy="desc",this.onSearched(),!0):(this.searchData.orderBy="asc",this.onSearched(),!0)},onMarkAsSent:function(){var e=this;return ni(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:window.swal({title:e.$t("general.are_you_sure"),text:e.$t("estimates.confirm_mark_as_sent"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=ni(Y().mark((function t(n){var r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=7;break}return e.isMarkAsSent=!0,t.next=4,e.markAsSent({id:e.estimate.id,status:"SENT"});case 4:r=t.sent,e.isMarkAsSent=!1,r.data&&(e.estimate.status="SENT",window.toastr.success(e.$tc("estimates.mark_as_sent_successfully")));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},onSendEstimate:function(e){var t=this;return ni(Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.openModal({title:t.$t("estimates.send_estimate"),componentName:"SendEstimateModal",id:t.estimate.id,data:t.estimate});case 1:case"end":return e.stop()}}),e)})))()}},ii(ei,"copyPdfUrl",(function(){var e="".concat(window.location.origin,"/estimates/pdf/").concat(this.estimate.unique_hash);this.$utils.copyTextToClipboard(e);window.toastr.success(this.$tc("general.copied_pdf_url_clipboard"))})),ii(ei,"removeEstimate",(function(e){var t=this;return ni(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window.swal({title:t.$t("general.are_you_sure"),text:"you will not be able to recover this estimate!",icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=ni(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=5;break}return n.next=3,t.deleteEstimate({ids:[e]});case 3:(a=n.sent).data.success?(window.toastr.success(t.$tc("estimates.deleted_message",1)),t.$router.push("/admin/estimates")):a.data.error&&window.toastr.error(a.data.message);case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()})),ei))};const li=(0,_.Z)(si,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.estimate?n("base-page",{staticClass:"xl:pl-96"},[n("sw-page-header",{attrs:{title:e.pageTitle}},[n("template",{slot:"actions"},[n("div",{staticClass:"mr-3 text-sm"},["DRAFT"===e.estimate.status?n("sw-button",{attrs:{disabled:e.isMarkAsSent,variant:"primary-outline"},on:{click:e.onMarkAsSent}},[e._v("\n "+e._s(e.$t("estimates.mark_as_sent"))+"\n ")]):e._e()],1),e._v(" "),"DRAFT"===e.estimate.status?n("sw-button",{staticClass:"text-sm",attrs:{disabled:e.isSendingEmail,variant:"primary"},on:{click:e.onSendEstimate}},[e._v("\n "+e._s(e.$t("estimates.send_estimate"))+"\n ")]):e._e(),e._v(" "),n("sw-dropdown",{staticClass:"ml-3"},[n("sw-button",{attrs:{slot:"activator",variant:"primary"},slot:"activator"},[n("dots-horizontal-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.copyPdfUrl}},[n("link-icon",{staticClass:"h-5 mr-3 text-primary-800"}),e._v("\n "+e._s(e.$t("general.copy_pdf_url"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{attrs:{to:"/admin/estimates/"+e.$route.params.id+"/edit","tag-name":"router-link"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-primary-800"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(t){return e.removeEstimate(e.$route.params.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-primary-800"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)],1)],2),e._v(" "),n("div",{staticClass:"fixed top-0 left-0 hidden h-full pt-16 pb-4 ml-56 bg-white xl:ml-64 w-88 xl:block"},[n("div",{staticClass:"flex items-center justify-between px-4 pt-8 pb-2 border border-gray-200 border-solid height-full"},[n("sw-input",{staticClass:"mb-6",attrs:{placeholder:e.$t("general.search"),type:"text",variant:"gray"},on:{input:function(t){return e.onSearched()}},model:{value:e.searchData.searchText,callback:function(t){e.$set(e.searchData,"searchText",t)},expression:"searchData.searchText"}},[n("search-icon",{staticClass:"h-5",attrs:{slot:"rightIcon"},slot:"rightIcon"})],1),e._v(" "),n("div",{staticClass:"flex mb-6 ml-3",attrs:{role:"group","aria-label":"First group"}},[n("sw-dropdown",{staticClass:"ml-3",attrs:{position:"bottom-start"}},[n("sw-button",{attrs:{slot:"activator",size:"md",variant:"gray-light"},slot:"activator"},[n("filter-icon",{staticClass:"h-5"})],1),e._v(" "),n("div",{staticClass:"px-2 py-1 pb-2 mb-1 mb-2 text-sm border-b border-gray-200 border-solid"},[e._v("\n "+e._s(e.$t("general.sort_by"))+"\n ")]),e._v(" "),n("sw-dropdown-item",{staticClass:"flex px-1 py-2 cursor-pointer"},[n("sw-input-group",{staticClass:"-mt-3 font-normal"},[n("sw-radio",{attrs:{id:"filter_estimate_date",label:e.$t("reports.estimates.estimate_date"),size:"sm",name:"filter",value:"estimate_date"},on:{change:e.onSearched},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1),e._v(" "),n("sw-dropdown-item",{staticClass:"flex px-1 py-2 cursor-pointer"},[n("sw-input-group",{staticClass:"-mt-3 font-normal"},[n("sw-radio",{attrs:{id:"filter_due_date",label:e.$t("estimates.due_date"),value:"expiry_date",size:"sm",name:"filter"},on:{change:e.onSearched},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1),e._v(" "),n("sw-dropdown-item",{staticClass:"flex px-1 py-2 cursor-pointer"},[n("sw-input-group",{staticClass:"-mt-3 font-normal"},[n("sw-radio",{attrs:{id:"filter_estimate_number",label:e.$t("estimates.estimate_number"),value:"estimate_number",size:"sm",name:"filter"},on:{change:e.onSearched},model:{value:e.searchData.orderByField,callback:function(t){e.$set(e.searchData,"orderByField",t)},expression:"searchData.orderByField"}})],1)],1)],1),e._v(" "),n("sw-button",{directives:[{name:"tooltip",rawName:"v-tooltip.top-center",value:{content:e.getOrderName},expression:"{ content: getOrderName }",modifiers:{"top-center":!0}}],staticClass:"ml-1",attrs:{size:"md",variant:"gray-light"},on:{click:e.sortData}},[e.getOrderBy?n("sort-ascending-icon",{staticClass:"h-5"}):n("sort-descending-icon",{staticClass:"h-5"})],1)],1)],1),e._v(" "),e.isSearching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):n("div",{staticClass:"h-full pb-32 overflow-y-scroll border-l border-gray-200 border-solid sw-scroll"},[e._l(e.estimates,(function(t,r){return n("router-link",{key:r,class:["flex justify-between side-estimate p-4 cursor-pointer hover:bg-gray-100 items-center border-l-4 border-transparent",{"bg-gray-100 border-l-4 border-primary-500 border-solid":e.hasActiveUrl(t.id)}],staticStyle:{"border-bottom":"1px solid rgba(185, 193, 209, 0.41)"},attrs:{to:"/admin/estimates/"+t.id+"/view",id:"estimate-"+t.id}},[n("div",{staticClass:"flex-2"},[n("div",{staticClass:"pr-2 mb-2 text-sm not-italic font-normal leading-5 text-black capitalize truncate"},[e._v("\n "+e._s(t.user.name)+"\n ")]),e._v(" "),n("div",{staticClass:"mt-1 mb-2 text-xs not-italic font-medium leading-5 text-gray-600"},[e._v("\n "+e._s(t.estimate_number)+"\n ")]),e._v(" "),n("sw-badge",{staticClass:"px-1 text-xs",attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.status).bgColor,color:e.$utils.getBadgeStatusColor(t.status).color}},[e._v("\n "+e._s(t.status)+"\n ")])],1),e._v(" "),n("div",{staticClass:"flex-1 whitespace-nowrap right"},[n("div",{staticClass:"mb-2 text-xl not-italic font-semibold leading-8 text-right text-gray-900",domProps:{innerHTML:e._s(e.$utils.formatMoney(t.total,t.user.currency))}}),e._v(" "),n("div",{staticClass:"text-sm not-italic font-normal leading-5 text-right text-gray-600 est-date"},[e._v("\n "+e._s(t.formattedEstimateDate)+"\n ")])])])})),e._v(" "),e.estimates.length?e._e():n("p",{staticClass:"flex justify-center px-4 mt-5 text-sm text-gray-600"},[e._v("\n "+e._s(e.$t("estimates.no_matching_estimates"))+"\n ")])],2)],1),e._v(" "),n("div",{staticClass:"flex flex-col min-h-0 mt-8 overflow-hidden sw-scroll",staticStyle:{height:"75vh"}},[n("iframe",{staticClass:"flex-1 border border-gray-400 border-solid rounded-md frame-style",attrs:{src:""+e.shareableLink}})])],1):e._e()}),[],!1,null,null,null).exports;function ci(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ui(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ci(i,r,a,o,s,"next",e)}function s(e){ci(i,r,a,o,s,"throw",e)}o(void 0)}))}}function di(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?di(Object(n),!0).forEach((function(t){mi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fi={components:{ObservatoryIcon:(0,_.Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{width:"97",height:"110",viewBox:"0 0 97 110",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("g",{attrs:{"clip-path":"url(#clip0)"}},[n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M41.25 104.844H55V84.2188H41.25V104.844ZM42.9688 103.125H53.2813V85.9375H42.9688V103.125Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 110H96.25V103.125H0V110ZM1.71875 108.281H94.5312V104.844H1.71875V108.281Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M34.375 8.59375H61.875V6.875H34.375V8.59375Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M48.125 15.4688C42.4291 15.4688 37.8125 20.0853 37.8125 25.7812C37.8125 31.4772 42.4291 36.0938 48.125 36.0938C53.8209 36.0938 58.4375 31.4772 58.4375 25.7812C58.4375 20.0853 53.8209 15.4688 48.125 15.4688ZM48.125 17.1875C52.8636 17.1875 56.7188 21.0427 56.7188 25.7812C56.7188 30.5198 52.8636 34.375 48.125 34.375C43.3864 34.375 39.5312 30.5198 39.5312 25.7812C39.5312 21.0427 43.3864 17.1875 48.125 17.1875Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.8906 63.5938C12.418 63.5938 12.0312 63.207 12.0312 62.7344V55.8594C12.0312 55.3867 12.418 55 12.8906 55C13.3633 55 13.75 55.3867 13.75 55.8594V62.7344C13.75 63.207 13.3633 63.5938 12.8906 63.5938Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.4844 63.5938C21.0117 63.5938 20.625 63.207 20.625 62.7344V55.8594C20.625 55.3867 21.0117 55 21.4844 55C21.957 55 22.3438 55.3867 22.3438 55.8594V62.7344C22.3438 63.207 21.957 63.5938 21.4844 63.5938Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.0781 63.5938C29.6055 63.5938 29.2188 63.207 29.2188 62.7344V55.8594C29.2188 55.3867 29.6055 55 30.0781 55C30.5508 55 30.9375 55.3867 30.9375 55.8594V62.7344C30.9375 63.207 30.5508 63.5938 30.0781 63.5938Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M38.6719 63.5938C38.1992 63.5938 37.8125 63.207 37.8125 62.7344V55.8594C37.8125 55.3867 38.1992 55 38.6719 55C39.1445 55 39.5312 55.3867 39.5312 55.8594V62.7344C39.5312 63.207 39.1445 63.5938 38.6719 63.5938Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M47.2656 63.5938C46.793 63.5938 46.4062 63.207 46.4062 62.7344V55.8594C46.4062 55.3867 46.793 55 47.2656 55C47.7383 55 48.125 55.3867 48.125 55.8594V62.7344C48.125 63.207 47.7383 63.5938 47.2656 63.5938Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M55.8594 63.5938C55.3867 63.5938 55 63.207 55 62.7344V55.8594C55 55.3867 55.3867 55 55.8594 55C56.332 55 56.7187 55.3867 56.7187 55.8594V62.7344C56.7187 63.207 56.332 63.5938 55.8594 63.5938Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M64.4531 63.5938C63.9805 63.5938 63.5938 63.207 63.5938 62.7344V55.8594C63.5938 55.3867 63.9805 55 64.4531 55C64.9258 55 65.3125 55.3867 65.3125 55.8594V62.7344C65.3125 63.207 64.9258 63.5938 64.4531 63.5938Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M73.0469 63.5938C72.5742 63.5938 72.1875 63.207 72.1875 62.7344V55.8594C72.1875 55.3867 72.5742 55 73.0469 55C73.5195 55 73.9062 55.3867 73.9062 55.8594V62.7344C73.9062 63.207 73.5195 63.5938 73.0469 63.5938Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M81.6406 63.5938C81.168 63.5938 80.7812 63.207 80.7812 62.7344V55.8594C80.7812 55.3867 81.168 55 81.6406 55C82.1133 55 82.5 55.3867 82.5 55.8594V62.7344C82.5 63.207 82.1133 63.5938 81.6406 63.5938Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4375 103.125H5.15625V56.7188H3.4375V103.125Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M91.0938 103.125H92.8125V56.7188H91.0938V103.125Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M34.375 0C17.2098 0.9075 3.4375 15.2745 3.4375 32.6562V51.5625H34.375V0ZM32.6562 1.86484V49.8438H5.15625V32.6562C5.15625 16.7853 17.0947 3.59391 32.6562 1.86484Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M61.875 0V51.5625H92.8125V32.6562C92.8125 15.2745 79.0402 0.9075 61.875 0ZM63.5938 1.86484C79.1553 3.59391 91.0938 16.7853 91.0938 32.6562V49.8438H63.5938V1.86484Z",fill:"#55547A"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.45312 34.375C8.97875 34.375 8.59375 33.99 8.59375 33.5157C8.59375 22.9316 13.6262 14.1247 22.7648 8.71238C23.1756 8.47347 23.7033 8.60925 23.9422 9.01488C24.1845 9.42222 24.0487 9.9516 23.6414 10.1939C14.9222 15.3553 10.3125 23.4197 10.3125 33.5157C10.3125 33.99 9.9275 34.375 9.45312 34.375Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M54.1406 25.7812C53.6663 25.7812 53.2813 25.3962 53.2813 24.9219C53.2813 22.8748 51.0314 20.625 48.9844 20.625C48.51 20.625 48.125 20.24 48.125 19.7656C48.125 19.2913 48.51 18.9062 48.9844 18.9062C51.963 18.9062 55 21.9433 55 24.9219C55 25.3962 54.615 25.7812 54.1406 25.7812Z",fill:"#817AE3"}}),e._v(" "),n("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 56.7188H96.25V49.8438H0V56.7188ZM1.71875 55H94.5312V51.5625H1.71875V55Z",fill:"#817AE3"}})]),e._v(" "),n("defs",[n("clipPath",{attrs:{id:"clip0"}},[n("rect",{attrs:{width:"96.25",height:"110",fill:"white"}})])])])}),[],!1,null,null,null).exports,PlusIcon:o.pOD,FilterIcon:o.k1n,XIcon:o.b0D,ChevronDownIcon:o.v4q,PencilIcon:o.vdY,TrashIcon:o.XHJ},data:function(){return{showFilters:!1,isRequestOngoing:!0,filters:{category:null,from_date:"",to_date:"",user:""}}},computed:pi(pi(pi(pi(pi({showEmptyScreen:function(){return!this.totalExpenses&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"}},(0,i.Se)("category",["categories"])),(0,i.Se)("expense",["selectedExpenses","totalExpenses","expenses","selectAllField"])),(0,i.Se)("company",["defaultCurrency"])),(0,i.Se)("customer",["customers"])),{},{selectField:{get:function(){return this.selectedExpenses},set:function(e){this.selectExpense(e)}},selectAllFieldStatus:{get:function(){return this.selectAllField},set:function(e){this.setSelectAllState(e)}}}),watch:{filters:{handler:"setFilters",deep:!0}},destroyed:function(){this.selectAllField&&this.selectAllExpenses()},created:function(){this.fetchCategories({limit:"all"})},methods:pi(pi(pi({},(0,i.nv)("expense",["fetchExpenses","selectExpense","deleteExpense","deleteMultipleExpenses","selectAllExpenses","setSelectAllState"])),(0,i.nv)("category",["fetchCategories"])),{},{fetchData:function(e){var t=this;return ui(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={user_id:t.filters.user?t.filters.user.id:null,expense_category_id:null!==t.filters.category?t.filters.category.id:"",from_date:(t.filters.from_date,t.filters.from_date),to_date:(t.filters.to_date,t.filters.to_date),orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchExpenses(i);case 5:return o=n.sent,t.isRequestOngoing=!1,n.abrupt("return",{data:o.data.expenses.data,pagination:{totalPages:o.data.expenses.last_page,currentPage:r,count:o.data.expenses.count}});case 8:case"end":return n.stop()}}),n)})))()},onSelectCustomer:function(e){this.filters.user=e},refreshTable:function(){this.$refs.table.refresh()},setFilters:function(){this.refreshTable()},clearFilter:function(){this.filters.user&&this.$refs.customerSelect.$refs.baseSelect.removeElement(this.filters.user),this.filters={category:null,from_date:"",to_date:"",user:null}},clearCustomerSearch:function(e,t){var n=this;return ui(Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.filters.user="",n.refreshTable();case 2:case"end":return e.stop()}}),e)})))()},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},removeExpense:function(e){var t=this;return ui(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$tc("expenses.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=ui(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=11;break}return n.next=3,t.deleteExpense({ids:[e]});case 3:if(!(a=n.sent).data.success){n.next=10;break}return window.toastr.success(t.$tc("expenses.deleted_message",1)),t.refreshTable(),n.abrupt("return",!0);case 10:a.data.error&&window.toastr.error(a.data.message);case 11:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},removeMultipleExpenses:function(){var e=this;return ui(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("expenses.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=ui(Y().mark((function t(n){var r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,e.deleteMultipleExpenses();case 3:(r=t.sent).data.success?(window.toastr.success(e.$tc("expenses.deleted_message",2)),e.$refs.table.refresh()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}})};const hi=(0,_.Z)(fi,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",[n("sw-page-header",{attrs:{title:e.$t("expenses.title")}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$tc("expenses.expense",2),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalExpenses,expression:"totalExpenses"}],attrs:{size:"lg",variant:"primary-outline"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"w-4 h-4 ml-2 -mr-1"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"expenses/create",size:"lg",variant:"primary"}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("expenses.add_expense"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}],staticClass:"mt-3"},[n("sw-input-group",{staticClass:"flex-1 mt-3",attrs:{label:e.$t("expenses.customer")}},[n("base-customer-select",{ref:"customerSelect",on:{select:e.onSelectCustomer,deselect:e.clearCustomerSearch}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$t("expenses.category")}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.categories,searchable:!0,"show-labels":!1,placeholder:e.$t("expenses.categories.select_a_category"),label:"name"},on:{click:function(t){e.filter=!e.filter}},model:{value:e.filters.category,callback:function(t){e.$set(e.filters,"category",t)},expression:"filters.category"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$t("expenses.from_date")}},[n("base-date-picker",{staticClass:"mt-2",attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},model:{value:e.filters.from_date,callback:function(t){e.$set(e.filters,"from_date",t)},expression:"filters.from_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 ml-0 lg:ml-6",attrs:{label:e.$t("expenses.to_date")}},[n("base-date-picker",{staticClass:"mt-2",attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},model:{value:e.filters.to_date,callback:function(t){e.$set(e.filters,"to_date",t)},expression:"filters.to_date"}})],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-black cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v(e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),n("sw-empty-table-placeholder",{directives:[{name:"show",rawName:"v-show",value:e.showEmptyScreen,expression:"showEmptyScreen"}],attrs:{title:e.$t("expenses.no_expenses"),description:e.$t("expenses.list_of_expenses")}},[n("observatory-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/expenses/create",size:"lg",variant:"primary-outline"},slot:"actions"},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("expenses.add_new_expense"))+"\n ")],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative table-container"},[n("div",{staticClass:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},[n("p",{staticClass:"text-sm"},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.expenses.length))]),e._v("\n\n "+e._s(e.$t("general.of"))+" "),n("b",[e._v(e._s(e.totalExpenses))])]),e._v(" "),n("sw-transition",{attrs:{type:"fade"}},[e.selectedExpenses.length?n("sw-dropdown",[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultipleExpenses}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-12"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllExpenses},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllExpenses},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{"show-filter":!1,data:e.fetchData}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"relative block"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("expenses.date"),"sort-as":"expense_date",show:"formattedExpenseDate"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$tc("expenses.categories.category",1),"sort-as":"name",show:"category.name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$tc("expenses.categories.category",1)))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"expenses/"+t.id+"/edit"}}},[e._v("\n "+e._s(t.category.name)+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("expenses.customer"),"sort-as":"user_name",show:"user_name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("expenses.customer")))]),e._v(" "),n("span",[e._v(" "+e._s(t.user_name?t.user_name:"Not selected")+" ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("expenses.note"),"sort-as":"expense_date"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("expenses.note")))]),e._v(" "),n("div",{staticClass:"notes"},[n("div",{staticClass:"truncate note w-60"},[e._v(e._s(t.notes))])])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("expenses.amount"),"sort-as":"amount",show:"category.amount"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("expenses.amount")))]),e._v(" "),n("div",{domProps:{innerHTML:e._s(e.$utils.formatMoney(t.amount,e.defaultCurrency))}})]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("expenses.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"expenses/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeExpense(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)],1)}),[],!1,null,null,null).exports;function _i(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function vi(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){_i(i,r,a,o,s,"next",e)}function s(e){_i(i,r,a,o,s,"throw",e)}o(void 0)}))}}function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach((function(t){bi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wi=n(379),xi=wi.required,ki=wi.minValue,Di=wi.maxLength;const Mi={components:{CloudUploadIcon:o.s68,ShoppingCartIcon:o.Q1y,DownloadIcon:s._8t},mixins:[Xe.Z],props:{addname:{type:String,default:""}},data:function(){return{formData:{expense_category_id:null,expense_date:new Date,amount:100,notes:"",user_id:null},money:{decimal:".",thousands:",",prefix:"$ ",precision:2,masked:!1},isRequestOnGoing:!1,isReceiptAvailable:!1,isLoading:!1,category:null,previewReceipt:null,fileSendUrl:"/api/v1/expenses",customer:null,fileObject:null}},validations:{category:{required:xi},formData:{expense_date:{required:xi},amount:{required:xi,minValue:ki(.1),maxLength:Di(20)},notes:{maxLength:Di(65e3)}}},computed:yi(yi(yi(yi(yi({},(0,i.Se)("company",["defaultCurrencyForInput"])),{},{amount:{get:function(){return this.formData.amount/100},set:function(e){this.formData.amount=Math.round(100*e)}},pageTitle:function(){return"expenses.edit"===this.$route.name?this.$t("expenses.edit_expense"):this.$t("expenses.new_expense")},isEdit:function(){return"expenses.edit"===this.$route.name}},(0,i.Se)("category",["categories"])),(0,i.Se)("customer",["customers"])),(0,i.Se)("company",["getSelectedCompany"])),{},{getReceiptUrl:function(){if(this.isEdit)return"/expenses/".concat(this.$route.params.id,"/receipt")},categoryError:function(){return this.$v.category.$error?this.$v.category.required?void 0:this.$t("validation.required"):""},dateError:function(){return this.$v.formData.expense_date.$error?this.$v.formData.expense_date.required?void 0:this.$t("validation.required"):""},amountError:function(){return this.$v.formData.amount.$error?this.$v.formData.amount.required?this.$v.formData.amount.maxLength?this.$v.formData.amount.minValue?void 0:this.$t("validation.price_minvalue"):this.$t("validation.price_maxlength"):this.$t("validation.required"):""},notesError:function(){return this.$v.formData.notes.$error?this.$v.formData.notes.maxLength?void 0:this.$t("validation.notes_maxlength"):""}}),watch:{category:function(e){this.formData.expense_category_id=e.id}},mounted:function(){var e=this;this.$v.formData.$reset(),this.loadData(),window.hub.$on("newCategory",(function(t){e.category=t}))},methods:yi(yi(yi(yi(yi({},(0,i.nv)("expense",["getExpenseReceipt","addExpense","updateExpense","fetchExpense"])),(0,i.nv)("modal",["openModal"])),(0,i.nv)("category",["fetchCategories"])),(0,i.nv)("customer",["fetchCustomers"])),{},{openCategoryModal:function(){this.openModal({title:this.$t("settings.expense_category.add_category"),componentName:"CategoryModal"})},onChange:function(e){this.previewReceipt=e.image,this.fileObject=e.file},getReceipt:function(){var e=this;return vi(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getExpenseReceipt(e.$route.params.id);case 2:if(!(n=t.sent).data.error){t.next=6;break}return e.isReceiptAvailable=!1,t.abrupt("return",!0);case 6:e.isReceiptAvailable=!0,e.previewReceipt=n.data.image;case 8:case"end":return t.stop()}}),t)})))()},setExpenseCustomer:function(e){this.customer=this.customers.find((function(t){return t.id==e}))},loadData:function(){var e=this;return vi(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRequestOnGoing=!0,t.next=3,e.fetchCategories({limit:"all"});case 3:return t.next=5,e.fetchCustomers({limit:"all"});case 5:if(!e.isEdit){t.next=23;break}return e.isRequestOnGoing=!0,t.next=9,e.fetchExpense(e.$route.params.id);case 9:return n=t.sent,e.formData=yi(yi({},e.formData),n.data.expense),e.formData.expense_date=on()(e.formData.expense_date).toString(),e.formData.amount=n.data.expense.amount,e.fileSendUrl="/api/v1/expenses/".concat(e.$route.params.id),n.data.expense.expense_category_id&&(e.category=e.categories.find((function(e){return e.id===n.data.expense.expense_category_id}))),n.data.expense.user_id&&(e.customer=e.customers.find((function(e){return e.id===n.data.expense.user_id}))),t.next=18,e.fetchCustomFields({type:"Expense",limit:"all"});case 18:return r=t.sent,e.setEditCustomFields(n.data.expense.fields,r.data.customFields.data),e.getReceipt(),e.isRequestOnGoing=!1,t.abrupt("return",!0);case 23:return t.next=25,e.setInitialCustomFields("Expense");case 25:e.$route.query.customer&&e.setExpenseCustomer(parseInt(e.$route.query.customer)),e.isRequestOnGoing=!1;case 27:case"end":return t.stop()}}),t)})))()},sendData:function(){var e=this;return vi(Y().mark((function t(){var n,r,a,i;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.touchCustomField();case 2:if(n=t.sent,e.$v.category.$touch(),e.$v.formData.$touch(),!e.$v.$invalid&&!n.error){t.next=7;break}return t.abrupt("return",!0);case 7:if(r=new FormData,e.fileObject&&r.append("attachment_receipt",e.fileObject),r.append("expense_category_id",e.formData.expense_category_id),r.append("expense_date",on()(e.formData.expense_date).format("YYYY-MM-DD")),r.append("amount",e.formData.amount),r.append("notes",e.formData.notes?e.formData.notes:""),r.append("user_id",e.customer?e.customer.id:""),r.append("customFields",JSON.stringify(e.formData.customFields)),!e.isEdit){t.next=29;break}return e.isLoading=!0,r.append("_method","PUT"),t.next=20,e.updateExpense({id:e.$route.params.id,editData:r});case 20:if(!(a=t.sent).data.success){t.next=26;break}return e.isLoading=!1,window.toastr.success(e.$t("expenses.updated_message")),e.$router.push("/admin/expenses"),t.abrupt("return",!0);case 26:window.toastr.error(a.data.error),t.next=39;break;case 29:return e.isLoading=!0,t.next=32,e.addExpense(r);case 32:if(i=t.sent,e.isLoading=!1,!i.data.success){t.next=38;break}return window.toastr.success(e.$t("expenses.created_message")),e.$router.push("/admin/expenses"),t.abrupt("return",!0);case 38:window.toastr.success(i.data.success);case 39:case"end":return t.stop()}}),t)})))()}})};const Si=(0,_.Z)(Mi,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"relative"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.sendData(t)}}},[n("sw-page-header",{staticClass:"mb-5",attrs:{title:e.pageTitle}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{title:e.$t("general.home"),to:"/admin/dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("expenses.expense",2),to:"/admin/expenses"}}),e._v(" "),"expenses.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{title:e.$t("expenses.edit_expense"),to:"#",active:""}}):n("sw-breadcrumb-item",{attrs:{title:e.$t("expenses.new_expense"),to:"#",active:""}})],1),e._v(" "),n("template",{slot:"actions"},[e.isReceiptAvailable?n("sw-button",{staticClass:"mr-2",attrs:{href:e.getReceiptUrl,"tag-name":"a",variant:"primary",outline:"",size:"lg"}},[n("download-icon",{staticClass:"h-5 mr-2 -ml-1"}),e._v("\n "+e._s(e.$t("expenses.download_receipt"))+"\n ")],1):e._e(),e._v(" "),n("div",{staticClass:"hidden md:block"},[n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit",size:"lg"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.isEdit?e.$t("expenses.update_expense"):e.$t("expenses.save_expense"))+"\n ")],1)],1)],1)],2),e._v(" "),e.isRequestOnGoing?n("base-loader",{attrs:{"show-bg-overlay":!0}}):n("sw-card",[n("div",{staticClass:"grid gap-6 grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("expenses.category"),error:e.categoryError,required:""}},[n("sw-select",{ref:"baseSelect",staticClass:"mt-2",attrs:{options:e.categories,invalid:e.$v.category.$error,searchable:!0,"show-labels":!1,placeholder:e.$t("expenses.categories.select_a_category"),label:"name","track-by":"id"},on:{input:function(t){return e.$v.category.$touch()}},model:{value:e.category,callback:function(t){e.category=t},expression:"category"}},[n("sw-button",{staticClass:"flex items-center justify-center w-full px-4 py-3 bg-gray-200 border-none outline-none",attrs:{slot:"afterList",type:"button",variant:"gray-light"},on:{click:e.openCategoryModal},slot:"afterList"},[n("shopping-cart-icon",{staticClass:"h-5 text-center text-primary-400"}),e._v(" "),n("label",{staticClass:"ml-2 text-xs leading-none text-primary-400"},[e._v(e._s(e.$t("settings.expense_category.add_new_category")))])],1)],1)],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("expenses.expense_date"),error:e.dateError,required:""}},[n("base-date-picker",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.expense_date.$error,"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.formData.expense_date.$touch()}},model:{value:e.formData.expense_date,callback:function(t){e.$set(e.formData,"expense_date",t)},expression:"formData.expense_date"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("expenses.amount"),error:e.amountError,required:""}},[n("sw-money",{staticClass:"focus:border focus:border-solid focus:border-primary-500",attrs:{currency:e.defaultCurrencyForInput,invalid:e.$v.formData.amount.$error},on:{input:function(t){return e.$v.formData.amount.$touch()}},model:{value:e.amount,callback:function(t){e.amount=t},expression:"amount"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("expenses.customer")}},[n("sw-select",{ref:"baseSelect",staticClass:"mt-1",attrs:{options:e.customers,searchable:!0,"show-labels":!1,placeholder:e.$t("customers.select_a_customer"),label:"name","track-by":"id"},model:{value:e.customer,callback:function(t){e.customer=t},expression:"customer"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("expenses.note"),error:e.notesError}},[n("sw-textarea",{attrs:{rows:"4"},on:{input:function(t){return e.$v.formData.notes.$touch()}},model:{value:e.formData.notes,callback:function(t){e.$set(e.formData,"notes",t)},expression:"formData.notes"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("expenses.receipt")}},[n("div",{staticClass:"relative flex items-center justify-center h-24 p-6 bg-transparent border-2 border-gray-200 border-dashed rounded-md image-upload-box",attrs:{id:"receipt-box"}},[e.previewReceipt?n("img",{staticClass:"absolute opacity-100 preview-logo",staticStyle:{"max-height":"80%",animation:"fadeIn 2s ease"},attrs:{src:e.previewReceipt}}):n("div",{staticClass:"flex flex-col items-center"},[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"}),e._v(" "),n("p",{staticClass:"text-xs leading-4 text-center text-gray-400"},[e._v("\n Drag a file here or\n "),n("span",{staticClass:"cursor-pointer text-primary-500",attrs:{id:"pick-avatar"}},[e._v("browse")]),e._v("\n to choose a file\n ")])],1)]),e._v(" "),n("sw-avatar",{attrs:{"preview-avatar":e.previewReceipt,"enable-cropper":!1,trigger:"#receipt-box"},on:{changed:e.onChange},scopedSlots:e._u([{key:"icon",fn:function(){return[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"})]},proxy:!0}])})],1)],1),e._v(" "),e.customFields.length>0?n("div",[n("div",{staticClass:"grid gap-6 mt-6 grid-col-1 md:grid-cols-2"},e._l(e.customFields,(function(t,r){return n("sw-input-group",{key:r,attrs:{label:t.label,required:!!t.is_required}},[n(t.type+"Field",{tag:"component",attrs:{type:t.type.label,field:t,"is-edit":e.isEdit,"invalid-fields":e.invalidFields},on:{update:e.setCustomFieldValue}})],1)})),1)]):e._e(),e._v(" "),n("div",{staticClass:"block mt-2 md:hidden"},[n("sw-button",{staticClass:"flex w-full",attrs:{disabled:e.isLoading,loading:e.isLoading,tabindex:6,variant:"primary",type:"submit",size:"lg"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.isEdit?e.$t("expenses.update_expense"):e.$t("expenses.save_expense"))+"\n ")],1)],1)])],1)])}),[],!1,null,null,null).exports;function Ci(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Li(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ci(i,r,a,o,s,"next",e)}function s(e){Ci(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ti(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ai={components:{AstronautIcon:Be,FilterIcon:o.k1n,XIcon:o.b0D,ChevronDownIcon:o.v4q,PencilIcon:o.vdY,TrashIcon:o.XHJ,PlusIcon:o.pOD},data:function(){return{id:null,showFilters:!1,sortedBy:"created_at",isRequestOngoing:!0,filters:{name:"",email:"",phone:""}}},computed:Oi(Oi(Oi({},(0,i.Se)("user",["currentUser"])),(0,i.Se)("users",["users","selectedUsers","totalUsers","selectAllField"])),{},{isSuperAdmin:function(){return"super admin"==this.currentUser.role},showEmptyScreen:function(){return!this.totalUsers&&!this.isRequestOngoing},filterIcon:function(){return this.showFilters?"x-icon":"filter-icon"},selectField:{get:function(){return this.selectedUsers},set:function(e){this.selectedUser(e)}},selectAllFieldStatus:{get:function(){return this.selectAllField},set:function(e){this.setSelectAllState(e)}}}),created:function(){this.isSuperAdmin||this.$router.push("/admin/dashboard")},watch:{filters:{handler:"setFilters",deep:!0}},destroyed:function(){this.selectAllField&&this.selectAllUsers()},methods:Oi(Oi({},(0,i.nv)("users",["fetchUsers","selectAllUsers","selectedUser","deleteUser","deleteMultipleUsers","setSelectAllState"])),{},{refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return Li(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={display_name:null!==t.filters.name?t.filters.name:"",phone:null!==t.filters.phone?t.filters.phone:"",email:null!==t.filters.email?t.filters.email:"",orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchUsers(i);case 5:return o=n.sent,t.isRequestOngoing=!1,n.abrupt("return",{data:o.data.users.data,pagination:{totalPages:o.data.users.last_page,currentPage:r}});case 8:case"end":return n.stop()}}),n)})))()},setFilters:function(){this.refreshTable()},clearFilter:function(){this.filters={name:"",email:"",phone:""}},toggleFilter:function(){this.showFilters&&this.clearFilter(),this.showFilters=!this.showFilters},removeUser:function(e){var t=this;return Li(Y().mark((function n(){var r;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:(r=[]).push(e),swal({title:t.$t("general.are_you_sure"),text:t.$tc("users.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var e=Li(Y().mark((function e(n){var a;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=13;break}return e.next=3,t.deleteUser(r);case 3:if(!(a=e.sent).data.success){e.next=8;break}return window.toastr.success(t.$tc("users.deleted_message",1)),t.$refs.table.refresh(),e.abrupt("return",!0);case 8:if("user_attached"!==a.data.error){e.next=11;break}return window.toastr.error(t.$tc("users.user_attached_message"),t.$t("general.action_failed")),e.abrupt("return",!0);case 11:return window.toastr.error(a.data.message),e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return n.stop()}}),n)})))()},removeMultipleUsers:function(){var e=this;return Li(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:e.$t("general.are_you_sure"),text:e.$tc("users.confirm_delete",2),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=Li(Y().mark((function t(n){var r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,e.deleteMultipleUsers();case 3:(r=t.sent).data.success||r.data.users?(window.toastr.success(e.$tc("users.deleted_message",2)),e.$refs.table.refresh()):r.data.error&&window.toastr.error(r.data.message);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()}})};const ji=(0,_.Z)(Ai,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isSuperAdmin?n("base-page",{staticClass:"items"},[n("sw-page-header",{attrs:{title:e.$t("users.title")}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$tc("users.title",2),active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{directives:[{name:"show",rawName:"v-show",value:e.totalUsers,expression:"totalUsers"}],attrs:{variant:"primary-outline",size:"lg"},on:{click:e.toggleFilter}},[e._v("\n "+e._s(e.$t("general.filter"))+"\n "),n(e.filterIcon,{tag:"component",staticClass:"w-4 h-4 ml-2 -mr-1"})],1),e._v(" "),n("sw-button",{staticClass:"ml-4",attrs:{"tag-name":"router-link",to:"users/create",variant:"primary",size:"lg"}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("users.add_user"))+"\n ")],1)],1)],2),e._v(" "),n("slide-y-up-transition",[n("sw-filter-wrapper",{directives:[{name:"show",rawName:"v-show",value:e.showFilters,expression:"showFilters"}],staticClass:"mt-3"},[n("sw-input-group",{staticClass:"flex-1 mt-2 mr-4",attrs:{label:e.$tc("users.name")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",autocomplete:"off"},model:{value:e.filters.name,callback:function(t){e.$set(e.filters,"name",t)},expression:"filters.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2 mr-4",attrs:{label:e.$tc("users.email")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"email",autocomplete:"off"},model:{value:e.filters.email,callback:function(t){e.$set(e.filters,"email",t)},expression:"filters.email"}})],1),e._v(" "),n("sw-input-group",{staticClass:"flex-1 mt-2",attrs:{label:e.$tc("users.phone")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"phone",autocomplete:"off"},model:{value:e.filters.phone,callback:function(t){e.$set(e.filters,"phone",t)},expression:"filters.phone"}})],1),e._v(" "),n("label",{staticClass:"absolute text-sm leading-snug text-gray-900 cursor-pointer",staticStyle:{top:"10px",right:"15px"},on:{click:e.clearFilter}},[e._v("\n "+e._s(e.$t("general.clear_all")))])],1)],1),e._v(" "),n("sw-empty-table-placeholder",{directives:[{name:"show",rawName:"v-show",value:e.showEmptyScreen,expression:"showEmptyScreen"}],attrs:{title:e.$t("users.no_users"),description:e.$t("users.list_of_users")}},[n("astronaut-icon",{staticClass:"mt-5 mb-4"}),e._v(" "),n("sw-button",{attrs:{slot:"actions","tag-name":"router-link",to:"/admin/users/create",size:"lg",variant:"primary-outline"},slot:"actions"},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("users.add_user"))+"\n ")],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showEmptyScreen,expression:"!showEmptyScreen"}],staticClass:"relative table-container"},[n("div",{staticClass:"relative flex items-center justify-between h-10 mt-5 list-none border-b-2 border-gray-200 border-solid"},[n("p",{staticClass:"text-sm"},[e._v("\n "+e._s(e.$t("general.showing"))+": "),n("b",[e._v(e._s(e.users.length))]),e._v("\n\n "+e._s(e.$t("general.of"))+"\n\n "),n("b",[e._v(e._s(e.totalUsers))])]),e._v(" "),n("sw-transition",{attrs:{type:"fade"}},[e.selectedUsers.length?n("sw-dropdown",[n("span",{staticClass:"flex block text-sm font-medium cursor-pointer select-none text-primary-400",attrs:{slot:"activator"},slot:"activator"},[e._v("\n "+e._s(e.$t("general.actions"))+"\n "),n("chevron-down-icon",{staticClass:"h-5"})],1),e._v(" "),n("sw-dropdown-item",{on:{click:e.removeMultipleUsers}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()],1)],1),e._v(" "),n("div",{staticClass:"absolute z-10 items-center pl-4 mt-2 select-none md:mt-12"},[n("sw-checkbox",{staticClass:"hidden md:inline",attrs:{variant:"primary",size:"sm"},on:{change:e.selectAllUsers},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}}),e._v(" "),n("sw-checkbox",{staticClass:"md:hidden",attrs:{label:e.$t("general.select_all"),variant:"primary",size:"sm"},on:{change:e.selectAllUsers},model:{value:e.selectAllFieldStatus,callback:function(t){e.selectAllFieldStatus=t},expression:"selectAllFieldStatus"}})],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{data:e.fetchData,"show-filter":!1,"table-class":"table"}},[n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{staticClass:"custom-control custom-checkbox"},[n("sw-checkbox",{attrs:{id:t.id,value:t.id,variant:"primary",size:"sm"},model:{value:e.selectField,callback:function(t){e.selectField=t},expression:"selectField"}})],1)}}],null,!1,3150036800)}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("users.name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("users.name")))]),e._v(" "),n("router-link",{staticClass:"font-medium text-primary-500",attrs:{to:{path:"users/"+t.id+"/edit"}}},[e._v("\n "+e._s(t.name)+"\n ")])]}}],null,!1,2266017303)}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("users.email"),show:"email"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("users.phone"),show:"phone"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("users.phone")))]),e._v(" "),n("span",[e._v(e._s(t.phone?t.phone:"No Contact")+" ")])]}}],null,!1,3015326942)}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("users.added_on"),"sort-as":"created_at",show:"formattedCreatedAt"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(" "+e._s(e.$t("users.action"))+" ")]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{"tag-name":"router-link",to:"users/"+t.id+"/edit"}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeUser(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}],null,!1,2310025438)})],1)],1)],1):e._e()}),[],!1,null,null,null).exports;function $i(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Pi(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){$i(i,r,a,o,s,"next",e)}function s(e){$i(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(n),!0).forEach((function(t){zi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ii=n(379),Fi=Ii.required,Hi=Ii.minLength,Ri=Ii.email,Bi=(Ii.numeric,Ii.minValue,Ii.maxLength,Ii.requiredIf);const qi={data:function(){return{isLoading:!1,title:"Add User",formData:{name:"",email:null,password:null,phone:null}}},computed:Ni(Ni({},(0,i.Se)("user",["currentUser"])),{},{isSuperAdmin:function(){return"super admin"==this.currentUser.role},pageTitle:function(){return"users.edit"===this.$route.name?this.$t("users.edit_user"):this.$t("users.new_user")},isEdit:function(){return"users.edit"===this.$route.name},nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?this.$v.formData.name.minLength?void 0:this.$tc("validation.name_min_length",this.$v.formData.name.$params.minLength.min,{count:this.$v.formData.name.$params.minLength.min}):this.$t("validation.required"):""},emailError:function(){return this.$v.formData.email.$error?this.$v.formData.email.email?this.$v.formData.email.required?void 0:this.$tc("validation.required"):this.$tc("validation.email_incorrect"):""},passwordError:function(){return this.$v.formData.password.$error?this.$v.formData.password.required?this.$v.formData.password.minLength?void 0:this.$tc("validation.password_min_length",this.$v.formData.password.$params.minLength.min,{count:this.$v.formData.password.$params.minLength.min}):this.$t("validation.required"):""}}),created:function(){this.isSuperAdmin||this.$router.push("/admin/dashboard"),this.isEdit&&this.loadEditData()},mounted:function(){this.$v.formData.$reset()},validations:{formData:{name:{required:Fi,minLength:Hi(3)},email:{email:Ri,required:Fi},password:{required:Bi((function(){return!this.isEdit})),minLength:Hi(8)}}},methods:Ni(Ni({},(0,i.nv)("users",["addUser","fetchUser","updateUser"])),{},{loadEditData:function(){var e=this;return Pi(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchUser(e.$route.params.id);case 2:(n=t.sent).data&&(e.formData=Ni(Ni({},e.formData),n.data.user));case 4:case"end":return t.stop()}}),t)})))()},submitUser:function(){var e=this;return Pi(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:if(t.prev=3,e.isLoading=!0,!e.isEdit){t.next=13;break}return t.next=8,e.updateUser(e.formData);case 8:(n=t.sent).data.success&&(window.toastr.success(e.$tc("users.updated_message")),e.$router.push("/admin/users"),e.isLoading=!1),n.data.error&&window.toastr.error(e.$t("validation.email_already_taken")),t.next=22;break;case 13:return t.next=15,e.addUser(e.formData);case 15:if(!(n=t.sent).data.success){t.next=22;break}if(e.isLoading=!1,e.isEdit){t.next=22;break}return window.toastr.success(e.$tc("users.created_message")),e.$router.push("/admin/users"),t.abrupt("return",!0);case 22:t.next=27;break;case 24:t.prev=24,t.t0=t.catch(3),t.t0.response.data.errors.email&&(e.isLoading=!1);case 27:case"end":return t.stop()}}),t,null,[[3,24]])})))()}})};const Vi=(0,_.Z)(qi,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isSuperAdmin?n("base-page",{staticClass:"item-create"},[n("sw-page-header",{staticClass:"mb-3",attrs:{title:e.pageTitle}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{to:"/admin/dashboard",title:e.$t("general.home")}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{to:"/admin/users",title:e.$tc("users.user",2)}}),e._v(" "),"users.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("users.edit_user"),active:""}}):n("sw-breadcrumb-item",{attrs:{to:"#",title:e.$t("users.new_user"),active:""}})],1),e._v(" "),n("template",{slot:"actions"})],2),e._v(" "),n("div",{staticClass:"grid grid-cols-12"},[n("div",{staticClass:"col-span-12 md:col-span-8"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitUser(t)}}},[n("sw-card",[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("users.name"),error:e.nameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.name.$error,focus:"",type:"text",name:"name"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name","string"==typeof t?t.trim():t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("users.email"),error:e.emailError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.email.$error,type:"text",name:"email","tab-index":"3"},on:{input:function(t){return e.$v.formData.email.$touch()}},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email","string"==typeof t?t.trim():t)},expression:"formData.email"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$tc("users.password"),error:e.passwordError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.password.$error,type:"password"},on:{input:function(t){return e.$v.formData.password.$touch()}},model:{value:e.formData.password,callback:function(t){e.$set(e.formData,"password",t)},expression:"formData.password"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4 mb-6",attrs:{label:e.$t("users.phone")}},[n("sw-input",{attrs:{type:"text",name:"phone","tab-index":"4"},model:{value:e.formData.phone,callback:function(t){e.$set(e.formData,"phone","string"==typeof t?t.trim():t)},expression:"formData.phone"}})],1),e._v(" "),n("div",{staticClass:"mt-6 mb-4"},[n("sw-button",{staticClass:"flex justify-center w-full md:w-auto",attrs:{loading:e.isLoading,variant:"primary",type:"submit",size:"lg"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.isEdit?e.$t("users.update_user"):e.$t("users.save_user"))+"\n ")],1)],1)],1)],1)])])],1):e._e()}),[],!1,null,null,null).exports;function Wi(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ui(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Wi(i,r,a,o,s,"next",e)}function s(e){Wi(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ki(Object(n),!0).forEach((function(t){Gi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ki(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ji=n(379).required;const Xi={components:{DocumentTextIcon:o.YHR},data:function(){return{reportTypes:["By Customer","By Item"],selectedType:"By Customer",dateRange:["Today","This Week","This Month","This Quarter","This Year","Previous Week","Previous Month","Previous Quarter","Previous Year","Custom"],selectedRange:"This Month",range:new Date,formData:{from_date:on()().startOf("month").toString(),to_date:on()().endOf("month").toString()},url:null,customerSiteURL:null,itemsSiteURL:null}},validations:{range:{required:Ji},formData:{from_date:{required:Ji},to_date:{required:Ji}}},computed:Zi(Zi({},(0,i.Se)("company",["getSelectedCompany"])),{},{getReportUrl:function(){return this.url},dateRangeError:function(){return this.$v.range.$error?this.$v.range.required?void 0:this.$t("validation.required"):""},fromDateError:function(){return this.$v.formData.from_date.$error?this.$v.formData.from_date.required?void 0:this.$t("validation.required"):""},toDateError:function(){return this.$v.formData.to_date.$error?this.$v.formData.to_date.required?void 0:this.$t("validation.required"):""},customerDateRangeUrl:function(){return"".concat(this.customerSiteURL,"?from_date=").concat(on()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(on()(this.formData.to_date).format("YYYY-MM-DD"))},itemDateRangeUrl:function(){return"".concat(this.itemsSiteURL,"?from_date=").concat(on()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(on()(this.formData.to_date).format("YYYY-MM-DD"))}}),watch:{range:function(e){this.formData.from_date=on()(e).startOf("year").toString(),this.formData.to_date=on()(e).endOf("year").toString()}},mounted:function(){this.customerSiteURL="/reports/sales/customers/".concat(this.getSelectedCompany.unique_hash),this.itemsSiteURL="/reports/sales/items/".concat(this.getSelectedCompany.unique_hash),this.getInitialReport()},methods:Zi(Zi({},(0,i.nv)("salesReport",["loadLinkByCustomer","loadLinkByItems"])),{},{getThisDate:function(e,t){return on()()[e](t).toString()},getPreDate:function(e,t){return on()().subtract(1,t)[e](t).toString()},onChangeDateRange:function(){switch(this.selectedRange){case"Today":this.formData.from_date=on()().toString(),this.formData.to_date=on()().toString();break;case"This Week":this.formData.from_date=this.getThisDate("startOf","isoWeek"),this.formData.to_date=this.getThisDate("endOf","isoWeek");break;case"This Month":this.formData.from_date=this.getThisDate("startOf","month"),this.formData.to_date=this.getThisDate("endOf","month");break;case"This Quarter":this.formData.from_date=this.getThisDate("startOf","quarter"),this.formData.to_date=this.getThisDate("endOf","quarter");break;case"This Year":this.formData.from_date=this.getThisDate("startOf","year"),this.formData.to_date=this.getThisDate("endOf","year");break;case"Previous Week":this.formData.from_date=this.getPreDate("startOf","isoWeek"),this.formData.to_date=this.getPreDate("endOf","isoWeek");break;case"Previous Month":this.formData.from_date=this.getPreDate("startOf","month"),this.formData.to_date=this.getPreDate("endOf","month");break;case"Previous Quarter":this.formData.from_date=this.getPreDate("startOf","quarter"),this.formData.to_date=this.getPreDate("endOf","quarter");break;case"Previous Year":this.formData.from_date=this.getPreDate("startOf","year"),this.formData.to_date=this.getPreDate("endOf","year")}},setRangeToCustom:function(){this.selectedRange="Custom"},getInitialReport:function(){var e=this;return Ui(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("By Customer"!==e.selectedType){t.next=3;break}return e.url=e.customerDateRangeUrl,t.abrupt("return",!0);case 3:return e.url=e.itemDateRangeUrl,t.abrupt("return",!0);case 5:case"end":return t.stop()}}),t)})))()},viewReportsPDF:function(){var e=this;return Ui(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getReports();case 2:return n=t.sent,window.open(e.getReportUrl,"_blank"),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()},getReports:function(){var e=arguments,t=this;return Ui(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.length>0&&void 0!==e[0]&&e[0],t.$v.range.$touch(),t.$v.formData.$touch(),!t.$v.$invalid){n.next=5;break}return n.abrupt("return",!0);case 5:if("By Customer"!==t.selectedType){n.next=8;break}return t.url=t.customerDateRangeUrl,n.abrupt("return",!0);case 8:return t.url=t.itemDateRangeUrl,n.abrupt("return",!0);case 10:case"end":return n.stop()}}),n)})))()},downloadReport:function(){var e=this;if(!this.getReports())return!1;window.open(this.getReportUrl+"&download=true"),setTimeout((function(){return"By Customer"===e.selectedType?(e.url=e.customerDateRangeUrl,!0):(e.url=e.itemDateRangeUrl,!0)}),200)}})};const Qi=(0,_.Z)(Xi,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"grid gap-8 md:grid-cols-12"},[n("div",{staticClass:"col-span-8 mt-12 md:col-span-4"},[n("div",{staticClass:"grid grid-cols-12"},[n("sw-input-group",{staticClass:"col-span-12 md:col-span-8",attrs:{label:e.$t("reports.sales.date_range"),error:e.dateRangeError}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.dateRange,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeDateRange},model:{value:e.selectedRange,callback:function(t){e.selectedRange=t},expression:"selectedRange"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 mt-6 md:gap-10 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("reports.sales.from_date"),error:e.fromDateError}},[n("base-date-picker",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.from_date.$error,"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.formData.from_date.$touch()}},model:{value:e.formData.from_date,callback:function(t){e.$set(e.formData,"from_date",t)},expression:"formData.from_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5 md:mt-0",attrs:{label:e.$t("reports.sales.to_date"),error:e.toDateError}},[n("base-date-picker",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.to_date.$error,"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.formData.to_date.$touch()}},model:{value:e.formData.to_date,callback:function(t){e.$set(e.formData,"to_date",t)},expression:"formData.to_date"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-12 mt-6 md:mt-8"},[n("sw-input-group",{staticClass:"col-span-12 md:col-span-8",attrs:{label:e.$t("reports.sales.report_type")}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.reportTypes,"allow-empty":!1,"show-labels":!1,placeholder:e.$t("reports.sales.report_type")},on:{input:e.getInitialReport},model:{value:e.selectedType,callback:function(t){e.selectedType=t},expression:"selectedType"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"content-center hidden mt-0 w-md md:flex md:mt-8",attrs:{variant:"primary-outline",type:"submit"},on:{click:function(t){return t.preventDefault(),e.getReports()}}},[e._v("\n "+e._s(e.$t("reports.update_report"))+"\n ")])],1),e._v(" "),n("div",{staticClass:"col-span-8 mt-0 md:mt-12"},[n("iframe",{staticClass:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex",attrs:{src:e.getReportUrl}}),e._v(" "),n("a",{staticClass:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white whitespace-nowrap rounded md:hidden bg-primary-500",on:{click:e.viewReportsPDF}},[n("document-text-icon"),e._v(" "),n("span",[e._v(e._s(e.$t("reports.view_pdf")))])],1)])])}),[],!1,null,null,null).exports;function eo(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function to(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){eo(i,r,a,o,s,"next",e)}function s(e){eo(i,r,a,o,s,"throw",e)}o(void 0)}))}}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?no(Object(n),!0).forEach((function(t){ao(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var io=n(379).required;const oo={components:{DocumentTextIcon:o.YHR},data:function(){return{range:new Date,dateRange:["Today","This Week","This Month","This Quarter","This Year","Previous Week","Previous Month","Previous Quarter","Previous Year","Custom"],selectedRange:"This Month",formData:{from_date:on()().startOf("month").toString(),to_date:on()().endOf("month").toString()},url:null,siteURL:null}},validations:{range:{required:io},formData:{from_date:{required:io},to_date:{required:io}}},computed:ro(ro({},(0,i.Se)("company",["getSelectedCompany"])),{},{getReportUrl:function(){return this.url},dateRangeError:function(){return this.$v.range.$error?this.$v.range.required?void 0:this.$t("validation.required"):""},fromDateError:function(){return this.$v.formData.from_date.$error?this.$v.formData.from_date.required?void 0:this.$t("validation.required"):""},toDateError:function(){return this.$v.formData.to_date.$error?this.$v.formData.to_date.required?void 0:this.$t("validation.required"):""},dateRangeUrl:function(){return"".concat(this.siteURL,"?from_date=").concat(on()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(on()(this.formData.to_date).format("YYYY-MM-DD"))}}),watch:{range:function(e){this.formData.from_date=on()(e).startOf("year").toString(),this.formData.to_date=on()(e).endOf("year").toString()}},mounted:function(){this.siteURL="/reports/expenses/".concat(this.getSelectedCompany.unique_hash),this.url=this.dateRangeUrl},methods:{getThisDate:function(e,t){return on()()[e](t).toString()},getPreDate:function(e,t){return on()().subtract(1,t)[e](t).toString()},onChangeDateRange:function(){switch(this.selectedRange){case"Today":this.formData.from_date=on()().toString(),this.formData.to_date=on()().toString();break;case"This Week":this.formData.from_date=this.getThisDate("startOf","isoWeek"),this.formData.to_date=this.getThisDate("endOf","isoWeek");break;case"This Month":this.formData.from_date=this.getThisDate("startOf","month"),this.formData.to_date=this.getThisDate("endOf","month");break;case"This Quarter":this.formData.from_date=this.getThisDate("startOf","quarter"),this.formData.to_date=this.getThisDate("endOf","quarter");break;case"This Year":this.formData.from_date=this.getThisDate("startOf","year"),this.formData.to_date=this.getThisDate("endOf","year");break;case"Previous Week":this.formData.from_date=this.getPreDate("startOf","isoWeek"),this.formData.to_date=this.getPreDate("endOf","isoWeek");break;case"Previous Month":this.formData.from_date=this.getPreDate("startOf","month"),this.formData.to_date=this.getPreDate("endOf","month");break;case"Previous Quarter":this.formData.from_date=this.getPreDate("startOf","quarter"),this.formData.to_date=this.getPreDate("endOf","quarter");break;case"Previous Year":this.formData.from_date=this.getPreDate("startOf","year"),this.formData.to_date=this.getPreDate("endOf","year")}},setRangeToCustom:function(){this.selectedRange="Custom"},viewReportsPDF:function(){var e=this;return to(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getReports();case 2:return n=t.sent,window.open(e.getReportUrl,"_blank"),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()},getReports:function(){var e=arguments,t=this;return to(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.length>0&&void 0!==e[0]&&e[0],t.$v.range.$touch(),t.$v.formData.$touch(),!t.$v.$invalid){n.next=5;break}return n.abrupt("return",!0);case 5:return t.url=t.dateRangeUrl,n.abrupt("return",!0);case 7:case"end":return n.stop()}}),n)})))()},downloadReport:function(){var e=this;if(!this.getReports())return!1;window.open(this.getReportUrl+"&download=true"),setTimeout((function(){e.url=e.dateRangeUrl}),200)}}};const so=(0,_.Z)(oo,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"grid gap-8 md:grid-cols-12"},[n("div",{staticClass:"col-span-8 mt-12 md:col-span-4"},[n("div",{staticClass:"grid grid-cols-12"},[n("sw-input-group",{staticClass:"col-span-12 md:col-span-8",attrs:{label:e.$t("reports.expenses.date_range"),error:e.dateRangeError}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.dateRange,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeDateRange},model:{value:e.selectedRange,callback:function(t){e.selectedRange=t},expression:"selectedRange"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 mt-6 md:gap-10 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("reports.expenses.from_date"),error:e.fromDateError}},[n("base-date-picker",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.from_date.$error,"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.formData.from_date.$touch()}},model:{value:e.formData.from_date,callback:function(t){e.$set(e.formData,"from_date",t)},expression:"formData.from_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5 md:mt-0",attrs:{label:e.$t("reports.expenses.to_date"),error:e.toDateError}},[n("base-date-picker",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.to_date.$error,"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.formData.to_date.$touch()}},model:{value:e.formData.to_date,callback:function(t){e.$set(e.formData,"to_date",t)},expression:"formData.to_date"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"content-center hidden mt-0 w-md md:flex md:mt-8",attrs:{variant:"primary-outline"},on:{click:function(t){return e.getReports()}}},[e._v("\n "+e._s(e.$t("reports.update_report"))+"\n ")])],1),e._v(" "),n("div",{staticClass:"col-span-8 mt-0 md:mt-12"},[n("iframe",{staticClass:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex",attrs:{src:e.getReportUrl}}),e._v(" "),n("a",{staticClass:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white whitespace-nowrap rounded md:hidden bg-primary-500",on:{click:e.viewReportsPDF}},[n("document-text-icon"),e._v(" "),n("span",[e._v(e._s(e.$t("reports.view_pdf")))])],1)])])}),[],!1,null,null,null).exports;function lo(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function co(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){lo(i,r,a,o,s,"next",e)}function s(e){lo(i,r,a,o,s,"throw",e)}o(void 0)}))}}function uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(n),!0).forEach((function(t){mo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fo=n(379).required;const ho={components:{DocumentTextIcon:o.YHR},data:function(){return{dateRange:["Today","This Week","This Month","This Quarter","This Year","Previous Week","Previous Month","Previous Quarter","Previous Year","Custom"],selectedRange:"This Month",range:new Date,formData:{from_date:on()().startOf("month").toString(),to_date:on()().endOf("month").toString()},url:null,siteURL:null}},validations:{range:{required:fo},formData:{from_date:{required:fo},to_date:{required:fo}}},computed:po(po({},(0,i.Se)("company",["getSelectedCompany"])),{},{getReportUrl:function(){return this.url},dateRangeError:function(){return this.$v.range.$error?this.$v.range.required?void 0:this.$t("validation.required"):""},fromDateError:function(){return this.$v.formData.from_date.$error?this.$v.formData.from_date.required?void 0:this.$t("validation.required"):""},toDateError:function(){if(this.$v.formData.to_date.$error,!this.$v.formData.to_date.required)return this.$t("validation.required")},dateRangeUrl:function(){return"".concat(this.siteURL,"?from_date=").concat(on()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(on()(this.formData.to_date).format("YYYY-MM-DD"))}}),watch:{range:function(e){this.formData.from_date=on()(e).startOf("year").toString(),this.formData.to_date=on()(e).endOf("year").toString()}},mounted:function(){this.siteURL="/reports/profit-loss/".concat(this.getSelectedCompany.unique_hash),this.url=this.dateRangeUrl},methods:{getThisDate:function(e,t){return on()()[e](t).toString()},getPreDate:function(e,t){return on()().subtract(1,t)[e](t).toString()},onChangeDateRange:function(){switch(this.selectedRange){case"Today":this.formData.from_date=on()().toString(),this.formData.to_date=on()().toString();break;case"This Week":this.formData.from_date=this.getThisDate("startOf","isoWeek"),this.formData.to_date=this.getThisDate("endOf","isoWeek");break;case"This Month":this.formData.from_date=this.getThisDate("startOf","month"),this.formData.to_date=this.getThisDate("endOf","month");break;case"This Quarter":this.formData.from_date=this.getThisDate("startOf","quarter"),this.formData.to_date=this.getThisDate("endOf","quarter");break;case"This Year":this.formData.from_date=this.getThisDate("startOf","year"),this.formData.to_date=this.getThisDate("endOf","year");break;case"Previous Week":this.formData.from_date=this.getPreDate("startOf","isoWeek"),this.formData.to_date=this.getPreDate("endOf","isoWeek");break;case"Previous Month":this.formData.from_date=this.getPreDate("startOf","month"),this.formData.to_date=this.getPreDate("endOf","month");break;case"Previous Quarter":this.formData.from_date=this.getPreDate("startOf","quarter"),this.formData.to_date=this.getPreDate("endOf","quarter");break;case"Previous Year":this.formData.from_date=this.getPreDate("startOf","year"),this.formData.to_date=this.getPreDate("endOf","year")}},setRangeToCustom:function(){this.selectedRange="Custom"},viewReportsPDF:function(){var e=this;return co(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getReports();case 2:return n=t.sent,window.open(e.getReportUrl,"_blank"),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()},getReports:function(){var e=arguments,t=this;return co(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.length>0&&void 0!==e[0]&&e[0],t.$v.range.$touch(),t.$v.formData.$touch(),!t.$v.$invalid){n.next=5;break}return n.abrupt("return",!0);case 5:return t.url=t.dateRangeUrl,n.abrupt("return",!0);case 7:case"end":return n.stop()}}),n)})))()},downloadReport:function(){var e=this;if(!this.getReports())return!1;window.open(this.getReportUrl+"&download=true"),setTimeout((function(){e.url=e.dateRangeUrl}),200)}}};const _o=(0,_.Z)(ho,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"grid gap-8 md:grid-cols-12"},[n("div",{staticClass:"col-span-8 mt-12 md:col-span-4"},[n("div",{staticClass:"grid grid-cols-12"},[n("sw-input-group",{staticClass:"col-span-12 md:col-span-8",attrs:{label:e.$t("reports.profit_loss.date_range"),error:e.dateRangeError}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.dateRange,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeDateRange},model:{value:e.selectedRange,callback:function(t){e.selectedRange=t},expression:"selectedRange"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 mt-6 md:gap-10 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("reports.profit_loss.from_date"),error:e.fromDateError}},[n("base-date-picker",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.from_date.$error,"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.formData.from_date.$touch()}},model:{value:e.formData.from_date,callback:function(t){e.$set(e.formData,"from_date",t)},expression:"formData.from_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5 md:mt-0",attrs:{label:e.$t("reports.profit_loss.to_date"),error:e.toDateError}},[n("base-date-picker",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.to_date.$error,"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.formData.to_date.$touch()}},model:{value:e.formData.to_date,callback:function(t){e.$set(e.formData,"to_date",t)},expression:"formData.to_date"}})],1)],1),e._v(" "),n("div",{staticClass:"mt-0 md:mt-8"},[n("sw-button",{staticClass:"content-center hidden text-sm w-md md:flex",attrs:{variant:"primary-outline"},on:{click:function(t){return e.getReports()}}},[e._v("\n "+e._s(e.$t("reports.update_report"))+"\n ")])],1)]),e._v(" "),n("div",{staticClass:"col-span-8 mt-0 md:mt-12"},[n("iframe",{staticClass:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex",attrs:{src:e.getReportUrl}}),e._v(" "),n("a",{staticClass:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white whitespace-nowrap rounded md:hidden bg-primary-500",on:{click:e.viewReportsPDF}},[n("document-text-icon"),e._v(" "),n("span",[e._v(e._s(e.$t("reports.view_pdf")))])],1)])])}),[],!1,null,null,null).exports;function vo(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function go(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){vo(i,r,a,o,s,"next",e)}function s(e){vo(i,r,a,o,s,"throw",e)}o(void 0)}))}}function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach((function(t){wo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xo=n(379).required;const ko={components:{DocumentTextIcon:o.YHR},data:function(){return{dateRange:["Today","This Week","This Month","This Quarter","This Year","Previous Week","Previous Month","Previous Quarter","Previous Year","Custom"],selectedRange:"This Month",range:new Date,formData:{from_date:on()().startOf("month").toString(),to_date:on()().endOf("month").toString()},url:null,siteURL:null}},validations:{range:{required:xo},formData:{from_date:{required:xo},to_date:{required:xo}}},computed:bo(bo({},(0,i.Se)("company",["getSelectedCompany"])),{},{getReportUrl:function(){return this.url},dateRangeError:function(){return this.$v.range.$error?this.$v.range.required?void 0:this.$t("validation.required"):""},fromDateError:function(){return this.$v.formData.from_date.$error?this.$v.formData.from_date.required?void 0:this.$t("validation.required"):""},toDateError:function(){return this.$v.formData.to_date.$error?this.$v.formData.to_date.required?void 0:this.$t("validation.required"):""},dateRangeUrl:function(){return"".concat(this.siteURL,"?from_date=").concat(on()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(on()(this.formData.to_date).format("YYYY-MM-DD"))}}),watch:{range:function(e){this.formData.from_date=on()(e).startOf("year").toString(),this.formData.to_date=on()(e).endOf("year").toString()}},mounted:function(){this.siteURL="/reports/tax-summary/".concat(this.getSelectedCompany.unique_hash),this.url=this.dateRangeUrl},methods:{getThisDate:function(e,t){return on()()[e](t).toString()},getPreDate:function(e,t){return on()().subtract(1,t)[e](t).toString()},onChangeDateRange:function(){switch(this.selectedRange){case"Today":this.formData.from_date=on()().toString(),this.formData.to_date=on()().toString();break;case"This Week":this.formData.from_date=this.getThisDate("startOf","isoWeek"),this.formData.to_date=this.getThisDate("endOf","isoWeek");break;case"This Month":this.formData.from_date=this.getThisDate("startOf","month"),this.formData.to_date=this.getThisDate("endOf","month");break;case"This Quarter":this.formData.from_date=this.getThisDate("startOf","quarter"),this.formData.to_date=this.getThisDate("endOf","quarter");break;case"This Year":this.formData.from_date=this.getThisDate("startOf","year"),this.formData.to_date=this.getThisDate("endOf","year");break;case"Previous Week":this.formData.from_date=this.getPreDate("startOf","isoWeek"),this.formData.to_date=this.getPreDate("endOf","isoWeek");break;case"Previous Month":this.formData.from_date=this.getPreDate("startOf","month"),this.formData.to_date=this.getPreDate("endOf","month");break;case"Previous Quarter":this.formData.from_date=this.getPreDate("startOf","quarter"),this.formData.to_date=this.getPreDate("endOf","quarter");break;case"Previous Year":this.formData.from_date=this.getPreDate("startOf","year"),this.formData.to_date=this.getPreDate("endOf","year")}},setRangeToCustom:function(){this.selectedRange="Custom"},viewReportsPDF:function(){var e=this;return go(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getReports();case 2:return n=t.sent,window.open(e.getReportUrl,"_blank"),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()},getReports:function(){var e=arguments,t=this;return go(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.length>0&&void 0!==e[0]&&e[0],t.$v.range.$touch(),t.$v.formData.$touch(),!t.$v.$invalid){n.next=5;break}return n.abrupt("return",!1);case 5:return t.url=t.dateRangeUrl,n.abrupt("return",!0);case 7:case"end":return n.stop()}}),n)})))()},downloadReport:function(){var e=this;if(!this.getReports())return!1;window.open(this.url+"&download=true"),setTimeout((function(){e.url=e.dateRangeUrl}),200)}}};const Do=(0,_.Z)(ko,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"grid gap-8 md:grid-cols-12"},[n("div",{staticClass:"col-span-8 mt-12 md:col-span-4"},[n("div",{staticClass:"grid grid-cols-12"},[n("sw-input-group",{staticClass:"col-span-12 md:col-span-8",attrs:{label:e.$t("reports.taxes.date_range"),error:e.dateRangeError}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.dateRange,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeDateRange},model:{value:e.selectedRange,callback:function(t){e.selectedRange=t},expression:"selectedRange"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 mt-6 md:gap-10 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("reports.taxes.from_date"),error:e.fromDateError}},[n("base-date-picker",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.from_date.$error,"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.formData.from_date.$touch()}},model:{value:e.formData.from_date,callback:function(t){e.$set(e.formData,"from_date",t)},expression:"formData.from_date"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5 md:mt-0",attrs:{label:e.$t("reports.taxes.to_date"),error:e.toDateError}},[n("base-date-picker",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.to_date.$error,"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$v.formData.to_date.$touch()}},model:{value:e.formData.to_date,callback:function(t){e.$set(e.formData,"to_date",t)},expression:"formData.to_date"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"content-center hidden mt-0 w-md md:flex md:mt-8",attrs:{variant:"primary-outline"},on:{click:function(t){return e.getReports()}}},[e._v("\n "+e._s(e.$t("reports.update_report"))+"\n ")])],1),e._v(" "),n("div",{staticClass:"col-span-8 mt-0 md:mt-12"},[n("iframe",{staticClass:"hidden w-full h-screen border-gray-100 border-solid rounded md:flex",attrs:{src:e.getReportUrl}}),e._v(" "),n("a",{staticClass:"flex items-center justify-center h-10 px-5 py-1 text-sm font-medium leading-none text-center text-white whitespace-nowrap rounded md:hidden bg-primary-500",on:{click:e.viewReportsPDF}},[n("document-text-icon"),e._v(" "),n("span",[e._v(e._s(e.$t("reports.view_pdf")))])],1)])])}),[],!1,null,null,null).exports;const Mo={components:{DownloadIcon:o._8t},data:function(){return{activeTab:"SALES"}},watch:{"$route.path":function(e){"/admin/reports"===e&&this.$router.push("/admin/reports/sales")}},created:function(){"/admin/reports"===this.$route.path&&this.$router.push("/admin/reports/sales")},methods:{onDownload:function(){this.$refs.report.downloadReport()},setActiveTab:function(e){this.activeTab=e}}};var So=n(788),Co={insert:"head",singleton:!1};m()(So.Z,Co);So.Z.locals;const Lo=(0,_.Z)(Mo,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",{staticClass:"profit-loss-reports reports"},[n("sw-page-header",{attrs:{title:e.$tc("reports.report",2)}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{title:e.$t("general.home"),to:"/admin/dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("reports.report",2),to:"/admin/reports",active:""}})],1),e._v(" "),n("template",{slot:"actions"},[n("sw-button",{attrs:{size:"lg",variant:"primary"},on:{click:function(t){return e.onDownload()}}},[n("download-icon",{staticClass:"h-5 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("reports.download_pdf"))+"\n ")],1)],1)],2),e._v(" "),n("div",{staticClass:"row"},[n("sw-tabs",[n("sw-tab-item",{attrs:{title:e.$t("reports.sales.sales"),route:"/admin/reports/sales"}}),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("reports.profit_loss.profit_loss"),route:"/admin/reports/profit-loss"}}),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("reports.expenses.expenses"),route:"/admin/reports/expenses"}}),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("reports.taxes.taxes"),route:"/admin/reports/taxes"}})],1)],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[(e.activeTab,n("div",[n("router-view",{ref:"report"})],1))])],1)}),[],!1,null,"135b706d",null).exports;const To={components:{UserIcon:s.tBG,OfficeBuildingIcon:s.Pf7,PencilAltIcon:o.sCx,CogIcon:o.IEm,CheckCircleIcon:s.rE2,ClipboardListIcon:s.zTD,MailIcon:o.bV6,BellIcon:s.Dkj,FolderIcon:o.ROc,RefreshIcon:o.DuK,CubeIcon:s.FMB,CloudUploadIcon:o.s68,DatabaseIcon:o.VHe,CreditCardIcon:o.ciH,ClipboardCheckIcon:s.C2q},data:function(){return{currentSetting:{link:"/admin/settings/user-profile",title:"settings.menu_title.account_settings",icon:"user-icon"},menuItems:[{link:"/admin/settings/user-profile",title:"settings.menu_title.account_settings",icon:"user-icon"},{link:"/admin/settings/company-info",title:"settings.menu_title.company_information",icon:"office-building-icon"},{link:"/admin/settings/preferences",title:"settings.menu_title.preferences",icon:"cog-icon"},{link:"/admin/settings/customization",title:"settings.menu_title.customization",icon:"pencil-alt-icon"},{link:"/admin/settings/notifications",title:"settings.menu_title.notifications",icon:"bell-icon"},{link:"/admin/settings/tax-types",title:"settings.menu_title.tax_types",icon:"check-circle-icon"},{link:"/admin/settings/payment-mode",title:"settings.menu_title.payment_modes",icon:"credit-card-icon"},{link:"/admin/settings/custom-fields",title:"settings.menu_title.custom_fields",icon:"cube-icon"},{link:"/admin/settings/notes",title:"settings.menu_title.notes",icon:"clipboard-check-icon"},{link:"/admin/settings/expense-category",title:"settings.menu_title.expense_category",icon:"clipboard-list-icon"},{link:"/admin/settings/mail-configuration",title:"settings.mail.mail_config",icon:"mail-icon"},{link:"/admin/settings/file-disk",title:"settings.menu_title.file_disk",icon:"folder-icon"},{link:"/admin/settings/backup",title:"settings.menu_title.backup",icon:"database-icon"},{link:"/admin/settings/update-app",title:"settings.menu_title.update_app",icon:"refresh-icon"}]}},watch:{"$route.path":function(e){"/admin/settings"===e&&this.$router.push("/admin/settings/user-profile")}},mounted:function(){var e=this;this.currentSetting=this.menuItems.find((function(t){return t.link==e.$route.path}))},created:function(){"/admin/settings"===this.$route.path&&this.$router.push("/admin/settings/user-profile")},methods:{getCustomLabel:function(e){var t=e.title;return this.$t(t)},hasActiveUrl:function(e){return this.$route.path.indexOf(e)>-1},navigateToSetting:function(e){this.$router.push(e.link)}}};const Oo=(0,_.Z)(To,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("base-page",[n("div",{staticClass:"pb-6"},[n("sw-page-header",{attrs:{title:e.$tc("settings.setting",1)}},[n("sw-breadcrumb",{attrs:{slot:"breadcrumbs"},slot:"breadcrumbs"},[n("sw-breadcrumb-item",{attrs:{title:e.$t("general.home"),to:"/admin/dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("settings.setting",2),to:"/admin/settings/user-profile",active:""}})],1)],1)],1),e._v(" "),n("div",{staticClass:"w-full mb-6 select-wrapper xl:hidden"},[n("sw-select",{attrs:{options:e.menuItems,searchable:!0,"show-labels":!1,"allow-empty":!1,"custom-label":e.getCustomLabel},on:{input:e.navigateToSetting},model:{value:e.currentSetting,callback:function(t){e.currentSetting=t},expression:"currentSetting"}})],1),e._v(" "),n("div",{staticClass:"grid md:grid-cols-12"},[n("div",{staticClass:"hidden col-span-3 mt-1 xl:block"},[n("sw-list",e._l(e.menuItems,(function(t,r){return n("sw-list-item",{key:r,staticClass:"py-3",attrs:{title:e.$t(t.title),to:t.link,active:e.hasActiveUrl(t.link),"tag-name":"router-link"}},[n(t.icon,{tag:"component",staticClass:"h-5",attrs:{slot:"icon"},slot:"icon"})],1)})),1)],1),e._v(" "),n("div",{staticClass:"col-span-12 xl:col-span-9"},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])}),[],!1,null,null,null).exports;function Eo(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ao(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Eo(i,r,a,o,s,"next",e)}function s(e){Eo(i,r,a,o,s,"throw",e)}o(void 0)}))}}function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yo=n(379),No=Yo.required,zo=Yo.email,Io=Yo.maxLength;const Fo={components:{CloudUploadIcon:o.s68},data:function(){return{isFetchingData:!1,formData:{name:null,email:"",phone:"",zip:"",address_street_1:"",address_street_2:"",website:"",country_id:null,state:"",city:""},isLoading:!1,country:null,passData:[],fileSendUrl:"/api/v1/settings/company",previewLogo:null,fileObject:null,cropperOutputMime:"",isRequestOnGoing:!1}},watch:{country:function(e){if(this.formData.country_id=e.id,this.isFetchingData)return!0}},validations:{formData:{name:{required:No},country_id:{required:No},email:{email:zo},address_street_1:{maxLength:Io(255)},address_street_2:{maxLength:Io(255)}}},computed:$o($o({},(0,i.Se)(["countries"])),{},{nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?void 0:this.$tc("validation.required"):""},countryError:function(){return this.$v.formData.country_id.$error?this.$v.formData.country_id.required?void 0:this.$tc("validation.required"):""},address1Error:function(){return this.$v.formData.address_street_1.$error?this.$v.formData.address_street_1.maxLength?void 0:this.$tc("validation.address_maxlength"):""},address2Error:function(){return this.$v.formData.address_street_2.$error?this.$v.formData.address_street_2.maxLength?void 0:this.$tc("validation.address_maxlength"):""}}),mounted:function(){this.setInitialData()},methods:$o($o($o({},(0,i.nv)("company",["updateCompany","updateCompanyLogo"])),(0,i.nv)("user",["fetchCurrentUser"])),{},{onUploadHandler:function(e){this.previewLogo=e.getCroppedCanvas().toDataURL(this.cropperOutputMime)},onHandleUploadError:function(){window.toastr.error("Oops! Something went wrong...")},onChange:function(e){this.cropperOutputMime=e.type,this.fileObject=e},setInitialData:function(){var e=this;return Ao(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRequestOnGoing=!0,t.next=3,e.fetchCurrentUser();case 3:n=t.sent,e.isFetchingData=!0,n.data.user&&(e.formData.name=n.data.user.company.name,e.formData.address_street_1=n.data.user.company.address.address_street_1,e.formData.address_street_2=n.data.user.company.address.address_street_2,e.formData.zip=n.data.user.company.address.zip,e.formData.phone=n.data.user.company.address.phone,e.formData.state=n.data.user.company.address.state,e.formData.city=n.data.user.company.address.city,e.country=n.data.user.company.address.country,e.previewLogo=n.data.user.company.logo),e.isRequestOnGoing=!1;case 7:case"end":return t.stop()}}),t)})))()},updateCompanyData:function(){var e=this;return Ao(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,t.next=6,e.updateCompany(e.formData);case 6:if(!(n=t.sent).data.success){t.next=17;break}if(e.isLoading=!1,!e.fileObject||!e.previewLogo){t.next=14;break}return(r=new FormData).append("company_logo",JSON.stringify({name:e.fileObject.name,data:e.previewLogo})),t.next=14,e.updateCompanyLogo(r);case 14:return e.isLoading=!1,window.toastr.success(e.$t("settings.company_info.updated_message")),t.abrupt("return",!0);case 17:return e.isLoading=!1,window.toastr.error(n.data.error),t.abrupt("return",!0);case 20:case"end":return t.stop()}}),t)})))()}})};const Ho=(0,_.Z)(Fo,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"relative h-full",on:{submit:function(t){return t.preventDefault(),e.updateCompanyData(t)}}},[e.isRequestOnGoing?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("sw-card",{attrs:{variant:"setting-card"}},[n("template",{slot:"header"},[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.company_info.company_info"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.company_info.section_description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"grid mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.company_logo")}},[n("div",{staticClass:"relative flex items-center justify-center h-24 p-5 mt-2 bg-transparent border-2 border-gray-200 border-dashed rounded-md image-upload-box",attrs:{id:"logo-box"}},[e.previewLogo?n("img",{staticClass:"absolute opacity-100 preview-logo",staticStyle:{"max-height":"80%",animation:"fadeIn 2s ease"},attrs:{src:e.previewLogo}}):n("div",{staticClass:"flex flex-col items-center"},[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"}),e._v(" "),n("p",{staticClass:"text-xs leading-4 text-center text-gray-400"},[e._v("\n Drag a file here or\n "),n("span",{staticClass:"cursor-pointer text-primary-500",attrs:{id:"pick-avatar"}},[e._v("\n browse\n ")]),e._v("\n to choose a file\n ")])],1)]),e._v(" "),n("sw-avatar",{attrs:{trigger:"#logo-box","preview-avatar":e.previewLogo},on:{changed:e.onChange,uploadHandler:e.onUploadHandler,handleUploadError:e.onHandleUploadError},scopedSlots:e._u([{key:"icon",fn:function(){return[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"})]},proxy:!0}])})],1)],1),e._v(" "),n("div",{staticClass:"grid gap-6 sm:grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.company_name"),error:e.nameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.name.$error,placeholder:e.$t("settings.company_info.company_name")},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.phone")}},[n("sw-input",{staticClass:"mt-2",attrs:{placeholder:e.$t("settings.company_info.phone")},model:{value:e.formData.phone,callback:function(t){e.$set(e.formData,"phone",t)},expression:"formData.phone"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.country"),error:e.countryError,required:""}},[n("sw-select",{staticClass:"mt-2",class:{error:e.$v.formData.country_id.$error},attrs:{options:e.countries,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$t("general.select_country"),label:"name","track-by":"id"},model:{value:e.country,callback:function(t){e.country=t},expression:"country"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.state")}},[n("sw-input",{staticClass:"mt-2",attrs:{placeholder:e.$tc("settings.company_info.state"),name:"state",type:"text"},model:{value:e.formData.state,callback:function(t){e.$set(e.formData,"state",t)},expression:"formData.state"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.city")}},[n("sw-input",{staticClass:"mt-2",attrs:{placeholder:e.$tc("settings.company_info.city"),name:"city",type:"text"},model:{value:e.formData.city,callback:function(t){e.$set(e.formData,"city",t)},expression:"formData.city"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.zip")}},[n("sw-input",{staticClass:"mt-2",attrs:{placeholder:e.$tc("settings.company_info.zip")},model:{value:e.formData.zip,callback:function(t){e.$set(e.formData,"zip",t)},expression:"formData.zip"}})],1),e._v(" "),n("div",[n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.address"),error:e.address1Error}},[n("sw-textarea",{class:{invalid:e.$v.formData.address_street_1.$error},attrs:{placeholder:e.$tc("general.street_1"),rows:"2"},on:{input:function(t){return e.$v.formData.address_street_1.$touch()}},model:{value:e.formData.address_street_1,callback:function(t){e.$set(e.formData,"address_street_1",t)},expression:"formData.address_street_1"}})],1),e._v(" "),n("sw-input-group",{staticClass:"my-2",attrs:{error:e.address2Error}},[n("sw-textarea",{class:{invalid:e.$v.formData.address_street_2.$error},attrs:{placeholder:e.$tc("general.street_2"),rows:"2"},on:{input:function(t){return e.$v.formData.address_street_2.$touch()}},model:{value:e.formData.address_street_2,callback:function(t){e.$set(e.formData,"address_street_2",t)},expression:"formData.address_street_2"}})],1)],1)],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.$tc("settings.company_info.save"))+"\n ")],1)],2)],1)}),[],!1,null,null,null).exports;function Ro(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Bo(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ro(i,r,a,o,s,"next",e)}function s(e){Ro(i,r,a,o,s,"throw",e)}o(void 0)}))}}function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach((function(t){Wo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uo=n(379),Ko=Uo.required,Zo=Uo.maxLength,Go=Uo.alpha;const Jo={props:{settings:{type:Object,require:!0,default:!1}},data:function(){return{invoiceAutogenerate:!1,invoiceAsAttachment:!1,invoices:{invoice_prefix:null,invoice_mail_body:null,company_address_format:null,shipping_address_format:null,billing_address_format:null},isLoading:!1,InvoiceMailFields:["customer","customerCustom","invoice","invoiceCustom","company"],billingFields:["billing","customer","customerCustom","invoiceCustom"],shippingFields:["shipping","customer","customerCustom","invoiceCustom"],companyFields:["company","invoiceCustom"]}},computed:{invoicePrefixError:function(){return this.$v.invoices.invoice_prefix.$error?this.$v.invoices.invoice_prefix.required?this.$v.invoices.invoice_prefix.maxLength?this.$v.invoices.invoice_prefix.alpha?void 0:this.$t("validation.characters_only"):this.$t("validation.prefix_maxlength"):this.$t("validation.required"):""}},watch:{settings:function(e){this.invoices.invoice_prefix=e?e.invoice_prefix:"",this.invoices.invoice_mail_body=e?e.invoice_mail_body:null,this.invoices.company_address_format=e?e.invoice_company_address_format:null,this.invoices.shipping_address_format=e?e.invoice_shipping_address_format:null,this.invoices.billing_address_format=e?e.invoice_billing_address_format:null,this.invoice_auto_generate=e?e.invoice_auto_generate:"","YES"===this.invoice_auto_generate?this.invoiceAutogenerate=!0:this.invoiceAutogenerate=!1,this.invoice_email_attachment=e?e.invoice_email_attachment:"","YES"===this.invoice_email_attachment?this.invoiceAsAttachment=!0:this.invoiceAsAttachment=!1}},validations:{invoices:{invoice_prefix:{required:Ko,maxLength:Zo(5),alpha:Go}}},methods:Vo(Vo({},(0,i.nv)("company",["updateCompanySettings"])),{},{setInvoiceSetting:function(){var e=this;return Bo(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={settings:{invoice_auto_generate:e.invoiceAutogenerate?"YES":"NO",invoice_email_attachment:e.invoiceAsAttachment?"YES":"NO"}},t.next=3,e.updateCompanySettings(n);case 3:t.sent.data&&window.toastr.success(e.$t("general.setting_updated"));case 5:case"end":return t.stop()}}),t)})))()},changeToUppercase:function(e){if("INVOICES"===e)return this.invoices.invoice_prefix=this.invoices.invoice_prefix.toUpperCase(),!0},updateInvoiceSetting:function(){var e=this;return Bo(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.invoices.$touch(),!e.$v.invoices.$invalid){t.next=3;break}return t.abrupt("return",!1);case 3:n={settings:{invoice_prefix:e.invoices.invoice_prefix,invoice_mail_body:e.invoices.invoice_mail_body,invoice_company_address_format:e.invoices.company_address_format,invoice_billing_address_format:e.invoices.billing_address_format,invoice_shipping_address_format:e.invoices.shipping_address_format}},e.updateSetting(n)&&window.toastr.success(e.$t("settings.customization.invoices.invoice_setting_updated"));case 5:case"end":return t.stop()}}),t)})))()},updateSetting:function(e){var t=this;return Bo(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.isLoading=!0,n.next=3,t.updateCompanySettings(e);case 3:if(!n.sent.data.success){n.next=7;break}return t.isLoading=!1,n.abrupt("return",!0);case 7:return n.abrupt("return",!1);case 8:case"end":return n.stop()}}),n)})))()}})};const Xo=(0,_.Z)(Jo,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{staticClass:"mt-6",attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.updateInvoiceSetting(t)}}},[n("sw-input-group",{attrs:{label:e.$t("settings.customization.invoices.invoice_prefix"),error:e.invoicePrefixError}},[n("sw-input",{staticStyle:{"max-width":"30%"},attrs:{invalid:e.$v.invoices.invoice_prefix.$error},on:{input:function(t){return e.$v.invoices.invoice_prefix.$touch()},keyup:function(t){return e.changeToUppercase("INVOICES")}},model:{value:e.invoices.invoice_prefix,callback:function(t){e.$set(e.invoices,"invoice_prefix",t)},expression:"invoices.invoice_prefix"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.invoices.default_invoice_email_body")}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.InvoiceMailFields},model:{value:e.invoices.invoice_mail_body,callback:function(t){e.$set(e.invoices,"invoice_mail_body",t)},expression:"invoices.invoice_mail_body"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.invoices.company_address_format")}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.companyFields},model:{value:e.invoices.company_address_format,callback:function(t){e.$set(e.invoices,"company_address_format",t)},expression:"invoices.company_address_format"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.invoices.shipping_address_format")}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.shippingFields},model:{value:e.invoices.shipping_address_format,callback:function(t){e.$set(e.invoices,"shipping_address_format",t)},expression:"invoices.shipping_address_format"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.invoices.billing_address_format")}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.billingFields},model:{value:e.invoices.billing_address_format,callback:function(t){e.$set(e.invoices,"billing_address_format",t)},expression:"invoices.billing_address_format"}})],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("settings.customization.save"))+"\n ")],1)],1),e._v(" "),n("sw-divider",{staticClass:"mt-6 mb-8"}),e._v(" "),n("div",{staticClass:"flex mt-3 mb-4"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-20px"},on:{change:e.setInvoiceSetting},model:{value:e.invoiceAutogenerate,callback:function(t){e.invoiceAutogenerate=t},expression:"invoiceAutogenerate"}})],1),e._v(" "),n("div",{staticClass:"ml-4"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black"},[e._v("\n "+e._s(e.$t("settings.customization.invoices.autogenerate_invoice_number"))+"\n ")]),e._v(" "),n("p",{staticClass:"p-0 m-0 text-xs leading-tight text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.customization.invoices.invoice_setting_description"))+"\n ")])])]),e._v(" "),n("div",{staticClass:"flex mb-2"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-20px"},on:{change:e.setInvoiceSetting},model:{value:e.invoiceAsAttachment,callback:function(t){e.invoiceAsAttachment=t},expression:"invoiceAsAttachment"}})],1),e._v(" "),n("div",{staticClass:"ml-4"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black"},[e._v("\n "+e._s(e.$t("settings.customization.invoices.invoice_email_attachment"))+"\n ")]),e._v(" "),n("p",{staticClass:"p-0 m-0 text-xs leading-tight text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.customization.invoices.invoice_email_attachment_setting_description"))+"\n ")])])])],1)}),[],!1,null,null,null).exports;function Qo(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function es(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Qo(i,r,a,o,s,"next",e)}function s(e){Qo(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(n),!0).forEach((function(t){rs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var as=n(379),is=as.required,os=as.maxLength,ss=as.alpha;const ls={props:{settings:{type:Object,require:!0,default:!1}},data:function(){return{estimateAutogenerate:!1,estimateAsAttachment:!1,estimates:{estimate_prefix:null,estimate_mail_body:null,estimate_terms_and_conditions:null,company_address_format:null,shipping_address_format:null,billing_address_format:null},billingFields:["billing","customer","customerCustom","estimateCustom"],shippingFields:["shipping","customer","customerCustom","estimateCustom"],mailFields:["customer","estimate","company","customerCustom","estimateCustom"],companyFields:["company","estimateCustom"],isLoading:!1}},computed:{estimatePrefixError:function(){return this.$v.estimates.estimate_prefix.$error?this.$v.estimates.estimate_prefix.required?this.$v.estimates.estimate_prefix.maxLength?this.$v.estimates.estimate_prefix.alpha?void 0:this.$t("validation.characters_only"):this.$t("validation.prefix_maxlength"):this.$t("validation.required"):""}},validations:{estimates:{estimate_prefix:{required:is,maxLength:os(5),alpha:ss}}},watch:{settings:function(e){this.estimates.estimate_prefix=e?e.estimate_prefix:"",this.estimates.estimate_mail_body=e?e.estimate_mail_body:"",this.estimates.company_address_format=e?e.estimate_company_address_format:"",this.estimates.shipping_address_format=e?e.estimate_shipping_address_format:"",this.estimates.billing_address_format=e?e.estimate_billing_address_format:"",this.estimates.estimate_terms_and_conditions=e?e.estimate_terms_and_conditions:"",this.estimate_auto_generate=e?e.estimate_auto_generate:"","YES"===this.estimate_auto_generate?this.estimateAutogenerate=!0:this.estimateAutogenerate=!1,this.estimate_email_attachment=e?e.estimate_email_attachment:"","YES"===this.estimate_email_attachment?this.estimateAsAttachment=!0:this.estimateAsAttachment=!1}},methods:ns(ns({},(0,i.nv)("company",["updateCompanySettings"])),{},{setEstimateSetting:function(){var e=this;return es(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={settings:{estimate_auto_generate:e.estimateAutogenerate?"YES":"NO",estimate_email_attachment:e.estimateAsAttachment?"YES":"NO"}},t.next=3,e.updateCompanySettings(n);case 3:t.sent.data&&window.toastr.success(e.$t("general.setting_updated"));case 5:case"end":return t.stop()}}),t)})))()},changeToUppercase:function(e){if("ESTIMATES"===e)return this.estimates.estimate_prefix=this.estimates.estimate_prefix.toUpperCase(),!0},updateEstimateSetting:function(){var e=this;return es(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.estimates.$touch(),!e.$v.estimates.$invalid){t.next=3;break}return t.abrupt("return",!1);case 3:n={settings:{estimate_prefix:e.estimates.estimate_prefix,estimate_mail_body:e.estimates.estimate_mail_body,estimate_company_address_format:e.estimates.company_address_format,estimate_shipping_address_format:e.estimates.shipping_address_format,estimate_billing_address_format:e.estimates.billing_address_format}},e.updateSetting(n)&&window.toastr.success(e.$t("settings.customization.estimates.estimate_setting_updated"));case 5:case"end":return t.stop()}}),t)})))()},updateSetting:function(e){var t=this;return es(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.isLoading=!0,n.next=3,t.updateCompanySettings(e);case 3:if(!n.sent.data.success){n.next=7;break}return t.isLoading=!1,n.abrupt("return",!0);case 7:return n.abrupt("return",!1);case 8:case"end":return n.stop()}}),n)})))()}})};const cs=(0,_.Z)(ls,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{staticClass:"mt-6",attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.updateEstimateSetting(t)}}},[n("sw-input-group",{attrs:{label:e.$t("settings.customization.estimates.estimate_prefix"),error:e.estimatePrefixError}},[n("sw-input",{staticStyle:{"max-width":"30%"},attrs:{invalid:e.$v.estimates.estimate_prefix.$error},on:{input:function(t){return e.$v.estimates.estimate_prefix.$touch()},keyup:function(t){return e.changeToUppercase("ESTIMATES")}},model:{value:e.estimates.estimate_prefix,callback:function(t){e.$set(e.estimates,"estimate_prefix",t)},expression:"estimates.estimate_prefix"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.estimates.default_estimate_email_body")}},[n("base-custom-input",{attrs:{fields:e.mailFields},model:{value:e.estimates.estimate_mail_body,callback:function(t){e.$set(e.estimates,"estimate_mail_body",t)},expression:"estimates.estimate_mail_body"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.estimates.company_address_format")}},[n("base-custom-input",{attrs:{fields:e.companyFields},model:{value:e.estimates.company_address_format,callback:function(t){e.$set(e.estimates,"company_address_format",t)},expression:"estimates.company_address_format"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.estimates.shipping_address_format")}},[n("base-custom-input",{attrs:{fields:e.shippingFields},model:{value:e.estimates.shipping_address_format,callback:function(t){e.$set(e.estimates,"shipping_address_format",t)},expression:"estimates.shipping_address_format"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.estimates.billing_address_format")}},[n("base-custom-input",{attrs:{fields:e.billingFields},model:{value:e.estimates.billing_address_format,callback:function(t){e.$set(e.estimates,"billing_address_format",t)},expression:"estimates.billing_address_format"}})],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{disabled:e.isLoading,loading:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("settings.customization.save"))+"\n ")],1)],1),e._v(" "),n("sw-divider",{staticClass:"mt-6 mb-8"}),e._v(" "),n("div",{staticClass:"flex mt-3 mb-4"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-20px"},on:{change:e.setEstimateSetting},model:{value:e.estimateAutogenerate,callback:function(t){e.estimateAutogenerate=t},expression:"estimateAutogenerate"}})],1),e._v(" "),n("div",{staticClass:"ml-4"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black"},[e._v("\n "+e._s(e.$t("settings.customization.estimates.autogenerate_estimate_number"))+"\n ")]),e._v(" "),n("p",{staticClass:"p-0 m-0 text-xs leading-tight text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.customization.estimates.estimate_setting_description"))+"\n ")])])]),e._v(" "),n("div",{staticClass:"flex mb-2"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-20px"},on:{change:e.setEstimateSetting},model:{value:e.estimateAsAttachment,callback:function(t){e.estimateAsAttachment=t},expression:"estimateAsAttachment"}})],1),e._v(" "),n("div",{staticClass:"ml-4"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black"},[e._v("\n "+e._s(e.$t("settings.customization.estimates.estimate_email_attachment"))+"\n ")]),e._v(" "),n("p",{staticClass:"p-0 m-0 text-xs leading-tight text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.customization.estimates.estimate_email_attachment_setting_description"))+"\n ")])])])],1)}),[],!1,null,null,null).exports;function us(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ds(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){us(i,r,a,o,s,"next",e)}function s(e){us(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ps(Object(n),!0).forEach((function(t){fs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hs=n(379),_s=hs.required,vs=hs.maxLength,gs=hs.alpha;const ys={props:{settings:{type:Object,require:!0,default:!1}},data:function(){return{paymentAutogenerate:!1,paymentAsAttachment:!1,payments:{payment_prefix:null,payment_mail_body:null,from_customer_address_format:null,company_address_format:null},mailFields:["customer","customerCustom","company","payment","paymentCustom"],customerAddressFields:["billing","customer","customerCustom","paymentCustom"],companyFields:["company","paymentCustom"],isLoading:!1}},computed:{paymentPrefixError:function(){return this.$v.payments.payment_prefix.$error?this.$v.payments.payment_prefix.required?this.$v.payments.payment_prefix.maxLength?this.$v.payments.payment_prefix.alpha?void 0:this.$t("validation.characters_only"):this.$t("validation.prefix_maxlength"):this.$t("validation.required"):""}},validations:{payments:{payment_prefix:{required:_s,maxLength:vs(5),alpha:gs}}},watch:{settings:function(e){this.payments.payment_prefix=e?e.payment_prefix:"",this.payments.payment_mail_body=e?e.payment_mail_body:"",this.payments.company_address_format=e?e.payment_company_address_format:"",this.payments.from_customer_address_format=e?e.payment_from_customer_address_format:"",this.payment_auto_generate=e?e.payment_auto_generate:"","YES"===this.payment_auto_generate?this.paymentAutogenerate=!0:this.paymentAutogenerate=!1,this.payment_email_attachment=e?e.payment_email_attachment:"","YES"===this.payment_email_attachment?this.payment_email_attachment=!0:this.payment_email_attachment=!1}},methods:ms(ms(ms({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("company",["updateCompanySettings"])),{},{changeToUppercase:function(e){if("PAYMENTS"===e)return this.payments.payment_prefix=this.payments.payment_prefix.toUpperCase(),!0},setPaymentSetting:function(){var e=this;return ds(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={settings:{payment_auto_generate:e.paymentAutogenerate?"YES":"NO",payment_email_attachment:e.paymentAsAttachment?"YES":"NO"}},t.next=3,e.updateCompanySettings(n);case 3:t.sent.data&&window.toastr.success(e.$t("general.setting_updated"));case 5:case"end":return t.stop()}}),t)})))()},updatePaymentSetting:function(){var e=this;return ds(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.payments.$touch(),!e.$v.payments.$invalid){t.next=3;break}return t.abrupt("return",!1);case 3:n={settings:{payment_prefix:e.payments.payment_prefix,payment_mail_body:e.payments.payment_mail_body,payment_company_address_format:e.payments.company_address_format,payment_from_customer_address_format:e.payments.from_customer_address_format}},e.updateSetting(n)&&window.toastr.success(e.$t("settings.customization.payments.payment_setting_updated"));case 5:case"end":return t.stop()}}),t)})))()},updateSetting:function(e){var t=this;return ds(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.isLoading=!0,n.next=3,t.updateCompanySettings(e);case 3:if(!n.sent.data.success){n.next=7;break}return t.isLoading=!1,n.abrupt("return",!0);case 7:return n.abrupt("return",!1);case 8:case"end":return n.stop()}}),n)})))()}})};const bs=(0,_.Z)(ys,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{staticClass:"mt-6",attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.updatePaymentSetting(t)}}},[n("sw-input-group",{attrs:{label:e.$t("settings.customization.payments.payment_prefix"),error:e.paymentPrefixError}},[n("sw-input",{staticClass:"mt-2",staticStyle:{"max-width":"30%"},attrs:{invalid:e.$v.payments.payment_prefix.$error},on:{input:function(t){return e.$v.payments.payment_prefix.$touch()},keyup:function(t){return e.changeToUppercase("PAYMENTS")}},model:{value:e.payments.payment_prefix,callback:function(t){e.$set(e.payments,"payment_prefix",t)},expression:"payments.payment_prefix"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.payments.default_payment_email_body")}},[n("base-custom-input",{attrs:{fields:e.mailFields},model:{value:e.payments.payment_mail_body,callback:function(t){e.$set(e.payments,"payment_mail_body",t)},expression:"payments.payment_mail_body"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.payments.company_address_format")}},[n("base-custom-input",{attrs:{fields:e.companyFields},model:{value:e.payments.company_address_format,callback:function(t){e.$set(e.payments,"company_address_format",t)},expression:"payments.company_address_format"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-6 mb-4",attrs:{label:e.$t("settings.customization.payments.from_customer_address_format")}},[n("base-custom-input",{attrs:{fields:e.customerAddressFields},model:{value:e.payments.from_customer_address_format,callback:function(t){e.$set(e.payments,"from_customer_address_format",t)},expression:"payments.from_customer_address_format"}})],1),e._v(" "),n("sw-button",{staticClass:"my-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("settings.customization.save"))+"\n ")],1)],1),e._v(" "),n("sw-divider",{staticClass:"mt-6 mb-8"}),e._v(" "),n("div",{staticClass:"flex mt-3 mb-4"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-20px"},on:{change:e.setPaymentSetting},model:{value:e.paymentAutogenerate,callback:function(t){e.paymentAutogenerate=t},expression:"paymentAutogenerate"}})],1),e._v(" "),n("div",{staticClass:"ml-4"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black"},[e._v("\n "+e._s(e.$t("settings.customization.payments.autogenerate_payment_number"))+"\n ")]),e._v(" "),n("p",{staticClass:"p-0 m-0 text-xs leading-tight text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.customization.payments.payment_setting_description"))+"\n ")])])]),e._v(" "),n("div",{staticClass:"flex mb-2"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-20px"},on:{change:e.setPaymentSetting},model:{value:e.paymentAsAttachment,callback:function(t){e.paymentAsAttachment=t},expression:"paymentAsAttachment"}})],1),e._v(" "),n("div",{staticClass:"ml-4"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black"},[e._v("\n "+e._s(e.$t("settings.customization.payments.payment_email_attachment"))+"\n ")]),e._v(" "),n("p",{staticClass:"p-0 m-0 text-xs leading-tight text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.customization.payments.payment_email_attachment_setting_description"))+"\n ")])])])],1)}),[],!1,null,null,null).exports;function ws(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function xs(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ws(i,r,a,o,s,"next",e)}function s(e){ws(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ks(Object(n),!0).forEach((function(t){Ms(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ss=n(379);Ss.required,Ss.maxLength,Ss.alpha;const Cs={components:{TrashIcon:o.XHJ,PlusIcon:o.pOD,PencilIcon:o.vdY},methods:Ds(Ds(Ds({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("item",["deleteItemUnit","fetchItemUnits"])),{},{fetchData:function(e){var t=this;return xs(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},n.next=4,t.fetchItemUnits(i);case 4:return o=n.sent,n.abrupt("return",{data:o.data.units.data,pagination:{totalPages:o.data.units.last_page,currentPage:r,count:o.data.units.count}});case 6:case"end":return n.stop()}}),n)})))()},addItemUnit:function(){var e=this;return xs(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.openModal({title:e.$t("settings.customization.items.add_item_unit"),componentName:"ItemUnit",refreshData:e.$refs.table.refresh});case 1:case"end":return t.stop()}}),t)})))()},editItemUnit:function(e){var t=this;return xs(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.openModal({title:t.$t("settings.customization.items.edit_item_unit"),componentName:"ItemUnit",id:e.id,data:e,refreshData:t.$refs.table.refresh});case 1:case"end":return n.stop()}}),n)})))()},removeItemUnit:function(e){var t=this;return xs(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.customization.items.item_unit_confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=xs(Y().mark((function n(r){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=9;break}return n.next=3,t.deleteItemUnit(e);case 3:if(!n.sent.data.success){n.next=8;break}return window.toastr.success(t.$t("settings.customization.items.deleted_message")),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:window.toastr.error(t.$t("settings.customization.items.already_in_use"));case 9:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()}})};function Ls(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(n),!0).forEach((function(t){Es(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ts(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const As={data:function(){return{settings:{},isRequestOnGoing:!1}},components:{InvoicesTab:Xo,EstimatesTab:cs,PaymentsTab:bs,ItemsTab:(0,_.Z)(Cs,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"flex flex-wrap justify-end mt-8 lg:flex-nowrap"},[n("sw-button",{attrs:{size:"lg",variant:"primary-outline"},on:{click:e.addItemUnit}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.customization.items.add_item_unit"))+"\n ")],1)],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{variant:"gray",data:e.fetchData,"show-filter":!1}},[n("sw-table-column",{attrs:{sortable:!0,label:e.$t("settings.customization.items.unit_name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.customization.items.unit_name")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.name))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.tax_types.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{staticClass:"h-5 mr-3 text-primary-800",attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.editItemUnit(t)}}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeItemUnit(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)}),[],!1,null,null,null).exports},created:function(){this.fetchSettings()},methods:Os(Os({},(0,i.nv)("company",["fetchCompanySettings"])),{},{fetchSettings:function(){var e,t=this;return(e=Y().mark((function e(){var n;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isRequestOnGoing=!0,e.next=3,t.fetchCompanySettings(["payment_auto_generate","payment_email_attachment","payment_prefix","payment_mail_body","invoice_auto_generate","invoice_email_attachment","invoice_prefix","invoice_mail_body","estimate_auto_generate","estimate_email_attachment","estimate_prefix","estimate_mail_body","invoice_billing_address_format","invoice_shipping_address_format","invoice_company_address_format","invoice_mail_body","payment_mail_body","payment_company_address_format","payment_from_customer_address_format","estimate_company_address_format","estimate_billing_address_format","estimate_shipping_address_format"]);case 3:n=e.sent,t.settings=n.data,t.isRequestOnGoing=!1;case 6:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ls(i,r,a,o,s,"next",e)}function s(e){Ls(i,r,a,o,s,"throw",e)}o(void 0)}))})()}})};const js=(0,_.Z)(As,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative"},[e.isRequestOnGoing?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("sw-card",[n("sw-tabs",{staticClass:"p-2"},[n("sw-tab-item",{attrs:{title:e.$t("settings.customization.invoices.title")}},[n("invoices-tab",{attrs:{settings:e.settings}})],1),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("settings.customization.estimates.title")}},[n("estimates-tab",{attrs:{settings:e.settings}})],1),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("settings.customization.payments.title")}},[n("payments-tab",{attrs:{settings:e.settings}})],1),e._v(" "),n("sw-tab-item",{attrs:{title:e.$t("settings.customization.items.title")}},[n("items-tab")],1)],1)],1)],1)}),[],!1,null,null,null).exports;function $s(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ps(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){$s(i,r,a,o,s,"next",e)}function s(e){$s(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ys(Object(n),!0).forEach((function(t){zs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Is=n(379);const Fs={data:function(){return{isLoading:!1,notification_email:null,notify_invoice_viewed:null,notify_estimate_viewed:null,isRequestOnGoing:!1}},validations:{notification_email:{required:Is.required,email:Is.email}},computed:{notificationEmailError:function(){return this.$v.notification_email.$error?this.$v.notification_email.required?this.$v.notification_email.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""}},mounted:function(){this.fetchData()},methods:Ns(Ns({},(0,i.nv)("company",["fetchCompanySettings","updateCompanySettings"])),{},{fetchData:function(){var e=this;return Ps(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRequestOnGoing=!0,t.next=3,e.fetchCompanySettings(["notify_invoice_viewed","notify_estimate_viewed","notification_email"]);case 3:(n=t.sent).data&&(e.notification_email=n.data.notification_email,"YES"===n.data.notify_invoice_viewed?e.notify_invoice_viewed=!0:e.notify_invoice_viewed=!1,"YES"===n.data.notify_estimate_viewed?e.notify_estimate_viewed=!0:e.notify_estimate_viewed=!1),e.isRequestOnGoing=!1;case 6:case"end":return t.stop()}}),t)})))()},saveEmail:function(){var e=this;return Ps(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,n={settings:{notification_email:e.notification_email}},t.next=7,e.updateCompanySettings(n);case 7:t.sent.data.success&&(e.isLoading=!1,window.toastr.success(e.$tc("settings.notification.email_save_message")));case 9:case"end":return t.stop()}}),t)})))()},setInvoiceViewd:function(e){var t=this;return Ps(Y().mark((function e(){var n;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$v.$touch(),!t.$v.$invalid){e.next=4;break}return t.notify_invoice_viewed=!t.notify_invoice_viewed,e.abrupt("return",!0);case 4:return n={settings:{notify_invoice_viewed:t.notify_invoice_viewed?"YES":"NO"}},e.next=7,t.updateCompanySettings(n);case 7:e.sent.data.success&&window.toastr.success(t.$tc("general.setting_updated"));case 9:case"end":return e.stop()}}),e)})))()},setEstimateViewd:function(e){var t=this;return Ps(Y().mark((function e(){var n;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$v.$touch(),!t.$v.$invalid){e.next=4;break}return t.notify_estimate_viewed=!t.notify_estimate_viewed,e.abrupt("return",!0);case 4:return n={settings:{notify_estimate_viewed:t.notify_estimate_viewed?"YES":"NO"}},e.next=7,t.updateCompanySettings(n);case 7:e.sent.data&&window.toastr.success(t.$tc("general.setting_updated"));case 9:case"end":return e.stop()}}),e)})))()}})};const Hs=(0,_.Z)(Fs,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative"},[e.isRequestOnGoing?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("sw-card",{attrs:{variant:"setting-card"}},[n("template",{slot:"header"},[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.notification.title"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.notification.description"))+"\n ")])]),e._v(" "),n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.saveEmail()}}},[n("div",{staticClass:"grid-cols-2 col-span-1"},[n("sw-input-group",{staticClass:"my-2",attrs:{label:e.$t("settings.notification.email"),error:e.notificationEmailError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.notification_email.$error,placeholder:e.$tc("settings.notification.please_enter_email"),type:"text",name:"notification_email",icon:"envelope"},on:{input:function(t){return e.$v.notification_email.$touch()}},model:{value:e.notification_email,callback:function(t){e.notification_email="string"==typeof t?t.trim():t},expression:"notification_email"}})],1),e._v(" "),n("sw-button",{staticClass:"my-6",attrs:{disabled:e.isLoading,loading:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.$tc("settings.notification.save"))+"\n ")],1)],1)]),e._v(" "),n("sw-divider",{staticClass:"mt-1 mb-6"}),e._v(" "),n("div",{staticClass:"flex mt-3 mb-4"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-20px"},on:{change:e.setInvoiceViewd},model:{value:e.notify_invoice_viewed,callback:function(t){e.notify_invoice_viewed=t},expression:"notify_invoice_viewed"}})],1),e._v(" "),n("div",{staticClass:"ml-4"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black box-title"},[e._v("\n "+e._s(e.$t("settings.notification.invoice_viewed"))+"\n ")]),e._v(" "),n("p",{staticClass:"p-0 m-0 text-xs leading-tight text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.notification.invoice_viewed_desc"))+"\n ")])])]),e._v(" "),n("div",{staticClass:"flex mb-2"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-20px"},on:{change:e.setEstimateViewd},model:{value:e.notify_estimate_viewed,callback:function(t){e.notify_estimate_viewed=t},expression:"notify_estimate_viewed"}})],1),e._v(" "),n("div",{staticClass:"ml-4"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black box-title"},[e._v("\n "+e._s(e.$t("settings.notification.estimate_viewed"))+"\n ")]),e._v(" "),n("p",{staticClass:"p-0 m-0 text-xs leading-tight text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.notification.estimate_viewed_desc"))+"\n ")])])])],2)],1)}),[],!1,null,null,null).exports;function Rs(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Bs(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Rs(i,r,a,o,s,"next",e)}function s(e){Rs(i,r,a,o,s,"throw",e)}o(void 0)}))}}function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(n),!0).forEach((function(t){Ws(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ws(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Us=n(379).required;const Ks={data:function(){return{isLoading:!1,formData:{language:null,currency:null,timeZone:null,dateFormat:null,fiscalYear:null},isRequestOnGoing:!1,discount_per_item:null}},validations:{formData:{currency:{required:Us},language:{required:Us},dateFormat:{required:Us},timeZone:{required:Us},fiscalYear:{required:Us}}},computed:Vs(Vs(Vs({},(0,i.Se)(["currencies","timeZones","dateFormats","fiscalYears","languages"])),(0,i.Se)("company",["defaultFiscalYear","defaultTimeZone"])),{},{currencyError:function(){return this.$v.formData.currency.$error?this.$v.formData.currency.required?void 0:this.$tc("validation.required"):""},languageError:function(){return this.$v.formData.language.$error?this.$v.formData.language.required?void 0:this.$tc("validation.required"):""},timeZoneError:function(){return this.$v.formData.timeZone.$error?this.$v.formData.timeZone.required?void 0:this.$tc("validation.required"):""},fiscalYearError:function(){return this.$v.formData.fiscalYear.$error?this.$v.formData.fiscalYear.required?void 0:this.$tc("settings.company_info.errors.required"):""},dateFormatError:function(){return this.$v.formData.dateFormat.$error?this.$v.formData.dateFormat.required?void 0:this.$tc("validation.required"):""}}),mounted:function(){var e=this;return Bs(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.setInitialData();case 1:case"end":return t.stop()}}),t)})))()},methods:Vs(Vs(Vs({},(0,i.nv)("company",["setDefaultCurrency","fetchCompanySettings","updateCompanySettings"])),(0,i.nv)(["fetchLanguages","fetchFiscalYears","fetchDateFormats","fetchTimeZones"])),{},{currencyNameWithCode:function(e){var t=e.name,n=e.code;return"".concat(n," - ").concat(t)},setInitialData:function(){var e=this;return Bs(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRequestOnGoing=!0,t.next=3,e.fetchDateFormats();case 3:return t.next=5,e.fetchLanguages();case 5:return t.next=7,e.fetchFiscalYears();case 7:return t.next=9,e.fetchTimeZones();case 9:return t.next=11,e.fetchCompanySettings(["currency","time_zone","language","fiscal_year","carbon_date_format","moment_date_format","discount_per_item"]);case 11:(n=t.sent).data&&("YES"===n.data.discount_per_item?e.discount_per_item=!0:e.discount_per_item=!1,e.formData.currency=e.currencies.find((function(e){return e.id==n.data.currency})),e.formData.language=e.languages.find((function(e){return e.code==n.data.language})),e.formData.timeZone=e.timeZones.find((function(t){return t.value==e.defaultTimeZone})),e.formData.fiscalYear=e.fiscalYears.find((function(t){return t.value==e.defaultFiscalYear})),e.formData.dateFormat=e.dateFormats.find((function(e){return e.carbon_format_value==n.data.carbon_date_format}))),e.isRequestOnGoing=!1;case 14:case"end":return t.stop()}}),t)})))()},updatePreferencesData:function(){var e=this;return Bs(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,n={settings:{currency:e.formData.currency.id,time_zone:e.formData.timeZone.value,fiscal_year:e.formData.fiscalYear.value,language:e.formData.language.code,carbon_date_format:e.formData.dateFormat.carbon_format_value,moment_date_format:e.formData.dateFormat.moment_format_value}},t.next=7,e.updateCompanySettings(n);case 7:if(!(r=t.sent).data.success){t.next=13;break}return e.isLoading=!1,e.setDefaultCurrency(e.formData.currency),window.toastr.success(e.$t("settings.preferences.updated_message")),t.abrupt("return",!0);case 13:return window.toastr.error(r.data.error),t.abrupt("return",!0);case 15:case"end":return t.stop()}}),t)})))()},setDiscount:function(){var e=this;return Bs(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={settings:{discount_per_item:e.discount_per_item?"YES":"NO"}},t.next=3,e.updateCompanySettings(n);case 3:t.sent.data.success&&window.toastr.success(e.$t("general.setting_updated"));case 5:case"end":return t.stop()}}),t)})))()}})};const Zs=(0,_.Z)(Ks,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"relative",attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.updatePreferencesData(t)}}},[e.isRequestOnGoing?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("sw-card",{attrs:{variant:"setting-card"}},[n("template",{slot:"header"},[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.menu_title.preferences"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.preferences.general_settings"))+"\n ")])]),e._v(" "),n("div",{staticClass:"grid gap-6 sm:grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$tc("settings.preferences.currency"),error:e.currencyError,required:""}},[n("sw-select",{staticClass:"mt-2",class:{error:e.$v.formData.currency.$error},attrs:{options:e.currencies,"custom-label":e.currencyNameWithCode,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$tc("settings.currencies.select_currency"),label:"name","track-by":"id"},model:{value:e.formData.currency,callback:function(t){e.$set(e.formData,"currency",t)},expression:"formData.currency"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.preferences.default_language"),error:e.languageError,required:""}},[n("sw-select",{staticClass:"mt-2",class:{error:e.$v.formData.language.$error},attrs:{options:e.languages,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$tc("settings.preferences.select_language"),label:"name","track-by":"code"},model:{value:e.formData.language,callback:function(t){e.$set(e.formData,"language",t)},expression:"formData.language"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.preferences.time_zone"),error:e.timeZoneError,required:""}},[n("sw-select",{staticClass:"mt-2",class:{error:e.$v.formData.timeZone.$error},attrs:{options:e.timeZones,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$tc("settings.preferences.select_time_zone"),label:"key","track-by":"key"},model:{value:e.formData.timeZone,callback:function(t){e.$set(e.formData,"timeZone",t)},expression:"formData.timeZone"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.preferences.date_format"),error:e.dateFormatError,required:""}},[n("sw-select",{staticClass:"mt-2",class:{error:e.$v.formData.dateFormat.$error},attrs:{options:e.dateFormats,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$tc("settings.preferences.select_date_format"),label:"display_date"},model:{value:e.formData.dateFormat,callback:function(t){e.$set(e.formData,"dateFormat",t)},expression:"formData.dateFormat"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-2",attrs:{label:e.$tc("settings.preferences.fiscal_year"),error:e.fiscalYearError,required:""}},[n("sw-select",{class:{error:e.$v.formData.fiscalYear.$error},attrs:{options:e.fiscalYears,"show-labels":!1,"allow-empty":!1,searchable:!0,placeholder:e.$tc("settings.preferences.select_financial_year"),label:"key","track-by":"value"},model:{value:e.formData.fiscalYear,callback:function(t){e.$set(e.formData,"fiscalYear",t)},expression:"formData.fiscalYear"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"mt-6",attrs:{variant:"primary",type:"submit",disabled:e.isLoading,loading:e.isLoading}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.$tc("settings.company_info.save"))+"\n ")],1),e._v(" "),n("sw-divider",{staticClass:"mt-6 mb-8"}),e._v(" "),n("div",{staticClass:"flex"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-18px"},on:{change:e.setDiscount},model:{value:e.discount_per_item,callback:function(t){e.discount_per_item=t},expression:"discount_per_item"}})],1),e._v(" "),n("div",{staticClass:"ml-15"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black"},[e._v("\n "+e._s(e.$t("settings.preferences.discount_per_item"))+"\n ")]),e._v(" "),n("p",{staticClass:"p-0 m-0 text-xs leading-tight text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.preferences.discount_setting_description"))+"\n ")])])])],2)],1)}),[],!1,null,null,null).exports;var Gs=n(3236);function Js(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Xs(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Js(i,r,a,o,s,"next",e)}function s(e){Js(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function el(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(n),!0).forEach((function(t){tl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nl=n(379),rl=nl.required,al=(nl.requiredIf,nl.sameAs),il=nl.email,ol=nl.minLength;const sl={components:{CloudUploadIcon:o.s68,BaseLoader:Gs.Z},data:function(){return{formData:{name:null,email:null,password:null,confirm_password:null},isLoading:!1,previewAvatar:null,cropperOutputMime:"",fileObject:null,language:null,isRequestOnGoing:!1}},validations:{formData:{name:{required:rl},email:{required:rl,email:il},password:{minLength:ol(8)},confirm_password:{sameAsPassword:al("password")}},language:{required:rl}},computed:el(el({},(0,i.Se)(["languages"])),{},{emailError:function(){return this.$v.formData.email.$error?this.$v.formData.email.required?this.$v.formData.email.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},passwordError:function(){return this.$v.formData.password.$error?this.$v.formData.password.minLength?void 0:this.$tc("validation.password_min_length",this.$v.formData.password.$params.minLength.min,{count:this.$v.formData.password.$params.minLength.min}):""},nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?void 0:this.$tc("validation.required"):""},confirmPasswordError:function(){return this.$v.formData.confirm_password.$error?this.$v.formData.confirm_password.sameAsPassword?void 0:this.$tc("validation.password_incorrect"):""},languageError:function(){return this.$v.language.$error?this.$v.language.required?void 0:this.$tc("validation.required"):""}}),watch:{"formData.password":function(e){e||(this.formData.confirm_password="")}},mounted:function(){this.setInitialData(),this.fetchLanguages()},methods:el(el(el({},(0,i.nv)("user",["fetchCurrentUser","updateCurrentUser","fetchUserSettings","updateUserSettings","uploadAvatar"])),(0,i.nv)(["fetchLanguages"])),{},{onUploadHandler:function(e){this.previewAvatar=e.getCroppedCanvas().toDataURL(this.cropperOutputMime)},onHandleUploadError:function(){window.toastr.error("Oops! Something went wrong...")},onChange:function(e){this.cropperOutputMime=e.type,this.fileObject=e},setInitialData:function(){var e=this;return Xs(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRequestOnGoing=!0,t.next=3,e.fetchCurrentUser();case 3:return n=t.sent,e.formData.name=n.data.user.name,e.formData.email=n.data.user.email,n.data.user.avatar?e.previewAvatar=n.data.user.avatar:e.previewAvatar="/images/default-avatar.jpg",t.next=9,e.fetchUserSettings(["language"]);case 9:r=t.sent,e.language=e.languages.find((function(e){return e.code==r.data.language})),e.isRequestOnGoing=!1;case 12:case"end":return t.stop()}}),t)})))()},updateUserData:function(){var e=this;return Xs(Y().mark((function t(){var n,r,a,i;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,n={name:e.formData.name,email:e.formData.email},t.prev=5,null!=e.formData.password&&void 0!==e.formData.password&&""!==e.formData.password&&(n=el(el({},n),{},{password:e.formData.password})),t.next=9,e.updateCurrentUser(n);case 9:return r=t.sent,a={settings:{language:e.language.code}},t.next=13,e.updateUserSettings(a);case 13:t.sent,r.data.success&&(e.isLoading=!1,e.fileObject&&e.previewAvatar&&((i=new FormData).append("admin_avatar",JSON.stringify({name:e.fileObject.name,data:e.previewAvatar})),e.uploadAvatar(i)),window.toastr.success(e.$t("settings.account_settings.updated_message")),e.formData.password="",e.formData.confirm_password=""),t.next=21;break;case 17:return t.prev=17,t.t0=t.catch(5),e.isLoading=!1,t.abrupt("return",!0);case 21:case"end":return t.stop()}}),t,null,[[5,17]])})))()}})};const ll=(0,_.Z)(sl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"relative h-full",on:{submit:function(t){return t.preventDefault(),e.updateUserData(t)}}},[e.isRequestOnGoing?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("sw-card",{attrs:{variant:"setting-card"}},[n("template",{slot:"header"},[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.account_settings.account_settings"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.account_settings.section_description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"grid mb-4 md:grid-cols-6"},[n("div",[n("label",{staticClass:"text-sm not-italic font-medium leading-4 text-black whitespace-nowrap"},[e._v("\n "+e._s(e.$tc("settings.account_settings.profile_picture"))+"\n ")]),e._v(" "),n("sw-avatar",{attrs:{"preview-avatar":e.previewAvatar,label:e.$tc("general.choose_file")},on:{changed:e.onChange,uploadHandler:e.onUploadHandler,handleUploadError:e.onHandleUploadError},scopedSlots:e._u([{key:"icon",fn:function(){return[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"})]},proxy:!0}])})],1)]),e._v(" "),n("div",{staticClass:"grid gap-6 sm:grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$tc("settings.account_settings.name"),error:e.nameError}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.name.$error,placeholder:e.$t("settings.user_profile.name")},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.account_settings.email"),error:e.emailError}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.email.$error,placeholder:e.$t("settings.user_profile.email")},on:{input:function(t){return e.$v.formData.email.$touch()}},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email",t)},expression:"formData.email"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.account_settings.password"),error:e.passwordError}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.formData.password.$error,placeholder:e.$t("settings.user_profile.password"),type:"password"},on:{input:function(t){return e.$v.formData.password.$touch()}},model:{value:e.formData.password,callback:function(t){e.$set(e.formData,"password",t)},expression:"formData.password"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-1 mb-2",attrs:{label:e.$tc("settings.account_settings.confirm_password"),error:e.confirmPasswordError}},[n("sw-input",{attrs:{invalid:e.$v.formData.confirm_password.$error,placeholder:e.$t("settings.user_profile.confirm_password"),type:"password"},on:{input:function(t){return e.$v.formData.confirm_password.$touch()}},model:{value:e.formData.confirm_password,callback:function(t){e.$set(e.formData,"confirm_password",t)},expression:"formData.confirm_password"}})],1)],1),e._v(" "),n("div",{staticClass:"grid gap-6 mt-4 sm:grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$tc("settings.language"),error:e.languageError}},[n("sw-select",{staticClass:"mt-2",class:{error:e.$v.language.$error},attrs:{options:e.languages,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$tc("settings.preferences.select_language"),label:"name","track-by":"code"},model:{value:e.language,callback:function(t){e.language=t},expression:"language"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"mt-6",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2 -ml-1"}),e._v("\n "+e._s(e.$tc("settings.account_settings.save"))+"\n ")],1)],2)],1)}),[],!1,null,null,null).exports;function cl(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ul(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){cl(i,r,a,o,s,"next",e)}function s(e){cl(i,r,a,o,s,"throw",e)}o(void 0)}))}}function dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dl(Object(n),!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ml(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fl={components:{TrashIcon:o.XHJ,PencilIcon:o.vdY,PlusIcon:o.pOD},data:function(){return{formData:{tax_per_item:!1},isRequestOnGoing:!1}},computed:pl({},(0,i.Se)("taxType",["taxTypes","getTaxTypeById"])),mounted:function(){this.getTaxSetting()},methods:pl(pl(pl(pl({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("taxType",["indexLoadData","deleteTaxType","fetchTaxType","fetchTaxTypes"])),(0,i.nv)("company",["fetchCompanySettings","updateCompanySettings"])),{},{fetchData:function(e){var t=this;return ul(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},n.next=4,t.fetchTaxTypes(i);case 4:return o=n.sent,n.abrupt("return",{data:o.data.taxTypes.data,pagination:{totalPages:o.data.taxTypes.last_page,currentPage:r,count:o.data.taxTypes.count}});case 6:case"end":return n.stop()}}),n)})))()},getTaxSetting:function(){var e=this;return ul(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchCompanySettings(["tax_per_item"]);case 2:(n=t.sent).data&&(e.formData.tax_per_item="YES"===n.data.tax_per_item);case 4:case"end":return t.stop()}}),t)})))()},setTax:function(e){var t=this;return ul(Y().mark((function e(){var n;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={settings:{tax_per_item:t.formData.tax_per_item?"YES":"NO"}},e.next=3,t.updateCompanySettings(n);case 3:e.sent.data&&window.toastr.success(t.$t("general.setting_updated"));case 5:case"end":return e.stop()}}),e)})))()},removeTax:function(e,t){var n=this;return ul(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:n.$t("general.are_you_sure"),text:n.$t("settings.tax_types.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=ul(Y().mark((function t(r){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=9;break}return t.next=3,n.deleteTaxType(e);case 3:if(!t.sent.data.success){t.next=8;break}return window.toastr.success(n.$t("settings.tax_types.deleted_message")),n.$refs.table.refresh(),t.abrupt("return",!0);case 8:window.toastr.error(n.$t("settings.tax_types.already_in_use"));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},openTaxModal:function(){this.openModal({title:this.$t("settings.tax_types.add_tax"),componentName:"TaxTypeModal",refreshData:this.$refs.table.refresh})},editTax:function(e){var t=this;return ul(Y().mark((function n(){var r;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.fetchTaxType(e);case 2:r=n.sent,t.openModal({title:t.$t("settings.tax_types.edit_tax"),componentName:"TaxTypeModal",id:e,data:r.data.taxType,refreshData:t.$refs.table.refresh});case 4:case"end":return n.stop()}}),n)})))()}})};const hl=(0,_.Z)(fl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-card",{attrs:{variant:"setting-card"}},[n("div",{staticClass:"flex flex-wrap justify-between lg:flex-nowrap",attrs:{slot:"header"},slot:"header"},[n("div",[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.tax_types.title"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.tax_types.description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 lg:mt-0 lg:ml-2"},[n("sw-button",{attrs:{size:"lg",variant:"primary-outline"},on:{click:e.openTaxModal}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.tax_types.add_new_tax"))+"\n ")],1)],1)]),e._v(" "),n("sw-table-component",{ref:"table",attrs:{"show-filter":!1,data:e.fetchData,"table-class":"table",variant:"gray"}},[n("sw-table-column",{attrs:{sortable:!0,label:e.$t("settings.tax_types.tax_name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.tax_types.tax_name")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.name))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,filterable:!0,label:e.$t("settings.tax_types.compound_tax")},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.tax_types.compound_tax")))]),e._v(" "),n("sw-badge",{attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.compound_tax?"YES":"NO").bgColor,color:e.$utils.getBadgeStatusColor(t.compound_tax?"YES":"NO").color}},[e._v("\n "+e._s(t.compound_tax?"Yes":"No".replace("_"," "))+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,filterable:!0,label:e.$t("settings.tax_types.percent")},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.tax_types.percent")))]),e._v("\n "+e._s(t.percent)+" %\n ")]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.tax_types.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.editTax(t.id)}}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeTax(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1),e._v(" "),n("sw-divider",{staticClass:"my-8"}),e._v(" "),n("div",{staticClass:"flex mt-2"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-20px"},on:{change:e.setTax},model:{value:e.formData.tax_per_item,callback:function(t){e.$set(e.formData,"tax_per_item",t)},expression:"formData.tax_per_item"}})],1),e._v(" "),n("div",{staticClass:"ml-4"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black box-title"},[e._v("\n "+e._s(e.$t("settings.tax_types.tax_per_item"))+"\n ")]),e._v(" "),n("p",{staticClass:"p-0 m-0 text-xs leading-4 text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.tax_types.tax_setting_description"))+"\n ")])])])],1)}),[],!1,null,null,null).exports;function _l(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function vl(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){_l(i,r,a,o,s,"next",e)}function s(e){_l(i,r,a,o,s,"throw",e)}o(void 0)}))}}function gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gl(Object(n),!0).forEach((function(t){bl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wl=n(379);wl.required,wl.maxLength,wl.alpha;const xl={components:{TrashIcon:o.XHJ,PencilIcon:o.vdY,PlusIcon:o.pOD},methods:yl(yl(yl({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("notes",["fetchNotes","deleteNote"])),{},{fetchData:function(e){var t=this;return vl(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},n.next=4,t.fetchNotes(i);case 4:return o=n.sent,n.abrupt("return",{data:o.data.notes.data,pagination:{totalPages:o.data.notes.last_page,currentPage:r,count:o.data.notes.count}});case 6:case"end":return n.stop()}}),n)})))()},removeNote:function(e){var t=this;swal({title:this.$t("general.are_you_sure"),text:this.$t("settings.customization.notes.note_confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=vl(Y().mark((function n(r){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=9;break}return n.next=3,t.deleteNote(e);case 3:if(!n.sent.data.success){n.next=8;break}return window.toastr.success(t.$t("settings.customization.notes.deleted_message")),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:window.toastr.error(t.$t("settings.customization.notes.already_in_use"));case 9:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())},editNote:function(e){this.openModal({title:this.$t("settings.customization.notes.edit_note"),componentName:"NoteSelectModal",id:e.id,data:e,variant:"lg",refreshData:this.$refs.table.refresh})},openNoteSelectModal:function(){this.openModal({title:this.$t("settings.customization.notes.add_note"),componentName:"NoteSelectModal",variant:"lg",refreshData:this.$refs.table.refresh})}})};const kl=(0,_.Z)(xl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-card",{attrs:{variant:"setting-card"}},[n("div",{staticClass:"flex flex-wrap justify-between lg:flex-nowrap",attrs:{slot:"header"},slot:"header"},[n("div",[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.customization.notes.title"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.customization.notes.description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 lg:mt-0 lg:ml-2"},[n("sw-button",{attrs:{size:"lg",variant:"primary-outline"},on:{click:e.openNoteSelectModal}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.customization.notes.add_note"))+"\n ")],1)],1)]),e._v(" "),n("sw-table-component",{ref:"table",attrs:{variant:"gray","show-filter":!1,data:e.fetchData}},[n("sw-table-column",{attrs:{label:e.$t("settings.customization.notes.name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.customization.notes.name")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.name))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{label:e.$t("settings.customization.notes.type"),show:"type"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.customization.notes.type")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.type))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.tax_types.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{staticClass:"h-5",attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.editNote(t)}}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeNote(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)}),[],!1,null,null,null).exports;function Dl(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ml(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Dl(i,r,a,o,s,"next",e)}function s(e){Dl(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sl(Object(n),!0).forEach((function(t){Ll(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ll(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tl={components:{TrashIcon:o.XHJ,PencilIcon:o.vdY,PlusIcon:o.pOD},computed:Cl({},(0,i.Se)("category",["categories","getCategoryById"])),methods:Cl(Cl(Cl({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("category",["fetchCategories","fetchCategory","deleteCategory"])),{},{fetchData:function(e){var t=this;return Ml(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},t.isRequestOngoing=!0,n.next=5,t.fetchCategories(i);case 5:return o=n.sent,t.isRequestOngoing=!1,n.abrupt("return",{data:o.data.categories.data,pagination:{totalPages:o.data.categories.last_page,currentPage:r,count:o.data.categories.count}});case 8:case"end":return n.stop()}}),n)})))()},removeExpenseCategory:function(e,t){var n=this;return Ml(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:swal({title:n.$t("general.are_you_sure"),text:n.$t("settings.expense_category.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=Ml(Y().mark((function t(r){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=10;break}return t.next=3,n.deleteCategory(e);case 3:if(!t.sent.data.success){t.next=9;break}return window.toastr.success(n.$tc("settings.expense_category.deleted_message")),n.id=null,n.$refs.table.refresh(),t.abrupt("return",!0);case 9:window.toastr.error(n.$t("settings.expense_category.already_in_use"));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},addExpenseCategory:function(){this.openModal({title:this.$t("settings.expense_category.add_category"),componentName:"CategoryModal",refreshData:this.$refs.table.refresh})},editExpenseCategory:function(e){var t=this;return Ml(Y().mark((function n(){var r;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.fetchCategory(e);case 2:r=n.sent,t.openModal({title:t.$t("settings.expense_category.edit_category"),componentName:"CategoryModal",id:e,data:r.data.category,refreshData:t.$refs.table.refresh});case 4:case"end":return n.stop()}}),n)})))()}})};const Ol=(0,_.Z)(Tl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-card",{attrs:{variant:"setting-card"}},[n("div",{staticClass:"flex flex-wrap justify-between lg:flex-nowrap",attrs:{slot:"header"},slot:"header"},[n("div",[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.expense_category.title"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.expense_category.description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 lg:mt-0 lg:ml-2"},[n("sw-button",{attrs:{variant:"primary-outline",size:"lg"},on:{click:e.addExpenseCategory}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.expense_category.add_new_category"))+"\n ")],1)],1)]),e._v(" "),n("sw-table-component",{ref:"table",attrs:{"show-filter":!1,data:e.fetchData,variant:"gray"}},[n("sw-table-column",{attrs:{label:e.$t("settings.expense_category.category_name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.expense_category.category_name"))+"}")]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.name))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,filterable:!0,label:e.$t("settings.expense_category.category_description")},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.expense_category.category_description")))]),e._v(" "),n("div",{staticClass:"w-48 overflow-hidden notes"},[n("div",{staticClass:"overflow-hidden whitespace-nowrap",staticStyle:{"text-overflow":"ellipsis"}},[e._v("\n "+e._s(t.description)+"\n ")])])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.expense_category.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{staticClass:"h-5",attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.editExpenseCategory(t.id)}}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeExpenseCategory(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)}),[],!1,null,null,null).exports;function El(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Al=n(379),jl=Al.required,$l=Al.email,Pl=Al.numeric;const Yl={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},components:{EyeIcon:s.tEF,EyeOffIcon:s.Xl7},data:function(){return{mailConfigData:{mail_driver:"",mail_host:"",mail_port:null,mail_username:"",mail_password:"",mail_encryption:"tls",from_mail:"",from_name:""},isShowPassword:!1,encryptions:["tls","ssl","starttls"]}},validations:{mailConfigData:{mail_driver:{required:jl},mail_host:{required:jl},mail_port:{required:jl,numeric:Pl},mail_username:{required:jl},mail_password:{required:jl},mail_encryption:{required:jl},from_mail:{required:jl,email:$l},from_name:{required:jl}}},computed:{driverError:function(){return this.$v.mailConfigData.mail_driver.$error?this.$v.mailConfigData.mail_driver.required?void 0:this.$tc("validation.required"):""},hostError:function(){return this.$v.mailConfigData.mail_host.$error?this.$v.mailConfigData.mail_host.required?void 0:this.$tc("validation.required"):""},usernameError:function(){return this.$v.mailConfigData.mail_username.$error?this.$v.mailConfigData.mail_username.required?void 0:this.$tc("validation.required"):""},passwordError:function(){return this.$v.mailConfigData.mail_password.$error?this.$v.mailConfigData.mail_password.required?void 0:this.$tc("validation.required"):""},portError:function(){return this.$v.mailConfigData.mail_port.$error?this.$v.mailConfigData.mail_port.required?this.$v.mailConfigData.mail_port.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""},encryptionError:function(){return this.$v.mailConfigData.mail_encryption.$error?this.$v.mailConfigData.mail_encryption.required?void 0:this.$tc("validation.required"):""},fromEmailError:function(){return this.$v.mailConfigData.from_mail.$error?this.$v.mailConfigData.from_mail.required?this.$v.mailConfigData.from_mail.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},fromNameError:function(){return this.$v.mailConfigData.from_name.$error?this.$v.mailConfigData.from_name.required?void 0:this.$tc("validation.required"):""},getInputType:function(){return this.isShowPassword?"text":"password"}},mounted:function(){for(var e in this.mailConfigData)this.configData.hasOwnProperty(e)&&(this.mailConfigData[e]=this.configData[e])},methods:{saveEmailConfig:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){El(i,r,a,o,s,"next",e)}function s(e){El(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}};const Nl=(0,_.Z)(Yl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.saveEmailConfig(t)}}},[n("div",{staticClass:"grid gap-6 grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("settings.mail.driver"),error:e.driverError,required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_driver.$error,options:e.mailDrivers,searchable:!0,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeDriver},model:{value:e.mailConfigData.mail_driver,callback:function(t){e.$set(e.mailConfigData,"mail_driver",t)},expression:"mailConfigData.mail_driver"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.host"),error:e.hostError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_host.$error,type:"text",name:"mail_host"},on:{input:function(t){return e.$v.mailConfigData.mail_host.$touch()}},model:{value:e.mailConfigData.mail_host,callback:function(t){e.$set(e.mailConfigData,"mail_host","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_host"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.username"),error:e.usernameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_username.$error,type:"text",name:"db_name"},on:{input:function(t){return e.$v.mailConfigData.mail_username.$touch()}},model:{value:e.mailConfigData.mail_username,callback:function(t){e.$set(e.mailConfigData,"mail_username","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_username"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.password"),error:e.passwordError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_password.$error,type:e.getInputType,name:"password"},on:{input:function(t){return e.$v.mailConfigData.mail_password.$touch()}},scopedSlots:e._u([{key:"rightIcon",fn:function(){return[e.isShowPassword?n("eye-off-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}}):n("eye-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}})]},proxy:!0}]),model:{value:e.mailConfigData.mail_password,callback:function(t){e.$set(e.mailConfigData,"mail_password","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_password"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.port"),error:e.portError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_port.$error,type:"text",name:"mail_port"},on:{input:function(t){return e.$v.mailConfigData.mail_port.$touch()}},model:{value:e.mailConfigData.mail_port,callback:function(t){e.$set(e.mailConfigData,"mail_port","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_port"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.encryption"),error:e.encryptionError,required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_encryption.$error,options:e.encryptions,searchable:!0,"show-labels":!1},on:{input:function(t){return e.$v.mailConfigData.mail_encryption.$touch()}},model:{value:e.mailConfigData.mail_encryption,callback:function(t){e.$set(e.mailConfigData,"mail_encryption","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_encryption"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.from_mail"),error:e.fromEmailError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.from_mail.$error,type:"text",name:"from_mail"},on:{input:function(t){return e.$v.mailConfigData.from_mail.$touch()}},model:{value:e.mailConfigData.from_mail,callback:function(t){e.$set(e.mailConfigData,"from_mail","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_mail"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.from_name"),error:e.fromNameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.from_name.$error,type:"text",name:"from_name"},on:{input:function(t){return e.$v.mailConfigData.from_name.$touch()}},model:{value:e.mailConfigData.from_name,callback:function(t){e.$set(e.mailConfigData,"from_name","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_name"}})],1)],1),e._v(" "),n("div",{staticClass:"flex my-10"},[n("sw-button",{attrs:{disabled:e.loading,loading:e.loading,type:"submit",variant:"primary"}},[n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1),e._v(" "),e._t("default")],2)])}),[],!1,null,null,null).exports;function zl(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Il=n(379),Fl=Il.required,Hl=Il.email;Il.numeric;const Rl={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},components:{EyeIcon:s.tEF,EyeOffIcon:s.Xl7},data:function(){return{isShowPassword:!1,mailConfigData:{mail_driver:"",mail_mailgun_domain:"",mail_mailgun_secret:"",mail_mailgun_endpoint:"",from_mail:"",from_name:""}}},validations:{mailConfigData:{mail_driver:{required:Fl},mail_mailgun_domain:{required:Fl},mail_mailgun_endpoint:{required:Fl},mail_mailgun_secret:{required:Fl},from_mail:{required:Fl,email:Hl},from_name:{required:Fl}}},computed:{driverError:function(){return this.$v.mailConfigData.mail_driver.$error?this.$v.mailConfigData.mail_driver.required?void 0:this.$tc("validation.required"):""},domainError:function(){return this.$v.mailConfigData.mail_mailgun_domain.$error?this.$v.mailConfigData.mail_mailgun_domain.required?void 0:this.$tc("validation.required"):""},secretError:function(){return this.$v.mailConfigData.mail_mailgun_secret.$error?this.$v.mailConfigData.mail_mailgun_secret.required?void 0:this.$tc("validation.required"):""},endpointError:function(){return this.$v.mailConfigData.mail_mailgun_endpoint.$error?this.$v.mailConfigData.mail_mailgun_endpoint.required?this.$v.mailConfigData.mail_mailgun_endpoint.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""},fromEmailError:function(){return this.$v.mailConfigData.from_mail.$error?this.$v.mailConfigData.from_mail.required?this.$v.mailConfigData.from_mail.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},fromNameError:function(){return this.$v.mailConfigData.from_name.$error?this.$v.mailConfigData.from_name.required?void 0:this.$tc("validation.required"):""},getInputType:function(){return this.isShowPassword?"text":"password"}},mounted:function(){for(var e in this.mailConfigData)this.configData.hasOwnProperty(e)&&(this.mailConfigData[e]=this.configData[e])},methods:{saveEmailConfig:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){zl(i,r,a,o,s,"next",e)}function s(e){zl(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}};const Bl=(0,_.Z)(Rl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.saveEmailConfig(t)}}},[n("div",{staticClass:"grid gap-6 sm:grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("settings.mail.driver"),error:e.driverError,required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_driver.$error,options:e.mailDrivers,"allow-empty":!1,searchable:!0,"show-labels":!1},on:{input:e.onChangeDriver},model:{value:e.mailConfigData.mail_driver,callback:function(t){e.$set(e.mailConfigData,"mail_driver",t)},expression:"mailConfigData.mail_driver"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.mailgun_domain"),error:e.domainError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_mailgun_domain.$error,type:"text",name:"mailgun_domain"},on:{input:function(t){return e.$v.mailConfigData.mail_mailgun_domain.$touch()}},model:{value:e.mailConfigData.mail_mailgun_domain,callback:function(t){e.$set(e.mailConfigData,"mail_mailgun_domain","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_mailgun_domain"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.mailgun_secret"),error:e.secretError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_mailgun_secret.$error,type:e.getInputType,name:"mailgun_secret"},on:{input:function(t){return e.$v.mailConfigData.mail_mailgun_secret.$touch()}},scopedSlots:e._u([{key:"rightIcon",fn:function(){return[e.isShowPassword?n("eye-off-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}}):n("eye-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}})]},proxy:!0}]),model:{value:e.mailConfigData.mail_mailgun_secret,callback:function(t){e.$set(e.mailConfigData,"mail_mailgun_secret","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_mailgun_secret"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.mailgun_endpoint"),error:e.endpointError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_mailgun_endpoint.$error,type:"text",name:"mailgun_endpoint"},on:{input:function(t){return e.$v.mailConfigData.mail_mailgun_endpoint.$touch()}},model:{value:e.mailConfigData.mail_mailgun_endpoint,callback:function(t){e.$set(e.mailConfigData,"mail_mailgun_endpoint","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_mailgun_endpoint"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.from_mail"),error:e.fromEmailError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.from_mail.$error,type:"text",name:"from_mail"},on:{input:function(t){return e.$v.mailConfigData.from_mail.$touch()}},model:{value:e.mailConfigData.from_mail,callback:function(t){e.$set(e.mailConfigData,"from_mail","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_mail"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.from_name"),error:e.fromNameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.from_name.$error,type:"text",name:"from_name"},on:{input:function(t){return e.$v.mailConfigData.from_name.$touch()}},model:{value:e.mailConfigData.from_name,callback:function(t){e.$set(e.mailConfigData,"from_name","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_name"}})],1)],1),e._v(" "),n("div",{staticClass:"flex my-10"},[n("sw-button",{attrs:{disabled:e.loading,loading:e.loading,variant:"primary",type:"submit"}},[n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1),e._v(" "),e._t("default")],2)])}),[],!1,null,null,null).exports;function ql(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Vl=n(379),Wl=Vl.required,Ul=Vl.email,Kl=Vl.numeric;const Zl={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},components:{EyeOffIcon:s.Xl7,EyeIcon:s.tEF},data:function(){return{isShowPassword:!1,mailConfigData:{mail_driver:"",mail_host:"",mail_port:null,mail_ses_key:"",mail_ses_secret:"",mail_encryption:"tls",from_mail:"",from_name:""},encryptions:["tls","ssl","starttls"]}},validations:{mailConfigData:{mail_driver:{required:Wl},mail_host:{required:Wl},mail_port:{required:Wl,numeric:Kl},mail_ses_key:{required:Wl},mail_ses_secret:{required:Wl},mail_encryption:{required:Wl},from_mail:{required:Wl,email:Ul},from_name:{required:Wl}}},computed:{secretError:function(){return this.$v.mailConfigData.mail_ses_secret.$error?this.$v.mailConfigData.mail_ses_secret.required?void 0:this.$tc("validation.required"):""},keyError:function(){return this.$v.mailConfigData.mail_ses_key.$error?this.$v.mailConfigData.mail_ses_key.required?void 0:this.$tc("validation.required"):""},fromNameError:function(){return this.$v.mailConfigData.from_name.$error?this.$v.mailConfigData.from_name.required?void 0:this.$tc("validation.required"):""},fromEmailError:function(){return this.$v.mailConfigData.from_mail.$error?this.$v.mailConfigData.from_mail.required?this.$v.mailConfigData.from_mail.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},encryptionError:function(){return this.$v.mailConfigData.mail_encryption.$error?this.$v.mailConfigData.mail_encryption.required?void 0:this.$tc("validation.required"):""},portError:function(){return this.$v.mailConfigData.mail_port.$error?this.$v.mailConfigData.mail_port.required?this.$v.mailConfigData.mail_port.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""},hostError:function(){return this.$v.mailConfigData.mail_host.$error?this.$v.mailConfigData.mail_host.required?void 0:this.$tc("validation.required"):""},driverError:function(){return this.$v.mailConfigData.mail_driver.$error?this.$v.mailConfigData.mail_driver.required?void 0:this.$tc("validation.required"):""},getInputType:function(){return this.isShowPassword?"text":"password"}},mounted:function(){for(var e in this.mailConfigData)this.configData.hasOwnProperty(e)&&(this.mailConfigData[e]=this.configData[e])},methods:{saveEmailConfig:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ql(i,r,a,o,s,"next",e)}function s(e){ql(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}};const Gl=(0,_.Z)(Zl,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.saveEmailConfig(t)}}},[n("div",{staticClass:"grid gap-6 sm:grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("settings.mail.driver"),error:e.driverError,required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_driver.$error,options:e.mailDrivers,"allow-empty":!1,searchable:!0,"show-labels":!1},on:{input:e.onChangeDriver},model:{value:e.mailConfigData.mail_driver,callback:function(t){e.$set(e.mailConfigData,"mail_driver",t)},expression:"mailConfigData.mail_driver"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.host"),error:e.hostError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_host.$error,type:"text",name:"mail_host"},on:{input:function(t){return e.$v.mailConfigData.mail_host.$touch()}},model:{value:e.mailConfigData.mail_host,callback:function(t){e.$set(e.mailConfigData,"mail_host","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_host"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.port"),error:e.portError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_port.$error,type:"text",name:"mail_port"},on:{input:function(t){return e.$v.mailConfigData.mail_port.$touch()}},model:{value:e.mailConfigData.mail_port,callback:function(t){e.$set(e.mailConfigData,"mail_port","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_port"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.encryption"),error:e.encryptionError,required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_encryption.$error,options:e.encryptions,searchable:!0,"show-labels":!1},on:{input:function(t){return e.$v.mailConfigData.mail_encryption.$touch()}},model:{value:e.mailConfigData.mail_encryption,callback:function(t){e.$set(e.mailConfigData,"mail_encryption","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_encryption"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.from_mail"),error:e.fromEmailError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.from_mail.$error,type:"text",name:"from_mail"},on:{input:function(t){return e.$v.mailConfigData.from_mail.$touch()}},model:{value:e.mailConfigData.from_mail,callback:function(t){e.$set(e.mailConfigData,"from_mail","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_mail"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.from_name"),error:e.fromNameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.from_name.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.mailConfigData.from_name.$touch()}},model:{value:e.mailConfigData.from_name,callback:function(t){e.$set(e.mailConfigData,"from_name","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.ses_key"),error:e.keyError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_ses_key.$error,type:"text",name:"mail_ses_key"},on:{input:function(t){return e.$v.mailConfigData.mail_ses_key.$touch()}},model:{value:e.mailConfigData.mail_ses_key,callback:function(t){e.$set(e.mailConfigData,"mail_ses_key","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_ses_key"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.ses_secret"),error:e.secretError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_ses_secret.$error,type:e.getInputType,name:"mail_ses_secret"},on:{input:function(t){return e.$v.mailConfigData.mail_ses_secret.$touch()}},scopedSlots:e._u([{key:"rightIcon",fn:function(){return[e.isShowPassword?n("eye-off-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}}):n("eye-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}})]},proxy:!0}]),model:{value:e.mailConfigData.mail_ses_secret,callback:function(t){e.$set(e.mailConfigData,"mail_ses_secret","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_ses_secret"}})],1)],1),e._v(" "),n("div",{staticClass:"flex my-10"},[n("sw-button",{attrs:{disabled:e.loading,loading:e.loading,variant:"primary",type:"submit"}},[n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1),e._v(" "),e._t("default")],2)])}),[],!1,null,null,null).exports;function Jl(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Xl=n(379),Ql=Xl.required,ec=Xl.email;const tc={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},data:function(){return{mailConfigData:{mail_driver:"",mail_host:"",from_mail:"",from_name:""}}},validations:{mailConfigData:{mail_driver:{required:Ql},from_mail:{required:Ql,email:ec},from_name:{required:Ql}}},computed:{driverError:function(){return this.$v.mailConfigData.mail_driver.$error?this.$v.mailConfigData.mail_driver.required?void 0:this.$tc("validation.required"):""},fromEmailError:function(){return this.$v.mailConfigData.from_mail.$error?this.$v.mailConfigData.from_mail.required?this.$v.mailConfigData.from_mail.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},fromNameError:function(){return this.$v.mailConfigData.from_name.$error?this.$v.mailConfigData.from_name.required?void 0:this.$tc("validation.required"):""}},mounted:function(){for(var e in this.mailConfigData)this.configData.hasOwnProperty(e)&&(this.mailConfigData[e]=this.configData[e])},methods:{saveEmailConfig:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Jl(i,r,a,o,s,"next",e)}function s(e){Jl(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}};const nc=(0,_.Z)(tc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.saveEmailConfig(t)}}},[n("div",{staticClass:"grid gap-6 grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("settings.mail.driver"),error:e.driverError,required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.mail_driver.$error,options:e.mailDrivers,searchable:!0,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeDriver},model:{value:e.mailConfigData.mail_driver,callback:function(t){e.$set(e.mailConfigData,"mail_driver",t)},expression:"mailConfigData.mail_driver"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.from_mail"),error:e.fromEmailError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.from_mail.$error,type:"text",name:"from_mail"},on:{input:function(t){return e.$v.mailConfigData.from_mail.$touch()}},model:{value:e.mailConfigData.from_mail,callback:function(t){e.$set(e.mailConfigData,"from_mail","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_mail"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.mail.from_name"),error:e.fromNameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.mailConfigData.from_name.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.mailConfigData.from_name.$touch()}},model:{value:e.mailConfigData.from_name,callback:function(t){e.$set(e.mailConfigData,"from_name","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_name"}})],1)],1),e._v(" "),n("div",{staticClass:"flex mt-8"},[n("sw-button",{attrs:{disabled:e.loading,loading:e.loading,variant:"primary",type:"submit"}},[n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1),e._v(" "),e._t("default")],2)])}),[],!1,null,null,null).exports;function rc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ac(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){rc(i,r,a,o,s,"next",e)}function s(e){rc(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ic(Object(n),!0).forEach((function(t){sc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ic(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lc={components:{Smtp:Nl,Mailgun:Bl,Ses:Gl,sendmail:nc,mail:nc},data:function(){return{mailConfigData:null,mail_driver:"smtp",isLoading:!1,isRequestOnGoing:!1,mail_drivers:[]}},mounted:function(){this.loadData()},methods:oc(oc(oc({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("company",["fetchMailDrivers","fetchMailConfig","updateMailConfig"])),{},{loadData:function(){var e=this;return ac(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRequestOnGoing=!0,t.next=3,e.fetchMailDrivers();case 3:return n=t.sent,t.next=6,e.fetchMailConfig();case 6:r=t.sent,n.data&&(e.mail_drivers=n.data),r.data&&(e.mailConfigData=r.data,e.mail_driver=r.data.mail_driver),e.isRequestOnGoing=!1;case 10:case"end":return t.stop()}}),t)})))()},saveEmailConfig:function(e){var t=this;return ac(Y().mark((function n(){var r;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,t.isLoading=!0,n.next=4,t.updateMailConfig(e);case 4:return(r=n.sent).data.success?(t.isLoading=!1,window.toastr.success(t.$t("wizard.success."+r.data.success))):window.toastr.error(t.$t("wizard.errors."+r.data.error)),n.abrupt("return",!0);case 9:n.prev=9,n.t0=n.catch(0),window.toastr.error("Something went wrong");case 12:case"end":return n.stop()}}),n,null,[[0,9]])})))()},openMailTestModal:function(){this.openModal({title:"Test Mail Configuration",componentName:"MailTestModal"})}})};const cc=(0,_.Z)(lc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative"},[e.isRequestOnGoing?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("sw-card",{attrs:{variant:"setting-card"}},[n("template",{slot:"header"},[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.mail.mail_config"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.mail.mail_config_desc"))+"\n ")])]),e._v(" "),e.mailConfigData?n("div",[n(e.mail_driver,{tag:"component",attrs:{"config-data":e.mailConfigData,loading:e.isLoading,"mail-drivers":e.mail_drivers},on:{"on-change-driver":function(t){return e.mail_driver=e.mailConfigData.mail_driver=t},"submit-data":e.saveEmailConfig}},[n("sw-button",{staticClass:"ml-2",attrs:{variant:"primary-outline",type:"button"},on:{click:e.openMailTestModal}},[e._v("\n "+e._s(e.$t("general.test_mail_conf"))+"\n ")])],1)],1):e._e()],2)],1)}),[],!1,null,null,null).exports;function uc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function dc(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){uc(i,r,a,o,s,"next",e)}function s(e){uc(i,r,a,o,s,"throw",e)}o(void 0)}))}}function pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mc={components:{LoadingIcon:n(3397).Z},data:function(){var e;return pc(e={isShowProgressBar:!1,isUpdateAvailable:!1,isUpdating:!1,isCheckingforUpdate:!1,progress:10,interval:null,description:"",currentVersion:"",requiredExtentions:null,deletedFiles:null,updateSteps:[{translationKey:"settings.update_app.download_zip_file",stepUrl:"/api/v1/update/download",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.unzipping_package",stepUrl:"/api/v1/update/unzip",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.copying_files",stepUrl:"/api/v1/update/copy",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.deleting_files",stepUrl:"/api/v1/update/delete",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.running_migrations",stepUrl:"/api/v1/update/migrate",time:null,started:!1,completed:!1},{translationKey:"settings.update_app.finishing_update",stepUrl:"/api/v1/update/finish",time:null,started:!1,completed:!1}],updateData:{isMinor:Boolean,installed:"",version:""}},"requiredExtentions",null),pc(e,"minPhpVesrion",null),e},computed:{allowToUpdate:function(){var e=this;if(null!==this.requiredExtentions)return Object.keys(this.requiredExtentions).every((function(t){return e.requiredExtentions[t]}))},hasUiUpdate:function(){return"4.0.0"!=this.updateData.version}},created:function(){var e=this;window.addEventListener("beforeunload",(function(t){e.isUpdating&&(t.returnValue="Update is in progress!")}))},mounted:function(){var e=this;window.axios.get("/api/v1/app/version").then((function(t){e.currentVersion=t.data.version}))},methods:{getStatus:function(e){return e.started&&e.completed?"finished":e.started&&!e.completed?"running":e.started||e.completed?"error":"pending"},statusClass:function(e){switch(this.getStatus(e)){case"pending":return"text-primary-800 bg-gray-200";case"finished":return"text-teal-500 bg-teal-100";case"running":return"text-blue-400 bg-blue-100";case"error":return"text-danger bg-red-200"}},checkUpdate:function(){var e=this;return dc(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.isCheckingforUpdate=!0,t.next=4,window.axios.get("/api/v1/check/update");case 4:if(n=t.sent,e.isCheckingforUpdate=!1,n.data.version){t.next=9;break}return window.toastr.info(e.$t("settings.update_app.latest_message")),t.abrupt("return");case 9:n.data&&(e.updateData.isMinor=n.data.is_minor,e.updateData.version=n.data.version.version,e.description=n.data.version.description,e.requiredExtentions=n.data.version.extensions,e.isUpdateAvailable=!0,e.requiredExtentions=n.data.version.extensions,e.minPhpVesrion=n.data.version.minimum_php_version,e.deletedFiles=n.data.version.deleted_files),t.next=17;break;case 12:t.prev=12,t.t0=t.catch(0),e.isUpdateAvailable=!1,e.isCheckingforUpdate=!1,window.toastr.error("Something went wrong");case 17:case"end":return t.stop()}}),t,null,[[0,12]])})))()},onUpdateApp:function(){var e=this;return dc(Y().mark((function t(){var n,r,a,i,o;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=null,e.allowToUpdate){t.next=4;break}return window.toastr.error("Your current configuration does not match the update requirements. Please try again after all the requirements are fulfilled. "),t.abrupt("return",!0);case 4:r=0;case 5:if(!(r<e.updateSteps.length)){t.next=29;break}return a=e.updateSteps[r],t.prev=7,e.isUpdating=!0,a.started=!0,i={version:e.updateData.version,installed:e.currentVersion,deleted_files:e.deletedFiles,path:n||null},t.next=13,window.axios.post(a.stepUrl,i);case 13:o=t.sent,a.completed=!0,o.data&&o.data.path&&(n=o.data.path),"settings.update_app.finishing_update"==a.translationKey&&(e.isUpdating=!1,window.toastr.success(e.$t("settings.update_app.update_success")),setTimeout((function(){location.reload()}),3e3)),t.next=26;break;case 19:return t.prev=19,t.t0=t.catch(7),a.started=!1,a.completed=!0,window.toastr.error(e.$t("validation.something_went_wrong")),e.onUpdateFailed(a.translationKey),t.abrupt("return",!1);case 26:r++,t.next=5;break;case 29:case"end":return t.stop()}}),t,null,[[7,19]])})))()},onUpdateFailed:function(e){var t=this,n=this.$t(e);swal({title:this.$t("settings.update_app.update_failed"),text:this.$tc("settings.update_app.update_failed_text",n,{step:n}),buttons:[this.$t("general.cancel"),this.$t("general.retry")]}).then(function(){var e=dc(Y().mark((function e(n){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=3;break}return t.onUpdateApp(),e.abrupt("return");case 3:t.isUpdating=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}};var fc=n(3499),hc={insert:"head",singleton:!1};m()(fc.Z,hc);fc.Z.locals;const _c=(0,_.Z)(mc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-card",{attrs:{variant:"setting-card"}},[n("template",{slot:"header"},[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.update_app.title"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.update_app.description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"m-0"},[n("label",{staticClass:"text-sm not-italic font-medium input-label"},[e._v("\n "+e._s(e.$t("settings.update_app.current_version"))+"\n ")]),e._v(" "),n("label",{staticClass:"box-border flex w-16 p-3 my-2 text-sm text-gray-500 bg-gray-200 border border-gray-200 border-solid rounded-md version"},[e._v("\n "+e._s(e.currentVersion)+"\n ")]),e._v(" "),n("sw-button",{staticClass:"mt-6",attrs:{loading:e.isCheckingforUpdate,disabled:e.isCheckingforUpdate||e.isUpdating,variant:"primary-outline"},on:{click:e.checkUpdate}},[e._v("\n "+e._s(e.$t("settings.update_app.check_update"))+"\n ")]),e._v(" "),e.isUpdateAvailable?n("sw-divider",{staticClass:"mt-2 mb-4"}):e._e(),e._v(" "),e.isUpdateAvailable?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.isUpdating,expression:"!isUpdating"}],staticClass:"mt-4 content"},[n("h6",{staticClass:"mb-8 sw-section-title"},[e._v("\n "+e._s(e.$t("settings.update_app.avail_update"))+"\n ")]),e._v(" "),n("label",{staticClass:"text-sm not-italic font-medium input-label"},[e._v("\n "+e._s(e.$t("settings.update_app.next_version"))+" ")]),n("br"),e._v(" "),n("label",{staticClass:"box-border flex w-16 p-3 my-2 text-sm text-gray-500 bg-gray-200 border border-gray-200 border-solid rounded-md version"},[e._v("\n "+e._s(e.updateData.version)+"\n ")]),e._v(" "),n("div",{staticClass:"pl-5 mt-4 mb-8 text-sm leading-snug text-gray-500 update-description",staticStyle:{"white-space":"pre-wrap","max-width":"480px"},domProps:{innerHTML:e._s(e.description)}}),e._v(" "),n("label",{staticClass:"text-sm not-italic font-medium input-label"},[e._v("\n "+e._s(e.$t("settings.update_app.requirements"))+"\n ")]),e._v(" "),n("table",{staticClass:"w-1/2 mt-2 border-2 border-gray-200 table-fixed"},e._l(e.requiredExtentions,(function(t,r){return n("tr",{key:r,staticClass:"p-2 border-2 border-gray-200"},[n("td",{staticClass:"p-2 text-sm truncate",attrs:{width:"70%"}},[e._v("\n "+e._s(r)+"\n ")]),e._v(" "),n("td",{staticClass:"p-2 text-sm text-right",attrs:{width:"30%"}},[n("span",t?{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-success"}:{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-danger"})])])})),0),e._v(" "),n("sw-button",{staticClass:"mt-10",attrs:{size:"lg",variant:"primary"},on:{click:e.onUpdateApp}},[e._v("\n "+e._s(e.$t("settings.update_app.update"))+"\n ")])],1):e._e(),e._v(" "),e.isUpdating?n("div",{staticClass:"relative flex justify-between mt-4 content"},[n("div",[n("h6",{staticClass:"m-0 mb-3 font-medium sw-section-title"},[e._v("\n "+e._s(e.$t("settings.update_app.update_progress"))+"\n ")]),e._v(" "),n("p",{staticClass:"mb-8 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"480px"}},[e._v("\n "+e._s(e.$t("settings.update_app.progress_text"))+"\n ")])]),e._v(" "),n("loading-icon",{staticClass:"absolute right-0 h-6 m-1 animate-spin text-primary-400"})],1):e._e(),e._v(" "),e.isUpdating?n("ul",{staticClass:"w-full p-0 list-none"},e._l(e.updateSteps,(function(t){return n("li",{staticClass:"flex justify-between w-full py-3 border-b border-gray-200 border-solid last:border-b-0"},[n("p",{staticClass:"m-0 text-sm leading-8"},[e._v(e._s(e.$t(t.translationKey)))]),e._v(" "),n("div",{staticClass:"flex flex-row items-center"},[t.time?n("span",{staticClass:"mr-3 text-xs text-gray-500"},[e._v("\n "+e._s(t.time)+"\n ")]):e._e(),e._v(" "),n("span",{staticClass:"block py-1 text-sm text-center uppercase rounded-full",class:e.statusClass(t),staticStyle:{width:"88px"}},[e._v("\n "+e._s(e.getStatus(t))+"\n ")])])])})),0):e._e()],1)],2)}),[],!1,null,null,null).exports;function vc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function gc(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){vc(i,r,a,o,s,"next",e)}function s(e){vc(i,r,a,o,s,"throw",e)}o(void 0)}))}}function yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yc(Object(n),!0).forEach((function(t){wc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xc={components:{PlusIcon:o.pOD,TrashIcon:o.XHJ,CloudDownloadIcon:o.nMW},data:function(){return{isRequestOngoing:!0,filters:{selected_disk:{driver:"local"}}}},computed:bc({},(0,i.Se)("disks",["getDisks"])),created:function(){this.loadDisksData()},methods:bc(bc(bc(bc({},(0,i.nv)("backup",["fetchBackups","downloadBackup","removeBackup"])),(0,i.nv)("disks",["fetchDisks"])),(0,i.nv)("modal",["openModal"])),{},{getCustomLabel:function(e){var t=e.driver,n=e.name;if(n)return"".concat(n," — [").concat(t,"]")},onRemoveBackup:function(e){var t=this;return gc(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.backup.backup_confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=gc(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=9;break}return a={disk:t.filters.selected_disk.driver,file_disk_id:t.filters.selected_disk.id,path:e.path},n.next=4,t.removeBackup(a);case 4:if(!n.sent.data.success){n.next=9;break}return window.toastr.success(t.$t("settings.backup.deleted_message")),t.$refs.table.refresh(),n.abrupt("return",!0);case 9:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},loadDisksData:function(){var e=this;return gc(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRequestOngoing=!0,t.next=3,e.fetchDisks({limit:"all"});case 3:n=t.sent,e.filters.selected_disk=n.data.disks.data.find((function(e){return 1==e.set_as_default})),e.isRequestOngoing=!1;case 6:case"end":return t.stop()}}),t)})))()},fetchBackupsData:function(e){var t=this;return gc(Y().mark((function n(){var r,a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.page,e.filter,e.sort,r={disk:t.filters.selected_disk.driver,file_disk_id:t.filters.selected_disk.id},t.isRequestOngoing=!0,n.next=5,t.fetchBackups(r);case 5:return(a=n.sent).data.error&&window.toastr.error(t.$t("settings.backup."+a.data.error)),t.isRequestOngoing=!1,n.abrupt("return",{data:a.data.backups,pagination:{totalPages:1,currentPage:1}});case 10:case"end":return n.stop()}}),n)})))()},refreshTable:function(){var e=this;setTimeout((function(){e.$refs.table.refresh()}),100)},onCreateNewBackup:function(){var e=this;return gc(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.openModal({title:e.$t("settings.backup.create_backup"),componentName:"BackupModal",refreshData:e.refreshTable});case 1:case"end":return t.stop()}}),t)})))()},onDownloadBckup:function(e){var t=this;return gc(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.isRequestOngoing=!0,window.axios({method:"GET",url:"/api/v1/download-backup",responseType:"blob",params:{disk:t.filters.selected_disk.driver,file_disk_id:t.filters.selected_disk.id,path:e.path}}).then((function(n){var r=window.URL.createObjectURL(new Blob([n.data])),a=document.createElement("a");a.href=r,a.setAttribute("download",e.path.split("/")[1]),document.body.appendChild(a),a.click(),t.isRequestOngoing=!1})).catch((function(e){t.isRequestOngoing=!1,window.toastr.error(e.response.data.message)}));case 2:case"end":return n.stop()}}),n)})))()}})};const kc=(0,_.Z)(xc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative setting-main-container backup"},[n("sw-card",{attrs:{variant:"setting-card"}},[n("div",{staticClass:"flex flex-wrap justify-between lg:flex-nowrap",attrs:{slot:"header"},slot:"header"},[n("div",[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$tc("settings.backup.title",1))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.backup.description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 lg:mt-0 lg:ml-2"},[n("sw-button",{attrs:{variant:"primary-outline",size:"lg"},on:{click:e.onCreateNewBackup}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.backup.new_backup"))+"\n ")],1)],1)]),e._v(" "),n("div",{staticClass:"grid mb-8 md:grid-cols-3"},[n("sw-input-group",{attrs:{label:e.$t("settings.disk.select_disk")}},[n("sw-select",{attrs:{options:e.getDisks,searchable:!0,"show-labels":!1,placeholder:e.$t("settings.disk.select_disk"),"allow-empty":!1,"track-by":"id",label:"name","custom-label":e.getCustomLabel},on:{select:e.refreshTable},model:{value:e.filters.selected_disk,callback:function(t){e.$set(e.filters,"selected_disk",t)},expression:"filters.selected_disk"}})],1)],1),e._v(" "),n("sw-table-component",{ref:"table",attrs:{variant:"gray","show-filter":!1,data:e.fetchBackupsData}},[n("sw-table-column",{attrs:{label:e.$t("settings.backup.path"),show:"path"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.backup.path")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.path))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{label:e.$t("settings.backup.created_at"),show:"created_at"}}),e._v(" "),n("sw-table-column",{attrs:{label:e.$t("settings.backup.size"),show:"size"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,data:e.fetchBackupsData,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.backup.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.onDownloadBckup(t)}}},[n("cloud-download-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.download"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.onRemoveBackup(t)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)],1)}),[],!1,null,null,null).exports;function Dc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Mc(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Dc(i,r,a,o,s,"next",e)}function s(e){Dc(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sc(Object(n),!0).forEach((function(t){Lc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tc={components:{CheckCircleIcon:o.rE2,PlusIcon:o.pOD,TrashIcon:o.XHJ,PencilIcon:o.vdY},data:function(){return{disk:"local",save_pdf_to_disk:!0,loading:!1,disks:[]}},mounted:function(){this.getDiskSetting()},methods:Cc(Cc(Cc(Cc({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("disks",["fetchDisks","updateDisk","deleteFileDisk"])),(0,i.nv)("company",["updateCompanySettings","fetchCompanySettings"])),{},{fetchData:function(e){var t=this;return Mc(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},n.next=4,t.fetchDisks(i);case 4:return o=n.sent,n.abrupt("return",{data:o.data.disks.data,pagination:{totalPages:o.data.disks.last_page,currentPage:r,count:o.data.disks.count}});case 6:case"end":return n.stop()}}),n)})))()},isShowAction:function(e){return!e.set_as_default||("SYSTEM"!=e.type||!e.set_as_default)},openCreateDiskModal:function(){this.openModal({title:this.$t("settings.disk.new_disk"),componentName:"FileDiskModal",variant:"lg",refreshData:this.refreshTable})},openEditDiskModal:function(e){this.openModal({title:this.$t("settings.disk.edit_file_disk"),componentName:"FileDiskModal",variant:"lg",id:e.id,data:e,refreshData:this.refreshTable})},refreshTable:function(){this.$refs.table.refresh()},getDiskSetting:function(e){var t=this;return Mc(Y().mark((function e(){var n;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.fetchCompanySettings(["save_pdf_to_disk"]);case 2:(n=e.sent).data&&(t.save_pdf_to_disk="YES"===n.data.save_pdf_to_disk);case 4:case"end":return e.stop()}}),e)})))()},setDiskSettings:function(){var e=this;return Mc(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={settings:{save_pdf_to_disk:e.save_pdf_to_disk?"YES":"NO"}},t.next=3,e.updateCompanySettings(n);case 3:t.sent.data.success&&window.toastr.success(e.$t("general.setting_updated")),e.$refs.table.refresh();case 6:case"end":return t.stop()}}),t)})))()},setDefaultDiskData:function(e){var t=this;return Mc(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.disk.set_default_disk_confirm"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Mc(Y().mark((function n(r){var a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=7;break}return t.loading=!0,a={set_as_default:!0,id:e},n.next=5,t.updateDisk(a);case 5:n.sent.data.success&&(t.refreshTable(),window.toastr.success(t.$t("settings.disk.success_set_default_disk")));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},removeDisk:function(e){var t=this;return Mc(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.disk.confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Mc(Y().mark((function n(r){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=8;break}return n.next=3,t.deleteFileDisk(e);case 3:if(!n.sent.data.success){n.next=8;break}return window.toastr.success(t.$t("settings.disk.deleted_message")),t.refreshTable(),n.abrupt("return",!0);case 8:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()}})};const Oc=(0,_.Z)(Tc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"setting-main-container backup"},[n("sw-card",{attrs:{variant:"setting-card"}},[n("div",{staticClass:"flex flex-wrap justify-between lg:flex-nowrap",attrs:{slot:"header"},slot:"header"},[n("div",[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$tc("settings.disk.title",1))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.disk.description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 lg:mt-0 lg:ml-2"},[n("sw-button",{attrs:{variant:"primary-outline",size:"lg"},on:{click:e.openCreateDiskModal}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.disk.new_disk"))+"\n ")],1)],1)]),e._v(" "),n("sw-table-component",{ref:"table",staticClass:"mt-0 mb-3",attrs:{variant:"gray","show-filter":!1,data:e.fetchData,"table-class":"table tax-table"}},[n("sw-table-column",{attrs:{label:e.$t("settings.disk.disk_name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.disk.disk_name")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(e._s(t.name))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{label:e.$t("settings.disk.filesystem_driver"),show:"driver"}}),e._v(" "),n("sw-table-column",{attrs:{label:e.$t("settings.disk.disk_type"),show:"type"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,label:e.$t("settings.disk.is_default")},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.disk.is_default")))]),e._v(" "),n("sw-badge",{attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.set_as_default?"YES":"NO").bgColor,color:e.$utils.getBadgeStatusColor(t.set_as_default?"YES":"NO").color}},[e._v("\n "+e._s(t.set_as_default?"Yes":"No".replace("_"," "))+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown no-click"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.disk.action")))]),e._v(" "),e.isShowAction(t)?n("sw-dropdown",[n("a",{attrs:{slot:"activator",href:"#"},slot:"activator"},[n("dot-icon")],1),e._v(" "),t.set_as_default?e._e():n("sw-dropdown-item",{on:{click:function(n){return e.setDefaultDiskData(t.id)}}},[n("check-circle-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("settings.disk.set_default_disk"))+"\n ")],1),e._v(" "),"SYSTEM"!==t.type?n("sw-dropdown-item",{on:{click:function(n){return e.openEditDiskModal(t)}}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1):e._e(),e._v(" "),"SYSTEM"===t.type||t.set_as_default?e._e():n("sw-dropdown-item",{on:{click:function(n){return e.removeDisk(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1):e._e()]}}])})],1),e._v(" "),n("sw-divider",{staticClass:"mt-6 mb-4"}),e._v(" "),n("h3",{staticClass:"mb-5 text-lg font-medium text-black"},[e._v("\n "+e._s(e.$t("settings.disk.disk_settings"))+"\n ")]),e._v(" "),n("div",{staticClass:"flex"},[n("div",{staticClass:"relative w-12"},[n("sw-switch",{staticClass:"absolute",staticStyle:{top:"-18px"},on:{change:e.setDiskSettings},model:{value:e.save_pdf_to_disk,callback:function(t){e.save_pdf_to_disk=t},expression:"save_pdf_to_disk"}})],1),e._v(" "),n("div",{staticClass:"ml-4"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black"},[e._v("\n "+e._s(e.$t("settings.disk.save_pdf_to_disk"))+"\n ")]),e._v(" "),n("p",{staticClass:"max-w-lg p-0 m-0 text-xs leading-tight text-gray-500"},[e._v("\n "+e._s(e.$t("settings.disk.disk_setting_description"))+"\n ")])])])],1)],1)}),[],!1,null,null,null).exports;function Ec(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ac(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ec(i,r,a,o,s,"next",e)}function s(e){Ec(i,r,a,o,s,"throw",e)}o(void 0)}))}}function jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(n),!0).forEach((function(t){Pc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yc={components:{PencilIcon:o.vdY,TrashIcon:o.XHJ,PlusIcon:o.pOD},methods:$c($c($c({},(0,i.nv)("customFields",["fetchCustomFields","deleteCustomFields"])),(0,i.nv)("modal",["openModal"])),{},{fetchData:function(e){var t=this;return Ac(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},n.next=4,t.fetchCustomFields(i);case 4:return o=n.sent,n.abrupt("return",{data:o.data.customFields.data,pagination:{totalPages:o.data.customFields.last_page,currentPage:r,count:o.data.customFields.count}});case 6:case"end":return n.stop()}}),n)})))()},removeCustomField:function(e){var t=this;return Ac(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.custom_fields.custom_field_confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ac(Y().mark((function n(r){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=10;break}return n.next=3,t.deleteCustomFields(e);case 3:if(!n.sent.data.success){n.next=9;break}return window.toastr.success(t.$t("settings.custom_fields.deleted_message")),t.id=null,t.$refs.table.refresh(),n.abrupt("return",!0);case 9:window.toastr.error(t.$t("settings.custom_fields.already_in_use"));case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},addCustomField:function(){this.openModal({title:this.$t("settings.custom_fields.add_custom_field"),componentName:"CustomFieldModal",refreshData:this.$refs.table.refresh})},editCustomField:function(e){this.openModal({title:this.$t("settings.custom_fields.edit_custom_field"),componentName:"CustomFieldModal",id:e,refreshData:this.$refs.table.refresh})}})};const Nc=(0,_.Z)(Yc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-card",{attrs:{variant:"setting-card"}},[n("div",{staticClass:"flex flex-wrap justify-between lg:flex-nowrap",attrs:{slot:"header"},slot:"header"},[n("div",[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.menu_title.custom_fields"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.custom_fields.section_description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 lg:mt-0 lg:ml-2"},[n("sw-button",{attrs:{variant:"primary-outline",size:"lg"},on:{click:e.addCustomField}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.custom_fields.add_custom_field"))+"\n ")],1)],1)]),e._v(" "),n("sw-table-component",{ref:"table",attrs:{variant:"gray","show-filter":!1,data:e.fetchData}},[n("sw-table-column",{attrs:{sortable:!0,label:e.$t("settings.custom_fields.name"),show:"name"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("settings.custom_fields.label"),show:"label"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("settings.custom_fields.model"),show:"model_type"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,label:e.$t("settings.custom_fields.type"),show:"type.label"}}),e._v(" "),n("sw-table-column",{attrs:{sortable:!0,filterable:!0,label:e.$t("settings.custom_fields.required"),show:"is_required"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.custom_fields.required")))]),e._v(" "),n("sw-badge",{attrs:{"bg-color":e.$utils.getBadgeStatusColor(t.is_required?"YES":"NO").bgColor,color:e.$utils.getBadgeStatusColor(t.is_required?"YES":"NO").color}},[e._v("\n "+e._s(t.is_required?e.$t("settings.custom_fields.yes"):e.$t("settings.custom_fields.no").replace("_"," "))+"\n ")])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.tax_types.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.editCustomField(t.id)}}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removeCustomField(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)}),[],!1,null,null,null).exports;function zc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ic(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){zc(i,r,a,o,s,"next",e)}function s(e){zc(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(n),!0).forEach((function(t){Rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bc=n(379);Bc.required,Bc.maxLength,Bc.alpha;const qc={components:{TrashIcon:o.XHJ,PencilIcon:o.vdY,PlusIcon:o.pOD},methods:Hc(Hc(Hc({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("payment",["deletePaymentMode","fetchPaymentModes"])),{},{fetchData:function(e){var t=this;return Ic(Y().mark((function n(){var r,a,i,o;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.page,e.filter,a=e.sort,i={orderByField:a.fieldName||"created_at",orderBy:a.order||"desc",page:r},n.next=4,t.fetchPaymentModes(i);case 4:return o=n.sent,n.abrupt("return",{data:o.data.paymentMethods.data,pagination:{totalPages:o.data.paymentMethods.last_page,currentPage:r,count:o.data.paymentMethods.count}});case 6:case"end":return n.stop()}}),n)})))()},addPaymentMode:function(){this.openModal({title:this.$t("settings.customization.payments.add_payment_mode"),componentName:"PaymentMode",refreshData:this.$refs.table.refresh})},editPaymentMode:function(e){this.openModal({title:this.$t("settings.customization.payments.edit_payment_mode"),componentName:"PaymentMode",id:e.id,data:e,refreshData:this.$refs.table.refresh})},removePaymentMode:function(e){var t=this;swal({title:this.$t("general.are_you_sure"),text:this.$t("settings.customization.payments.payment_mode_confirm_delete"),icon:"/assets/icon/trash-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var n=Ic(Y().mark((function n(r){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=10;break}return n.next=3,t.deletePaymentMode(e);case 3:if(!n.sent.data.success){n.next=9;break}return window.toastr.success(t.$t("settings.customization.payments.deleted_message")),t.id=null,t.$refs.table.refresh(),n.abrupt("return",!0);case 9:window.toastr.error(t.$t("settings.customization.payments.already_in_use"));case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())}})};const Vc=(0,_.Z)(qc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-card",{attrs:{variant:"setting-card"}},[n("div",{staticClass:"flex flex-wrap justify-between lg:flex-nowrap",attrs:{slot:"header"},slot:"header"},[n("div",[n("h6",{staticClass:"sw-section-title"},[e._v("\n "+e._s(e.$t("settings.customization.payments.payment_modes"))+"\n ")]),e._v(" "),n("p",{staticClass:"mt-2 text-sm leading-snug text-gray-500",staticStyle:{"max-width":"680px"}},[e._v("\n "+e._s(e.$t("settings.customization.payments.description"))+"\n ")])]),e._v(" "),n("div",{staticClass:"mt-4 lg:mt-0 lg:ml-2"},[n("sw-button",{attrs:{variant:"primary-outline",size:"lg"},on:{click:e.addPaymentMode}},[n("plus-icon",{staticClass:"w-6 h-6 mr-1 -ml-2"}),e._v("\n "+e._s(e.$t("settings.customization.payments.add_payment_mode"))+"\n ")],1)],1)]),e._v(" "),n("sw-table-component",{ref:"table",attrs:{variant:"gray","show-filter":!1,data:e.fetchData}},[n("sw-table-column",{attrs:{label:e.$t("settings.customization.payments.mode_name"),show:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.customization.payments.mode_name")))]),e._v(" "),n("span",{staticClass:"mt-6"},[e._v(" "+e._s(t.name))])]}}])}),e._v(" "),n("sw-table-column",{attrs:{sortable:!1,filterable:!1,"cell-class":"action-dropdown"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e.$t("settings.tax_types.action")))]),e._v(" "),n("sw-dropdown",[n("dot-icon",{staticClass:"h-5",attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.editPaymentMode(t)}}},[n("pencil-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.edit"))+"\n ")],1),e._v(" "),n("sw-dropdown-item",{on:{click:function(n){return e.removePaymentMode(t.id)}}},[n("trash-icon",{staticClass:"h-5 mr-3 text-gray-600"}),e._v("\n "+e._s(e.$t("general.delete"))+"\n ")],1)],1)]}}])})],1)],1)}),[],!1,null,null,null).exports;function Wc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Uc(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Wc(i,r,a,o,s,"next",e)}function s(e){Wc(i,r,a,o,s,"throw",e)}o(void 0)}))}}const Kc={components:{ArrowRightIcon:o.LZ3},data:function(){return{requirements:null,phpSupportInfo:null,isLoading:!1,isShow:!0}},computed:{hasNext:function(){if(this.requirements){var e=!0;for(var t in this.requirements)this.requirements[t]||(e=!1);return this.requirements&&this.phpSupportInfo.supported&&e}return!1}},methods:{listToggle:function(){this.isShow=!this.isShow},getRequirements:function(){var e=this;return Uc(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,window.axios.get("/api/v1/onboarding/requirements",e.profileData);case 3:(n=t.sent).data&&(e.requirements=n.data.requirements.requirements.php,e.phpSupportInfo=n.data.phpSupportInfo,e.isLoading=!1);case 5:case"end":return t.stop()}}),t)})))()},next:function(){var e=this;return Uc(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$emit("next");case 3:e.isLoading=!1;case 4:case"end":return t.stop()}}),t)})))()}}};const Zc=(0,_.Z)(Kc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-wizard-step",{attrs:{title:e.$t("wizard.req.system_req"),description:e.$t("wizard.req.system_req_desc")}},[n("div",{staticClass:"w-full md:w-2/3"},[n("div",{staticClass:"mb-6"},[e.phpSupportInfo?n("div",{staticClass:"grid grid-flow-row grid-cols-3 p-3 border border-gray-200 lg:gap-24 sm:gap-4"},[n("div",{staticClass:"col-span-2 text-sm"},[e._v("\n "+e._s(e.$t("wizard.req.php_req_version",{version:e.phpSupportInfo.minimum}))+"\n ")]),e._v(" "),n("div",{staticClass:"text-right"},[e._v("\n "+e._s(e.phpSupportInfo.current)+"\n "),e.phpSupportInfo.supported?n("span",{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-success"}):n("span",{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-danger"})])]):e._e(),e._v(" "),e.requirements?n("div",e._l(e.requirements,(function(t,r){return n("div",{key:r,staticClass:"grid grid-flow-row grid-cols-3 p-3 border border-gray-200 lg:gap-24 sm:gap-4"},[n("div",{staticClass:"col-span-2 text-sm"},[e._v("\n "+e._s(r)+"\n ")]),e._v(" "),n("div",{staticClass:"text-right"},[n("span",t?{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-success"}:{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-danger"})])])})),0):e._e()]),e._v(" "),e.hasNext?n("sw-button",{staticClass:"mt-4 pull-right",attrs:{variant:"primary"},on:{click:e.next}},[e._v("\n "+e._s(e.$t("wizard.continue"))+"\n "),n("arrow-right-icon",{staticClass:"h-5 ml-2 -mr-1"})],1):e._e(),e._v(" "),e.requirements?e._e():n("sw-button",{staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary"},on:{click:e.getRequirements}},[e._v("\n "+e._s(e.$t("wizard.req.check_req"))+"\n ")])],1)])}),[],!1,null,null,null).exports;function Gc(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Jc(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Gc(i,r,a,o,s,"next",e)}function s(e){Gc(i,r,a,o,s,"throw",e)}o(void 0)}))}}const Xc={components:{ArrowRightIcon:o.LZ3},data:function(){return{isFetching:!1,isLoading:!1,permissions:[],errors:!1}},created:function(){this.getPermissions()},methods:{getPermissions:function(){var e=this;return Jc(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=e.isFetching=!0,t.next=3,window.axios.get("/api/v1/onboarding/permissions",e.profileData);case 3:(n=t.sent).data&&(e.permissions=n.data.permissions.permissions,e.errors=n.data.permissions.errors,r=e,e.errors?swal({title:e.$t("wizard.permissions.permission_confirm_title"),text:e.$t("wizard.permissions.permission_confirm_desc"),icon:"warning",buttons:!0,dangerMode:!0}).then(function(){var t=Jc(Y().mark((function t(n){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n&&(r.isLoading=e.isFetching=!1);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()):e.isLoading=e.isFetching=!1,e.isLoading=e.isFetching=!1);case 5:case"end":return t.stop()}}),t)})))()},next:function(){var e=this;return Jc(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.$emit("next");case 3:e.isLoading=!1;case 4:case"end":return t.stop()}}),t)})))()}}};const Qc=(0,_.Z)(Xc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-wizard-step",{attrs:{title:e.$t("wizard.permissions.permissions"),description:e.$t("wizard.permissions.permission_desc")}},[e.isFetching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("div",{staticClass:"relative"},[e._l(e.permissions,(function(t,r){return n("div",{key:r,staticClass:"border border-gray-200"},[n("div",{staticClass:"grid grid-flow-row grid-cols-3 lg:gap-24 sm:gap-4"},[n("div",{staticClass:"col-span-2 p-3"},[e._v("\n "+e._s(t.folder)+"\n ")]),e._v(" "),n("div",{staticClass:"p-3 text-right"},[t.isSet?n("span",{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-success"}):n("span",{staticClass:"inline-block w-4 h-4 ml-3 mr-2 rounded-full bg-danger"}),e._v(" "),n("span",[e._v(e._s(t.permission))])])])])})),e._v(" "),n("sw-button",{directives:[{name:"show",rawName:"v-show",value:!e.isFetching,expression:"!isFetching"}],staticClass:"mt-10",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary"},on:{click:e.next}},[e._v("\n "+e._s(e.$t("wizard.continue"))+"\n "),n("arrow-right-icon",{staticClass:"h-5 ml-2 -mr-1"})],1)],2)],1)}),[],!1,null,null,null).exports;n(8620);function eu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var tu=n(379),nu=tu.required,ru=tu.numeric;tu.url;const au={components:{SaveIcon:s.Nae},props:{configData:{type:Object,require:!0,default:Object},isLoading:{type:Boolean,require:!0,default:!1},isFetching:{type:Boolean,require:!0,default:!1}},data:function(){return{databaseData:{database_connection:"mysql",database_hostname:"127.0.0.1",database_port:"3306",database_name:null,database_username:null,database_password:null,app_url:window.location.origin,app_domain:window.location.origin.replace(/(^\w+:|^)\/\//,"")},connections:["sqlite","mysql","pgsql","sqlsrv"]}},validations:{databaseData:{database_connection:{required:nu},database_hostname:{required:nu},database_port:{required:nu,numeric:ru},database_name:{required:nu},database_username:{required:nu},app_url:{required:nu,isUrl:function(e){return this.$utils.checkValidUrl(e)}},app_domain:{required:nu,isUrl:function(e){return this.$utils.checkValidDomainUrl(e)}}}},computed:{urlError:function(){return this.$v.databaseData.app_url.$error?this.$v.databaseData.app_url.required?this.$v.databaseData.app_url.isUrl?void 0:this.$tc("validation.invalid_url"):this.$tc("validation.required"):""},domainError:function(){return this.$v.databaseData.app_domain.$error?this.$v.databaseData.app_domain.required?this.$v.databaseData.app_domain.isUrl?void 0:this.$tc("validation.invalid_domain_url"):this.$tc("validation.required"):""},connectionError:function(){return this.$v.databaseData.database_connection.$error?this.$v.databaseData.database_connection.required?void 0:this.$tc("validation.required"):""},portError:function(){return this.$v.databaseData.database_port.$error?this.$v.databaseData.database_port.required?this.$v.databaseData.database_port.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""},nameError:function(){return this.$v.databaseData.database_name.$error?this.$v.databaseData.database_name.required?void 0:this.$tc("validation.required"):""},usernameError:function(){return this.$v.databaseData.database_username.$error?this.$v.databaseData.database_username.required?void 0:this.$tc("validation.required"):""},hostnameError:function(){return this.$v.databaseData.database_hostname.$error?this.$v.databaseData.database_hostname.required?void 0:this.$tc("validation.required"):""}},mounted:function(){for(var e in this.databaseData)this.configData.hasOwnProperty(e)&&(this.databaseData[e]=this.configData[e])},methods:{next:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.databaseData.$touch(),t.$v.databaseData.$invalid||t.$emit("submit-data",t.databaseData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){eu(i,r,a,o,s,"next",e)}function s(e){eu(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeConnection:function(){this.$v.databaseData.database_connection.$touch(),this.$emit("on-change-driver",this.databaseData.database_connection)}}};const iu=(0,_.Z)(au,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.next()}}},[n("div",[n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.app_url"),error:e.urlError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.app_url.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.databaseData.app_url.$touch()}},model:{value:e.databaseData.app_url,callback:function(t){e.$set(e.databaseData,"app_url","string"==typeof t?t.trim():t)},expression:"databaseData.app_url"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.app_domain"),error:e.domainError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.app_domain.$error,type:"text",name:"name",placeholder:"crater.com"},on:{input:function(t){return e.$v.databaseData.app_domain.$touch()}},model:{value:e.databaseData.app_domain,callback:function(t){e.$set(e.databaseData,"app_domain","string"==typeof t?t.trim():t)},expression:"databaseData.app_domain"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.connection"),error:e.connectionError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.databaseData.database_connection.$error,options:e.connections,searchable:!0,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeConnection},model:{value:e.databaseData.database_connection,callback:function(t){e.$set(e.databaseData,"database_connection",t)},expression:"databaseData.database_connection"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.port"),error:e.portError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_port.$error,type:"text",name:"database_port"},on:{input:function(t){return e.$v.databaseData.database_port.$touch()}},model:{value:e.databaseData.database_port,callback:function(t){e.$set(e.databaseData,"database_port","string"==typeof t?t.trim():t)},expression:"databaseData.database_port"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.db_name"),error:e.nameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_name.$error,type:"text",name:"database_name"},on:{input:function(t){return e.$v.databaseData.database_name.$touch()}},model:{value:e.databaseData.database_name,callback:function(t){e.$set(e.databaseData,"database_name","string"==typeof t?t.trim():t)},expression:"databaseData.database_name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.username"),error:e.usernameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_username.$error,type:"text",name:"database_username"},on:{input:function(t){return e.$v.databaseData.database_username.$touch()}},model:{value:e.databaseData.database_username,callback:function(t){e.$set(e.databaseData,"database_username","string"==typeof t?t.trim():t)},expression:"databaseData.database_username"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.password")}},[n("sw-input",{attrs:{type:"password",name:"name"},model:{value:e.databaseData.database_password,callback:function(t){e.$set(e.databaseData,"database_password","string"==typeof t?t.trim():t)},expression:"databaseData.database_password"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.host"),error:e.hostnameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_hostname.$error,type:"text",name:"database_hostname"},on:{input:function(t){return e.$v.databaseData.database_hostname.$touch()}},model:{value:e.databaseData.database_hostname,callback:function(t){e.$set(e.databaseData,"database_hostname","string"==typeof t?t.trim():t)},expression:"databaseData.database_hostname"}})],1)],1),e._v(" "),n("sw-button",{directives:[{name:"show",rawName:"v-show",value:!e.isFetching,expression:"!isFetching"}],staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("wizard.save_cont"))+"\n ")],1)],1)])}),[],!1,null,null,null).exports;function ou(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var su=n(379),lu=su.required,cu=su.numeric;su.url;const uu={components:{SaveIcon:s.Nae},props:{configData:{type:Object,require:!0,default:Object},isLoading:{type:Boolean,require:!0,default:!1},isFetching:{type:Boolean,require:!0,default:!1}},data:function(){return{databaseData:{database_connection:"mysql",database_hostname:"127.0.0.1",database_port:"3306",database_name:null,database_username:null,database_password:null,app_url:window.location.origin,app_domain:window.location.origin.replace(/(^\w+:|^)\/\//,"")},connections:["sqlite","mysql","pgsql","sqlsrv"]}},computed:{urlError:function(){return this.$v.databaseData.app_url.$error?this.$v.databaseData.app_url.required?this.$v.databaseData.app_url.isUrl?void 0:this.$tc("validation.invalid_url"):this.$tc("validation.required"):""},domainError:function(){return this.$v.databaseData.app_domain.$error?this.$v.databaseData.app_domain.required?this.$v.databaseData.app_domain.isUrl?void 0:this.$tc("validation.invalid_domain_url"):this.$tc("validation.required"):""},connectionError:function(){return this.$v.databaseData.database_connection.$error?this.$v.databaseData.database_connection.required?void 0:this.$tc("validation.required"):""},portError:function(){return this.$v.databaseData.database_port.$error?this.$v.databaseData.database_port.required?this.$v.databaseData.database_port.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""},nameError:function(){return this.$v.databaseData.database_name.$error?this.$v.databaseData.database_name.required?void 0:this.$tc("validation.required"):""},usernameError:function(){return this.$v.databaseData.database_username.$error?this.$v.databaseData.database_username.required?void 0:this.$tc("validation.required"):""},hostnameError:function(){return this.$v.databaseData.database_hostname.$error?this.$v.databaseData.database_hostname.required?void 0:this.$tc("validation.required"):""}},validations:{databaseData:{database_connection:{required:lu},database_hostname:{required:lu},database_port:{required:lu,numeric:cu},database_name:{required:lu},database_username:{required:lu},app_url:{required:lu,isUrl:function(e){return this.$utils.checkValidUrl(e)}},app_domain:{required:lu,isUrl:function(e){return this.$utils.checkValidDomainUrl(e)}}}},mounted:function(){for(var e in this.databaseData)this.configData.hasOwnProperty(e)&&(this.databaseData[e]=this.configData[e])},methods:{next:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.databaseData.$touch(),t.$v.databaseData.$invalid||t.$emit("submit-data",t.databaseData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ou(i,r,a,o,s,"next",e)}function s(e){ou(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeConnection:function(){this.$v.databaseData.database_connection.$touch(),this.$emit("on-change-driver",this.databaseData.database_connection)}}};const du=(0,_.Z)(uu,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.next()}}},[n("div",[n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.app_url"),error:e.urlError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.app_url.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.databaseData.app_url.$touch()}},model:{value:e.databaseData.app_url,callback:function(t){e.$set(e.databaseData,"app_url","string"==typeof t?t.trim():t)},expression:"databaseData.app_url"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.app_domain"),error:e.domainError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.app_domain.$error,type:"text",name:"name",placeholder:"crater.com"},on:{input:function(t){return e.$v.databaseData.app_domain.$touch()}},model:{value:e.databaseData.app_domain,callback:function(t){e.$set(e.databaseData,"app_domain","string"==typeof t?t.trim():t)},expression:"databaseData.app_domain"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.connection"),error:e.connectionError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.databaseData.database_connection.$error,options:e.connections,searchable:!0,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeConnection},model:{value:e.databaseData.database_connection,callback:function(t){e.$set(e.databaseData,"database_connection",t)},expression:"databaseData.database_connection"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.port"),error:e.portError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_port.$error,type:"text",name:"database_port"},on:{input:function(t){return e.$v.databaseData.database_port.$touch()}},model:{value:e.databaseData.database_port,callback:function(t){e.$set(e.databaseData,"database_port","string"==typeof t?t.trim():t)},expression:"databaseData.database_port"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.db_name"),error:e.nameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_name.$error,type:"text",name:"database_name"},on:{input:function(t){return e.$v.databaseData.database_name.$touch()}},model:{value:e.databaseData.database_name,callback:function(t){e.$set(e.databaseData,"database_name","string"==typeof t?t.trim():t)},expression:"databaseData.database_name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.username"),error:e.usernameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_username.$error,type:"text",name:"database_username"},on:{input:function(t){return e.$v.databaseData.database_username.$touch()}},model:{value:e.databaseData.database_username,callback:function(t){e.$set(e.databaseData,"database_username","string"==typeof t?t.trim():t)},expression:"databaseData.database_username"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.password")}},[n("sw-input",{attrs:{type:"password",name:"name"},model:{value:e.databaseData.database_password,callback:function(t){e.$set(e.databaseData,"database_password","string"==typeof t?t.trim():t)},expression:"databaseData.database_password"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.host"),error:e.hostnameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_hostname.$error,type:"text",name:"database_hostname"},on:{input:function(t){return e.$v.databaseData.database_hostname.$touch()}},model:{value:e.databaseData.database_hostname,callback:function(t){e.$set(e.databaseData,"database_hostname","string"==typeof t?t.trim():t)},expression:"databaseData.database_hostname"}})],1)],1),e._v(" "),n("sw-button",{directives:[{name:"show",rawName:"v-show",value:!e.isFetching,expression:"!isFetching"}],staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("wizard.save_cont"))+"\n ")],1)],1)])}),[],!1,null,null,null).exports;function pu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var mu=n(379),fu=mu.required;mu.numeric,mu.url;const hu={components:{SaveIcon:s.Nae},props:{configData:{type:Object,require:!0,default:Object},isLoading:{type:Boolean,require:!0,default:!1},isFetching:{type:Boolean,require:!0,default:!1}},data:function(){return{databaseData:{database_connection:"mysql",database_name:null,app_url:window.location.origin,app_domain:window.location.origin.replace(/(^\w+:|^)\/\//,"")},connections:["sqlite","mysql","pgsql","sqlsrv"]}},validations:{databaseData:{database_connection:{required:fu},database_name:{required:fu},app_url:{required:fu,isUrl:function(e){return this.$utils.checkValidUrl(e)}},app_domain:{required:fu,isUrl:function(e){return this.$utils.checkValidDomainUrl(e)}}}},computed:{urlError:function(){return this.$v.databaseData.app_url.$error?this.$v.databaseData.app_url.required?this.$v.databaseData.app_url.isUrl?void 0:this.$tc("validation.invalid_url"):this.$tc("validation.required"):""},domainError:function(){return this.$v.databaseData.app_domain.$error?this.$v.databaseData.app_domain.required?this.$v.databaseData.app_domain.isUrl?void 0:this.$tc("validation.invalid_domain_url"):this.$tc("validation.required"):""},connectionError:function(){return this.$v.databaseData.database_connection.$error?this.$v.databaseData.database_connection.required?void 0:this.$tc("validation.required"):""},nameError:function(){return this.$v.databaseData.database_name.$error?this.$v.databaseData.database_name.required?void 0:this.$tc("validation.required"):""}},mounted:function(){for(var e in this.databaseData)this.configData.hasOwnProperty(e)&&(this.databaseData[e]=this.configData[e])},methods:{next:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.databaseData.$touch(),t.$v.databaseData.$invalid||t.$emit("submit-data",t.databaseData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){pu(i,r,a,o,s,"next",e)}function s(e){pu(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeConnection:function(){this.$v.databaseData.database_connection.$touch(),this.$emit("on-change-driver",this.databaseData.database_connection)}}};const _u=(0,_.Z)(hu,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.next()}}},[n("div",[n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.app_url"),error:e.urlError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.app_url.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.databaseData.app_url.$touch()}},model:{value:e.databaseData.app_url,callback:function(t){e.$set(e.databaseData,"app_url","string"==typeof t?t.trim():t)},expression:"databaseData.app_url"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.app_domain"),error:e.domainError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.app_domain.$error,type:"text",name:"name",placeholder:"crater.com"},on:{input:function(t){return e.$v.databaseData.app_domain.$touch()}},model:{value:e.databaseData.app_domain,callback:function(t){e.$set(e.databaseData,"app_domain","string"==typeof t?t.trim():t)},expression:"databaseData.app_domain"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.connection"),error:e.connectionError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.databaseData.database_connection.$error,options:e.connections,"allow-empty":!1,searchable:!0,"show-labels":!1},on:{input:e.onChangeConnection},model:{value:e.databaseData.database_connection,callback:function(t){e.$set(e.databaseData,"database_connection",t)},expression:"databaseData.database_connection"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.db_path"),error:e.nameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_name.$error,type:"text",name:"database_name"},on:{input:function(t){return e.$v.databaseData.database_name.$touch()}},model:{value:e.databaseData.database_name,callback:function(t){e.$set(e.databaseData,"database_name","string"==typeof t?t.trim():t)},expression:"databaseData.database_name"}})],1)],1),e._v(" "),n("sw-button",{directives:[{name:"show",rawName:"v-show",value:!e.isFetching,expression:"!isFetching"}],staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("wizard.save_cont"))+"\n ")],1)],1)])}),[],!1,null,null,null).exports;function vu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var gu=n(379),yu=gu.required,bu=gu.numeric;gu.url;const wu={components:{SaveIcon:s.Nae},props:{configData:{type:Object,require:!0,default:Object},isLoading:{type:Boolean,require:!0,default:!1},isFetching:{type:Boolean,require:!0,default:!1}},data:function(){return{databaseData:{database_connection:"mysql",database_hostname:"127.0.0.1",database_port:"3306",database_name:null,database_username:null,database_password:null,app_url:window.location.origin,app_domain:window.location.origin.replace(/(^\w+:|^)\/\//,"")},connections:["sqlite","mysql","pgsql","sqlsrv"]}},validations:{databaseData:{database_connection:{required:yu},database_hostname:{required:yu},database_port:{required:yu,numeric:bu},database_name:{required:yu},database_username:{required:yu},app_url:{required:yu,isUrl:function(e){return this.$utils.checkValidUrl(e)}},app_domain:{required:yu,isUrl:function(e){return this.$utils.checkValidDomainUrl(e)}}}},computed:{urlError:function(){return this.$v.databaseData.app_url.$error?this.$v.databaseData.app_url.required?this.$v.databaseData.app_url.isUrl?void 0:this.$tc("validation.invalid_url"):this.$tc("validation.required"):""},domainError:function(){return this.$v.databaseData.app_domain.$error?this.$v.databaseData.app_domain.required?this.$v.databaseData.app_domain.isUrl?void 0:this.$tc("validation.invalid_domain_url"):this.$tc("validation.required"):""},connectionError:function(){return this.$v.databaseData.database_connection.$error?this.$v.databaseData.database_connection.required?void 0:this.$tc("validation.required"):""},portError:function(){return this.$v.databaseData.database_port.$error?this.$v.databaseData.database_port.required?this.$v.databaseData.database_port.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""},nameError:function(){return this.$v.databaseData.database_name.$error?this.$v.databaseData.database_name.required?void 0:this.$tc("validation.required"):""},usernameError:function(){return this.$v.databaseData.database_username.$error?this.$v.databaseData.database_username.required?void 0:this.$tc("validation.required"):""},hostnameError:function(){return this.$v.databaseData.database_hostname.$error?this.$v.databaseData.database_hostname.required?void 0:this.$tc("validation.required"):""}},mounted:function(){for(var e in this.databaseData)this.configData.hasOwnProperty(e)&&(this.databaseData[e]=this.configData[e])},methods:{next:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.databaseData.$touch(),t.$v.databaseData.$invalid||t.$emit("submit-data",t.databaseData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){vu(i,r,a,o,s,"next",e)}function s(e){vu(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeConnection:function(){this.$v.databaseData.database_connection.$touch(),this.$emit("on-change-driver",this.databaseData.database_connection)}}};function xu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ku(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){xu(i,r,a,o,s,"next",e)}function s(e){xu(i,r,a,o,s,"throw",e)}o(void 0)}))}}const Du={components:{Mysql:iu,Pgsql:du,Sqlite:_u,Sqlsrv:(0,_.Z)(wu,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.next()}}},[n("div",[n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.app_url"),error:e.urlError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.app_url.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.databaseData.app_url.$touch()}},model:{value:e.databaseData.app_url,callback:function(t){e.$set(e.databaseData,"app_url","string"==typeof t?t.trim():t)},expression:"databaseData.app_url"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.app_domain"),error:e.domainError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.app_domain.$error,type:"text",name:"name",placeholder:"crater.com"},on:{input:function(t){return e.$v.databaseData.app_domain.$touch()}},model:{value:e.databaseData.app_domain,callback:function(t){e.$set(e.databaseData,"app_domain","string"==typeof t?t.trim():t)},expression:"databaseData.app_domain"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.connection"),error:e.connectionError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.databaseData.database_connection.$error,options:e.connections,searchable:!0,"show-labels":!1,"allow-empty":!1},on:{input:e.onChangeConnection},model:{value:e.databaseData.database_connection,callback:function(t){e.$set(e.databaseData,"database_connection",t)},expression:"databaseData.database_connection"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.port"),error:e.portError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_port.$error,type:"text",name:"database_port"},on:{input:function(t){return e.$v.databaseData.database_port.$touch()}},model:{value:e.databaseData.database_port,callback:function(t){e.$set(e.databaseData,"database_port","string"==typeof t?t.trim():t)},expression:"databaseData.database_port"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.db_name"),error:e.nameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_name.$error,type:"text",name:"database_name"},on:{input:function(t){return e.$v.databaseData.database_name.$touch()}},model:{value:e.databaseData.database_name,callback:function(t){e.$set(e.databaseData,"database_name","string"==typeof t?t.trim():t)},expression:"databaseData.database_name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.username"),error:e.usernameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_username.$error,type:"text",name:"database_username"},on:{input:function(t){return e.$v.databaseData.database_username.$touch()}},model:{value:e.databaseData.database_username,callback:function(t){e.$set(e.databaseData,"database_username","string"==typeof t?t.trim():t)},expression:"databaseData.database_username"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("wizard.database.password")}},[n("sw-input",{attrs:{type:"password",name:"name"},model:{value:e.databaseData.database_password,callback:function(t){e.$set(e.databaseData,"database_password","string"==typeof t?t.trim():t)},expression:"databaseData.database_password"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.database.host"),error:e.hostnameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.databaseData.database_hostname.$error,type:"text",name:"database_hostname"},on:{input:function(t){return e.$v.databaseData.database_hostname.$touch()}},model:{value:e.databaseData.database_hostname,callback:function(t){e.$set(e.databaseData,"database_hostname","string"==typeof t?t.trim():t)},expression:"databaseData.database_hostname"}})],1)],1),e._v(" "),n("sw-button",{directives:[{name:"show",rawName:"v-show",value:!e.isFetching,expression:"!isFetching"}],staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("wizard.save_cont"))+"\n ")],1)],1)])}),[],!1,null,null,null).exports},data:function(){return{databaseData:{database_connection:"mysql"},isLoading:!1,isFetching:!1,database_connection:"mysql",connections:["sqlite","mysql","pgsql","sqlsrv"]}},created:function(){this.getDatabaseConfig(this.database_connection)},methods:{getDatabaseConfig:function(e){var t=this;return ku(Y().mark((function n(){var r,a;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.isLoading=t.isFetching=!0,r={connection:e},n.next=4,window.axios.get("/api/v1/onboarding/database/config",{params:r});case 4:(a=n.sent).data.success&&(t.databaseData=a.data.config,t.database_connection=e,t.databaseData.database_connection=e,t.isLoading=t.isFetching=!1);case 6:case"end":return n.stop()}}),n)})))()},next:function(e){var t=this;return ku(Y().mark((function n(){var r;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.isLoading=t.isFetching=!0,n.prev=1,n.next=4,window.axios.get("/sanctum/csrf-cookie");case 4:return n.next=6,window.axios.post("/api/v1/onboarding/database/config",e);case 6:return r=n.sent,n.next=9,window.axios.get("/sanctum/csrf-cookie");case 9:if(!r.data.success){n.next=17;break}return n.next=12,window.axios.post("/api/v1/onboarding/finish");case 12:return t.$emit("next",3),window.toastr.success(t.$t("wizard.success."+r.data.success)),n.abrupt("return",!0);case 17:r.data.error?window.toastr.error(t.$t("wizard.errors."+r.data.error)):r.data.error_message&&window.toastr.error(r.data.error_message);case 18:n.next=23;break;case 20:n.prev=20,n.t0=n.catch(1),window.toastr.error(n.t0.response.data.message);case 23:return n.prev=23,t.isLoading=t.isFetching=!1,n.finish(23);case 26:case"end":return n.stop()}}),n,null,[[1,20,23,26]])})))()}}};const Mu=(0,_.Z)(Du,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-wizard-step",{attrs:{title:e.$t("wizard.database.database"),description:e.$t("wizard.database.desc")}},[e.isFetching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n(e.database_connection,{tag:"component",attrs:{"config-data":e.databaseData,"is-loading":e.isLoading,"is-fetching":e.isFetching},on:{"on-change-driver":e.getDatabaseConfig,"submit-data":e.next}})],1)}),[],!1,null,null,null).exports;function Su(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Cu=n(379),Lu=Cu.required,Tu=Cu.email,Ou=Cu.numeric;const Eu={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},components:{EyeIcon:s.tEF,EyeOffIcon:s.Xl7},data:function(){return{isShowPassword:!1,mailConfigData:{mail_driver:"",mail_host:"",mail_port:null,mail_username:"",mail_password:"",mail_encryption:"tls",from_mail:"",from_name:""},encryptions:["tls","ssl","starttls"]}},validations:{mailConfigData:{mail_driver:{required:Lu},mail_host:{required:Lu},mail_port:{required:Lu,numeric:Ou},mail_username:{required:Lu},mail_password:{required:Lu},mail_encryption:{required:Lu},from_mail:{required:Lu,email:Tu},from_name:{required:Lu}}},computed:{driverError:function(){return this.$v.mailConfigData.mail_driver.$error?this.$v.mailConfigData.mail_driver.required?void 0:this.$tc("validation.required"):""},hostError:function(){return this.$v.mailConfigData.mail_host.$error?this.$v.mailConfigData.mail_host.required?void 0:this.$tc("validation.required"):""},usernameError:function(){return this.$v.mailConfigData.mail_username.$error?this.$v.mailConfigData.mail_username.required?void 0:this.$tc("validation.required"):""},passwordError:function(){return this.$v.mailConfigData.mail_password.$error?this.$v.mailConfigData.mail_password.required?void 0:this.$tc("validation.required"):""},portError:function(){return this.$v.mailConfigData.mail_port.$error?this.$v.mailConfigData.mail_port.required?this.$v.mailConfigData.mail_port.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""},encryptionError:function(){return this.$v.mailConfigData.mail_encryption.$error?this.$v.mailConfigData.mail_encryption.required?void 0:this.$tc("validation.required"):""},fromEmailError:function(){return this.$v.mailConfigData.from_mail.$error?this.$v.mailConfigData.from_mail.required?this.$v.mailConfigData.from_mail.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},fromNameError:function(){return this.$v.mailConfigData.from_name.$error?this.$v.mailConfigData.from_name.required?void 0:this.$tc("validation.required"):""},getInputType:function(){return this.isShowPassword?"text":"password"}},mounted:function(){for(var e in this.mailConfigData)this.configData.hasOwnProperty(e)&&(this.mailConfigData[e]=this.configData[e])},methods:{saveEmailConfig:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Su(i,r,a,o,s,"next",e)}function s(e){Su(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}};const Au=(0,_.Z)(Eu,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.saveEmailConfig()}}},[n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.driver"),error:e.driverError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.mailConfigData.mail_driver.$error,options:e.mailDrivers,searchable:!0,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeDriver},model:{value:e.mailConfigData.mail_driver,callback:function(t){e.$set(e.mailConfigData,"mail_driver",t)},expression:"mailConfigData.mail_driver"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.host"),error:e.hostError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_host.$error,type:"text",name:"mail_host"},on:{input:function(t){return e.$v.mailConfigData.mail_host.$touch()}},model:{value:e.mailConfigData.mail_host,callback:function(t){e.$set(e.mailConfigData,"mail_host","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_host"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.username"),error:e.usernameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_username.$error,type:"text",name:"db_name"},on:{input:function(t){return e.$v.mailConfigData.mail_username.$touch()}},model:{value:e.mailConfigData.mail_username,callback:function(t){e.$set(e.mailConfigData,"mail_username","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_username"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.password"),error:e.passwordError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_password.$error,type:e.getInputType,name:"password"},on:{input:function(t){return e.$v.mailConfigData.mail_password.$touch()}},scopedSlots:e._u([{key:"rightIcon",fn:function(){return[e.isShowPassword?n("eye-off-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}}):n("eye-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}})]},proxy:!0}]),model:{value:e.mailConfigData.mail_password,callback:function(t){e.$set(e.mailConfigData,"mail_password","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_password"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.port"),error:e.portError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_port.$error,type:"text",name:"mail_port"},on:{input:function(t){return e.$v.mailConfigData.mail_port.$touch()}},model:{value:e.mailConfigData.mail_port,callback:function(t){e.$set(e.mailConfigData,"mail_port","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_port"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.encryption"),error:e.encryptionError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.mailConfigData.mail_encryption.$error,options:e.encryptions,searchable:!0,"show-labels":!1},on:{input:function(t){return e.$v.mailConfigData.mail_encryption.$touch()}},model:{value:e.mailConfigData.mail_encryption,callback:function(t){e.$set(e.mailConfigData,"mail_encryption","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_encryption"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.from_mail"),error:e.fromEmailError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.from_mail.$error,type:"text",name:"from_mail"},on:{input:function(t){return e.$v.mailConfigData.from_mail.$touch()}},model:{value:e.mailConfigData.from_mail,callback:function(t){e.$set(e.mailConfigData,"from_mail","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_mail"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.from_name"),error:e.fromNameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.from_name.$error,type:"text",name:"from_name"},on:{input:function(t){return e.$v.mailConfigData.from_name.$touch()}},model:{value:e.mailConfigData.from_name,callback:function(t){e.$set(e.mailConfigData,"from_name","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_name"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.loading,disabled:e.loading,variant:"primary",type:"submit"}},[e.loading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1)],1)}),[],!1,null,null,null).exports;function ju(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var $u=n(379),Pu=$u.required,Yu=$u.email;const Nu={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},components:{EyeIcon:s.tEF,EyeOffIcon:s.Xl7},data:function(){return{isShowPassword:!1,mailConfigData:{mail_driver:"",mail_mailgun_domain:"",mail_mailgun_secret:"",mail_mailgun_endpoint:"",from_mail:"",from_name:""}}},validations:{mailConfigData:{mail_driver:{required:Pu},mail_mailgun_domain:{required:Pu},mail_mailgun_endpoint:{required:Pu},mail_mailgun_secret:{required:Pu},from_mail:{required:Pu,email:Yu},from_name:{required:Pu}}},computed:{driverError:function(){return this.$v.mailConfigData.mail_driver.$error?this.$v.mailConfigData.mail_driver.required?void 0:tthis.$tc("validation.required"):""},domainError:function(){return this.$v.mailConfigData.mail_mailgun_domain.$error?this.$v.mailConfigData.mail_mailgun_domain.required?void 0:this.$tc("validation.required"):""},secretError:function(){return this.$v.mailConfigData.mail_mailgun_secret.$error?this.$v.mailConfigData.mail_mailgun_secret.required?void 0:this.$tc("validation.required"):""},endpointError:function(){return this.$v.mailConfigData.mail_mailgun_endpoint.$error?this.$v.mailConfigData.mail_mailgun_endpoint.required?void 0:this.$tc("validation.required"):""},fromMailError:function(){return this.$v.mailConfigData.from_mail.$error?this.$v.mailConfigData.from_mail.required?this.$v.mailConfigData.from_mail.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},fromNameError:function(){return this.$v.mailConfigData.from_name.$error?this.$v.mailConfigData.from_name.required?void 0:this.$tc("validation.required"):""},getInputType:function(){return this.isShowPassword?"text":"password"}},mounted:function(){for(var e in this.mailConfigData)this.configData.hasOwnProperty(e)&&(this.mailConfigData[e]=this.configData[e])},methods:{saveEmailConfig:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ju(i,r,a,o,s,"next",e)}function s(e){ju(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}};const zu=(0,_.Z)(Nu,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.saveEmailConfig(t)}}},[n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.driver"),error:e.driverError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.mailConfigData.mail_driver.$error,options:e.mailDrivers,searchable:!0,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeDriver},model:{value:e.mailConfigData.mail_driver,callback:function(t){e.$set(e.mailConfigData,"mail_driver",t)},expression:"mailConfigData.mail_driver"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.mailgun_domain"),error:e.domainError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_mailgun_domain.$error,type:"text",name:"mailgun_domain"},on:{input:function(t){return e.$v.mailConfigData.mail_mailgun_domain.$touch()}},model:{value:e.mailConfigData.mail_mailgun_domain,callback:function(t){e.$set(e.mailConfigData,"mail_mailgun_domain","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_mailgun_domain"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 lg:mb-6 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.mailgun_secret"),error:e.secretError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_mailgun_secret.$error,type:e.getInputType,name:"mailgun_secret"},on:{input:function(t){return e.$v.mailConfigData.mail_mailgun_secret.$touch()}},scopedSlots:e._u([{key:"rightIcon",fn:function(){return[e.isShowPassword?n("eye-off-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}}):n("eye-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}})]},proxy:!0}]),model:{value:e.mailConfigData.mail_mailgun_secret,callback:function(t){e.$set(e.mailConfigData,"mail_mailgun_secret","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_mailgun_secret"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.mailgun_endpoint"),error:e.endpointError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_mailgun_endpoint.$error,type:"text",name:"mailgun_endpoint"},on:{input:function(t){return e.$v.mailConfigData.mail_mailgun_endpoint.$touch()}},model:{value:e.mailConfigData.mail_mailgun_endpoint,callback:function(t){e.$set(e.mailConfigData,"mail_mailgun_endpoint","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_mailgun_endpoint"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.from_mail"),error:e.fromMailError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.from_mail.$error,type:"text",name:"from_mail"},on:{input:function(t){return e.$v.mailConfigData.from_mail.$touch()}},model:{value:e.mailConfigData.from_mail,callback:function(t){e.$set(e.mailConfigData,"from_mail","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_mail"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.from_name"),error:e.fromNameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.from_name.$error,type:"text",name:"from_name"},on:{input:function(t){return e.$v.mailConfigData.from_name.$touch()}},model:{value:e.mailConfigData.from_name,callback:function(t){e.$set(e.mailConfigData,"from_name","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_name"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.loading,disabled:e.loading,variant:"primary",type:"submit"}},[e.loading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1)],1)}),[],!1,null,null,null).exports;function Iu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Fu=n(379),Hu=Fu.required,Ru=Fu.email,Bu=Fu.numeric;const qu={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},components:{EyeIcon:s.tEF,EyeOffIcon:s.Xl7},data:function(){return{isShowPassword:!1,mailConfigData:{mail_driver:"",mail_host:"",mail_port:null,mail_ses_key:"",mail_ses_secret:"",mail_encryption:"tls",from_mail:"",from_name:""},encryptions:["tls","ssl","starttls"]}},validations:{mailConfigData:{mail_driver:{required:Hu},mail_host:{required:Hu},mail_port:{required:Hu,numeric:Bu},mail_ses_key:{required:Hu},mail_ses_secret:{required:Hu},mail_encryption:{required:Hu},from_mail:{required:Hu,email:Ru},from_name:{required:Hu}}},computed:{driverError:function(){return this.$v.mailConfigData.mail_driver.$error?this.$v.mailConfigData.mail_driver.required?void 0:this.$tc("validation.required"):""},hostError:function(){return this.$v.mailConfigData.mail_host.$error?this.$v.mailConfigData.mail_host.required?void 0:this.$tc("validation.required"):""},portError:function(){return this.$v.mailConfigData.mail_port.$error?this.$v.mailConfigData.mail_port.required?this.$v.mailConfigData.mail_port.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""},encryptionError:function(){return this.$v.mailConfigData.mail_encryption.$error?this.$v.mailConfigData.mail_encryption.required?void 0:this.$tc("validation.required"):""},fromEmailError:function(){return this.$v.mailConfigData.from_mail.$error?this.$v.mailConfigData.from_mail.required?this.$v.mailConfigData.from_mail.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},fromNameError:function(){return this.$v.mailConfigData.from_name.$error?this.$v.mailConfigData.from_name.required?void 0:this.$tc("validation.required"):""},keyError:function(){return this.$v.mailConfigData.mail_ses_key.$error?this.$v.mailConfigData.mail_ses_key.required?void 0:this.$tc("validation.required"):""},secretError:function(){return this.$v.mailConfigData.mail_ses_secret.$error?this.$v.mailConfigData.mail_ses_secret.required?void 0:this.$tc("validation.required"):""},getInputType:function(){return this.isShowPassword?"text":"password"}},mounted:function(){for(var e in this.mailConfigData)this.configData.hasOwnProperty(e)&&(this.mailConfigData[e]=this.configData[e])},methods:{saveEmailConfig:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Iu(i,r,a,o,s,"next",e)}function s(e){Iu(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}};const Vu=(0,_.Z)(qu,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.saveEmailConfig(t)}}},[n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.driver"),error:e.driverError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.mailConfigData.mail_driver.$error,options:e.mailDrivers,searchable:!0,"allow-empty":!1,"show-labels":!1},on:{input:e.onChangeDriver},model:{value:e.mailConfigData.mail_driver,callback:function(t){e.$set(e.mailConfigData,"mail_driver",t)},expression:"mailConfigData.mail_driver"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.host"),error:e.hostError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_host.$error,type:"text",name:"mail_host"},on:{input:function(t){return e.$v.mailConfigData.mail_host.$touch()}},model:{value:e.mailConfigData.mail_host,callback:function(t){e.$set(e.mailConfigData,"mail_host","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_host"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.port"),error:e.portError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_port.$error,type:"text",name:"mail_port"},on:{input:function(t){return e.$v.mailConfigData.mail_port.$touch()}},model:{value:e.mailConfigData.mail_port,callback:function(t){e.$set(e.mailConfigData,"mail_port","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_port"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.encryption"),error:e.encryptionError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.mailConfigData.mail_encryption.$error,options:e.encryptions,searchable:!0,"show-labels":!1},on:{input:function(t){return e.$v.mailConfigData.mail_encryption.$touch()}},model:{value:e.mailConfigData.mail_encryption,callback:function(t){e.$set(e.mailConfigData,"mail_encryption","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_encryption"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.from_mail"),error:e.fromEmailError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.from_mail.$error,type:"text",name:"from_mail"},on:{input:function(t){return e.$v.mailConfigData.from_mail.$touch()}},model:{value:e.mailConfigData.from_mail,callback:function(t){e.$set(e.mailConfigData,"from_mail","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_mail"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.from_name"),error:e.fromNameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.from_name.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.mailConfigData.from_name.$touch()}},model:{value:e.mailConfigData.from_name,callback:function(t){e.$set(e.mailConfigData,"from_name","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_name"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.ses_key"),error:e.keyError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_ses_key.$error,type:"text",name:"mail_ses_key"},on:{input:function(t){return e.$v.mailConfigData.mail_ses_key.$touch()}},model:{value:e.mailConfigData.mail_ses_key,callback:function(t){e.$set(e.mailConfigData,"mail_ses_key","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_ses_key"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.ses_secret"),error:e.secretError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.mail_ses_secret.$error,type:e.getInputType,name:"mail_ses_secret"},on:{input:function(t){return e.$v.mailConfigData.mail_ses_secret.$touch()}},scopedSlots:e._u([{key:"rightIcon",fn:function(){return[e.isShowPassword?n("eye-off-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}}):n("eye-icon",{staticClass:"w-5 h-5 mr-1 text-gray-500 cursor-pointer",on:{click:function(t){e.isShowPassword=!e.isShowPassword}}})]},proxy:!0}]),model:{value:e.mailConfigData.mail_ses_secret,callback:function(t){e.$set(e.mailConfigData,"mail_ses_secret","string"==typeof t?t.trim():t)},expression:"mailConfigData.mail_ses_secret"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.loading,disabled:e.loading,variant:"primary",type:"submit"}},[e.loading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1)],1)}),[],!1,null,null,null).exports;function Wu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}var Uu=n(379),Ku=Uu.required,Zu=Uu.email;const Gu={props:{configData:{type:Object,require:!0,default:Object},loading:{type:Boolean,require:!0,default:!1},mailDrivers:{type:Array,require:!0,default:Array}},data:function(){return{mailConfigData:{mail_driver:"",mail_host:"",from_mail:"",from_name:""}}},validations:{mailConfigData:{mail_driver:{required:Ku},from_mail:{required:Ku,email:Zu},from_name:{required:Ku}}},computed:{driverError:function(){return this.$v.mailConfigData.mail_driver.$error?this.$v.mailConfigData.mail_driver.required?void 0:this.$tc("validation.required"):""},fromMailError:function(){return this.$v.mailConfigData.from_mail.$error?this.$v.mailConfigData.from_mail.required?this.$v.mailConfigData.from_mail.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},fromNameError:function(){return this.$v.mailConfigData.from_name.$error?this.$v.mailConfigData.from_name.required?void 0:this.$tc("validation.required"):""}},mounted:function(){for(var e in this.mailConfigData)this.configData.hasOwnProperty(e)&&(this.mailConfigData[e]=this.configData[e])},methods:{saveEmailConfig:function(){var e,t=this;return(e=Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$v.mailConfigData.$touch(),t.$v.mailConfigData.$invalid||t.$emit("submit-data",t.mailConfigData),e.abrupt("return",!1);case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Wu(i,r,a,o,s,"next",e)}function s(e){Wu(i,r,a,o,s,"throw",e)}o(void 0)}))})()},onChangeDriver:function(){this.$v.mailConfigData.mail_driver.$touch(),this.$emit("on-change-driver",this.mailConfigData.mail_driver)}}};const Ju=(0,_.Z)(Gu,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.saveEmailConfig(t)}}},[n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.driver"),error:e.driverError,required:""}},[n("sw-select",{attrs:{invalid:e.$v.mailConfigData.mail_driver.$error,options:e.mailDrivers,"allow-empty":!1,searchable:!0,"show-labels":!1},on:{input:e.onChangeDriver},model:{value:e.mailConfigData.mail_driver,callback:function(t){e.$set(e.mailConfigData,"mail_driver",t)},expression:"mailConfigData.mail_driver"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("wizard.mail.from_name"),error:e.fromNameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.from_name.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.mailConfigData.from_name.$touch()}},model:{value:e.mailConfigData.from_name,callback:function(t){e.$set(e.mailConfigData,"from_name","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.mail.from_mail"),error:e.fromMailError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.mailConfigData.from_mail.$error,type:"text",name:"from_mail"},on:{input:function(t){return e.$v.mailConfigData.from_mail.$touch()}},model:{value:e.mailConfigData.from_mail,callback:function(t){e.$set(e.mailConfigData,"from_mail","string"==typeof t?t.trim():t)},expression:"mailConfigData.from_mail"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.loading,disabled:e.loading,variant:"primary",type:"submit"}},[e.loading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1)],1)}),[],!1,null,null,null).exports;function Xu(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Qu(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Xu(i,r,a,o,s,"next",e)}function s(e){Xu(i,r,a,o,s,"throw",e)}o(void 0)}))}}const ed={components:{Smtp:Au,Mailgun:zu,Ses:Vu,sendmail:Ju,mail:Ju},data:function(){return{mailConfigData:{mail_driver:"mail"},mail_driver:"mail",isLoading:!1,isFetching:!1,mail_drivers:[]}},created:function(){this.getMailDrivers()},methods:{getMailDrivers:function(){var e=this;return Qu(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=e.isFetching=!0,t.next=3,window.axios.get("/api/v1/mail/drivers");case 3:(n=t.sent).data&&(e.mail_drivers=n.data,e.isLoading=e.isFetching=!1);case 5:case"end":return t.stop()}}),t)})))()},next:function(e){var t=this;return Qu(Y().mark((function n(){var r;return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.isLoading=t.isFetching=!0,n.prev=1,n.next=4,window.axios.post("/api/v1/mail/config",e);case 4:return(r=n.sent).data.success?(t.$emit("next",4),window.toastr.success(t.$t("wizard.success."+r.data.success))):window.toastr.error(t.$t("wizard.errors."+r.data.error)),t.isLoading=t.isFetching=!1,n.abrupt("return",!0);case 10:n.prev=10,n.t0=n.catch(1),t.isLoading=t.isFetching=!1,window.toastr.error("Something went wrong");case 14:case"end":return n.stop()}}),n,null,[[1,10]])})))()}}};const td=(0,_.Z)(ed,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-wizard-step",{attrs:{title:e.$t("wizard.mail.mail_config"),description:e.$t("wizard.mail.mail_config_desc")}},[e.isFetching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.next()}}},[n(e.mail_driver,{tag:"component",attrs:{"config-data":e.mailConfigData,loading:e.isLoading,"mail-drivers":e.mail_drivers},on:{"on-change-driver":function(t){return e.mail_driver=e.mailConfigData.mail_driver=t},"submit-data":e.next}})],1)],1)}),[],!1,null,null,null).exports;function nd(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rd(Object(n),!0).forEach((function(t){id(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var od=n(379),sd=od.required,ld=od.requiredIf,cd=od.sameAs,ud=od.minLength,dd=od.email;const pd={components:{CloudUploadIcon:o.s68},data:function(){return{profileData:{name:null,email:null,password:null,confirm_password:null},isLoading:!1,previewAvatar:"/images/default-avatar.jpg",fileObject:null,cropperOutputMime:""}},validations:{profileData:{name:{required:sd,minLength:ud(3)},email:{email:dd,required:sd},password:{required:sd,minLength:ud(8)},confirm_password:{required:ld("isRequired"),sameAsPassword:cd("password")}}},computed:{emailError:function(){return this.$v.profileData.email.$error?this.$v.profileData.email.required?this.$v.profileData.email.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},nameError:function(){return this.$v.profileData.name.$error?this.$v.profileData.name.required?this.$v.profileData.name.minLength?void 0:this.$tc("validation.name_min_length",this.$v.profileData.name.$params.minLength.min,{count:this.$v.profileData.name.$params.minLength.min}):this.$tc("validation.required"):""},passwordError:function(){return this.$v.profileData.password.$error?this.$v.profileData.password.required?this.$v.profileData.password.minLength?void 0:this.$tc("validation.password_min_length",this.$v.profileData.password.$params.minLength.min,{count:this.$v.profileData.password.$params.minLength.min}):this.$tc("validation.required"):""},confirmPasswordError:function(){return this.$v.profileData.confirm_password.$error?this.$v.profileData.confirm_password.sameAsPassword?void 0:this.$tc("validation.password_incorrect"):""},isRequired:function(){return null!==this.profileData.password&&void 0!==this.profileData.password&&""!==this.profileData.password}},methods:ad(ad({},(0,i.nv)("user",["uploadAvatar"])),{},{onUploadHandler:function(e){this.previewAvatar=e.getCroppedCanvas().toDataURL(this.cropperOutputMime)},onHandleUploadError:function(){window.toastr.error("Oops! Something went wrong...")},onChange:function(e){this.cropperOutputMime=e.type,this.fileObject=e},next:function(){var e,t=this;return(e=Y().mark((function e(){var n,r;return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$v.profileData.$touch(),!t.$v.profileData.$invalid){e.next=3;break}return e.abrupt("return",!0);case 3:return t.isLoading=!0,e.next=6,window.axios.put("/api/v1/me",t.profileData);case 6:return(n=e.sent).data&&(t.fileObject&&t.previewAvatar&&((r=new FormData).append("admin_avatar",JSON.stringify({name:t.fileObject.name,data:t.previewAvatar,id:n.data.user.id})),t.uploadAvatar(r)),t.$emit("next",5),t.isLoading=!1),e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){nd(i,r,a,o,s,"next",e)}function s(e){nd(i,r,a,o,s,"throw",e)}o(void 0)}))})()}})};var md=n(6691),fd={insert:"head",singleton:!1};m()(md.Z,fd);md.Z.locals;const hd=(0,_.Z)(pd,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-wizard-step",{attrs:{title:e.$t("wizard.account_info"),description:e.$t("wizard.account_info_desc")}},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.next()}}},[n("div",{staticClass:"grid grid-cols-1 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$tc("settings.account_settings.profile_picture")}},[n("sw-avatar",{attrs:{"preview-avatar":e.previewAvatar,label:e.$tc("general.choose_file")},on:{changed:e.onChange,uploadHandler:e.onUploadHandler,handleUploadError:e.onHandleUploadError},scopedSlots:e._u([{key:"icon",fn:function(){return[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"})]},proxy:!0}])})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.name"),error:e.nameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.profileData.name.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.profileData.name.$touch()}},model:{value:e.profileData.name,callback:function(t){e.$set(e.profileData,"name","string"==typeof t?t.trim():t)},expression:"profileData.name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.email"),error:e.emailError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.profileData.email.$error,type:"text",name:"email"},on:{input:function(t){return e.$v.profileData.email.$touch()}},model:{value:e.profileData.email,callback:function(t){e.$set(e.profileData,"email","string"==typeof t?t.trim():t)},expression:"profileData.email"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("wizard.password"),error:e.passwordError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.profileData.password.$error,type:"password",name:"password"},on:{input:function(t){return e.$v.profileData.password.$touch()}},model:{value:e.profileData.password,callback:function(t){e.$set(e.profileData,"password","string"==typeof t?t.trim():t)},expression:"profileData.password"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.confirm_password"),error:e.confirmPasswordError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.profileData.confirm_password.$error,type:"password",name:"confirm_password"},on:{input:function(t){return e.$v.profileData.confirm_password.$touch()}},model:{value:e.profileData.confirm_password,callback:function(t){e.$set(e.profileData,"confirm_password","string"==typeof t?t.trim():t)},expression:"profileData.confirm_password"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("wizard.save_cont"))+"\n ")],1)],1)])}),[],!1,null,null,null).exports;function _d(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function vd(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){_d(i,r,a,o,s,"next",e)}function s(e){_d(i,r,a,o,s,"throw",e)}o(void 0)}))}}function gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(n),!0).forEach((function(t){bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wd=n(379),xd=wd.required,kd=wd.maxLength;const Dd={components:{CloudUploadIcon:o.s68},data:function(){return{companyData:{logo:"",name:null,address_street_1:"",address_street_2:"",city:"",state:"",country_id:"",zip:"",phone:""},isLoading:!1,isFetching:!1,step:1,countries:[],country:null,previewLogo:null,fileObject:null,cropperOutputMime:""}},validations:{companyData:{name:{required:xd},country_id:{required:xd},address_street_1:{maxLength:kd(255)},address_street_2:{maxLength:kd(255)}}},watch:{country:function(e){var t=e.id;return this.companyData.country_id=t,!0}},computed:{companyNameError:function(){return this.$v.companyData.name.$error?this.$v.companyData.name.required?void 0:this.$tc("validation.required"):""},countryError:function(){return this.$v.companyData.country_id.$error?this.$v.companyData.country_id.required?void 0:this.$tc("validation.required"):""},address1Error:function(){return this.$v.companyData.address_street_1.$error?this.$v.companyData.address_street_1.maxLength?void 0:this.$t("validation.description_maxlength"):""},address2Error:function(){return this.$v.companyData.address_street_2.$error?this.$v.companyData.address_street_2.maxLength?void 0:this.$t("validation.description_maxlength"):""}},mounted:function(){this.fetchCountries()},methods:yd(yd({},(0,i.nv)("company",["setSelectedCompany"])),{},{onUploadHandler:function(e){this.previewLogo=e.getCroppedCanvas().toDataURL(this.cropperOutputMime)},onHandleUploadError:function(){window.toastr.error("Oops! Something went wrong...")},onChange:function(e){this.cropperOutputMime=e.type,this.fileObject=e},next:function(){var e=this;return vd(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.companyData.$touch(),!e.$v.companyData.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,t.next=6,window.axios.put("/api/v1/company",e.companyData);case 6:if(!(n=t.sent).data){t.next=16;break}if(e.setSelectedCompany(n.data.company),!e.fileObject||!e.previewLogo){t.next=14;break}return(r=new FormData).append("company_logo",JSON.stringify({name:e.fileObject.name,data:e.previewLogo})),t.next=14,axios.post("/api/v1/company/upload-logo",r,{headers:{"Content-Type":"multipart/form-data",company:n.data.company.id}});case 14:e.$emit("next",6),e.isLoading=!1;case 16:case"end":return t.stop()}}),t)})))()},onFileChange:function(e){var t=this,n=event.target;if(this.companyData.logo=n.files[0],n.files&&n.files[0]){var r=new FileReader;r.onload=function(e){t.previewLogo=e.target.result},r.readAsDataURL(n.files[0])}},fetchCountries:function(){var e=this;return vd(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isFetching=!0,t.next=3,window.axios.get("/api/v1/countries");case 3:(n=t.sent)&&(e.countries=n.data.countries),e.isFetching=!1;case 6:case"end":return t.stop()}}),t)})))()}})};const Md=(0,_.Z)(Dd,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-wizard-step",{attrs:{title:e.$t("wizard.company_info"),description:e.$t("wizard.company_info_desc")}},[e.isFetching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.next()}}},[n("div",[n("div",{staticClass:"grid grid-cols-1 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$tc("settings.company_info.company_logo")}},[n("div",{staticClass:"relative flex items-center justify-center h-24 p-5 mt-2 bg-transparent border-2 border-gray-200 border-dashed rounded-md image-upload-box",attrs:{id:"logo-box"}},[e.previewLogo?n("img",{staticClass:"absolute opacity-100 preview-logo",staticStyle:{"max-height":"80%",animation:"fadeIn 2s ease"},attrs:{src:e.previewLogo}}):n("div",{staticClass:"flex flex-col items-center"},[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"}),e._v(" "),n("p",{staticClass:"text-xs leading-4 text-center text-gray-400"},[e._v("\n Drag a file here or\n "),n("span",{staticClass:"cursor-pointer text-primary-500",attrs:{id:"pick-avatar"}},[e._v("browse")]),e._v("\n to choose a file\n ")])],1)]),e._v(" "),n("sw-avatar",{attrs:{trigger:"#logo-box","preview-avatar":e.previewLogo},on:{changed:e.onChange,uploadHandler:e.onUploadHandler,handleUploadError:e.onHandleUploadError},scopedSlots:e._u([{key:"icon",fn:function(){return[n("cloud-upload-icon",{staticClass:"h-5 mb-2 text-xl leading-6 text-gray-400"})]},proxy:!0}])})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.company_name"),error:e.companyNameError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.companyData.name.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.companyData.name.$touch()}},model:{value:e.companyData.name,callback:function(t){e.$set(e.companyData,"name","string"==typeof t?t.trim():t)},expression:"companyData.name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.country"),error:e.countryError,required:""}},[n("sw-select",{class:{error:e.$v.companyData.country_id.$error},attrs:{options:e.countries,searchable:!0,"allow-empty":!1,"show-labels":!1,placeholder:e.$t("general.select_country"),"track-by":"id",label:"name"},model:{value:e.country,callback:function(t){e.country=t},expression:"country"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.state")}},[n("sw-input",{attrs:{name:"state",type:"text"},model:{value:e.companyData.state,callback:function(t){e.$set(e.companyData,"state",t)},expression:"companyData.state"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.city")}},[n("sw-input",{attrs:{name:"city",type:"text"},model:{value:e.companyData.city,callback:function(t){e.$set(e.companyData,"city",t)},expression:"companyData.city"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("div",[n("sw-input-group",{attrs:{label:e.$t("wizard.address"),error:e.address1Error}},[n("sw-textarea",{attrs:{invalid:e.$v.companyData.address_street_1.$error,placeholder:e.$t("general.street_1"),name:"billing_street1",rows:"2"},on:{input:function(t){return e.$v.companyData.address_street_1.$touch()}},model:{value:e.companyData.address_street_1,callback:function(t){e.$set(e.companyData,"address_street_1","string"==typeof t?t.trim():t)},expression:"companyData.address_street_1"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-1 lg:mt-2 md:mt-2",attrs:{error:e.address2Error}},[n("sw-textarea",{attrs:{invalid:e.$v.companyData.address_street_2.$error,placeholder:e.$t("general.street_2"),name:"billing_street2",rows:"2"},on:{input:function(t){return e.$v.companyData.address_street_2.$touch()}},model:{value:e.companyData.address_street_2,callback:function(t){e.$set(e.companyData,"address_street_2",t)},expression:"companyData.address_street_2"}})],1)],1),e._v(" "),n("div",[n("sw-input-group",{attrs:{label:e.$t("wizard.zip_code")}},[n("sw-input",{attrs:{type:"text",name:"zip"},model:{value:e.companyData.zip,callback:function(t){e.$set(e.companyData,"zip","string"==typeof t?t.trim():t)},expression:"companyData.zip"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("wizard.phone")}},[n("sw-input",{attrs:{type:"text",name:"phone"},model:{value:e.companyData.phone,callback:function(t){e.$set(e.companyData,"phone","string"==typeof t?t.trim():t)},expression:"companyData.phone"}})],1)],1)]),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("wizard.save_cont"))+"\n ")],1)],1)])],1)}),[],!1,null,null,null).exports;var Sd=n(1402);function Cd(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ld(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Cd(i,r,a,o,s,"next",e)}function s(e){Cd(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Td(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ed(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ad=n(379),jd=Ad.required;Ad.minLength,Ad.email;const $d={data:function(){return{settingData:{language:null,currency:null,timeZone:null,dateFormat:null,fiscalYear:null},isLoading:!1,isFetching:!1,step:1}},validations:{settingData:{currency:{required:jd},language:{required:jd},dateFormat:{required:jd},timeZone:{required:jd},fiscalYear:{required:jd}}},computed:Od(Od(Od({},(0,i.Se)(["languages","currencies","timeZones","dateFormats","fiscalYears"])),(0,i.Se)("company",["defaultFiscalYear","defaultTimeZone"])),{},{currencyError:function(){return this.$v.settingData.currency.$error?this.$v.settingData.currency.required?void 0:this.$tc("validation.required"):""},languageError:function(){return this.$v.settingData.language.$error?this.$v.settingData.language.required?void 0:this.$tc("validation.required"):""},dateFormatError:function(){return this.$v.settingData.dateFormat.$error?this.$v.settingData.dateFormat.required?void 0:this.$tc("validation.required"):""},timeZoneError:function(){return this.$v.settingData.timeZone.$error?this.$v.settingData.timeZone.required?void 0:this.$tc("validation.required"):""},fiscalYearError:function(){return this.$v.settingData.fiscalYear.$error?this.$v.settingData.fiscalYear.required?void 0:this.$tc("validation.required"):""}}),mounted:function(){this.setInitialData()},methods:Od(Od(Od({},(0,i.nv)("company",["updateCompanySettings","setSelectedCompany"])),(0,i.nv)(["fetchLanguages","fetchCurrencies","fetchFiscalYears","fetchDateFormats","fetchTimeZones"])),{},{setInitialData:function(){var e=this;return Ld(Y().mark((function t(){return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isFetching=!0,t.next=3,e.fetchCurrencies();case 3:return t.next=5,e.fetchDateFormats();case 5:return t.next=7,e.fetchLanguages();case 7:return t.next=9,e.fetchFiscalYears();case 9:return t.next=11,e.fetchTimeZones();case 11:return t.next=13,e.fetchLanguages();case 13:e.settingData.currency=e.currencies.find((function(e){return 1===e.id})),e.settingData.language=e.languages.find((function(e){return"en"===e.code})),e.settingData.dateFormat=e.dateFormats.find((function(e){return"d M Y"==e.carbon_format_value})),e.settingData.timeZone=e.timeZones.find((function(e){return"UTC"===e.value})),e.settingData.fiscalYear=e.fiscalYears.find((function(e){return"1-12"===e.value})),e.isFetching=!1;case 19:case"end":return t.stop()}}),t)})))()},currencyNameWithCode:function(e){var t=e.name,n=e.code;return"".concat(n," - ").concat(t)},next:function(){var e=this;return Ld(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.settingData.$touch(),!e.$v.settingData.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,n={settings:{currency:e.settingData.currency.id,time_zone:e.settingData.timeZone.value,language:e.settingData.language.code,fiscal_year:e.settingData.fiscalYear.value,carbon_date_format:e.settingData.dateFormat.carbon_format_value,moment_date_format:e.settingData.dateFormat.moment_format_value}},t.next=7,e.updateCompanySettings(n);case 7:(r=t.sent).data&&(e.isLoading=!1,e.updateUserSettings(),Sd.Z.set("auth.token",r.data.token));case 9:case"end":return t.stop()}}),t)})))()},updateUserSettings:function(){var e=this;return Ld(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={settings:{language:e.settingData.language.code}},t.next=3,axios.put("/api/v1/me/settings",n);case 3:t.sent.data&&(e.$emit("next","COMPLETED"),window.toastr.success("Login Successful"),e.$router.push("/admin/dashboard"));case 5:case"end":return t.stop()}}),t)})))()}})};function Pd(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Yd(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Pd(i,r,a,o,s,"next",e)}function s(e){Pd(i,r,a,o,s,"throw",e)}o(void 0)}))}}const Nd={components:{step_1:Zc,step_2:Qc,step_3:Mu,step_4:td,step_5:hd,step_6:Md,step_7:(0,_.Z)($d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("sw-wizard-step",{attrs:{title:e.$t("wizard.preferences"),description:e.$t("wizard.preferences_desc")}},[e.isFetching?n("base-loader",{attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.next(t)}}},[n("div",[n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.currency"),error:e.currencyError,required:""}},[n("sw-select",{class:{error:e.$v.settingData.currency.$error},attrs:{options:e.currencies,"custom-label":e.currencyNameWithCode,searchable:!0,"show-labels":!1,placeholder:e.$t("settings.currencies.select_currency"),"track-by":"id",label:"name"},on:{input:function(t){return e.$v.settingData.currency.$touch()}},model:{value:e.settingData.currency,callback:function(t){e.$set(e.settingData,"currency",t)},expression:"settingData.currency"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.preferences.default_language"),error:e.languageError,required:""}},[n("sw-select",{class:{error:e.$v.settingData.language.$error},attrs:{options:e.languages,searchable:!0,"show-labels":!1,placeholder:e.$t("settings.preferences.select_language"),label:"name"},on:{input:function(t){return e.$v.settingData.language.$touch()}},model:{value:e.settingData.language,callback:function(t){e.$set(e.settingData,"language",t)},expression:"settingData.language"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"},[n("sw-input-group",{attrs:{label:e.$t("wizard.date_format"),error:e.dateFormatError,required:""}},[n("sw-select",{class:{error:e.$v.settingData.dateFormat.$error},attrs:{options:e.dateFormats,searchable:!0,"show-labels":!1,placeholder:e.$t("settings.preferences.select_date_format"),label:"display_date"},on:{input:function(t){return e.$v.settingData.dateFormat.$touch()}},model:{value:e.settingData.dateFormat,callback:function(t){e.$set(e.settingData,"dateFormat",t)},expression:"settingData.dateFormat"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("wizard.time_zone"),error:e.timeZoneError,required:""}},[n("sw-select",{class:{error:e.$v.settingData.timeZone.$error},attrs:{options:e.timeZones,searchable:!0,"show-labels":!1,placeholder:e.$t("settings.preferences.select_time_zone"),label:"key"},on:{input:function(t){return e.$v.settingData.timeZone.$touch()}},model:{value:e.settingData.timeZone,callback:function(t){e.$set(e.settingData,"timeZone",t)},expression:"settingData.timeZone"}})],1)],1),e._v(" "),n("div",{staticClass:"grid grid-cols-1 gap-4 mb-6 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("wizard.fiscal_year"),error:e.fiscalYearError,required:""}},[n("sw-select",{class:{error:e.$v.settingData.fiscalYear.$error},attrs:{options:e.fiscalYears,searchable:!0,"show-labels":!1,placeholder:e.$t("settings.preferences.select_financial_year"),label:"key"},on:{input:function(t){return e.$v.settingData.fiscalYear.$touch()}},model:{value:e.settingData.fiscalYear,callback:function(t){e.$set(e.settingData,"fiscalYear",t)},expression:"settingData.fiscalYear"}})],1)],1),e._v(" "),n("sw-button",{staticClass:"mt-4",attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("wizard.save_cont"))+"\n ")],1)],1)])],1)}),[],!1,null,null,null).exports},data:function(){return{profile_complete:null,loading:!1,tab:"step_1",step:1}},created:function(){this.getProfileComplete()},methods:{getProfileComplete:function(){var e=this;return Yd(Y().mark((function t(){var n,r;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,axios.get("/api/v1/onboarding/wizard-step");case 2:if("COMPLETED"!==(n=t.sent).data.profile_complete){t.next=6;break}return e.$router.push("/admin/dashboard"),t.abrupt("return");case 6:(r=parseInt(n.data.profile_complete))&&(e.step=r+1,e.tab="step_".concat(r+1));case 8:case"end":return t.stop()}}),t)})))()},setProfileComplete:function(e){return Yd(Y().mark((function t(){var n;return Y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={profile_complete:e},t.next=3,axios.post("/api/v1/onboarding/wizard-step",n);case 3:t.sent;case 4:case"end":return t.stop()}}),t)})))()},setTab:function(e){var t=this;return Yd(Y().mark((function n(){return Y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e&&t.setProfileComplete(e),t.step++,t.step<=7&&(t.tab="step_"+t.step);case 3:case"end":return n.stop()}}),n)})))()}}};const zd=(0,_.Z)(Nd,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex flex-col items-center justify-between w-full h-32 pt-10 step-indicator"},[n("img",{staticClass:"h-12",attrs:{id:"logo-crater",src:"/assets/img/crater-logo.png",alt:"Crater Logo"}}),e._v(" "),n("sw-wizard",{attrs:{steps:7,currentStep:e.step,"allow-navigation-redirect":!1},on:{"update:currentStep":function(t){e.step=t},"update:current-step":function(t){e.step=t}}},[n(e.tab,{tag:"component",on:{next:e.setTab}})],1)],1)}),[],!1,null,null,null).exports;r.default.use(a.Z);var Id=[{path:"/",component:A,meta:{redirectIfAuthenticated:!0},children:[{path:"/",component:Z},{path:"login",component:Z,name:"login"},{path:"/forgot-password",component:ee,name:"forgot-password"},{path:"/reset-password/:token",component:se,name:"reset-password"},{path:"register",component:ce,name:"register"}]},{path:"/on-boarding",component:$,children:[{path:"/",component:zd,name:"wizard"}]},{path:"/admin",component:T,meta:{requiresAuth:!0},children:[{path:"/",component:Re,name:"dashboard"},{path:"dashboard",component:Re},{path:"customers",component:Ge},{path:"customers/create",name:"customers.create",component:dt},{path:"customers/:id/edit",name:"customers.edit",component:dt},{path:"customers/:id/view",name:"customers.view",component:Yt},{path:"items",component:Bt},{path:"items/create",name:"items.create",component:nn},{path:"items/:id/edit",name:"items.edit",component:nn},{path:"estimates",name:"estimates.index",component:na},{path:"estimates/create",name:"estimates.create",component:Qa},{path:"estimates/:id/view",name:"estimates.view",component:li},{path:"estimates/:id/edit",name:"estimates.edit",component:Qa},{path:"invoices",name:"invoices.index",component:mn},{path:"invoices/create",name:"invoices.create",component:hr},{path:"invoices/:id/view",name:"invoices.view",component:kr},{path:"invoices/:id/edit",name:"invoices.edit",component:hr},{path:"payments",name:"payments.index",component:Or},{path:"payments/create",name:"payments.create",component:Hr},{path:"payments/:id/create",name:"invoice.payments.create",component:Hr},{path:"payments/:id/edit",name:"payments.edit",component:Hr},{path:"payments/:id/view",name:"payments.view",component:Zr},{path:"expenses",component:hi},{path:"expenses/create",name:"expenses.create",component:Si},{path:"expenses/:id/edit",name:"expenses.edit",component:Si},{path:"users",component:ji},{path:"users/create",name:"users.create",component:Vi},{path:"users/:id/edit",name:"users.edit",component:Vi},{path:"reports",component:Lo,children:[{path:"sales",component:Qi},{path:"expenses",component:so},{path:"profit-loss",component:_o},{path:"taxes",component:Do}]},{path:"settings",component:Oo,children:[{path:"company-info",name:"company.info",component:Ho},{path:"customization",name:"customization",component:js},{path:"payment-mode",name:"payment.mode",component:Vc},{path:"custom-fields",name:"custom.fields",component:Nc},{path:"user-profile",name:"user.profile",component:ll},{path:"preferences",name:"preferences",component:Zs},{path:"tax-types",name:"tax.types",component:hl},{path:"notes",name:"notes",component:kl},{path:"expense-category",name:"expense.category",component:Ol},{path:"mail-configuration",name:"mailconfig",component:cc},{path:"notifications",name:"notifications",component:Hs},{path:"update-app",name:"updateapp",component:_c},{path:"backup",name:"backup",component:kc},{path:"file-disk",name:"file-disk",component:Oc}]}]},{path:"*",component:de}];const Fd=new a.Z({routes:Id,mode:"history",linkActiveClass:"active"})},1402:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={get:function(e){return localStorage.getItem(e)?localStorage.getItem(e):null},set:function(e,t){localStorage.setItem(e,t)},remove:function(e){localStorage.removeItem(e)}}},8074:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Pc});var r={};n.r(r),n.d(r,{countries:()=>te,currencies:()=>J,dateFormats:()=>Q,fiscalYears:()=>ee,isAppLoaded:()=>Z,isSidebarOpen:()=>ne,languages:()=>G,timeZones:()=>X});var a={};n.r(a),n.d(a,{login:()=>Ae,logout:()=>$e,setLogoutFalse:()=>je});var i={};n.r(i),n.d(i,{isLoggedOut:()=>Pe});var o={};n.r(o),n.d(o,{fetchCurrentUser:()=>He,fetchUserSettings:()=>Be,updateCurrentUser:()=>Fe,updateUserSettings:()=>qe,uploadAvatar:()=>Re});var s={};n.r(s),n.d(s,{currentUser:()=>Ve});var l={};n.r(l),n.d(l,{addCategory:()=>rt,deleteCategory:()=>it,fetchCategories:()=>tt,fetchCategory:()=>nt,updateCategory:()=>at});var c={};n.r(c),n.d(c,{categories:()=>ot,getCategoryById:()=>st});var u={};n.r(u),n.d(u,{addCustomer:()=>Ct,deleteCustomer:()=>Tt,deleteMultipleCustomers:()=>Ot,fetchCustomer:()=>Mt,fetchCustomers:()=>Dt,fetchViewCustomer:()=>St,resetSelectedCustomer:()=>$t,selectAllCustomers:()=>At,selectCustomer:()=>jt,setSelectAllState:()=>Et,updateCustomer:()=>Lt});var d={};n.r(d),n.d(d,{customers:()=>Pt,getCustomer:()=>It,selectAllField:()=>Yt,selectedCustomers:()=>Nt,selectedViewCustomer:()=>Ft,totalCustomers:()=>zt});var p={};n.r(p),n.d(p,{fetchCompanySettings:()=>Zt,fetchMailConfig:()=>Qt,fetchMailDrivers:()=>Xt,sendTestMail:()=>tn,setDefaultCurrency:()=>nn,setItemDiscount:()=>Jt,setSelectedCompany:()=>Wt,updateCompany:()=>Ut,updateCompanyLogo:()=>Kt,updateCompanySettings:()=>Gt,updateMailConfig:()=>en});var m={};n.r(m),n.d(m,{defaultCurrency:()=>un,defaultCurrencyForInput:()=>dn,defaultFiscalYear:()=>ln,defaultTimeZone:()=>cn,getCarbonDateFormat:()=>on,getMomentDateFormat:()=>an,getSelectedCompany:()=>rn,itemDiscount:()=>sn});var f={};n.r(f),n.d(f,{loadData:()=>xn});var h={};n.r(h),n.d(h,{getChartExpenses:()=>Nn,getChartInvoices:()=>Yn,getChartMonths:()=>Pn,getContacts:()=>kn,getDashboardDataLoaded:()=>An,getDueInvoices:()=>On,getEstimates:()=>Mn,getExpenses:()=>Sn,getInvoices:()=>Dn,getNetProfit:()=>Bn,getNetProfits:()=>zn,getNewContacts:()=>Ln,getReceiptTotals:()=>In,getRecentEstimates:()=>En,getRecentInvoices:()=>Cn,getTotalDueAmount:()=>Tn,getTotalExpenses:()=>Rn,getTotalReceipts:()=>Hn,getTotalSales:()=>Fn,getWeeklyInvoicesCounter:()=>jn,getWeeklyInvoicesDays:()=>$n});var _={};n.r(_),n.d(_,{addEstimate:()=>wr,convertToInvoice:()=>Lr,deleteEstimate:()=>xr,deleteMultipleEstimates:()=>kr,fetchCreateEstimate:()=>_r,fetchEstimate:()=>gr,fetchEstimates:()=>fr,fetchViewEstimate:()=>yr,getEstimateNumber:()=>vr,getRecord:()=>hr,markAsAccepted:()=>Mr,markAsRejected:()=>Sr,markAsSent:()=>Cr,resetCustomer:()=>Yr,resetItem:()=>Nr,resetSelectedCustomer:()=>Fr,resetSelectedEstimates:()=>jr,resetSelectedNote:()=>Rr,searchEstimate:()=>Tr,selectAllEstimates:()=>Ar,selectCustomer:()=>Ir,selectEstimate:()=>Or,selectNote:()=>Hr,sendEmail:()=>br,setCustomer:()=>$r,setItem:()=>Pr,setSelectAllState:()=>Er,setTemplate:()=>zr,updateEstimate:()=>Dr});var v={};n.r(v),n.d(v,{estimates:()=>Br,getEstimate:()=>Gr,getTemplateId:()=>Vr,selectAllField:()=>qr,selectedCustomer:()=>Kr,selectedEstimates:()=>Wr,selectedNote:()=>Zr,totalEstimates:()=>Ur});var g={};n.r(g),n.d(g,{addExpense:()=>ma,deleteExpense:()=>ha,deleteMultipleExpenses:()=>_a,fetchExpense:()=>ua,fetchExpenses:()=>ca,getExpenseReceipt:()=>da,selectAllExpenses:()=>ga,selectExpense:()=>ya,setSelectAllState:()=>va,updateExpense:()=>fa,uploadExpenseReceipt:()=>pa});var y={};n.r(y),n.d(y,{expenses:()=>ba,selectAllField:()=>wa,selectedExpenses:()=>xa,totalExpenses:()=>ka});var b={};n.r(b),n.d(b,{addInvoice:()=>Za,cloneInvoice:()=>ei,deleteInvoice:()=>Ga,deleteMultipleInvoices:()=>Ja,fetchInvoice:()=>Ua,fetchInvoices:()=>Wa,getInvoiceNumber:()=>ni,markAsSent:()=>Qa,resetCustomer:()=>li,resetItem:()=>mi,resetSelectedCustomer:()=>di,resetSelectedInvoices:()=>oi,resetSelectedNote:()=>hi,searchInvoice:()=>ti,selectAllInvoices:()=>ii,selectCustomer:()=>ui,selectInvoice:()=>ri,selectNote:()=>fi,sendEmail:()=>Ka,setCustomer:()=>si,setItem:()=>pi,setSelectAllState:()=>ai,setTemplate:()=>ci,updateInvoice:()=>Xa});var w={};n.r(w),n.d(w,{getInvoice:()=>Di,getTemplateId:()=>gi,invoices:()=>_i,selectAllField:()=>vi,selectedCustomer:()=>wi,selectedInvoices:()=>yi,selectedItem:()=>ki,selectedNote:()=>xi,totalInvoices:()=>bi});var x={};n.r(x),n.d(x,{addPayment:()=>Vi,addPaymentMode:()=>Xi,deleteMultiplePayments:()=>Zi,deletePayment:()=>Gi,deletePaymentMode:()=>no,fetchPayment:()=>qi,fetchPaymentMode:()=>to,fetchPaymentModes:()=>eo,fetchPayments:()=>Bi,resetSelectedNote:()=>oo,searchPayment:()=>ao,selectAllPayments:()=>Ji,selectNote:()=>io,selectPayment:()=>Ui,sendEmail:()=>ro,setSelectAllState:()=>Wi,updatePayment:()=>Ki,updatePaymentMode:()=>Qi});var k={};n.r(k),n.d(k,{paymentModes:()=>po,payments:()=>so,selectAllField:()=>co,selectedNote:()=>mo,selectedPayments:()=>lo,totalPayments:()=>uo});var D={};n.r(D),n.d(D,{addItem:()=>Ao,addItemUnit:()=>Io,deleteItem:()=>$o,deleteItemUnit:()=>Bo,deleteMultipleItems:()=>Po,fatchItemUnit:()=>Ro,fetchItem:()=>Eo,fetchItemUnits:()=>Ho,fetchItems:()=>Oo,selectAllItems:()=>No,selectItem:()=>zo,setSelectAllState:()=>Yo,updateItem:()=>jo,updateItemUnit:()=>Fo});var M={};n.r(M),n.d(M,{itemUnits:()=>Ko,items:()=>qo,selectAllField:()=>Vo,selectedItems:()=>Wo,totalItems:()=>Uo});var S={};n.r(S),n.d(S,{closeModal:()=>us,openModal:()=>cs,resetModalData:()=>ds});var C={};n.r(C),n.d(C,{componentName:()=>fs,modalActive:()=>ps,modalData:()=>_s,modalDataID:()=>hs,modalSize:()=>vs,modalTitle:()=>ms,refreshData:()=>gs,variant:()=>ys});var L={};n.r(L),n.d(L,{addCustomField:()=>Ys,deleteCustomFields:()=>zs,fetchCustomField:()=>Ps,fetchCustomFields:()=>js,fetchNoteCustomFields:()=>$s,updateCustomField:()=>Ns});var T={};n.r(T),n.d(T,{getCustomFields:()=>Is});var O={};n.r(O),n.d(O,{addTaxType:()=>Js,deleteTaxType:()=>el,fetchTaxType:()=>Xs,fetchTaxTypes:()=>Zs,fetchTaxTypesList:()=>Gs,updateTaxType:()=>Qs});var E={};n.r(E),n.d(E,{getTaxTypeById:()=>nl,taxTypes:()=>tl});var A={};n.r(A),n.d(A,{addUser:()=>vl,deleteMultipleUsers:()=>bl,deleteUser:()=>yl,fetchUser:()=>_l,fetchUsers:()=>hl,selectAllUsers:()=>xl,selectedUser:()=>kl,setSelectAllState:()=>wl,updateUser:()=>gl});var j={};n.r(j),n.d(j,{selectAllField:()=>Ml,selectedUsers:()=>Sl,totalUsers:()=>Cl,users:()=>Dl});var $={};n.r($),n.d($,{createBackup:()=>$l,fetchBackups:()=>jl,removeBackup:()=>Pl});var P={};n.r(P),n.d(P,{getBackupDisks:()=>Nl,getBackupDisksInfo:()=>zl,getBackups:()=>Yl});var Y={};n.r(Y),n.d(Y,{createDisk:()=>Zl,deleteFileDisk:()=>Jl,fetchDiskDrivers:()=>Ul,fetchDiskEnv:()=>Kl,fetchDisks:()=>Wl,updateDisk:()=>Gl});var N={};n.r(N),n.d(N,{getDiskDrivers:()=>Ql,getDisks:()=>Xl});var z={};n.r(z),n.d(z,{fetchEstimateTemplates:()=>oc});var I={};n.r(I),n.d(I,{getEstimateTemplates:()=>sc});var F={};n.r(F),n.d(F,{fetchInvoiceTemplates:()=>dc});var H={};n.r(H),n.d(H,{getInvoiceTemplates:()=>pc});var R={};n.r(R),n.d(R,{searchUsers:()=>vc});var B={};n.r(B),n.d(B,{getCustomerList:()=>gc,getUserList:()=>yc});var q={};n.r(q),n.d(q,{addNote:()=>Oc,deleteNote:()=>Ac,fetchNote:()=>Tc,fetchNotes:()=>Lc,updateNote:()=>Ec});var V={};n.r(V),n.d(V,{notes:()=>jc});var W,U=n(538),K=n(629),Z=function(e){return e.isAppLoaded},G=function(e){return e.languages},J=function(e){return e.currencies},X=function(e){return e.timeZones},Q=function(e){return e.dateFormats},ee=function(e){return e.fiscalYears},te=function(e){return e.countries},ne=function(e){return e.isSidebarOpen},re="UPDATE_APP_LOADING_STATUS",ae="SET_LANGUAGES",ie="SET_CURRENCIES",oe="SET_DATE_FORMATS",se="SET_TIMEZONES",le="SET_FISCAL_YEARS",ce="SET_COUNTRIES",ue="TOGGLE_SIDEBAR";function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pe=(de(W={},re,(function(e,t){e.isAppLoaded=t})),de(W,ae,(function(e,t){e.languages=t})),de(W,ie,(function(e,t){e.currencies=t})),de(W,se,(function(e,t){e.timeZones=t})),de(W,oe,(function(e,t){e.dateFormats=t})),de(W,le,(function(e,t){e.fiscalYears=t})),de(W,ce,(function(e,t){e.countries=t})),de(W,ue,(function(e){e.isSidebarOpen=!e.isSidebarOpen})),W);var me="RESET_CURRENT_USER",fe="BOOTSTRAP_CURRENT_USER",he="UPDATE_CURRENT_USER",_e="UPDATE_USER_AVATAR",ve="SET_DEFAULT_LANGUAGE",ge="SET_SELECTED_COMPANY",ye="SET_MOMENT_DATE_FORMAT",be="SET_CARBON_DATE_FORMAT",we="SET_DEFAULT_FISCAL_YEAR",xe="SET_DEFAULT_TIME_ZONE",ke="SET_ITEM_DISCOUNT",De="SET_DEFAULT_CURRENCY";const Me={bootstrap:function(e){var t=e.commit;e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/bootstrap").then((function(n){t("user/BOOTSTRAP_CURRENT_USER",n.data.user),t("company/SET_SELECTED_COMPANY",n.data.company),t("company/SET_DEFAULT_CURRENCY",n.data),t("user/SET_DEFAULT_LANGUAGE",n.data.default_language),t("company/SET_MOMENT_DATE_FORMAT",n.data.moment_date_format),t("company/SET_CARBON_DATE_FORMAT",n.data.carbon_date_format),t("company/SET_DEFAULT_FISCAL_YEAR",n.data.fiscal_year),t("company/SET_DEFAULT_TIME_ZONE",n.data.time_zone),t(ie,n.data.currencies),t(ce,n.data.countries),t(re,!0),e(n)})).catch((function(e){n(e)}))}))},fetchLanguages:function(e){var t=e.commit;e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/languages").then((function(n){t(ae,n.data.languages),e(n)})).catch((function(e){n(e)}))}))},fetchCurrencies:function(e){var t=e.commit;e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/currencies").then((function(n){t(ie,n.data.currencies),e(n)})).catch((function(e){n(e)}))}))},fetchDateFormats:function(e){var t=e.commit;e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/date/formats").then((function(n){t(oe,n.data.date_formats),e(n)})).catch((function(e){n(e)}))}))},fetchFiscalYears:function(e){var t=e.commit;e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/fiscal/years").then((function(n){t(le,n.data.fiscal_years),e(n)})).catch((function(e){n(e)}))}))},fetchTimeZones:function(e){var t=e.commit;e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/timezones").then((function(n){t(se,n.data.time_zones),e(n)})).catch((function(e){n(e)}))}))},fetchCountries:function(e){var t=e.commit;e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/countries").then((function(n){t(ce,n.data.countries),e(n)})).catch((function(e){n(e)}))}))},toggleSidebar:function(e){(0,e.commit)(ue)}};var Se,Ce="AUTH_ERROR",Le="SET_LOGOUT";function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oe=(Te(Se={},"AUTH_SUCCESS",(function(e,t){e.token=t,e.status="success"})),Te(Se,Le,(function(e,t){e.isLoggedOut=t})),Te(Se,Ce,(function(e,t){e.token=null,e.status="error"})),Te(Se,"REFRESH_SUCCESS",(function(e,t){e.token=t,e.status="success"})),Se);var Ee=n(7904),Ae=function(e,t){var n=e.commit;return new Promise((function(e,r){window.axios.get("/sanctum/csrf-cookie").then((function(a){window.axios.post("/login",t).then((function(t){n(Le,!1),n("user/RESET_CURRENT_USER",null,{root:!0}),n(re,!1,{root:!0}),window.toastr.success("Login Successful"),e(t)})).catch((function(e){n(Ce,e.response),r(e)}))}))}))},je=function(e){e.state;(0,e.commit)(Le,!1)},$e=function(e){var t=e.state,n=e.commit;return new Promise((function(e,r){if(t.isLoggedOut)return e(),!0;n(Le,!0),window.axios.get("/auth/logout").then((function(){Ee.Z.push("/login"),window.toastr.success("Logged out!","Success")})).catch((function(e){Ee.Z.push("/login"),r(e)}))}))},Pe=function(e){return e.isLoggedOut};const Ye={namespaced:!0,state:{status:"",isLoggedOut:!1},getters:i,actions:a,mutations:Oe};var Ne;function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ie=(ze(Ne={},me,(function(e,t){e.currentUser=null})),ze(Ne,fe,(function(e,t){e.currentUser=t})),ze(Ne,he,(function(e,t){e.currentUser=t})),ze(Ne,_e,(function(e,t){e.currentUser&&(e.currentUser.avatar=t.avatar)})),ze(Ne,ve,(function(e,t){window.i18n.locale=t})),Ne);n(6486);var Fe=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){axios.put("/api/v1/me",t).then((function(t){n(he,t.data.user),e(t)})).catch((function(e){r(e)}))}))},He=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/me",t).then((function(t){n(fe,t.data.user),e(t)})).catch((function(e){r(e)}))}))},Re=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/me/upload-avatar",t).then((function(t){n(_e,t.data.user),e(t)})).catch((function(e){r(e)}))}))},Be=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/me/settings",{params:{settings:t}}).then((function(t){e(t)})).catch((function(e){n(e)}))}))},qe=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/me/settings",t).then((function(r){n(ve,t.settings.language),e(r)})).catch((function(e){r(e)}))}))},Ve=function(e){return e.currentUser};const We={namespaced:!0,state:{currentUser:null},getters:s,actions:o,mutations:Ie};var Ue,Ke="SET_CATEGORIES",Ze="ADD_CATEGORY",Ge="UPDATE_CATEGORY",Je="DELETE_CATEGORY";function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const et=(Qe(Ue={},Ke,(function(e,t){e.categories=t})),Qe(Ue,Ze,(function(e,t){e.categories.push(t.category)})),Qe(Ue,Ge,(function(e,t){var n=e.categories.findIndex((function(e){return e.id===t.category.id}));Object.assign(e.categories[n],function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){Qe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t.category))})),Qe(Ue,Je,(function(e,t){var n=e.categories.findIndex((function(e){return e.id===t}));e.categories.splice(n,1)})),Ue);var tt=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/categories",{params:t}).then((function(t){n(Ke,t.data.categories.data),e(t)})).catch((function(e){r(e)}))}))},nt=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/categories/".concat(t)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},rt=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/categories",t).then((function(t){n(Ze,t.data),e(t)})).catch((function(e){r(e)}))}))},at=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/categories/".concat(t.id),t).then((function(t){n(Ge,t.data),e(t)})).catch((function(e){r(e)}))}))},it=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/categories/".concat(t)).then((function(r){r.data.success&&n(Je,t),e(r)})).catch((function(e){r(e)}))}))},ot=function(e){return e.categories},st=function(e){return function(t){return e.categories.find((function(e){return e.id===t}))}};const lt={namespaced:!0,state:{categories:[]},getters:c,actions:l,mutations:et};var ct,ut="BOOTSTRAP_CUSTOMERS",dt="ADD_CUSTOMER",pt="UPDATE_CUSTOMER",mt="DELETE_CUSTOMER",ft="DELETE_MULTIPLE_CUSTOMERS",ht="SET_SELECTED_CUSTOMERS",_t="SET_TOTAL_CUSTOMERS",vt="RESET_SELECTED_CUSTOMER",gt="SET_SELECT_ALL_STATE",yt="SET_SELECTED_VIEW_CUSTOMER";function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wt=(bt(ct={},ut,(function(e,t){e.customers=t})),bt(ct,_t,(function(e,t){e.totalCustomers=t})),bt(ct,dt,(function(e,t){e.customers.push(t.customer)})),bt(ct,pt,(function(e,t){var n=e.customers.findIndex((function(e){return e.id===t.customer.id}));e.customers[n]=t.customer})),bt(ct,mt,(function(e,t){var n=e.customers.findIndex((function(e){return e.id===t}));e.customers.splice(n,1)})),bt(ct,ft,(function(e,t){t.forEach((function(t){var n=e.customers.findIndex((function(e){return e.id===t.id}));e.customers.splice(n,1)})),e.selectedCustomers=[]})),bt(ct,ht,(function(e,t){e.selectedCustomers=t})),bt(ct,vt,(function(e,t){e.selectedCustomer=null})),bt(ct,gt,(function(e,t){e.selectAllField=t})),bt(ct,yt,(function(e,t){e.selectedViewCustomer=t})),ct);var xt="SET_CUSTOMER_LISTS",kt="SET_USER_LISTS",Dt=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/customers",{params:t}).then((function(t){n(ut,t.data.customers.data),n(_t,t.data.customerTotalCount),n("search/SET_CUSTOMER_LISTS",t.data.customers.data,{root:!0}),e(t)})).catch((function(e){r(e)}))}))},Mt=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/customers/".concat(t.id)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},St=function(e,t){var n=e.commit;e.dispatch;return new Promise((function(e,r){window.axios.get("/api/v1/customers/".concat(t.id,"/stats"),{params:t}).then((function(t){n(yt,t.data),e(t)})).catch((function(e){r(e)}))}))},Ct=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/customers",t).then((function(t){n(dt,t.data),e(t)})).catch((function(e){r(e)}))}))},Lt=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/customers/".concat(t.id),t).then((function(t){t.data.success&&n(pt,t.data),e(t)})).catch((function(e){r(e)}))}))},Tt=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/customers/delete",t).then((function(r){n(mt,t),e(r)})).catch((function(e){r(e)}))}))},Ot=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/customers/delete",{ids:r.selectedCustomers}).then((function(t){n(ft,r.selectedCustomers),e(t)})).catch((function(e){t(e)}))}))},Et=function(e,t){var n=e.commit;e.dispatch,e.state;n(gt,t)},At=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedCustomers.length===n.customers.length)t(ht,[]),t(gt,!1);else{var r=n.customers.map((function(e){return e.id}));t(ht,r),t(gt,!0)}},jt=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n(ht,t),r.selectedCustomers.length===r.customers.length?n(gt,!0):n(gt,!1)},$t=function(e,t){var n=e.commit;e.dispatch,e.state;n(vt)},Pt=function(e){return e.customers},Yt=function(e){return e.selectAllField},Nt=function(e){return e.selectedCustomers},zt=function(e){return e.totalCustomers},It=function(e){return function(t){var n=parseInt(t);return e.customers.find((function(e){return e.id===n}))}},Ft=function(e){return e.selectedViewCustomer};const Ht={namespaced:!0,state:{customers:[],totalCustomers:0,selectAllField:!1,selectedCustomers:[],selectedViewCustomer:{}},getters:d,actions:u,mutations:wt};var Rt,Bt=n(1402);function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vt=(qt(Rt={},ge,(function(e,t){Bt.Z.set("selectedCompany",t.id),e.selectedCompany=t})),qt(Rt,ye,(function(e,t){e.momentDateFormat=t})),qt(Rt,be,(function(e,t){e.carbonDateFormat=t})),qt(Rt,ke,(function(e){e.item_discount=!0})),qt(Rt,we,(function(e,t){e.defaultFiscalYear=t})),qt(Rt,xe,(function(e,t){e.defaultTimeZone=t})),qt(Rt,De,(function(e,t){e.defaultCurrency=t.default_currency})),Rt);var Wt=function(e,t){var n=e.commit;e.dispatch,e.state;n(ge,t)},Ut=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.put("/api/v1/company",t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Kt=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.post("/api/v1/company/upload-logo",t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Zt=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/company/settings",{params:{settings:t}}).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Gt=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/company/settings",t).then((function(r){n(be,t.settings.carbon_date_format),n(ye,t.settings.moment_date_format),e(r)})).catch((function(e){r(e)}))}))},Jt=function(e){var t=e.commit;e.dispatch,e.state;t(ke)},Xt=function(e){e.commit,e.dispatch,e.state;return new Promise((function(e,t){window.axios.get("/api/v1/mail/drivers").then((function(t){e(t)})).catch((function(e){t(e)}))}))},Qt=function(e){e.commit,e.dispatch,e.state;return new Promise((function(e,t){window.axios.get("/api/v1/mail/config").then((function(t){e(t)})).catch((function(e){t(e)}))}))},en=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.post("/api/v1/mail/config",t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},tn=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.post("/api/v1/mail/test",t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},nn=function(e,t){var n=e.commit;e.dispatch,e.state;n(De,{default_currency:t})},rn=function(e){return e.selectedCompany},an=function(e){return e.momentDateFormat},on=function(e){return e.carbonDateFormat},sn=function(e){return e.item_discount},ln=function(e){return e.defaultFiscalYear},cn=function(e){return e.defaultTimeZone},un=function(e){return e.defaultCurrency},dn=function(e){return e.defaultCurrency?{decimal:e.defaultCurrency.decimal_separator,thousands:e.defaultCurrency.thousand_separator,prefix:e.defaultCurrency.symbol+" ",precision:e.defaultCurrency.precision,masked:!1}:{decimal:".",thousands:",",prefix:"$ ",precision:2,masked:!1}};const pn={namespaced:!0,state:{companies:[],selectedCompany:null,company:null,momentDateFormat:null,carbonDateFormat:null,item_discount:!1,defaultFiscalYear:null,defaultTimeZone:null,defaultCurrency:null},getters:m,actions:p,mutations:Vt};var mn,fn="SET_INITIAL_DATA",hn="SET_DASHBOARD_DATA_LOADED_STATE",_n="DELETE_INVOICE",vn="UPDATE_INVOICE_STATUS",gn="DELETE_ESTIMATE",yn="UPDATE_ESTIMATE_STATUS";function bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wn=(bn(mn={},fn,(function(e,t){e.contacts=t.customersCount,e.invoices=t.invoicesCount,e.estimates=t.estimatesCount,e.expenses=t.expenses,e.recentInvoices=t.invoices,e.newContacts=t.contacts,e.totalDueAmount=t.totalDueAmount,e.dueInvoices=t.dueInvoices,e.recentEstimates=t.estimates,e.weeklyInvoices.days=t.weekDays,e.weeklyInvoices.counter=t.counters,e.chartData&&t.chartData&&(e.chartData.months=t.chartData.months,e.chartData.invoiceTotals=t.chartData.invoiceTotals,e.chartData.expenseTotals=t.chartData.expenseTotals,e.chartData.netProfits=t.chartData.netProfits,e.chartData.receiptTotals=t.chartData.receiptTotals),e.salesTotal=t.salesTotal,e.totalReceipts=t.totalReceipts,e.totalExpenses=t.totalExpenses,e.netProfit=t.netProfit})),bn(mn,hn,(function(e,t){e.isDashboardDataLoaded=t})),bn(mn,vn,(function(e,t){var n=e.dueInvoices.findIndex((function(e){return e.id===t.id}));e.dueInvoices[n]&&(e.dueInvoices[n].status=t.status)})),bn(mn,_n,(function(e,t){var n=e.dueInvoices.findIndex((function(e){return e.id===t.ids[0]}));e.dueInvoices.splice(n,1)})),bn(mn,gn,(function(e,t){var n=e.recentEstimates.findIndex((function(e){return e.id===t.ids[0]}));e.recentEstimates.splice(n,1)})),bn(mn,yn,(function(e,t){var n=e.recentEstimates.findIndex((function(e){return e.id===t.id}));e.recentEstimates[n]&&(e.recentEstimates[n].status=t.status)})),mn);var xn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/dashboard",{params:t}).then((function(t){n(fn,t.data),n(hn,!0),e(t)})).catch((function(e){r(e)}))}))},kn=function(e){return e.contacts},Dn=function(e){return e.invoices},Mn=function(e){return e.estimates},Sn=function(e){return e.expenses},Cn=function(e){return e.recentInvoices},Ln=function(e){return e.newContacts},Tn=function(e){return e.totalDueAmount},On=function(e){return e.dueInvoices},En=function(e){return e.recentEstimates},An=function(e){return e.isDashboardDataLoaded},jn=function(e){return e.weeklyInvoices.counter},$n=function(e){return e.weeklyInvoices.days},Pn=function(e){return e.chartData.months},Yn=function(e){return e.chartData.invoiceTotals},Nn=function(e){return e.chartData.expenseTotals},zn=function(e){return e.chartData.netProfits},In=function(e){return e.chartData.receiptTotals},Fn=function(e){return e.salesTotal},Hn=function(e){return e.totalReceipts},Rn=function(e){return e.totalExpenses},Bn=function(e){return e.netProfit};const qn={namespaced:!0,state:{contacts:0,invoices:0,estimates:0,expenses:0,totalDueAmount:[],isDashboardDataLoaded:!1,weeklyInvoices:{days:[],counter:[]},chartData:{months:[],invoiceTotals:[],expenseTotals:[],netProfits:[],receiptTotals:[]},salesTotal:null,totalReceipts:null,totalExpenses:null,netProfit:null,dueInvoices:[],recentEstimates:[],newContacts:[]},getters:h,actions:f,mutations:wn};var Vn,Wn="SET_ESTIMATES",Un="ADD_ESTIMATE",Kn="UPDATE_ESTIMATE",Zn="DELETE_ESTIMATE",Gn="DELETE_MULTIPLE_ESTIMATES",Jn="SET_SELECTED_ESTIMATES",Xn="SET_TOTAL_ESTIMATES",Qn="RESET_CUSTOMER",er="RESET_ITEM",tr="SET_TEMPLATE_ID",nr="SELECT_CUSTOMER",rr="RESET_SELECTED_CUSTOMER",ar="SET_SELECT_ALL_STATE",ir="RESET_SELECTED_ESTIMATES",or="UPDATE_ESTIMATE_STATUS",sr="VIEW_ESTIMATE",lr="SET_SELECTED_NOTE",cr="RESET_SELECTED_NOTE";function ur(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dr(e){return function(e){if(Array.isArray(e))return pr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return pr(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 pr(e,t)}(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 pr(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}const mr=(ur(Vn={},Wn,(function(e,t){e.estimates=t})),ur(Vn,Xn,(function(e,t){e.totalEstimates=t})),ur(Vn,Un,(function(e,t){e.estimates=[].concat(dr(e.estimates),[t])})),ur(Vn,Zn,(function(e,t){var n=e.estimates.findIndex((function(e){return e.id===t}));e.estimates.splice(n,1)})),ur(Vn,Jn,(function(e,t){e.selectedEstimates=t})),ur(Vn,Gn,(function(e,t){t.forEach((function(t){var n=e.estimates.findIndex((function(e){return e.id===t.id}));e.estimates.splice(n,1)})),e.selectedEstimates=[]})),ur(Vn,Kn,(function(e,t){var n=e.estimates.findIndex((function(e){return e.id===t.estimate.id}));e.estimates[n]=t.estimate})),ur(Vn,or,(function(e,t){var n=e.estimates.findIndex((function(e){return e.id===t.id}));e.estimates[n]&&(e.estimates[n].status=t.status)})),ur(Vn,ir,(function(e,t){e.selectedEstimates=[],e.selectAllField=!1})),ur(Vn,tr,(function(e,t){e.estimateTemplateId=t})),ur(Vn,nr,(function(e,t){e.selectedCustomer=t})),ur(Vn,rr,(function(e,t){e.selectedCustomer=null})),ur(Vn,ar,(function(e,t){e.selectAllField=t})),ur(Vn,sr,(function(e,t){e.selectedEstimate=t})),ur(Vn,lr,(function(e,t){e.selectedNote=t})),ur(Vn,cr,(function(e,t){e.selectedNote=null})),Vn);var fr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/estimates",{params:t}).then((function(t){n(Wn,t.data.estimates.data),n(Xn,t.data.estimateTotalCount),e(t)})).catch((function(e){r(e)}))}))},hr=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/estimates/records?record=".concat(t)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},_r=function(e){e.commit,e.dispatch,e.state;return new Promise((function(e,t){window.axios.get("/api/v1/estimates").then((function(t){e(t)})).catch((function(e){t(e)}))}))},vr=function(e){e.commit,e.dispatch,e.state;return new Promise((function(e,t){window.axios.get("/api/v1/next-number?key=estimate").then((function(t){e(t)})).catch((function(e){t(e)}))}))},gr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/estimates/".concat(t)).then((function(t){n(tr,t.data.estimate.estimate_template_id),e(t)})).catch((function(e){r(e)}))}))},yr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/estimates/".concat(t)).then((function(t){n(sr,t.data.estimate),e(t)})).catch((function(e){r(e)}))}))},br=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/estimates/".concat(t.id,"/send"),t).then((function(r){r.data.success&&(n(or,{id:t.id,status:"SENT"}),n(sr),n("dashboard/UPDATE_ESTIMATE_STATUS",{id:t.id,status:"SENT"},{root:!0})),e(r)})).catch((function(e){r(e)}))}))},wr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/estimates",t).then((function(t){n(Un,t.data.estimate),e(t)})).catch((function(e){r(e)}))}))},xr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/estimates/delete",t).then((function(r){n(Zn,t),n("dashboard/DELETE_ESTIMATE",t,{root:!0}),e(r)})).catch((function(e){r(e)}))}))},kr=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/estimates/delete",{ids:r.selectedEstimates}).then((function(t){n(Gn,r.selectedEstimates),e(t)})).catch((function(e){t(e)}))}))},Dr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/estimates/".concat(t.id),t).then((function(t){n(Kn,t.data),e(t)})).catch((function(e){r(e)}))}))},Mr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/estimates/".concat(t.id,"/status"),t).then((function(r){n("dashboard/UPDATE_ESTIMATE_STATUS",{id:t.id,status:"ACCEPTED"},{root:!0}),e(r)})).catch((function(e){r(e)}))}))},Sr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/estimates/".concat(t.id,"/status"),t).then((function(r){n("dashboard/UPDATE_ESTIMATE_STATUS",{id:t.id,status:"REJECTED"},{root:!0}),e(r)})).catch((function(e){r(e)}))}))},Cr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/estimates/".concat(t.id,"/status"),t).then((function(r){n(or,{id:t.id,status:"SENT"}),n("dashboard/UPDATE_ESTIMATE_STATUS",{id:t.id,status:"SENT"},{root:!0}),e(r)})).catch((function(e){r(e)}))}))},Lr=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.post("/api/v1/estimates/".concat(t,"/convert-to-invoice")).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Tr=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/estimates?".concat(t)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Or=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n(Jn,t),r.selectedEstimates.length===r.estimates.length?n(ar,!0):n(ar,!1)},Er=function(e,t){var n=e.commit;e.dispatch,e.state;n(ar,t)},Ar=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedEstimates.length===n.estimates.length)t(Jn,[]),t(ar,!1);else{var r=n.estimates.map((function(e){return e.id}));t(Jn,r),t(ar,!0)}},jr=function(e){var t=e.commit;e.dispatch,e.state;t(ir)},$r=function(e,t){var n=e.commit;e.dispatch,e.state;n(Qn),n("SET_CUSTOMER",t)},Pr=function(e,t){var n=e.commit;e.dispatch,e.state;n(er),n("SET_ITEM",t)},Yr=function(e){var t=e.commit;e.dispatch,e.state;t(Qn)},Nr=function(e){var t=e.commit;e.dispatch,e.state;t(er)},zr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){n(tr,t),e({})}))},Ir=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/customers/".concat(t)).then((function(t){n(rr),n(nr,t.data.customer),e(t)})).catch((function(e){r(e)}))}))},Fr=function(e,t){var n=e.commit;e.dispatch,e.state;n(rr)},Hr=function(e,t){var n=e.commit;e.dispatch,e.state;n(cr),n(lr,t.notes)},Rr=function(e,t){var n=e.commit;e.dispatch,e.state;n(cr)},Br=function(e){return e.estimates},qr=function(e){return e.selectAllField},Vr=function(e){return e.estimateTemplateId},Wr=function(e){return e.selectedEstimates},Ur=function(e){return e.totalEstimates},Kr=function(e){return e.selectedCustomer},Zr=function(e){return e.selectedNote},Gr=function(e){return function(t){var n=parseInt(t);return e.estimates.find((function(e){return e.id===n}))}};const Jr={namespaced:!0,state:{estimates:[],estimateTemplateId:1,selectAllField:!1,selectedEstimates:[],totalEstimates:0,selectedCustomer:null,selectedEstimate:null,selectedNote:null},getters:v,actions:_,mutations:mr};var Xr,Qr="SET_EXPENSES",ea="ADD_EXPENSE",ta="UPDATE_EXPENSE",na="DELETE_EXPENSE",ra="DELETE_MULTIPLE_EXPENSES",aa="SET_SELECTED_EXPENSES",ia="SET_TOTAL_EXPENSES",oa="SET_SELECT_ALL_STATE";function sa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const la=(sa(Xr={},Qr,(function(e,t){e.expenses=t})),sa(Xr,ea,(function(e,t){e.expenses.push(t)})),sa(Xr,ta,(function(e,t){var n=e.expenses.findIndex((function(e){return e.id===t.expense.id}));e.expenses[n]=t.expense})),sa(Xr,na,(function(e,t){var n=e.expenses.findIndex((function(e){return e.id===t}));e.expenses.splice(n,1)})),sa(Xr,"SET_SELECT_ALL",(function(e,t){t?e.expenses.filter((function(t){e.selectedRow.push(t.id)})):e.selectedRow=[]})),sa(Xr,ia,(function(e,t){e.totalExpenses=t})),sa(Xr,na,(function(e,t){var n=e.expenses.findIndex((function(e){return e.id===t}));e.expenses.splice(n,1)})),sa(Xr,ra,(function(e,t){t.forEach((function(t){var n=e.expenses.findIndex((function(e){return e.id===t.id}));e.expenses.splice(n,1)})),e.selectedExpenses=[]})),sa(Xr,aa,(function(e,t){e.selectedExpenses=t})),sa(Xr,oa,(function(e,t){e.selectAllField=t})),Xr);var ca=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/expenses",{params:t}).then((function(t){n(Qr,t.data.expenses.data),n(ia,t.data.expenseTotalCount),e(t)})).catch((function(e){r(e)}))}))},ua=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/expenses/".concat(t)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},da=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/expenses/".concat(t,"/show/receipt")).then((function(t){e(t)})).catch((function(e){n(e)}))}))},pa=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.post("/api/v1/expenses/".concat(t.id,"/upload/receipts"),t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},ma=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/expenses",t).then((function(t){n(ea,t.data),e(t)})).catch((function(e){r(e)}))}))},fa=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/expenses/".concat(t.id),t.editData).then((function(t){n(ta,t.data),e(t)})).catch((function(e){r(e)}))}))},ha=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/expenses/delete",t).then((function(r){n(na,t),e(r)})).catch((function(e){r(e)}))}))},_a=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/expenses/delete",{ids:r.selectedExpenses}).then((function(t){n(ra,r.selectedExpenses),e(t)})).catch((function(e){t(e)}))}))},va=function(e,t){var n=e.commit;e.dispatch,e.state;n(oa,t)},ga=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedExpenses.length===n.expenses.length)t(aa,[]),t(oa,!1);else{var r=n.expenses.map((function(e){return e.id}));t(aa,r),t(oa,!0)}},ya=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n(aa,t),r.selectedExpenses.length===r.expenses.length?n(oa,!0):n(oa,!1)},ba=function(e){return e.expenses},wa=function(e){return e.selectAllField},xa=function(e){return e.selectedExpenses},ka=function(e){return e.totalExpenses};const Da={namespaced:!0,state:{expenses:[],totalExpenses:0,selectAllField:!1,selectedExpenses:[]},getters:y,actions:g,mutations:la};var Ma,Sa="SET_INVOICES",Ca="ADD_INVOICE",La="UPDATE_INVOICE",Ta="DELETE_INVOICE",Oa="DELETE_MULTIPLE_INVOICES",Ea="SET_SELECTED_INVOICES",Aa="SET_TOTAL_INVOICES",ja="RESET_CUSTOMER",$a="RESET_ITEM",Pa="SET_ITEM",Ya="SET_TEMPLATE_ID",Na="SELECT_CUSTOMER",za="RESET_SELECTED_CUSTOMER",Ia="SET_SELECT_ALL_STATE",Fa="RESET_SELECTED_INVOICES",Ha="UPDATE_INVOICE_STATUS",Ra="RESET_SELECTED_NOTE",Ba="SET_SELECTED_NOTE";function qa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Va=(qa(Ma={},Sa,(function(e,t){e.invoices=t})),qa(Ma,Aa,(function(e,t){e.totalInvoices=t})),qa(Ma,Ca,(function(e,t){e.invoices.push(t)})),qa(Ma,Ta,(function(e,t){var n=e.invoices.findIndex((function(e){return e.id===t.id}));e.invoices.splice(n,1)})),qa(Ma,Ea,(function(e,t){e.selectedInvoices=t})),qa(Ma,La,(function(e,t){var n=e.invoices.findIndex((function(e){return e.id===t.invoice.id}));e.invoices[n]=t.invoice})),qa(Ma,Ha,(function(e,t){var n=e.invoices.findIndex((function(e){return e.id===t.id}));e.invoices[n]&&(e.invoices[n].status=t.status)})),qa(Ma,Fa,(function(e,t){e.selectedInvoices=[],e.selectAllField=!1})),qa(Ma,Oa,(function(e,t){t.forEach((function(t){var n=e.invoices.findIndex((function(e){return e.id===t.id}));e.invoices.splice(n,1)})),e.selectedInvoices=[]})),qa(Ma,Ya,(function(e,t){e.invoiceTemplateId=t})),qa(Ma,Na,(function(e,t){e.selectedCustomer=t})),qa(Ma,za,(function(e,t){e.selectedCustomer=null})),qa(Ma,Ia,(function(e,t){e.selectAllField=t})),qa(Ma,Ra,(function(e,t){e.selectedNote=null})),qa(Ma,Ba,(function(e,t){e.selectedNote=t})),qa(Ma,$a,(function(e,t){e.selectedItem=null})),qa(Ma,Pa,(function(e,t){e.selectedItem=t})),Ma);var Wa=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/invoices",{params:t}).then((function(t){n(Sa,t.data.invoices.data),n(Aa,t.data.invoiceTotalCount),e(t)})).catch((function(e){r(e)}))}))},Ua=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/invoices/".concat(t)).then((function(t){n(Ya,t.data.invoice.invoice_template_id),e(t)})).catch((function(e){r(e)}))}))},Ka=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/invoices/".concat(t.id,"/send"),t).then((function(r){r.data.success&&(n(Ha,{id:t.id,status:"SENT"}),n("dashboard/UPDATE_INVOICE_STATUS",{id:t.id,status:"SENT"},{root:!0})),e(r)})).catch((function(e){r(e)}))}))},Za=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/invoices",t).then((function(t){n(Ca,t.data),e(t)})).catch((function(e){r(e)}))}))},Ga=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/invoices/delete",t).then((function(r){r.data.error||(n(Ta,t),n("dashboard/DELETE_INVOICE",t,{root:!0})),e(r)})).catch((function(e){r(e)}))}))},Ja=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/invoices/delete",{ids:r.selectedInvoices}).then((function(t){t.data.error||n(Oa,r.selectedInvoices),e(t)})).catch((function(e){t(e)}))}))},Xa=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/invoices/".concat(t.id),t).then((function(t){t.data.invoice&&n(La,t.data),e(t)})).catch((function(e){r(e)}))}))},Qa=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/invoices/".concat(t.id,"/status"),t).then((function(r){n(Ha,{id:t.id,status:"SENT"}),n("dashboard/UPDATE_INVOICE_STATUS",{id:t.id,status:"SENT"},{root:!0}),e(r)})).catch((function(e){r(e)}))}))},ei=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.post("/api/v1/invoices/".concat(t.id,"/clone"),t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},ti=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/invoices?".concat(t)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},ni=function(e){e.commit,e.dispatch,e.state;return new Promise((function(e,t){window.axios.get("/api/v1/next-number?key=invoice").then((function(t){e(t)})).catch((function(e){t(e)}))}))},ri=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n(Ea,t),r.selectedInvoices.length===r.invoices.length?n(Ia,!0):n(Ia,!1)},ai=function(e,t){var n=e.commit;e.dispatch,e.state;n(Ia,t)},ii=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedInvoices.length===n.invoices.length)t(Ea,[]),t(Ia,!1);else{var r=n.invoices.map((function(e){return e.id}));t(Ea,r),t(Ia,!0)}},oi=function(e){var t=e.commit;e.dispatch,e.state;t(Fa)},si=function(e,t){var n=e.commit;e.dispatch,e.state;n(ja),n("SET_CUSTOMER",t)},li=function(e){var t=e.commit;e.dispatch,e.state;t(ja)},ci=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){n(Ya,t),e({})}))},ui=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/customers/".concat(t)).then((function(t){n(za),n(Na,t.data.customer),e(t)})).catch((function(e){r(e)}))}))},di=function(e,t){var n=e.commit;e.dispatch,e.state;n(za)},pi=function(e,t){var n=e.commit;e.dispatch,e.state;n($a),n(Pa,t)},mi=function(e){var t=e.commit;e.dispatch,e.state;t($a)},fi=function(e,t){var n=e.commit;e.dispatch,e.state;n(Ra),n(Ba,t.notes)},hi=function(e,t){var n=e.commit;e.dispatch,e.state;n(Ra)},_i=function(e){return e.invoices},vi=function(e){return e.selectAllField},gi=function(e){return e.invoiceTemplateId},yi=function(e){return e.selectedInvoices},bi=function(e){return e.totalInvoices},wi=function(e){return e.selectedCustomer},xi=function(e){return e.selectedNote},ki=function(e){return e.selectedItem},Di=function(e){return function(t){var n=parseInt(t);return e.invoices.find((function(e){return e.id===n}))}};const Mi={namespaced:!0,state:{invoices:[],invoiceTemplateId:1,selectedInvoices:[],selectAllField:!1,totalInvoices:0,selectedCustomer:null,selectedNote:null,selectedItem:null},getters:w,actions:b,mutations:Va};var Si,Ci="SET_PAYMENTS",Li="DELETE_PAYMENT",Ti="DELETE_MULTIPLE_PAYMENTS",Oi="SET_SELECTED_PAYMENTS",Ei="SET_TOTAL_PAYMENTS",Ai="SET_SELECT_ALL_STATE",ji="ADD_PAYMENT_MODE",$i="DELETE_PAYMENT_MODE",Pi="SET_PAYMENT_MODES",Yi="UPDATE_PAYMENT_MODE",Ni="RESET_SELECTED_NOTE",zi="SET_SELECTED_NOTE";function Ii(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fi(e){return function(e){if(Array.isArray(e))return Hi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Hi(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 Hi(e,t)}(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 Hi(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}const Ri=(Ii(Si={},Ci,(function(e,t){e.payments=t})),Ii(Si,Ei,(function(e,t){e.totalPayments=t})),Ii(Si,"ADD_PAYMENT",(function(e,t){e.payments.push(t)})),Ii(Si,Li,(function(e,t){var n=e.payments.findIndex((function(e){return e.id===t}));e.payments.splice(n,1)})),Ii(Si,Ti,(function(e,t){t.forEach((function(t){var n=e.payments.findIndex((function(e){return e.id===t.id}));e.payments.splice(n,1)})),e.selectedPayments=[]})),Ii(Si,Oi,(function(e,t){e.selectedPayments=t})),Ii(Si,Ai,(function(e,t){e.selectAllField=t})),Ii(Si,Pi,(function(e,t){e.paymentModes=t})),Ii(Si,ji,(function(e,t){e.paymentModes=[t.paymentMethod].concat(Fi(e.paymentModes))})),Ii(Si,$i,(function(e,t){var n=e.paymentModes.findIndex((function(e){return e.id===t}));e.paymentModes.splice(n,1)})),Ii(Si,Yi,(function(e,t){var n=e.paymentModes.findIndex((function(e){return e.id===t.paymentMethod.id}));e.paymentModes[n]=t.paymentMethod})),Ii(Si,Ni,(function(e,t){e.selectedNote=null})),Ii(Si,zi,(function(e,t){e.selectedNote=t})),Si);var Bi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/payments",{params:t}).then((function(t){n(Ci,t.data.payments.data),n(Ei,t.data.paymentTotalCount),e(t)})).catch((function(e){r(e)}))}))},qi=function(e,t){e.commit,e.dispatch;return new Promise((function(e,n){window.axios.get("/api/v1/payments/".concat(t)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Vi=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.post("/api/v1/payments",t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Wi=function(e,t){var n=e.commit;e.dispatch,e.state;n(Ai,t)},Ui=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n(Oi,t),r.selectedPayments.length===r.payments.length?n(Ai,!0):n(Ai,!1)},Ki=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.put("/api/v1/payments/".concat(t.id),t.editData).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Zi=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/payments/delete",{ids:r.selectedPayments}).then((function(t){n(Ti,r.selectedPayments),e(t)})).catch((function(e){t(e)}))}))},Gi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/payments/delete",t).then((function(r){n(Li,t),e(r)})).catch((function(e){r(e)}))}))},Ji=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedPayments.length===n.payments.length)t(Oi,[]),t(Ai,!1);else{var r=n.payments.map((function(e){return e.id}));t(Oi,r),t(Ai,!0)}},Xi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/payment-methods",t).then((function(t){n(ji,t.data),e(t)})).catch((function(e){r(e)}))}))},Qi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/payment-methods/".concat(t.id),t).then((function(t){n(Yi,t.data),e(t)})).catch((function(e){r(e)}))}))},eo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/payment-methods",{params:t}).then((function(t){n(Pi,t.data.paymentMethods.data),e(t)})).catch((function(e){r(e)}))}))},to=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/payment-methods/".concat(t.id),t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},no=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/payment-methods/".concat(t)).then((function(r){r.data.error||n($i,t),e(r)})).catch((function(e){r(e)}))}))},ro=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.post("/api/v1/payments/".concat(t.id,"/send"),t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},ao=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/payments?".concat(t)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},io=function(e,t){var n=e.commit;e.dispatch,e.state;n(Ni),n(zi,t.notes)},oo=function(e,t){var n=e.commit;e.dispatch,e.state;n(Ni)},so=function(e){return e.payments},lo=function(e){return e.selectedPayments},co=function(e){return e.selectAllField},uo=function(e){return e.totalPayments},po=function(e){return e.paymentModes},mo=function(e){return e.selectedNote};const fo={namespaced:!0,state:{payments:[],totalPayments:0,selectAllField:!1,selectedPayments:[],paymentModes:[],selectedNote:null},getters:k,actions:x,mutations:Ri};var ho,_o="BOOTSTRAP_ITEMS",vo="ADD_ITEM",go="UPDATE_ITEM",yo="DELETE_ITEM",bo="DELETE_MULTIPLE_ITEMS",wo="SET_SELECTED_ITEMS",xo="SET_TOTAL_ITEMS",ko="SET_SELECT_ALL_STATE",Do="ADD_ITEM_UNIT",Mo="SET_ITEM_UNITS",So="UPDATE_ITEM_UNIT",Co="DELETE_ITEM_UNIT";function Lo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const To=(Lo(ho={},_o,(function(e,t){e.items=t})),Lo(ho,xo,(function(e,t){e.totalItems=t})),Lo(ho,vo,(function(e,t){e.items.push(t.item)})),Lo(ho,go,(function(e,t){var n=e.items.findIndex((function(e){return e.id===t.item.id}));e.items[n]=t.item})),Lo(ho,yo,(function(e,t){var n=e.items.findIndex((function(e){return e.id===t}));e.items.splice(n,1)})),Lo(ho,bo,(function(e,t){t.forEach((function(t){var n=e.items.findIndex((function(e){return e.id===t.id}));e.items.splice(n,1)})),e.selectedItems=[]})),Lo(ho,wo,(function(e,t){e.selectedItems=t})),Lo(ho,ko,(function(e,t){e.selectAllField=t})),Lo(ho,Do,(function(e,t){e.itemUnits.push(t.unit)})),Lo(ho,Mo,(function(e,t){e.itemUnits=t})),Lo(ho,Co,(function(e,t){var n=e.itemUnits.findIndex((function(e){return e.id===t}));e.itemUnits.splice(n,1)})),Lo(ho,So,(function(e,t){var n=e.itemUnits.findIndex((function(e){return e.id==e.id}));e.itemUnits[n]=t})),ho);var Oo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/items",{params:t}).then((function(t){n(_o,t.data.items.data),n(xo,t.data.itemTotalCount),e(t)})).catch((function(e){r(e)}))}))},Eo=function(e,t){e.commit,e.dispatch;return new Promise((function(e,n){window.axios.get("/api/v1/items/".concat(t)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Ao=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/items",t).then((function(t){n(vo,t.data),e(t)})).catch((function(e){r(e)}))}))},jo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/items/".concat(t.id),t).then((function(t){n(go,t.data),e(t)})).catch((function(e){r(e)}))}))},$o=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/items/delete",t).then((function(r){n(yo,t),e(r)})).catch((function(e){r(e)}))}))},Po=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/items/delete",{ids:r.selectedItems}).then((function(t){n(bo,r.selectedItems),e(t)})).catch((function(e){t(e)}))}))},Yo=function(e,t){var n=e.commit;e.dispatch,e.state;n(ko,t)},No=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedItems.length===n.items.length)t(wo,[]),t(ko,!1);else{var r=n.items.map((function(e){return e.id}));t(wo,r),t(ko,!0)}},zo=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n(wo,t),r.selectedItems.length===r.items.length?n(ko,!0):n(ko,!1)},Io=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/units",t).then((function(t){n(Do,t.data),e(t)})).catch((function(e){r(e)}))}))},Fo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/units/".concat(t.id),t).then((function(t){n(So,t.data.unit),e(t)})).catch((function(e){r(e)}))}))},Ho=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/units",{params:t}).then((function(t){n(Mo,t.data.units.data),e(t)})).catch((function(e){r(e)}))}))},Ro=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/units/".concat(t)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Bo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/units/".concat(t)).then((function(r){r.data.error||n(Co,t),e(r)})).catch((function(e){r(e)}))}))},qo=function(e){return e.items},Vo=function(e){return e.selectAllField},Wo=function(e){return e.selectedItems},Uo=function(e){return e.totalItems},Ko=function(e){return e.itemUnits};const Zo={namespaced:!0,state:{items:[],totalItems:0,selectAllField:!1,selectedItems:[],itemUnits:[]},getters:M,actions:D,mutations:To};var Go,Jo="SHOW_MODAL",Xo="SET_TITLE",Qo="SET_COMPONENT_NAME",es="HIDE_MODAL",ts="SET_ID",ns="SET_SIZE",rs="SET_DATA",as="RESET_DATA",is="SET_REFRESH_DATA",os="SET_VARIANT";function ss(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ls=(ss(Go={},Jo,(function(e,t){e.active=t})),ss(Go,es,(function(e,t){e.active=t})),ss(Go,Xo,(function(e,t){e.title=t})),ss(Go,Qo,(function(e,t){e.componentName=t})),ss(Go,ts,(function(e,t){e.id=t})),ss(Go,rs,(function(e,t){e.data=t})),ss(Go,ns,(function(e,t){e.size=t})),ss(Go,is,(function(e,t){e.refreshData=t})),ss(Go,as,(function(e){e.content="",e.title="",e.componentName="",e.id="",e.data=null,e.refreshData=null})),ss(Go,os,(function(e,t){e.variant=t})),Go);var cs=function(e,t){var n=e.commit;e.dispatch,e.state;n(Qo,t.componentName),n(Jo,!0),t.id&&n(ts,t.id),n(Xo,t.title),t.data&&n(rs,t.data),t.refreshData&&n(is,t.refreshData),t.variant&&n(os,t.variant),t.size&&n(ns,t.size)},us=function(e){var t=e.commit;e.dispatch,e.state;t(as),t(es,!1)},ds=function(e){var t=e.commit;e.dispatch,e.state;t(as)},ps=function(e){return e.active},ms=function(e){return e.title},fs=function(e){return e.componentName},hs=function(e){return e.id},_s=function(e){return e.data},vs=function(e){return e.size},gs=function(e){return e.refreshData},ys=function(e){return e.variant};const bs={namespaced:!0,state:{active:!1,content:"",title:"",componentName:"",id:"",size:"md",data:null,refreshData:null,variant:""},getters:C,actions:S,mutations:ls};var ws,xs="SET_CUSTOM_FIELDS",ks="ADD_CUSTOM_FIELDS",Ds="UPDATE_CUSTOM_FIELDS",Ms="DELETE_CUSTOM_FIELDS",Ss="SET_REQUEST_STATE";function Cs(e){return function(e){if(Array.isArray(e))return Ls(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ls(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 Ls(e,t)}(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 Ls(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 Ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(n),!0).forEach((function(t){Es(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ts(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const As=(Es(ws={},xs,(function(e,t){e.customFields=t})),Es(ws,ks,(function(e,t){t=Os(Os({},t),{},{options:t.options.map((function(e){return{name:e||""}}))}),e.customFields=[].concat(Cs(e.customFields),[t])})),Es(ws,Ds,(function(e,t){t=Os(Os({},t),{},{options:t.options.map((function(e){return{name:e||""}}))});var n=e.customFields.findIndex((function(e){return e.id===t.id}));e.customFields[n]&&(e.customFields[n]=t)})),Es(ws,Ms,(function(e,t){var n=e.customFields.findIndex((function(e){return e.id===t}));e.customFields.splice(n,1)})),Es(ws,Ss,(function(e,t){e.isRequestOngoing=t})),ws);var js=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/custom-fields",{params:t}).then((function(t){n(xs,t.data.customFields.data),e(t)})).catch((function(e){r(e)}))}))},$s=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,a){if(r.isRequestOngoing)return e({requestOnGoing:!0}),!0;n(Ss,!0),window.axios.get("/api/v1/custom-fields",{params:t}).then((function(t){n(xs,t.data.customFields.data),n(Ss,!1),e(t)})).catch((function(e){n(Ss,!1),a(e)}))}))},Ps=function(e,t){e.commit,e.dispatch;return new Promise((function(e,n){window.axios.get("/api/v1/custom-fields/".concat(t)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Ys=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/custom-fields",t).then((function(t){n(ks,t.data.customField),e(t)})).catch((function(e){r(e)}))}))},Ns=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/custom-fields/".concat(t.id),t).then((function(r){n(Ds,t),e(r)})).catch((function(e){r(e)}))}))},zs=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/custom-fields/".concat(t)).then((function(r){n(Ms,t),e(r)})).catch((function(e){r(e)}))}))},Is=function(e){return e.customFields};const Fs={namespaced:!0,state:{customFields:[],isRequestOngoing:!1},getters:T,actions:L,mutations:As};var Hs,Rs="SET_TAX_TYPES",Bs="ADD_TAX_TYPE",qs="UPDATE_TAX_TYPE",Vs="DELETE_TAX_TYPE";function Ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Us(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ks=(Us(Hs={},Rs,(function(e,t){e.taxTypes=t})),Us(Hs,Bs,(function(e,t){e.taxTypes.push(t.taxType)})),Us(Hs,qs,(function(e,t){var n=e.taxTypes.findIndex((function(e){return e.id===t.taxType.id}));Object.assign(e.taxTypes[n],function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ws(Object(n),!0).forEach((function(t){Us(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t.taxType))})),Us(Hs,Vs,(function(e,t){var n=e.taxTypes.findIndex((function(e){return e.id===t}));e.taxTypes.splice(n,1)})),Hs);var Zs=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/tax-types",{params:t}).then((function(t){n(Rs,t.data.taxTypes.data),e(t)})).catch((function(e){r(e)}))}))},Gs=function(e){var t=e.commit;e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/tax-types?limit=500").then((function(n){t(Rs,n.data.taxTypes),e(n)})).catch((function(e){n(e)}))}))},Js=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/tax-types",t).then((function(t){n(Bs,t.data),e(t)})).catch((function(e){r(e)}))}))},Xs=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.get("/api/v1/tax-types/".concat(t)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Qs=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/tax-types/".concat(t.id),t).then((function(t){n(qs,t.data),e(t)})).catch((function(e){r(e)}))}))},el=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/tax-types/".concat(t)).then((function(r){r.data.success&&n(Vs,t),e(r)})).catch((function(e){r(e)}))}))},tl=function(e){return e.taxTypes},nl=function(e){return function(t){return e.taxTypes.find((function(e){return e.id===t}))}};const rl={namespaced:!0,state:{taxTypes:[]},getters:E,actions:O,mutations:Ks};var al,il="BOOTSTRAP_USERS",ol="ADD_USER",sl="UPDATE_USER",ll="DELETE_USER",cl="DELETE_MULTIPLE_USERS",ul="SET_SELECTED_USERS",dl="SET_TOTAL_USERS",pl="SET_SELECT_ALL_STATE";function ml(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fl=(ml(al={},il,(function(e,t){e.users=t})),ml(al,dl,(function(e,t){e.totalUsers=t})),ml(al,ol,(function(e,t){e.users.push(t.user)})),ml(al,sl,(function(e,t){var n=e.users.findIndex((function(e){return e.id===t.user.id}));e.users[n]=t.user})),ml(al,ll,(function(e,t){var n=e.users.findIndex((function(e){return e.id===t[0]}));e.users.splice(n,1)})),ml(al,cl,(function(e,t){t.forEach((function(t){var n=e.users.findIndex((function(e){return e.id===t.id}));e.users.splice(n,1)})),e.selectedUsers=[]})),ml(al,ul,(function(e,t){e.selectedUsers=t})),ml(al,pl,(function(e,t){e.selectAllField=t})),al);var hl=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/users",{params:t}).then((function(t){n(il,t.data.users.data),n(dl,t.data.users.total),n("search/SET_USER_LISTS",t.data.users.data,{root:!0}),e(t)})).catch((function(e){r(e)}))}))},_l=function(e,t){e.commit,e.dispatch;return new Promise((function(e,n){window.axios.get("/api/v1/users/".concat(t)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},vl=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/users",t).then((function(t){n(ol,t.data),e(t)})).catch((function(e){r(e)}))}))},gl=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/users/".concat(t.id),t).then((function(t){t.data.success&&n(sl,t.data),e(t)})).catch((function(e){r(e)}))}))},yl=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/users/delete",{users:t}).then((function(r){n(ll,t),e(r)})).catch((function(e){r(e)}))}))},bl=function(e,t){var n=e.commit,r=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/users/delete",{users:r.selectedUsers}).then((function(t){n(cl,r.selectedUsers),e(t)})).catch((function(e){t(e)}))}))},wl=function(e,t){var n=e.commit;e.dispatch,e.state;n(pl,t)},xl=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedUsers.length===n.users.length)t(ul,[]),t(pl,!1);else{var r=n.users.map((function(e){return e.id}));t(ul,r),t(pl,!0)}},kl=function(e,t){var n=e.commit,r=(e.dispatch,e.state);n(ul,t),r.selectedUsers.length===r.users.length?n(pl,!0):n(pl,!1)},Dl=function(e){return e.users},Ml=function(e){return e.selectAllField},Sl=function(e){return e.selectedUsers},Cl=function(e){return e.totalUsers};const Ll={namespaced:!0,state:{users:[],totalUsers:0,selectAllField:!1,selectedUsers:[]},getters:j,actions:A,mutations:fl};var Tl,Ol="SET_BACKUPS";function El(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Al=(El(Tl={},Ol,(function(e,t){e.backups=t.backups,e.backupDisks=t.disks})),El(Tl,"SET_BACKUP_DISKS",(function(e,t){e.backupDisksInfo=t.disks})),El(Tl,"ADD_BACKUPS",(function(e,t){e.backups.push(t.backup)})),El(Tl,"DELETE_BACKUPS",(function(e,t){var n=e.backups.findIndex((function(e){return e.id===t}));e.backups.splice(n,1)})),Tl);var jl=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/backups",{params:t}).then((function(t){n(Ol,t.data),e(t)})).catch((function(e){r(e)}))}))},$l=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.post("/api/v1/backups",t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Pl=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,n){window.axios.delete("/api/v1/backups/".concat(t.disk),{params:t}).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Yl=function(e){return e.backups},Nl=function(e){return e.backupDisks},zl=function(e){return e.backupDisksInfo};const Il={namespaced:!0,state:{backups:[],backupDisks:[],backupDisksInfo:[]},getters:P,actions:$,mutations:Al};var Fl,Hl="SET_DISKS",Rl="SET_DISK_DRIVER",Bl="DELETE_DISK";function ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vl=(ql(Fl={},Hl,(function(e,t){e.disks=t})),ql(Fl,Rl,(function(e,t){e.diskDrivers=t.drivers})),ql(Fl,"ADD_DISKS",(function(e,t){e.disks.push(t.disk)})),ql(Fl,Bl,(function(e,t){var n=e.disks.findIndex((function(e){return e.id===t}));e.disks.splice(n,1)})),Fl);var Wl=function(e,t){var n=e.commit;return new Promise((function(e,r){window.axios.get("/api/v1/disks",{params:t}).then((function(t){n(Hl,t.data.disks.data),e(t)})).catch((function(e){r(e)}))}))},Ul=function(e){var t=e.commit;return new Promise((function(e,n){window.axios.get("/api/v1/disk/drivers").then((function(n){t(Rl,n.data),e(n)})).catch((function(e){n(e)}))}))},Kl=function(e,t){e.commit;return new Promise((function(e,n){window.axios.get("/api/v1/disks/".concat(t.disk)).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Zl=function(e,t){e.commit;return new Promise((function(e,n){window.axios.post("/api/v1/disks",t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Gl=function(e,t){e.commit;return new Promise((function(e,n){window.axios.put("/api/v1/disks/".concat(t.id),t).then((function(t){e(t)})).catch((function(e){n(e)}))}))},Jl=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/disks/".concat(t)).then((function(r){r.data.success&&n(Bl,t),e(r)})).catch((function(e){r(e)}))}))},Xl=function(e){return e.disks},Ql=function(e){return e.diskDrivers};const ec={namespaced:!0,state:{disks:[],diskDrivers:[]},getters:N,actions:Y,mutations:Vl};var tc="SET_ESTIMATE_TEMPLATES";const nc=(ic=function(e,t){e.estimateTemplates=t},(ac=tc)in(rc={})?Object.defineProperty(rc,ac,{value:ic,enumerable:!0,configurable:!0,writable:!0}):rc[ac]=ic,rc);var rc,ac,ic,oc=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/estimates/templates",{params:t}).then((function(t){n(tc,t.data.templates),e(t)})).catch((function(e){r(e)}))}))},sc=function(e){return e.estimateTemplates};const lc={namespaced:!0,state:{estimateTemplates:[]},getters:I,actions:z,mutations:nc};var cc="SET_INVOICE_TEMPLATES";const uc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},cc,(function(e,t){e.invoiceTemplates=t}));var dc=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/invoices/templates",{params:t}).then((function(t){n(cc,t.data.invoiceTemplates),e(t)})).catch((function(e){r(e)}))}))},pc=function(e){return e.invoiceTemplates};const mc={namespaced:!0,state:{invoiceTemplates:[]},getters:H,actions:F,mutations:uc};var fc;function hc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _c=(hc(fc={},xt,(function(e,t){e.customerList=t})),hc(fc,kt,(function(e,t){e.userList=t})),fc);var vc=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/search",{params:t}).then((function(t){n(xt,t.data.customers.data),n(kt,t.data.users.data),e(t)})).catch((function(e){r(e)}))}))},gc=function(e){return e.customerList?e.customerList:[]},yc=function(e){return e.userList?e.userList:[]};const bc={namespaced:!0,state:{userList:[],customerList:[]},getters:B,actions:R,mutations:_c};var wc,xc="BOOTSTRAP_NOTES",kc="ADD_NOTE",Dc="UPDATE_NOTE",Mc="DELETE_NOTE";function Sc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cc=(Sc(wc={},xc,(function(e,t){e.notes=t})),Sc(wc,kc,(function(e,t){e.notes.push(t.note)})),Sc(wc,Dc,(function(e,t){var n=e.notes.findIndex((function(e){return e.id===t.note.id}));e.notes[n]=t.note})),Sc(wc,Mc,(function(e,t){var n=e.notes.findIndex((function(e){return e.id===t}));e.notes.splice(n,1)})),wc);var Lc=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.get("/api/v1/notes",{params:t}).then((function(t){n(xc,t.data.notes.data),e(t)})).catch((function(e){r(e)}))}))},Tc=function(e,t){e.commit,e.dispatch,e.state;return new Promise((function(e,t){window.axios.get("/api/v1/notes/".concat(id)).then((function(t){e(t)})).catch((function(e){t(e)}))}))},Oc=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.post("/api/v1/notes",t).then((function(t){n(kc,t.data),e(t)})).catch((function(e){r(e)}))}))},Ec=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.put("/api/v1/notes/".concat(t.id),t).then((function(t){n(Dc,t.data),e(t)})).catch((function(e){r(e)}))}))},Ac=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,r){window.axios.delete("/api/v1/notes/".concat(t)).then((function(r){n(Mc,t),e(r)})).catch((function(e){r(e)}))}))},jc=function(e){return e.notes};const $c={namespaced:!0,state:{notes:[]},getters:V,actions:q,mutations:Cc};U.default.use(K.ZP);const Pc=new K.ZP.Store({strict:!0,state:{languages:[],timeZones:[],dateFormats:[],fiscalYears:[],currencies:[],countries:[],isAppLoaded:!1,isSidebarOpen:!1},getters:r,mutations:pe,actions:Me,modules:{auth:Ye,user:We,category:lt,company:pn,customer:Ht,dashboard:qn,estimate:Jr,item:Zo,invoice:Mi,expense:Da,modal:bs,customFields:Fs,payment:fo,taxType:rl,users:Ll,backup:Il,disks:ec,estimateTemplate:lc,invoiceTemplate:mc,search:bc,notes:$c}})},7113:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={name:null,phone:null,address_street_1:null,address_street_2:null,city:null,state:null,country_id:null,zip:null,type:null}},7432:function(e,t,n){e.exports=function(e){"use strict";function t(e,t){return e(t={exports:{}},t.exports),t.exports}function n(e){return e&&e.default||e}e=e&&e.hasOwnProperty("default")?e.default:e;var r={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},a=t((function(e){var t={};for(var n in r)r.hasOwnProperty(n)&&(t[r[n]]=n);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in a)if(a.hasOwnProperty(i)){if(!("channels"in a[i]))throw new Error("missing channels property: "+i);if(!("labels"in a[i]))throw new Error("missing channel labels property: "+i);if(a[i].labels.length!==a[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=a[i].channels,s=a[i].labels;delete a[i].channels,delete a[i].labels,Object.defineProperty(a[i],"channels",{value:o}),Object.defineProperty(a[i],"labels",{value:s})}function l(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}a.rgb.hsl=function(e){var t,n,r=e[0]/255,a=e[1]/255,i=e[2]/255,o=Math.min(r,a,i),s=Math.max(r,a,i),l=s-o;return s===o?t=0:r===s?t=(a-i)/l:a===s?t=2+(i-r)/l:i===s&&(t=4+(r-a)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},a.rgb.hsv=function(e){var t,n,r,a,i,o=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(o,s,l),u=c-Math.min(o,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?a=i=0:(i=u/c,t=d(o),n=d(s),r=d(l),o===c?a=r-n:s===c?a=1/3+t-r:l===c&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*c]},a.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},a.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var n=t[e];if(n)return n;var a,i=1/0;for(var o in r)if(r.hasOwnProperty(o)){var s=l(e,r[o]);s<i&&(i=s,a=o)}return a},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(e){var t,n,r,a,i,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[i=255*l,i,i];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var c=0;c<3;c++)(r=o+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[c]=255*i;return a},a.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,a=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,a*=i<=1?i:2-i,[t,100*(0===r?2*a/(i+a):2*n/(r+n)),(r+n)/2*100]},a.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,a){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},a.hsv.hsl=function(e){var t,n,r,a=e[0],i=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-i)*o,n=i*s,[a,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(r/=2)]},a.hwb.rgb=function(e){var t,n,r,a,i,o,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),a=c+r*((n=1-u)-c),t){default:case 6:case 0:i=n,o=a,s=c;break;case 1:i=a,o=n,s=c;break;case 2:i=c,o=n,s=a;break;case 3:i=c,o=a,s=n;break;case 4:i=a,o=c,s=n;break;case 5:i=n,o=c,s=a}return[255*i,255*o,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},a.xyz.rgb=function(e){var t,n,r,a=e[0]/100,i=e[1]/100,o=e[2]/100;return n=-.9689*a+1.8758*i+.0415*o,r=.0557*a+-.204*i+1.057*o,t=(t=3.2406*a+-1.5372*i+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(e){var t,n,r,a=e[0];t=e[1]/500+(n=(a+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},a.lab.lch=function(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]},a.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255,i=Math.max(Math.max(n,r),a),o=Math.min(Math.min(n,r),a),s=i-o;return t=s<=0?0:i===n?(r-a)/s%6:i===r?2+(a-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},a.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,a=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},a.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},a.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var a=[0,0,0],i=t%1*6,o=i%1,s=1-o,l=0;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return l=(1-n)*r,[255*(n*a[0]+l),255*(n*a[1]+l),255*(n*a[2]+l)]},a.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},a.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},a.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},a.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function i(){for(var e={},t=Object.keys(a),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function o(e){var t=i(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),o=Object.keys(a[r]),s=o.length,l=0;l<s;l++){var c=o[l],u=t[c];-1===u.distance&&(u.distance=t[r].distance+1,u.parent=r,n.unshift(c))}return t}function s(e,t){return function(n){return t(e(n))}}function l(e,t){for(var n=[t[e].parent,e],r=a[t[e].parent][e],i=t[e].parent;t[i].parent;)n.unshift(t[i].parent),r=s(a[t[i].parent][i],r),i=t[i].parent;return r.conversion=n,r}a.rgb,a.hsl,a.hsv,a.hwb,a.cmyk,a.xyz,a.lab,a.lch,a.hex,a.keyword,a.ansi16,a.ansi256,a.hcg,a.apple,a.gray;var c=function(e){for(var t=o(e),n={},r=Object.keys(t),a=r.length,i=0;i<a;i++){var s=r[i];null!==t[s].parent&&(n[s]=l(s,t))}return n},u={};function d(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function p(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,a=0;a<r;a++)n[a]=Math.round(n[a]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}Object.keys(a).forEach((function(e){u[e]={},Object.defineProperty(u[e],"channels",{value:a[e].channels}),Object.defineProperty(u[e],"labels",{value:a[e].labels});var t=c(e);Object.keys(t).forEach((function(n){var r=t[n];u[e][n]=p(r),u[e][n].raw=d(r)}))}));var m=u,f={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},h={getRgba:_,getHsla:v,getRgb:y,getHsl:b,getHwb:g,getAlpha:w,hexString:x,rgbString:k,rgbaString:D,percentString:M,percentaString:S,hslString:C,hslaString:L,hwbString:T,keyword:O};function _(e){if(e){var t=/^#([a-fA-F0-9]{3,4})$/i,n=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,r=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,i=/(\w+)/,o=[0,0,0],s=1,l=e.match(t),c="";if(l){c=(l=l[1])[3];for(var u=0;u<o.length;u++)o[u]=parseInt(l[u]+l[u],16);c&&(s=Math.round(parseInt(c+c,16)/255*100)/100)}else if(l=e.match(n)){for(c=l[2],l=l[1],u=0;u<o.length;u++)o[u]=parseInt(l.slice(2*u,2*u+2),16);c&&(s=Math.round(parseInt(c,16)/255*100)/100)}else if(l=e.match(r)){for(u=0;u<o.length;u++)o[u]=parseInt(l[u+1]);s=parseFloat(l[4])}else if(l=e.match(a)){for(u=0;u<o.length;u++)o[u]=Math.round(2.55*parseFloat(l[u+1]));s=parseFloat(l[4])}else if(l=e.match(i)){if("transparent"==l[1])return[0,0,0,0];if(!(o=f[l[1]]))return}for(u=0;u<o.length;u++)o[u]=E(o[u],0,255);return s=s||0==s?E(s,0,1):1,o[3]=s,o}}function v(e){if(e){var t=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(t);if(n){var r=parseFloat(n[4]);return[E(parseInt(n[1]),0,360),E(parseFloat(n[2]),0,100),E(parseFloat(n[3]),0,100),E(isNaN(r)?1:r,0,1)]}}}function g(e){if(e){var t=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(t);if(n){var r=parseFloat(n[4]);return[E(parseInt(n[1]),0,360),E(parseFloat(n[2]),0,100),E(parseFloat(n[3]),0,100),E(isNaN(r)?1:r,0,1)]}}}function y(e){var t=_(e);return t&&t.slice(0,3)}function b(e){var t=v(e);return t&&t.slice(0,3)}function w(e){var t=_(e);return t||(t=v(e))||(t=g(e))?t[3]:void 0}function x(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+A(e[0])+A(e[1])+A(e[2])+(t>=0&&t<1?A(Math.round(255*t)):"")}function k(e,t){return t<1||e[3]&&e[3]<1?D(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function D(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function M(e,t){return t<1||e[3]&&e[3]<1?S(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"}function S(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function C(e,t){return t<1||e[3]&&e[3]<1?L(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function L(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function T(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"}function O(e){return j[e.slice(0,3)]}function E(e,t,n){return Math.min(Math.max(t,e),n)}function A(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var j={};for(var $ in f)j[f[$]]=$;var P=function(e){return e instanceof P?e:this instanceof P?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=h.getRgba(e))?this.setValues("rgb",t):(t=h.getHsla(e))?this.setValues("hsl",t):(t=h.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new P(e);var t};P.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return h.hexString(this.values.rgb)},rgbString:function(){return h.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return h.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return h.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return h.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return h.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return h.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return h.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,r=e,a=void 0===t?.5:t,i=2*a-1,o=n.alpha()-r.alpha(),s=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue()).alpha(n.alpha()*a+r.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new P,r=this.values,a=n.values;for(var i in r)r.hasOwnProperty(i)&&(e=r[i],"[object Array]"===(t={}.toString.call(e))?a[i]=e.slice(0):"[object Number]"===t?a[i]=e:console.error("unexpected color value:",e));return n}},P.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},P.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},P.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r<e.length;r++)n[e.charAt(r)]=t[e][r];return 1!==t.alpha&&(n.a=t.alpha),n},P.prototype.setValues=function(e,t){var n,r,a=this.values,i=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===e)s=t;else if(t.length)a[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)a[e][n]=t[e.charAt(n)];s=t.a}else if(void 0!==t[i[e][0]]){var l=i[e];for(n=0;n<e.length;n++)a[e][n]=t[l[n]];s=t.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===s?a.alpha:s)),"alpha"===e)return!1;for(n=0;n<e.length;n++)r=Math.max(0,Math.min(o[e][n],a[e][n])),a[e][n]=Math.round(r);for(var c in i)c!==e&&(a[c]=m[e][c](a[e]));return!0},P.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},P.prototype.setChannel=function(e,t,n){var r=this.values[e];return void 0===n?r[t]:(n===r[t]||(r[t]=n,this.setValues(e,r)),this)},"undefined"!=typeof window&&(window.Color=P);var Y=P;function N(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var z={noop:function(){},uid:function(){var e=0;return function(){return e++}}(),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return z.valueOrDefault(z.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,r){var a,i,o;if(z.isArray(e))if(i=e.length,r)for(a=i-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<i;a++)t.call(n,e[a],a);else if(z.isObject(e))for(i=(o=Object.keys(e)).length,a=0;a<i;a++)t.call(n,e[o[a]],o[a])},arrayEquals:function(e,t){var n,r,a,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(a=e[n],i=t[n],a instanceof Array&&i instanceof Array){if(!z.arrayEquals(a,i))return!1}else if(a!==i)return!1;return!0},clone:function(e){if(z.isArray(e))return e.map(z.clone);if(z.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),r=n.length,a=0;a<r;++a)t[n[a]]=z.clone(e[n[a]]);return t}return e},_merger:function(e,t,n,r){if(N(e)){var a=t[e],i=n[e];z.isObject(a)&&z.isObject(i)?z.merge(a,i,r):t[e]=z.clone(i)}},_mergerIf:function(e,t,n){if(N(e)){var r=t[e],a=n[e];z.isObject(r)&&z.isObject(a)?z.mergeIf(r,a):t.hasOwnProperty(e)||(t[e]=z.clone(a))}},merge:function(e,t,n){var r,a,i,o,s,l=z.isArray(t)?t:[t],c=l.length;if(!z.isObject(e))return e;for(r=(n=n||{}).merger||z._merger,a=0;a<c;++a)if(t=l[a],z.isObject(t))for(s=0,o=(i=Object.keys(t)).length;s<o;++s)r(i[s],e,t,n);return e},mergeIf:function(e,t){return z.merge(e,t,{merger:z._mergerIf})},extend:Object.assign||function(e){return z.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=t.prototype,n.prototype=new r,n.extend=z.inherits,e&&z.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,r){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+r+'" instead')}},I=z;z.callCallback=z.callback,z.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},z.getValueOrDefault=z.valueOrDefault,z.getValueAtIndexOrDefault=z.valueAtIndexOrDefault;var F={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-F.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*F.easeInBounce(2*e):.5*F.easeOutBounce(2*e-1)+.5}},H={effects:F};I.easingEffects=F;var R=Math.PI,B=R/180,q=2*R,V=R/2,W=R/4,U=2*R/3,K={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,a,i){if(i){var o=Math.min(i,a/2,r/2),s=t+o,l=n+o,c=t+r-o,u=n+a-o;e.moveTo(t,l),s<c&&l<u?(e.arc(s,l,o,-R,-V),e.arc(c,l,o,-V,0),e.arc(c,u,o,0,V),e.arc(s,u,o,V,R)):s<c?(e.moveTo(s,n),e.arc(c,l,o,-V,V),e.arc(s,l,o,V,R+V)):l<u?(e.arc(s,l,o,-R,0),e.arc(s,u,o,0,R)):e.arc(s,l,o,-R,R),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,a)},drawPoint:function(e,t,n,r,a,i){var o,s,l,c,u,d=(i||0)*B;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(o=t.toString())||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(r,a),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(r,a,n,0,q),e.closePath();break;case"triangle":e.moveTo(r+Math.sin(d)*n,a-Math.cos(d)*n),d+=U,e.lineTo(r+Math.sin(d)*n,a-Math.cos(d)*n),d+=U,e.lineTo(r+Math.sin(d)*n,a-Math.cos(d)*n),e.closePath();break;case"rectRounded":c=n-(u=.516*n),s=Math.cos(d+W)*c,l=Math.sin(d+W)*c,e.arc(r-s,a-l,u,d-R,d-V),e.arc(r+l,a-s,u,d-V,d),e.arc(r+s,a+l,u,d,d+V),e.arc(r-l,a+s,u,d+V,d+R),e.closePath();break;case"rect":if(!i){c=Math.SQRT1_2*n,e.rect(r-c,a-c,2*c,2*c);break}d+=W;case"rectRot":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,a-l),e.lineTo(r+l,a-s),e.lineTo(r+s,a+l),e.lineTo(r-l,a+s),e.closePath();break;case"crossRot":d+=W;case"cross":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,a-l),e.lineTo(r+s,a+l),e.moveTo(r+l,a-s),e.lineTo(r-l,a+s);break;case"star":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,a-l),e.lineTo(r+s,a+l),e.moveTo(r+l,a-s),e.lineTo(r-l,a+s),d+=W,s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,a-l),e.lineTo(r+s,a+l),e.moveTo(r+l,a-s),e.lineTo(r-l,a+s);break;case"line":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(r-s,a-l),e.lineTo(r+s,a+l);break;case"dash":e.moveTo(r,a),e.lineTo(r+Math.cos(d)*n,a+Math.sin(d)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var n=1e-6;return e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){var a=n.steppedLine;if(a){if("middle"===a){var i=(t.x+n.x)/2;e.lineTo(i,r?n.y:t.y),e.lineTo(i,r?t.y:n.y)}else"after"===a&&!r||"after"!==a&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},Z=K;I.clear=K.clear,I.drawRoundedRectangle=function(e){e.beginPath(),K.roundedRect.apply(K,arguments)};var G={_set:function(e,t){return I.merge(this[e]||(this[e]={}),t)}};G._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var J=G,X=I.valueOrDefault;function Q(e){return!e||I.isNullOrUndef(e.size)||I.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}var ee={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,r,a;return I.isObject(e)?(t=+e.top||0,n=+e.right||0,r=+e.bottom||0,a=+e.left||0):t=n=r=a=+e||0,{top:t,right:n,bottom:r,left:a,height:t+r,width:a+n}},_parseFont:function(e){var t=J.global,n=X(e.fontSize,t.defaultFontSize),r={family:X(e.fontFamily,t.defaultFontFamily),lineHeight:I.options.toLineHeight(X(e.lineHeight,t.defaultLineHeight),n),size:n,style:X(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return r.string=Q(r),r},resolve:function(e,t,n,r){var a,i,o,s=!0;for(a=0,i=e.length;a<i;++a)if(void 0!==(o=e[a])&&(void 0!==t&&"function"==typeof o&&(o=o(t),s=!1),void 0!==n&&I.isArray(o)&&(o=o[n],s=!1),void 0!==o))return r&&!s&&(r.cacheable=!1),o}},te={_factorize:function(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t==0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((function(e,t){return e-t})).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},ne=te;I.log10=te.log10;var re=function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}},ae=function(){return{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},ie=I,oe=H,se=Z,le=ee,ce=ne,ue={getRtlAdapter:function(e,t,n){return e?re(t,n):ae()},overrideTextDirection:function(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};function de(e,t,n,r){var a,i,o,s,l,c,u,d,p,m=Object.keys(n);for(a=0,i=m.length;a<i;++a)if(c=n[o=m[a]],t.hasOwnProperty(o)||(t[o]=c),(s=t[o])!==c&&"_"!==o[0]){if(e.hasOwnProperty(o)||(e[o]=s),(u=typeof c)==typeof(l=e[o]))if("string"===u){if((d=Y(l)).valid&&(p=Y(c)).valid){t[o]=p.mix(d,r).rgbString();continue}}else if(ie.isFinite(l)&&ie.isFinite(c)){t[o]=l+(c-l)*r;continue}t[o]=c}}ie.easing=oe,ie.canvas=se,ie.options=le,ie.math=ce,ie.rtl=ue;var pe=function(e){ie.extend(this,e),this.initialize.apply(this,arguments)};ie.extend(pe.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=ie.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,r=t._start,a=t._view;return n&&1!==e?(a||(a=t._view={}),r||(r=t._start={}),de(r,a,n,e),t):(t._view=ie.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return ie.isNumber(this._model.x)&&ie.isNumber(this._model.y)}}),pe.extend=ie.inherits;var me=pe,fe=me.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),he=fe;Object.defineProperty(fe.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(fe.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),J._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:ie.noop,onComplete:ie.noop}});var _e={animations:[],request:null,addAnimation:function(e,t,n,r){var a,i,o=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,r||(e.animating=!0),a=0,i=o.length;a<i;++a)if(o[a].chart===e)return void(o[a]=t);o.push(t),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=ie.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=ie.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var e,t,n,r,a=this.animations,i=0;i<a.length;)t=(e=a[i]).chart,n=e.numSteps,r=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(r,n),ie.callback(e.render,[t,e],t),ie.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(ie.callback(e.onAnimationComplete,[e],t),t.animating=!1,a.splice(i,1)):++i}},ve=ie.options.resolve,ge=["push","pop","shift","splice","unshift"];function ye(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ge.forEach((function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),a=r.apply(this,t);return ie.each(e._chartjs.listeners,(function(e){"function"==typeof e[n]&&e[n].apply(e,t)})),a}})})))}function be(e,t){var n=e._chartjs;if(n){var r=n.listeners,a=r.indexOf(t);-1!==a&&r.splice(a,1),r.length>0||(ge.forEach((function(t){delete e[t]})),delete e._chartjs)}}var we=function(e,t){this.initialize(e,t)};ie.extend(we.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.chart,r=n.scales,a=e.getDataset(),i=n.options.scales;null!==t.xAxisID&&t.xAxisID in r&&!a.xAxisID||(t.xAxisID=a.xAxisID||i.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in r&&!a.yAxisID||(t.yAxisID=a.yAxisID||i.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&be(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,r=n.getMeta(),a=n.getDataset().data||[],i=r.data;for(e=0,t=a.length;e<t;++e)i[e]=i[e]||n.createMetaData(e);r.dataset=r.dataset||n.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e=this,t=e.getDataset(),n=t.data||(t.data=[]);e._data!==n&&(e._data&&be(e._data,e),n&&Object.isExtensible(n)&&ye(n,e),e._data=n),e.resyncElements()},_configure:function(){var e=this;e._config=ie.merge(Object.create(null),[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&ie._merger(e,t,n)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:ie.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,a=0;a<r;++a)n[a].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},getStyle:function(e){var t,n=this,r=n.getMeta(),a=r.dataset;return n._configure(),a&&void 0===e?t=n._resolveDatasetElementOptions(a||{}):(e=e||0,t=n._resolveDataElementOptions(r.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,r,a,i,o=this,s=o.chart,l=o._config,c=e.custom||{},u=s.options.elements[o.datasetElementType.prototype._type]||{},d=o._datasetElementOptions,p={},m={chart:s,dataset:o.getDataset(),datasetIndex:o.index,hover:t};for(n=0,r=d.length;n<r;++n)a=d[n],i=t?"hover"+a.charAt(0).toUpperCase()+a.slice(1):a,p[a]=ve([c[i],l[i],u[i]],m);return p},_resolveDataElementOptions:function(e,t){var n=this,r=e&&e.custom,a=n._cachedDataOpts;if(a&&!r)return a;var i,o,s,l,c=n.chart,u=n._config,d=c.options.elements[n.dataElementType.prototype._type]||{},p=n._dataElementOptions,m={},f={chart:c,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},h={cacheable:!r};if(r=r||{},ie.isArray(p))for(o=0,s=p.length;o<s;++o)m[l=p[o]]=ve([r[l],u[l],d[l]],f,t,h);else for(o=0,s=(i=Object.keys(p)).length;o<s;++o)m[l=i[o]]=ve([r[l],u[p[l]],u[l],d[l]],f,t,h);return h.cacheable&&(n._cachedDataOpts=Object.freeze(m)),m},removeHoverStyle:function(e){ie.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},a=e._model,i=ie.getHoverColor;e.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth},a.backgroundColor=ve([r.hoverBackgroundColor,t.hoverBackgroundColor,i(a.backgroundColor)],void 0,n),a.borderColor=ve([r.hoverBorderColor,t.hoverBorderColor,i(a.borderColor)],void 0,n),a.borderWidth=ve([r.hoverBorderWidth,t.hoverBorderWidth,a.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,r,a,i,o=this.getMeta().dataset,s={};if(o){for(i=o._model,a=this._resolveDatasetElementOptions(o,!0),e=0,t=(r=Object.keys(a)).length;e<t;++e)s[n=r[e]]=i[n],i[n]=a[n];o.$previousStyle=s}},resyncElements:function(){var e=this,t=e.getMeta(),n=e.getDataset().data,r=t.data.length,a=n.length;a<r?t.data.splice(a,r-a):a>r&&e.insertElements(r,a-r)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),we.extend=ie.inherits;var xe=we,ke=2*Math.PI;function De(e,t){var n=t.startAngle,r=t.endAngle,a=t.pixelMargin,i=a/t.outerRadius,o=t.x,s=t.y;e.beginPath(),e.arc(o,s,t.outerRadius,n-i,r+i),t.innerRadius>a?(i=a/t.innerRadius,e.arc(o,s,t.innerRadius-a,r+i,n-i,!0)):e.arc(o,s,a,r+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function Me(e,t,n,r){var a,i=n.endAngle;for(r&&(n.endAngle=n.startAngle+ke,De(e,n),n.endAngle=i,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=ke,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+ke,n.startAngle,!0),a=0;a<n.fullCircles;++a)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+ke),a=0;a<n.fullCircles;++a)e.stroke()}function Se(e,t,n){var r="inner"===t.borderAlign;r?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&Me(e,t,n,r),r&&De(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}J._set("global",{elements:{arc:{backgroundColor:J.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Ce=me.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var r=ie.getAngleFromPoint(n,{x:e,y:t}),a=r.angle,i=r.distance,o=n.startAngle,s=n.endAngle;s<o;)s+=ke;for(;a>s;)a-=ke;for(;a<o;)a+=ke;var l=a>=o&&a<=s,c=i>=n.innerRadius&&i<=n.outerRadius;return l&&c}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,a={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/ke)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,a.fullCircles){for(a.endAngle=a.startAngle+ke,t.beginPath(),t.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),t.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),t.closePath(),e=0;e<a.fullCircles;++e)t.fill();a.endAngle=a.startAngle+n.circumference%ke}t.beginPath(),t.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),t.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&Se(t,n,a),t.restore()}}),Le=ie.valueOrDefault,Te=J.global.defaultColor;J._set("global",{elements:{line:{tension:.4,backgroundColor:Te,borderWidth:3,borderColor:Te,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Oe=me.extend({_type:"line",draw:function(){var e,t,n,r=this,a=r._view,i=r._chart.ctx,o=a.spanGaps,s=r._children.slice(),l=J.global,c=l.elements.line,u=-1,d=r._loop;if(s.length){if(r._loop){for(e=0;e<s.length;++e)if(t=ie.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),d=o;break}d&&s.push(s[0])}for(i.save(),i.lineCap=a.borderCapStyle||c.borderCapStyle,i.setLineDash&&i.setLineDash(a.borderDash||c.borderDash),i.lineDashOffset=Le(a.borderDashOffset,c.borderDashOffset),i.lineJoin=a.borderJoinStyle||c.borderJoinStyle,i.lineWidth=Le(a.borderWidth,c.borderWidth),i.strokeStyle=a.borderColor||l.defaultColor,i.beginPath(),(n=s[0]._view).skip||(i.moveTo(n.x,n.y),u=0),e=1;e<s.length;++e)n=s[e]._view,t=-1===u?ie.previousItem(s,e):s[u],n.skip||(u!==e-1&&!o||-1===u?i.moveTo(n.x,n.y):ie.canvas.lineTo(i,t._view,n),u=e);d&&i.closePath(),i.stroke(),i.restore()}}}),Ee=ie.valueOrDefault,Ae=J.global.defaultColor;function je(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}function $e(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius}J._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Ae,borderColor:Ae,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var Pe=me.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:je,inXRange:je,inYRange:$e,getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,r=t.pointStyle,a=t.rotation,i=t.radius,o=t.x,s=t.y,l=J.global,c=l.defaultColor;t.skip||(void 0===e||ie.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||c,n.lineWidth=Ee(t.borderWidth,l.elements.point.borderWidth),n.fillStyle=t.backgroundColor||c,ie.canvas.drawPoint(n,r,i,o,s,a))}}),Ye=J.global.defaultColor;function Ne(e){return e&&void 0!==e.width}function ze(e){var t,n,r,a,i;return Ne(e)?(i=e.width/2,t=e.x-i,n=e.x+i,r=Math.min(e.y,e.base),a=Math.max(e.y,e.base)):(i=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),r=e.y-i,a=e.y+i),{left:t,top:r,right:n,bottom:a}}function Ie(e,t,n){return e===t?n:e===n?t:e}function Fe(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=Ie(t,"left","right")):e.base<e.y&&(t=Ie(t,"bottom","top")),n[t]=!0,n):n}function He(e,t,n){var r,a,i,o,s=e.borderWidth,l=Fe(e);return ie.isObject(s)?(r=+s.top||0,a=+s.right||0,i=+s.bottom||0,o=+s.left||0):r=a=i=o=+s||0,{t:l.top||r<0?0:r>n?n:r,r:l.right||a<0?0:a>t?t:a,b:l.bottom||i<0?0:i>n?n:i,l:l.left||o<0?0:o>t?t:o}}function Re(e){var t=ze(e),n=t.right-t.left,r=t.bottom-t.top,a=He(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b}}}function Be(e,t,n){var r=null===t,a=null===n,i=!(!e||r&&a)&&ze(e);return i&&(r||t>=i.left&&t<=i.right)&&(a||n>=i.top&&n<=i.bottom)}J._set("global",{elements:{rectangle:{backgroundColor:Ye,borderColor:Ye,borderSkipped:"bottom",borderWidth:0}}});var qe=me.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=Re(t),r=n.outer,a=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===a.w&&r.h===a.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(a.x,a.y,a.w,a.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return Be(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return Ne(n)?Be(n,e,null):Be(n,null,t)},inXRange:function(e){return Be(this._view,e,null)},inYRange:function(e){return Be(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return Ne(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return Ne(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Ve={},We=Ce,Ue=Oe,Ke=Pe,Ze=qe;Ve.Arc=We,Ve.Line=Ue,Ve.Point=Ke,Ve.Rectangle=Ze;var Ge=ie._deprecated,Je=ie.valueOrDefault;function Xe(e,t){var n,r,a,i,o=e._length;for(a=1,i=t.length;a<i;++a)o=Math.min(o,Math.abs(t[a]-t[a-1]));for(a=0,i=e.getTicks().length;a<i;++a)r=e.getPixelForTick(a),o=a>0?Math.min(o,Math.abs(r-n)):o,n=r;return o}function Qe(e,t,n){var r,a,i=n.barThickness,o=t.stackCount,s=t.pixels[e],l=ie.isNullOrUndef(i)?Xe(t.scale,t.pixels):-1;return ie.isNullOrUndef(i)?(r=l*n.categoryPercentage,a=n.barPercentage):(r=i*o,a=1),{chunk:r/o,ratio:a,start:s-r/2}}function et(e,t,n){var r,a=t.pixels,i=a[e],o=e>0?a[e-1]:null,s=e<a.length-1?a[e+1]:null,l=n.categoryPercentage;return null===o&&(o=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-o),r=i-(i-Math.min(o,s))/2*l,{chunk:Math.abs(s-o)/2*l/t.stackCount,ratio:n.barPercentage,start:r}}J._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),J._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var tt=xe.extend({dataElementType:Ve.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;xe.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Ge("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Ge("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Ge("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Ge("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Ge("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,r=this,a=r.getMeta().data;for(r._ruler=r.getRuler(),t=0,n=a.length;t<n;++t)r.updateElement(a[t],t,e)},updateElement:function(e,t,n){var r=this,a=r.getMeta(),i=r.getDataset(),o=r._resolveDataElementOptions(e,t);e._xScale=r.getScaleForId(a.xAxisID),e._yScale=r.getScaleForId(a.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:i.label,label:r.chart.data.labels[t]},ie.isArray(i.data[t])&&(e._model.borderSkipped=null),r._updateElementGeometry(e,t,n,o),e.pivot()},_updateElementGeometry:function(e,t,n,r){var a=this,i=e._model,o=a._getValueScale(),s=o.getBasePixel(),l=o.isHorizontal(),c=a._ruler||a.getRuler(),u=a.calculateBarValuePixels(a.index,t,r),d=a.calculateBarIndexPixels(a.index,t,c,r);i.horizontal=l,i.base=n?s:u.base,i.x=l?n?s:u.head:d.center,i.y=l?d.center:n?s:u.head,i.height=l?d.size:void 0,i.width=l?void 0:d.size},_getStacks:function(e){var t,n,r=this,a=r._getIndexScale(),i=a._getMatchingVisibleMetas(r._type),o=a.options.stacked,s=i.length,l=[];for(t=0;t<s&&(n=i[t],(!1===o||-1===l.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&l.push(n.stack),n.index!==e);++t);return l},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this,r=n._getIndexScale(),a=[];for(e=0,t=n.getMeta().data.length;e<t;++e)a.push(r.getPixelForValue(null,e,n.index));return{pixels:a,start:r._startPixel,end:r._endPixel,stackCount:n.getStackCount(),scale:r}},calculateBarValuePixels:function(e,t,n){var r,a,i,o,s,l,c,u=this,d=u.chart,p=u._getValueScale(),m=p.isHorizontal(),f=d.data.datasets,h=p._getMatchingVisibleMetas(u._type),_=p._parseValue(f[e].data[t]),v=n.minBarLength,g=p.options.stacked,y=u.getMeta().stack,b=void 0===_.start?0:_.max>=0&&_.min>=0?_.min:_.max,w=void 0===_.start?_.end:_.max>=0&&_.min>=0?_.max-_.min:_.min-_.max,x=h.length;if(g||void 0===g&&void 0!==y)for(r=0;r<x&&(a=h[r]).index!==e;++r)a.stack===y&&(i=void 0===(c=p._parseValue(f[a.index].data[t])).start?c.end:c.min>=0&&c.max>=0?c.max:c.min,(_.min<0&&i<0||_.max>=0&&i>0)&&(b+=i));return o=p.getPixelForValue(b),l=(s=p.getPixelForValue(b+w))-o,void 0!==v&&Math.abs(l)<v&&(l=v,s=w>=0&&!m||w<0&&m?o-v:o+v),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,r){var a=this,i="flex"===r.barThickness?et(t,n,r):Qe(t,n,r),o=a.getStackIndex(e,a.getMeta().stack),s=i.start+i.chunk*o+i.chunk/2,l=Math.min(Je(r.maxBarThickness,1/0),i.chunk*i.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var e=this,t=e.chart,n=e._getValueScale(),r=e.getMeta().data,a=e.getDataset(),i=r.length,o=0;for(ie.canvas.clipArea(t.ctx,t.chartArea);o<i;++o){var s=n._parseValue(a.data[o]);isNaN(s.min)||isNaN(s.max)||r[o].draw()}ie.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=ie.extend({},xe.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,r=e._getValueScale().options;return t.barPercentage=Je(n.barPercentage,t.barPercentage),t.barThickness=Je(n.barThickness,t.barThickness),t.categoryPercentage=Je(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=Je(n.maxBarThickness,t.maxBarThickness),t.minBarLength=Je(r.minBarLength,t.minBarLength),t}}),nt=ie.valueOrDefault,rt=ie.options.resolve;J._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}});var at=xe.extend({dataElementType:Ve.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta().data;ie.each(n,(function(n,r){t.updateElement(n,r,e)}))},updateElement:function(e,t,n){var r=this,a=r.getMeta(),i=e.custom||{},o=r.getScaleForId(a.xAxisID),s=r.getScaleForId(a.yAxisID),l=r._resolveDataElementOptions(e,t),c=r.getDataset().data[t],u=r.index,d=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof c?c:NaN,t,u),p=n?s.getBasePixel():s.getPixelForValue(c,t,u);e._xScale=o,e._yScale=s,e._options=l,e._datasetIndex=u,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:i.skip||isNaN(d)||isNaN(p),x:d,y:p},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,r=ie.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=nt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=nt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=nt(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,r=n.chart,a=n.getDataset(),i=e.custom||{},o=a.data[t]||{},s=xe.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:r,dataIndex:t,dataset:a,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=ie.extend({},s)),s.radius=rt([i.radius,o.r,n._config.radius,r.options.elements.point.radius],l,t),s}}),it=ie.valueOrDefault,ot=Math.PI,st=2*ot,lt=ot/2;J._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,r,a=document.createElement("ul"),i=e.data,o=i.datasets,s=i.labels;if(a.setAttribute("class",e.id+"-legend"),o.length)for(t=0,n=o[0].data.length;t<n;++t)(r=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&r.appendChild(document.createTextNode(s[t]));return a.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var a=e.getDatasetMeta(0),i=a.controller.getStyle(r);return{text:n,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(t.datasets[0].data[r])||a.data[r].hidden,index:r}})):[]}},onClick:function(e,t){var n,r,a,i=t.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n<r;++n)(a=o.getDatasetMeta(n)).data[i]&&(a.data[i].hidden=!a.data[i].hidden);o.update()}},cutoutPercentage:50,rotation:-lt,circumference:st,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return ie.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}});var ct=xe.extend({dataElementType:Ve.Arc,linkScales:ie.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,r,a,i=this,o=i.chart,s=o.chartArea,l=o.options,c=1,u=1,d=0,p=0,m=i.getMeta(),f=m.data,h=l.cutoutPercentage/100||0,_=l.circumference,v=i._getRingWeight(i.index);if(_<st){var g=l.rotation%st,y=(g+=g>=ot?-st:g<-ot?st:0)+_,b=Math.cos(g),w=Math.sin(g),x=Math.cos(y),k=Math.sin(y),D=g<=0&&y>=0||y>=st,M=g<=lt&&y>=lt||y>=st+lt,S=g<=-lt&&y>=-lt||y>=ot+lt,C=g===-ot||y>=ot?-1:Math.min(b,b*h,x,x*h),L=S?-1:Math.min(w,w*h,k,k*h),T=D?1:Math.max(b,b*h,x,x*h),O=M?1:Math.max(w,w*h,k,k*h);c=(T-C)/2,u=(O-L)/2,d=-(T+C)/2,p=-(O+L)/2}for(r=0,a=f.length;r<a;++r)f[r]._options=i._resolveDataElementOptions(f[r],r);for(o.borderWidth=i.getMaxBorderWidth(),t=(s.right-s.left-o.borderWidth)/c,n=(s.bottom-s.top-o.borderWidth)/u,o.outerRadius=Math.max(Math.min(t,n)/2,0),o.innerRadius=Math.max(o.outerRadius*h,0),o.radiusLength=(o.outerRadius-o.innerRadius)/(i._getVisibleDatasetWeightTotal()||1),o.offsetX=d*o.outerRadius,o.offsetY=p*o.outerRadius,m.total=i.calculateTotal(),i.outerRadius=o.outerRadius-o.radiusLength*i._getRingWeightOffset(i.index),i.innerRadius=Math.max(i.outerRadius-o.radiusLength*v,0),r=0,a=f.length;r<a;++r)i.updateElement(f[r],r,e)},updateElement:function(e,t,n){var r=this,a=r.chart,i=a.chartArea,o=a.options,s=o.animation,l=(i.left+i.right)/2,c=(i.top+i.bottom)/2,u=o.rotation,d=o.rotation,p=r.getDataset(),m=n&&s.animateRotate||e.hidden?0:r.calculateCircumference(p.data[t])*(o.circumference/st),f=n&&s.animateScale?0:r.innerRadius,h=n&&s.animateScale?0:r.outerRadius,_=e._options||{};ie.extend(e,{_datasetIndex:r.index,_index:t,_model:{backgroundColor:_.backgroundColor,borderColor:_.borderColor,borderWidth:_.borderWidth,borderAlign:_.borderAlign,x:l+a.offsetX,y:c+a.offsetY,startAngle:u,endAngle:d,circumference:m,outerRadius:h,innerRadius:f,label:ie.valueAtIndexOrDefault(p.label,t,a.data.labels[t])}});var v=e._model;n&&s.animateRotate||(v.startAngle=0===t?o.rotation:r.getMeta().data[t-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return ie.each(n.data,(function(n,a){e=t.data[a],isNaN(e)||n.hidden||(r+=Math.abs(e))})),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?st*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,a,i,o,s,l,c=this,u=0,d=c.chart;if(!e)for(t=0,n=d.data.datasets.length;t<n;++t)if(d.isDatasetVisible(t)){e=(r=d.getDatasetMeta(t)).data,t!==c.index&&(i=r.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)a=e[t],i?(i._configure(),o=i._resolveDataElementOptions(a,t)):o=a._options,"inner"!==o.borderAlign&&(s=o.borderWidth,u=(l=o.hoverBorderWidth)>(u=s>u?s:u)?l:u);return u},setHoverStyle:function(e){var t=e._model,n=e._options,r=ie.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=it(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=it(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=it(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(it(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});J._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),J._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var ut=tt.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),dt=ie.valueOrDefault,pt=ie.options.resolve,mt=ie.canvas._isPointInArea;function ft(e,t){var n=e&&e.options.ticks||{},r=n.reverse,a=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:r?i:a,end:r?a:i}}function ht(e,t,n){var r=n/2,a=ft(e,r),i=ft(t,r);return{top:i.end,right:a.end,bottom:i.start,left:a.start}}function _t(e){var t,n,r,a;return ie.isObject(e)?(t=e.top,n=e.right,r=e.bottom,a=e.left):t=n=r=a=e,{top:t,right:n,bottom:r,left:a}}J._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var vt=xe.extend({datasetElementType:Ve.Line,dataElementType:Ve.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,r=this,a=r.getMeta(),i=a.dataset,o=a.data||[],s=r.chart.options,l=r._config,c=r._showLine=dt(l.showLine,s.showLines);for(r._xScale=r.getScaleForId(a.xAxisID),r._yScale=r.getScaleForId(a.yAxisID),c&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),i._scale=r._yScale,i._datasetIndex=r.index,i._children=o,i._model=r._resolveDatasetElementOptions(i),i.pivot()),t=0,n=o.length;t<n;++t)r.updateElement(o[t],t,e);for(c&&0!==i._model.tension&&r.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var r,a,i=this,o=i.getMeta(),s=e.custom||{},l=i.getDataset(),c=i.index,u=l.data[t],d=i._xScale,p=i._yScale,m=o.dataset._model,f=i._resolveDataElementOptions(e,t);r=d.getPixelForValue("object"==typeof u?u:NaN,t,c),a=n?p.getBasePixel():i.calculatePointY(u,t,c),e._xScale=d,e._yScale=p,e._options=f,e._datasetIndex=c,e._index=t,e._model={x:r,y:a,skip:s.skip||isNaN(r)||isNaN(a),radius:f.radius,pointStyle:f.pointStyle,rotation:f.rotation,backgroundColor:f.backgroundColor,borderColor:f.borderColor,borderWidth:f.borderWidth,tension:dt(s.tension,m?m.tension:0),steppedLine:!!m&&m.steppedLine,hitRadius:f.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,n=t._config,r=e.custom||{},a=t.chart.options,i=a.elements.line,o=xe.prototype._resolveDatasetElementOptions.apply(t,arguments);return o.spanGaps=dt(n.spanGaps,a.spanGaps),o.tension=dt(n.lineTension,i.tension),o.steppedLine=pt([r.steppedLine,n.steppedLine,i.stepped]),o.clip=_t(dt(n.clip,ht(t._xScale,t._yScale,o.borderWidth))),o},calculatePointY:function(e,t,n){var r,a,i,o,s,l,c,u=this,d=u.chart,p=u._yScale,m=0,f=0;if(p.options.stacked){for(s=+p.getRightValue(e),c=(l=d._getSortedVisibleDatasetMetas()).length,r=0;r<c&&(i=l[r]).index!==n;++r)a=d.data.datasets[i.index],"line"===i.type&&i.yAxisID===p.id&&((o=+p.getRightValue(a.data[t]))<0?f+=o||0:m+=o||0);return s<0?p.getPixelForValue(f+s):p.getPixelForValue(m+s)}return p.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,a=this,i=a.chart,o=a.getMeta(),s=o.dataset._model,l=i.chartArea,c=o.data||[];function u(e,t,n){return Math.max(Math.min(e,n),t)}if(s.spanGaps&&(c=c.filter((function(e){return!e._model.skip}))),"monotone"===s.cubicInterpolationMode)ie.splineCurveMonotone(c);else for(e=0,t=c.length;e<t;++e)n=c[e]._model,r=ie.splineCurve(ie.previousItem(c,e)._model,n,ie.nextItem(c,e)._model,s.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(i.options.elements.line.capBezierPoints)for(e=0,t=c.length;e<t;++e)n=c[e]._model,mt(n,l)&&(e>0&&mt(c[e-1]._model,l)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,l.left,l.right),n.controlPointPreviousY=u(n.controlPointPreviousY,l.top,l.bottom)),e<c.length-1&&mt(c[e+1]._model,l)&&(n.controlPointNextX=u(n.controlPointNextX,l.left,l.right),n.controlPointNextY=u(n.controlPointNextY,l.top,l.bottom)))},draw:function(){var e,t=this,n=t.chart,r=t.getMeta(),a=r.data||[],i=n.chartArea,o=n.canvas,s=0,l=a.length;for(t._showLine&&(e=r.dataset._model.clip,ie.canvas.clipArea(n.ctx,{left:!1===e.left?0:i.left-e.left,right:!1===e.right?o.width:i.right+e.right,top:!1===e.top?0:i.top-e.top,bottom:!1===e.bottom?o.height:i.bottom+e.bottom}),r.dataset.draw(),ie.canvas.unclipArea(n.ctx));s<l;++s)a[s].draw(i)},setHoverStyle:function(e){var t=e._model,n=e._options,r=ie.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=dt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=dt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=dt(n.hoverBorderWidth,n.borderWidth),t.radius=dt(n.hoverRadius,n.radius)}}),gt=ie.options.resolve;J._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,r,a=document.createElement("ul"),i=e.data,o=i.datasets,s=i.labels;if(a.setAttribute("class",e.id+"-legend"),o.length)for(t=0,n=o[0].data.length;t<n;++t)(r=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&r.appendChild(document.createTextNode(s[t]));return a.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var a=e.getDatasetMeta(0),i=a.controller.getStyle(r);return{text:n,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(t.datasets[0].data[r])||a.data[r].hidden,index:r}})):[]}},onClick:function(e,t){var n,r,a,i=t.index,o=this.chart;for(n=0,r=(o.data.datasets||[]).length;n<r;++n)(a=o.getDatasetMeta(n)).data[i].hidden=!a.data[i].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var yt=xe.extend({dataElementType:Ve.Arc,linkScales:ie.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,r,a=this,i=a.getDataset(),o=a.getMeta(),s=a.chart.options.startAngle||0,l=a._starts=[],c=a._angles=[],u=o.data;for(a._updateRadius(),o.count=a.countVisibleElements(),t=0,n=i.data.length;t<n;t++)l[t]=s,r=a._computeAngle(t),c[t]=r,s+=r;for(t=0,n=u.length;t<n;++t)u[t]._options=a._resolveDataElementOptions(u[t],t),a.updateElement(u[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,a=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(a/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,a=r.chart,i=r.getDataset(),o=a.options,s=o.animation,l=a.scale,c=a.data.labels,u=l.xCenter,d=l.yCenter,p=o.startAngle,m=e.hidden?0:l.getDistanceFromCenterForValue(i.data[t]),f=r._starts[t],h=f+(e.hidden?0:r._angles[t]),_=s.animateScale?0:l.getDistanceFromCenterForValue(i.data[t]),v=e._options||{};ie.extend(e,{_datasetIndex:r.index,_index:t,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:u,y:d,innerRadius:0,outerRadius:n?_:m,startAngle:n&&s.animateRotate?p:f,endAngle:n&&s.animateRotate?p:h,label:ie.valueAtIndexOrDefault(c,t,c[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return ie.each(t.data,(function(t,r){isNaN(e.data[r])||t.hidden||n++})),n},setHoverStyle:function(e){var t=e._model,n=e._options,r=ie.getHoverColor,a=ie.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=a(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=a(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=a(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),a=t.getMeta();if(isNaN(r.data[e])||a.data[e].hidden)return 0;var i={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return gt([t.chart.options.elements.arc.angle,2*Math.PI/n],i,e)}});J._set("pie",ie.clone(J.doughnut)),J._set("pie",{cutoutPercentage:0});var bt=ct,wt=ie.valueOrDefault;J._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var xt=xe.extend({datasetElementType:Ve.Line,dataElementType:Ve.Point,linkScales:ie.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,r=this,a=r.getMeta(),i=a.dataset,o=a.data||[],s=r.chart.scale,l=r._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),i._scale=s,i._datasetIndex=r.index,i._children=o,i._loop=!0,i._model=r._resolveDatasetElementOptions(i),i.pivot(),t=0,n=o.length;t<n;++t)r.updateElement(o[t],t,e);for(r.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var r=this,a=e.custom||{},i=r.getDataset(),o=r.chart.scale,s=o.getPointPositionForValue(t,i.data[t]),l=r._resolveDataElementOptions(e,t),c=r.getMeta().dataset._model,u=n?o.xCenter:s.x,d=n?o.yCenter:s.y;e._scale=o,e._options=l,e._datasetIndex=r.index,e._index=t,e._model={x:u,y:d,skip:a.skip||isNaN(u)||isNaN(d),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:wt(a.tension,c?c.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,r=xe.prototype._resolveDatasetElementOptions.apply(e,arguments);return r.spanGaps=wt(t.spanGaps,n.spanGaps),r.tension=wt(t.lineTension,n.elements.line.tension),r},updateBezierControlPoints:function(){var e,t,n,r,a=this,i=a.getMeta(),o=a.chart.chartArea,s=i.data||[];function l(e,t,n){return Math.max(Math.min(e,n),t)}for(i.dataset._model.spanGaps&&(s=s.filter((function(e){return!e._model.skip}))),e=0,t=s.length;e<t;++e)n=s[e]._model,r=ie.splineCurve(ie.previousItem(s,e,!0)._model,n,ie.nextItem(s,e,!0)._model,n.tension),n.controlPointPreviousX=l(r.previous.x,o.left,o.right),n.controlPointPreviousY=l(r.previous.y,o.top,o.bottom),n.controlPointNextX=l(r.next.x,o.left,o.right),n.controlPointNextY=l(r.next.y,o.top,o.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,r=ie.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=wt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=wt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=wt(n.hoverBorderWidth,n.borderWidth),t.radius=wt(n.hoverRadius,n.radius)}});J._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),J._set("global",{datasets:{scatter:{showLine:!1}}});var kt={bar:tt,bubble:at,doughnut:ct,horizontalBar:ut,line:vt,polarArea:yt,pie:bt,radar:xt,scatter:vt};function Dt(e,t){return e.native?{x:e.x,y:e.y}:ie.getRelativePosition(e,t)}function Mt(e,t){var n,r,a,i,o,s,l=e._getSortedVisibleDatasetMetas();for(r=0,i=l.length;r<i;++r)for(a=0,o=(n=l[r].data).length;a<o;++a)(s=n[a])._view.skip||t(s)}function St(e,t){var n=[];return Mt(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function Ct(e,t,n,r){var a=Number.POSITIVE_INFINITY,i=[];return Mt(e,(function(e){if(!n||e.inRange(t.x,t.y)){var o=e.getCenterPoint(),s=r(t,o);s<a?(i=[e],a=s):s===a&&i.push(e)}})),i}function Lt(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var a=t?Math.abs(e.x-r.x):0,i=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(i,2))}}function Tt(e,t,n){var r=Dt(t,e);n.axis=n.axis||"x";var a=Lt(n.axis),i=n.intersect?St(e,r):Ct(e,r,!1,a),o=[];return i.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[i[0]._index];t&&!t._view.skip&&o.push(t)})),o):[]}var Ot={modes:{single:function(e,t){var n=Dt(t,e),r=[];return Mt(e,(function(e){if(e.inRange(n.x,n.y))return r.push(e),r})),r.slice(0,1)},label:Tt,index:Tt,dataset:function(e,t,n){var r=Dt(t,e);n.axis=n.axis||"xy";var a=Lt(n.axis),i=n.intersect?St(e,r):Ct(e,r,!1,a);return i.length>0&&(i=e.getDatasetMeta(i[0]._datasetIndex).data),i},"x-axis":function(e,t){return Tt(e,t,{intersect:!1})},point:function(e,t){return St(e,Dt(t,e))},nearest:function(e,t,n){var r=Dt(t,e);n.axis=n.axis||"xy";var a=Lt(n.axis);return Ct(e,r,n.intersect,a)},x:function(e,t,n){var r=Dt(t,e),a=[],i=!1;return Mt(e,(function(e){e.inXRange(r.x)&&a.push(e),e.inRange(r.x,r.y)&&(i=!0)})),n.intersect&&!i&&(a=[]),a},y:function(e,t,n){var r=Dt(t,e),a=[],i=!1;return Mt(e,(function(e){e.inYRange(r.y)&&a.push(e),e.inRange(r.x,r.y)&&(i=!0)})),n.intersect&&!i&&(a=[]),a}}},Et=ie.extend;function At(e,t){return ie.where(e,(function(e){return e.pos===t}))}function jt(e,t){return e.sort((function(e,n){var r=t?n:e,a=t?e:n;return r.weight===a.weight?r.index-a.index:r.weight-a.weight}))}function $t(e){var t,n,r,a=[];for(t=0,n=(e||[]).length;t<n;++t)r=e[t],a.push({index:t,box:r,pos:r.position,horizontal:r.isHorizontal(),weight:r.weight});return a}function Pt(e,t){var n,r,a;for(n=0,r=e.length;n<r;++n)(a=e[n]).width=a.horizontal?a.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,a.height=a.horizontal&&t.hBoxMaxHeight}function Yt(e){var t=$t(e),n=jt(At(t,"left"),!0),r=jt(At(t,"right")),a=jt(At(t,"top"),!0),i=jt(At(t,"bottom"));return{leftAndTop:n.concat(a),rightAndBottom:r.concat(i),chartArea:At(t,"chartArea"),vertical:n.concat(r),horizontal:a.concat(i)}}function Nt(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function zt(e,t,n){var r,a,i=n.box,o=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?i.height:i.width,e[n.pos]+=n.size,i.getPadding){var s=i.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(r=t.outerWidth-Nt(o,e,"left","right"),a=t.outerHeight-Nt(o,e,"top","bottom"),r!==e.w||a!==e.h){e.w=r,e.h=a;var l=n.horizontal?[r,e.w]:[a,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function It(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Ft(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function Ht(e,t,n){var r,a,i,o,s,l,c=[];for(r=0,a=e.length;r<a;++r)(o=(i=e[r]).box).update(i.width||t.w,i.height||t.h,Ft(i.horizontal,t)),zt(t,n,i)&&(l=!0,c.length&&(s=!0)),o.fullWidth||c.push(i);return s&&Ht(c,t,n)||l}function Rt(e,t,n){var r,a,i,o,s=n.padding,l=t.x,c=t.y;for(r=0,a=e.length;r<a;++r)o=(i=e[r]).box,i.horizontal?(o.left=o.fullWidth?s.left:t.left,o.right=o.fullWidth?n.outerWidth-s.right:t.left+t.w,o.top=c,o.bottom=c+o.height,o.width=o.right-o.left,c=o.bottom):(o.left=l,o.right=l+o.width,o.top=t.top,o.bottom=t.top+t.h,o.height=o.bottom-o.top,l=o.right);t.x=l,t.y=c}J._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var Bt={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var r,a=["fullWidth","position","weight"],i=a.length,o=0;o<i;++o)r=a[o],n.hasOwnProperty(r)&&(t[r]=n[r])},update:function(e,t,n){if(e){var r=e.options.layout||{},a=ie.options.toPadding(r.padding),i=t-a.width,o=n-a.height,s=Yt(e.boxes),l=s.vertical,c=s.horizontal,u=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:i,vBoxMaxWidth:i/2/l.length,hBoxMaxHeight:o/2}),d=Et({maxPadding:Et({},a),w:i,h:o,x:a.left,y:a.top},a);Pt(l.concat(c),u),Ht(l,d,u),Ht(c,d,u)&&Ht(l,d,u),It(d),Rt(s.leftAndTop,d,u),d.x+=d.w,d.y+=d.h,Rt(s.rightAndBottom,d,u),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h},ie.each(s.chartArea,(function(t){var n=t.box;Et(n,e.chartArea),n.update(d.w,d.h)}))}}},qt={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Vt="/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n",Wt=n(Object.freeze({__proto__:null,default:Vt})),Ut="$chartjs",Kt="chartjs-",Zt=Kt+"size-monitor",Gt=Kt+"render-monitor",Jt=Kt+"render-animation",Xt=["animationstart","webkitAnimationStart"],Qt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function en(e,t){var n=ie.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}function tn(e,t){var n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[Ut]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===a||""===a){var i=en(e,"width");void 0!==i&&(e.width=i)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var o=en(e,"height");void 0!==i&&(e.height=o)}return e}var nn=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function rn(e,t,n){e.addEventListener(t,n,nn)}function an(e,t,n){e.removeEventListener(t,n,nn)}function on(e,t,n,r,a){return{type:e,chart:t,native:a||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function sn(e,t){var n=Qt[e.type]||e.type,r=ie.getRelativePosition(e,t);return on(n,t,r.x,r.y,e)}function ln(e,t){var n=!1,r=[];return function(){r=Array.prototype.slice.call(arguments),t=t||this,n||(n=!0,ie.requestAnimFrame.call(window,(function(){n=!1,e.apply(t,r)})))}}function cn(e){var t=document.createElement("div");return t.className=e||"",t}function un(e){var t=1e6,n=cn(Zt),r=cn(Zt+"-expand"),a=cn(Zt+"-shrink");r.appendChild(cn()),a.appendChild(cn()),n.appendChild(r),n.appendChild(a),n._reset=function(){r.scrollLeft=t,r.scrollTop=t,a.scrollLeft=t,a.scrollTop=t};var i=function(){n._reset(),e()};return rn(r,"scroll",i.bind(r,"expand")),rn(a,"scroll",i.bind(a,"shrink")),n}function dn(e,t){var n=e[Ut]||(e[Ut]={}),r=n.renderProxy=function(e){e.animationName===Jt&&t()};ie.each(Xt,(function(t){rn(e,t,r)})),n.reflow=!!e.offsetParent,e.classList.add(Gt)}function pn(e){var t=e[Ut]||{},n=t.renderProxy;n&&(ie.each(Xt,(function(t){an(e,t,n)})),delete t.renderProxy),e.classList.remove(Gt)}function mn(e,t,n){var r=e[Ut]||(e[Ut]={}),a=r.resizer=un(ln((function(){if(r.resizer){var a=n.options.maintainAspectRatio&&e.parentNode,i=a?a.clientWidth:0;t(on("resize",n)),a&&a.clientWidth<i&&n.canvas&&t(on("resize",n))}})));dn(e,(function(){if(r.resizer){var t=e.parentNode;t&&t!==a.parentNode&&t.insertBefore(a,t.firstChild),a._reset()}}))}function fn(e){var t=e[Ut]||{},n=t.resizer;delete t.resizer,pn(e),n&&n.parentNode&&n.parentNode.removeChild(n)}function hn(e,t){var n=e[Ut]||(e[Ut]={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var r=document.createElement("style");r.setAttribute("type","text/css"),r.appendChild(document.createTextNode(t)),e.appendChild(r)}}var _n={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;hn(t.host?t:document.head,Wt)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),tn(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[Ut]){var n=t[Ut].initial;["height","width"].forEach((function(e){var r=n[e];ie.isNullOrUndef(r)?t.removeAttribute(e):t.setAttribute(e,r)})),ie.each(n.style||{},(function(e,n){t.style[n]=e})),t.width=t.width,delete t[Ut]}},addEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var a=n[Ut]||(n[Ut]={});rn(r,t,(a.proxies||(a.proxies={}))[e.id+"_"+t]=function(t){n(sn(t,e))})}else mn(r,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var a=((n[Ut]||{}).proxies||{})[e.id+"_"+t];a&&an(r,t,a)}else fn(r)}};ie.addEvent=rn,ie.removeEvent=an;var vn=_n._enabled?_n:qt,gn=ie.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},vn);J._set("global",{plugins:{}});var yn={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var r,a,i,o,s,l=this.descriptors(e),c=l.length;for(r=0;r<c;++r)if("function"==typeof(s=(i=(a=l[r]).plugin)[t])&&((o=[e].concat(n||[])).push(a.options),!1===s.apply(i,o)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],r=[],a=e&&e.config||{},i=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach((function(e){if(-1===n.indexOf(e)){var t=e.id,a=i[t];!1!==a&&(!0===a&&(a=ie.clone(J.global.plugins[t])),n.push(e),r.push({plugin:e,options:a||{}}))}})),t.descriptors=r,t.id=this._cacheId,r},_invalidate:function(e){delete e.$plugins}},bn={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=ie.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?ie.merge(Object.create(null),[J.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=ie.extend(n.defaults[e],t))},addScalesToLayout:function(e){ie.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,Bt.addBox(e,t)}))}},wn=ie.valueOrDefault,xn=ie.rtl.getRtlAdapter;J._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:ie.noop,title:function(e,t){var n="",r=t.labels,a=r?r.length:0;if(e.length>0){var i=e[0];i.label?n=i.label:i.xLabel?n=i.xLabel:a>0&&i.index<a&&(n=r[i.index])}return n},afterTitle:ie.noop,beforeBody:ie.noop,beforeLabel:ie.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),ie.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:ie.noop,afterBody:ie.noop,beforeFooter:ie.noop,footer:ie.noop,afterFooter:ie.noop}}});var kn={average:function(e){if(!e.length)return!1;var t,n,r=0,a=0,i=0;for(t=0,n=e.length;t<n;++t){var o=e[t];if(o&&o.hasValue()){var s=o.tooltipPosition();r+=s.x,a+=s.y,++i}}return{x:r/i,y:a/i}},nearest:function(e,t){var n,r,a,i=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var l=e[n];if(l&&l.hasValue()){var c=l.getCenterPoint(),u=ie.distanceBetweenPoints(t,c);u<s&&(s=u,a=l)}}if(a){var d=a.tooltipPosition();i=d.x,o=d.y}return{x:i,y:o}}};function Dn(e,t){return t&&(ie.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Mn(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Sn(e){var t=e._xScale,n=e._yScale||e._scale,r=e._index,a=e._datasetIndex,i=e._chart.getDatasetMeta(a).controller,o=i._getIndexScale(),s=i._getValueScale();return{xLabel:t?t.getLabelForIndex(r,a):"",yLabel:n?n.getLabelForIndex(r,a):"",label:o?""+o.getLabelForIndex(r,a):"",value:s?""+s.getLabelForIndex(r,a):"",index:r,datasetIndex:a,x:e._model.x,y:e._model.y}}function Cn(e){var t=J.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:wn(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:wn(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:wn(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:wn(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:wn(e.titleFontStyle,t.defaultFontStyle),titleFontSize:wn(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:wn(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:wn(e.footerFontStyle,t.defaultFontStyle),footerFontSize:wn(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Ln(e,t){var n=e._chart.ctx,r=2*t.yPadding,a=0,i=t.body,o=i.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);o+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,c=t.titleFontSize,u=t.bodyFontSize,d=t.footerFontSize;r+=s*c,r+=s?(s-1)*t.titleSpacing:0,r+=s?t.titleMarginBottom:0,r+=o*u,r+=o?(o-1)*t.bodySpacing:0,r+=l?t.footerMarginTop:0,r+=l*d,r+=l?(l-1)*t.footerSpacing:0;var p=0,m=function(e){a=Math.max(a,n.measureText(e).width+p)};return n.font=ie.fontString(c,t._titleFontStyle,t._titleFontFamily),ie.each(t.title,m),n.font=ie.fontString(u,t._bodyFontStyle,t._bodyFontFamily),ie.each(t.beforeBody.concat(t.afterBody),m),p=t.displayColors?u+2:0,ie.each(i,(function(e){ie.each(e.before,m),ie.each(e.lines,m),ie.each(e.after,m)})),p=0,n.font=ie.fontString(d,t._footerFontStyle,t._footerFontFamily),ie.each(t.footer,m),{width:a+=2*t.xPadding,height:r}}function Tn(e,t){var n,r,a,i,o,s=e._model,l=e._chart,c=e._chart.chartArea,u="center",d="center";s.y<t.height?d="top":s.y>l.height-t.height&&(d="bottom");var p=(c.left+c.right)/2,m=(c.top+c.bottom)/2;"center"===d?(n=function(e){return e<=p},r=function(e){return e>p}):(n=function(e){return e<=t.width/2},r=function(e){return e>=l.width-t.width/2}),a=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},i=function(e){return e-t.width-s.caretSize-s.caretPadding<0},o=function(e){return e<=m?"top":"bottom"},n(s.x)?(u="left",a(s.x)&&(u="center",d=o(s.y))):r(s.x)&&(u="right",i(s.x)&&(u="center",d=o(s.y)));var f=e._options;return{xAlign:f.xAlign?f.xAlign:u,yAlign:f.yAlign?f.yAlign:d}}function On(e,t,n,r){var a=e.x,i=e.y,o=e.caretSize,s=e.caretPadding,l=e.cornerRadius,c=n.xAlign,u=n.yAlign,d=o+s,p=l+s;return"right"===c?a-=t.width:"center"===c&&((a-=t.width/2)+t.width>r.width&&(a=r.width-t.width),a<0&&(a=0)),"top"===u?i+=d:i-="bottom"===u?t.height+d:t.height/2,"center"===u?"left"===c?a+=d:"right"===c&&(a-=d):"left"===c?a-=p:"right"===c&&(a+=p),{x:a,y:i}}function En(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function An(e){return Dn([],Mn(e))}var jn=me.extend({initialize:function(){this._model=Cn(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,n=t.beforeTitle.apply(e,arguments),r=t.title.apply(e,arguments),a=t.afterTitle.apply(e,arguments),i=[];return i=Dn(i,Mn(n)),i=Dn(i,Mn(r)),i=Dn(i,Mn(a))},getBeforeBody:function(){return An(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,a=[];return ie.each(e,(function(e){var i={before:[],lines:[],after:[]};Dn(i.before,Mn(r.beforeLabel.call(n,e,t))),Dn(i.lines,r.label.call(n,e,t)),Dn(i.after,Mn(r.afterLabel.call(n,e,t))),a.push(i)})),a},getAfterBody:function(){return An(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),r=t.footer.apply(e,arguments),a=t.afterFooter.apply(e,arguments),i=[];return i=Dn(i,Mn(n)),i=Dn(i,Mn(r)),i=Dn(i,Mn(a))},update:function(e){var t,n,r=this,a=r._options,i=r._model,o=r._model=Cn(a),s=r._active,l=r._data,c={xAlign:i.xAlign,yAlign:i.yAlign},u={x:i.x,y:i.y},d={width:i.width,height:i.height},p={x:i.caretX,y:i.caretY};if(s.length){o.opacity=1;var m=[],f=[];p=kn[a.position].call(r,s,r._eventPosition);var h=[];for(t=0,n=s.length;t<n;++t)h.push(Sn(s[t]));a.filter&&(h=h.filter((function(e){return a.filter(e,l)}))),a.itemSort&&(h=h.sort((function(e,t){return a.itemSort(e,t,l)}))),ie.each(h,(function(e){m.push(a.callbacks.labelColor.call(r,e,r._chart)),f.push(a.callbacks.labelTextColor.call(r,e,r._chart))})),o.title=r.getTitle(h,l),o.beforeBody=r.getBeforeBody(h,l),o.body=r.getBody(h,l),o.afterBody=r.getAfterBody(h,l),o.footer=r.getFooter(h,l),o.x=p.x,o.y=p.y,o.caretPadding=a.caretPadding,o.labelColors=m,o.labelTextColors=f,o.dataPoints=h,u=On(o,d=Ln(this,o),c=Tn(this,d),r._chart)}else o.opacity=0;return o.xAlign=c.xAlign,o.yAlign=c.yAlign,o.x=u.x,o.y=u.y,o.width=d.width,o.height=d.height,o.caretX=p.x,o.caretY=p.y,r._model=o,e&&a.custom&&a.custom.call(r,o),r},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,a=this.getCaretPosition(e,t,r);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(e,t,n){var r,a,i,o,s,l,c=n.caretSize,u=n.cornerRadius,d=n.xAlign,p=n.yAlign,m=e.x,f=e.y,h=t.width,_=t.height;if("center"===p)s=f+_/2,"left"===d?(a=(r=m)-c,i=r,o=s+c,l=s-c):(a=(r=m+h)+c,i=r,o=s-c,l=s+c);else if("left"===d?(r=(a=m+u+c)-c,i=a+c):"right"===d?(r=(a=m+h-u-c)-c,i=a+c):(r=(a=n.caretX)-c,i=a+c),"top"===p)s=(o=f)-c,l=o;else{s=(o=f+_)+c,l=o;var v=i;i=r,r=v}return{x1:r,x2:a,x3:i,y1:o,y2:s,y3:l}},drawTitle:function(e,t,n){var r,a,i,o=t.title,s=o.length;if(s){var l=xn(t.rtl,t.x,t.width);for(e.x=En(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",r=t.titleFontSize,a=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=ie.fontString(r,t._titleFontStyle,t._titleFontFamily),i=0;i<s;++i)n.fillText(o[i],l.x(e.x),e.y+r/2),e.y+=r+a,i+1===s&&(e.y+=t.titleMarginBottom-a)}},drawBody:function(e,t,n){var r,a,i,o,s,l,c,u,d=t.bodyFontSize,p=t.bodySpacing,m=t._bodyAlign,f=t.body,h=t.displayColors,_=0,v=h?En(t,"left"):0,g=xn(t.rtl,t.x,t.width),y=function(t){n.fillText(t,g.x(e.x+_),e.y+d/2),e.y+=d+p},b=g.textAlign(m);for(n.textAlign=m,n.textBaseline="middle",n.font=ie.fontString(d,t._bodyFontStyle,t._bodyFontFamily),e.x=En(t,b),n.fillStyle=t.bodyFontColor,ie.each(t.beforeBody,y),_=h&&"right"!==b?"center"===m?d/2+1:d+2:0,s=0,c=f.length;s<c;++s){for(r=f[s],a=t.labelTextColors[s],i=t.labelColors[s],n.fillStyle=a,ie.each(r.before,y),l=0,u=(o=r.lines).length;l<u;++l){if(h){var w=g.x(v);n.fillStyle=t.legendColorBackground,n.fillRect(g.leftForLtr(w,d),e.y,d,d),n.lineWidth=1,n.strokeStyle=i.borderColor,n.strokeRect(g.leftForLtr(w,d),e.y,d,d),n.fillStyle=i.backgroundColor,n.fillRect(g.leftForLtr(g.xPlus(w,1),d-2),e.y+1,d-2,d-2),n.fillStyle=a}y(o[l])}ie.each(r.after,y)}_=0,ie.each(t.afterBody,y),e.y-=p},drawFooter:function(e,t,n){var r,a,i=t.footer,o=i.length;if(o){var s=xn(t.rtl,t.x,t.width);for(e.x=En(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=s.textAlign(t._footerAlign),n.textBaseline="middle",r=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=ie.fontString(r,t._footerFontStyle,t._footerFontFamily),a=0;a<o;++a)n.fillText(i[a],s.x(e.x),e.y+r/2),e.y+=r+t.footerSpacing}},drawBackground:function(e,t,n,r){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var a=t.xAlign,i=t.yAlign,o=e.x,s=e.y,l=r.width,c=r.height,u=t.cornerRadius;n.beginPath(),n.moveTo(o+u,s),"top"===i&&this.drawCaret(e,r),n.lineTo(o+l-u,s),n.quadraticCurveTo(o+l,s,o+l,s+u),"center"===i&&"right"===a&&this.drawCaret(e,r),n.lineTo(o+l,s+c-u),n.quadraticCurveTo(o+l,s+c,o+l-u,s+c),"bottom"===i&&this.drawCaret(e,r),n.lineTo(o+u,s+c),n.quadraticCurveTo(o,s+c,o,s+c-u),"center"===i&&"left"===a&&this.drawCaret(e,r),n.lineTo(o,s+u),n.quadraticCurveTo(o,s,o+u,s),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},a=Math.abs(t.opacity<.001)?0:t.opacity,i=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&i&&(e.save(),e.globalAlpha=a,this.drawBackground(r,t,e,n),r.y+=t.yPadding,ie.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),ie.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t=this,n=t._options,r=!1;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:(t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),n.reverse&&t._active.reverse()),(r=!ie.arrayEquals(t._active,t._lastActive))&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),r}}),$n=kn,Pn=jn;Pn.positioners=$n;var Yn=ie.valueOrDefault;function Nn(){return ie.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var a,i,o,s=n[e].length;for(t[e]||(t[e]=[]),a=0;a<s;++a)o=n[e][a],i=Yn(o.type,"xAxes"===e?"category":"linear"),a>=t[e].length&&t[e].push({}),!t[e][a].type||o.type&&o.type!==t[e][a].type?ie.merge(t[e][a],[bn.getScaleDefaults(i),o]):ie.merge(t[e][a],o)}else ie._merger(e,t,n,r)}})}function zn(){return ie.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){var a=t[e]||Object.create(null),i=n[e];"scales"===e?t[e]=Nn(a,i):"scale"===e?t[e]=ie.merge(a,[bn.getScaleDefaults(i.type),i]):ie._merger(e,t,n,r)}})}function In(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=zn(J.global,J[e.type],e.options||{}),e}function Fn(e){var t=e.options;ie.each(e.scales,(function(t){Bt.removeBox(e,t)})),t=zn(J.global,J[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Hn(e,t,n){var r,a=function(e){return e.id===r};do{r=t+n++}while(ie.findIndex(e,a)>=0);return r}function Rn(e){return"top"===e||"bottom"===e}function Bn(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}J._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var qn=function(e,t){return this.construct(e,t),this};ie.extend(qn.prototype,{construct:function(e,t){var n=this;t=In(t);var r=gn.acquireContext(e,t),a=r&&r.canvas,i=a&&a.height,o=a&&a.width;n.id=ie.uid(),n.ctx=r,n.canvas=a,n.config=t,n.width=o,n.height=i,n.aspectRatio=i?o/i:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,qn.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return yn.notify(e,"beforeInit"),ie.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),yn.notify(e,"afterInit"),e},clear:function(){return ie.canvas.clear(this),this},stop:function(){return _e.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,a=n.maintainAspectRatio&&t.aspectRatio||null,i=Math.max(0,Math.floor(ie.getMaximumWidth(r))),o=Math.max(0,Math.floor(a?i/a:ie.getMaximumHeight(r)));if((t.width!==i||t.height!==o)&&(r.width=t.width=i,r.height=t.height=o,r.style.width=i+"px",r.style.height=o+"px",ie.retinaScale(t,n.devicePixelRatio),!e)){var s={width:i,height:o};yn.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;ie.each(t.xAxes,(function(e,n){e.id||(e.id=Hn(t.xAxes,"x-axis-",n))})),ie.each(t.yAxes,(function(e,n){e.id||(e.id=Hn(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],a=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ie.each(r,(function(t){var r=t.options,i=r.id,o=Yn(r.type,t.dtype);Rn(r.position)!==Rn(t.dposition)&&(r.position=t.dposition),a[i]=!0;var s=null;if(i in n&&n[i].type===o)(s=n[i]).options=r,s.ctx=e.ctx,s.chart=e;else{var l=bn.getScaleConstructor(o);if(!l)return;s=new l({id:i,type:o,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),ie.each(a,(function(e,t){e||delete n[t]})),e.scales=n,bn.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],a=n.data.datasets;for(e=0,t=a.length;e<t;e++){var i=a[e],o=n.getDatasetMeta(e),s=i.type||n.config.type;if(o.type&&o.type!==s&&(n.destroyDatasetMeta(e),o=n.getDatasetMeta(e)),o.type=s,o.order=i.order||0,o.index=e,o.controller)o.controller.updateIndex(e),o.controller.linkScales();else{var l=kt[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(n,e),r.push(o.controller)}}return r},resetElements:function(){var e=this;ie.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,r=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),Fn(r),yn._invalidate(r),!1!==yn.notify(r,"beforeUpdate")){r.tooltip._data=r.data;var a=r.buildOrUpdateControllers();for(t=0,n=r.data.datasets.length;t<n;t++)r.getDatasetMeta(t).controller.buildOrUpdateElements();r.updateLayout(),r.options.animation&&r.options.animation.duration&&ie.each(a,(function(e){e.reset()})),r.updateDatasets(),r.tooltip.initialize(),r.lastActive=[],yn.notify(r,"afterUpdate"),r._layers.sort(Bn("z","_idx")),r._bufferedRender?r._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:r.render(e)}},updateLayout:function(){var e=this;!1!==yn.notify(e,"beforeLayout")&&(Bt.update(this,this.width,this.height),e._layers=[],ie.each(e.boxes,(function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())}),e),e._layers.forEach((function(e,t){e._idx=t})),yn.notify(e,"afterScaleUpdate"),yn.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==yn.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t<n;++t)e.updateDataset(t);yn.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,n=t.getDatasetMeta(e),r={meta:n,index:e};!1!==yn.notify(t,"beforeDatasetUpdate",[r])&&(n.controller._update(),yn.notify(t,"afterDatasetUpdate",[r]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,r=Yn(e.duration,n&&n.duration),a=e.lazy;if(!1!==yn.notify(t,"beforeRender")){var i=function(e){yn.notify(t,"afterRender"),ie.callback(n&&n.onComplete,[e],t)};if(n&&r){var o=new he({numSteps:r/16.66,easing:e.easing||n.easing,render:function(e,t){var n=ie.easing.effects[t.easing],r=t.currentStep,a=r/t.numSteps;e.draw(n(a),a,r)},onAnimationProgress:n.onProgress,onAnimationComplete:i});_e.addAnimation(t,o,r,a)}else t.draw(),i(new he({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,r=this;if(r.clear(),ie.isNullOrUndef(e)&&(e=1),r.transition(e),!(r.width<=0||r.height<=0)&&!1!==yn.notify(r,"beforeDraw",[e])){for(n=r._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(r.chartArea);for(r.drawDatasets(e);t<n.length;++t)n[t].draw(r.chartArea);r._drawTooltip(e),yn.notify(r,"afterDraw",[e])}},transition:function(e){for(var t=this,n=0,r=(t.data.datasets||[]).length;n<r;++n)t.isDatasetVisible(n)&&t.getDatasetMeta(n).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,r=this,a=[];for(t=0,n=(r.data.datasets||[]).length;t<n;++t)e&&!r.isDatasetVisible(t)||a.push(r.getDatasetMeta(t));return a.sort(Bn("order","index")),a},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n,r=this;if(!1!==yn.notify(r,"beforeDatasetsDraw",[e])){for(n=(t=r._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)r.drawDataset(t[n],e);yn.notify(r,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this,r={meta:e,index:e.index,easingValue:t};!1!==yn.notify(n,"beforeDatasetDraw",[r])&&(e.controller.draw(t),yn.notify(n,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this,n=t.tooltip,r={tooltip:n,easingValue:e};!1!==yn.notify(t,"beforeTooltipDraw",[r])&&(n.draw(),yn.notify(t,"afterTooltipDraw",[r]))},getElementAtEvent:function(e){return Ot.modes.single(this,e)},getElementsAtEvent:function(e){return Ot.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return Ot.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=Ot.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return Ot.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var r=n._meta[t.id];return r||(r=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),r},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,r=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);r&&(n.unbindEvents(),ie.canvas.clear(n),gn.releaseContext(n.ctx),n.canvas=null,n.ctx=null),yn.notify(n,"destroy"),delete qn.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Pn({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};ie.each(e.options.events,(function(r){gn.addEventListener(e,r,n),t[r]=n})),e.options.responsive&&(n=function(){e.resize()},gn.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,ie.each(t,(function(t,n){gn.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var r,a,i,o=n?"set":"remove";for(a=0,i=e.length;a<i;++a)(r=e[a])&&this.getDatasetMeta(r._datasetIndex).controller[o+"HoverStyle"](r);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+o+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==yn.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),yn.notify(t,"afterEvent",[e]);var a=t._bufferedRequest;return a?t.render(a):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t=this,n=t.options||{},r=n.hover,a=!1;return t.lastActive=t.lastActive||[],"mouseout"===e.type?t.active=[]:t.active=t.getElementsAtEventForMode(e,r.mode,r),ie.callback(n.onHover||n.hover.onHover,[e.native,t.active],t),"mouseup"!==e.type&&"click"!==e.type||n.onClick&&n.onClick.call(t,e.native,t.active),t.lastActive.length&&t.updateHoverStyle(t.lastActive,r.mode,!1),t.active.length&&r.mode&&t.updateHoverStyle(t.active,r.mode,!0),a=!ie.arrayEquals(t.active,t.lastActive),t.lastActive=t.active,a}}),qn.instances={};var Vn=qn;qn.Controller=qn,qn.types={},ie.configMerge=zn,ie.scaleMerge=Nn;var Wn=function(){function e(e,t,n){var r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return null!=e&&"none"!==e}function n(n,r,a){var i=document.defaultView,o=ie._getParentNode(n),s=i.getComputedStyle(n)[r],l=i.getComputedStyle(o)[r],c=t(s),u=t(l),d=Number.POSITIVE_INFINITY;return c||u?Math.min(c?e(s,n,a):d,u?e(l,o,a):d):"none"}ie.where=function(e,t){if(ie.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return ie.each(e,(function(e){t(e)&&n.push(e)})),n},ie.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,a=e.length;r<a;++r)if(t.call(n,e[r],r,e))return r;return-1},ie.findNextWhere=function(e,t,n){ie.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var a=e[r];if(t(a))return a}},ie.findPreviousWhere=function(e,t,n){ie.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var a=e[r];if(t(a))return a}},ie.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ie.almostEquals=function(e,t,n){return Math.abs(e-t)<n},ie.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},ie.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},ie.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},ie.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},ie.toRadians=function(e){return e*(Math.PI/180)},ie.toDegrees=function(e){return e*(180/Math.PI)},ie._decimalPlaces=function(e){if(ie.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},ie.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r),i=Math.atan2(r,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:a}},ie.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},ie.aliasPixel=function(e){return e%2==0?0:.5},ie._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,a=n/2;return Math.round((t-a)*r)/r+a},ie.splineCurve=function(e,t,n,r){var a=e.skip?t:e,i=t,o=n.skip?t:n,s=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)),l=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),c=s/(s+l),u=l/(s+l),d=r*(c=isNaN(c)?0:c),p=r*(u=isNaN(u)?0:u);return{previous:{x:i.x-d*(o.x-a.x),y:i.y-d*(o.y-a.y)},next:{x:i.x+p*(o.x-a.x),y:i.y+p*(o.y-a.y)}}},ie.EPSILON=Number.EPSILON||1e-14,ie.splineCurveMonotone=function(e){var t,n,r,a,i,o,s,l,c,u=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),d=u.length;for(t=0;t<d;++t)if(!(r=u[t]).model.skip){if(n=t>0?u[t-1]:null,(a=t<d-1?u[t+1]:null)&&!a.model.skip){var p=a.model.x-r.model.x;r.deltaK=0!==p?(a.model.y-r.model.y)/p:0}!n||n.model.skip?r.mK=r.deltaK:!a||a.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<d-1;++t)r=u[t],a=u[t+1],r.model.skip||a.model.skip||(ie.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=a.mK=0:(i=r.mK/r.deltaK,o=a.mK/r.deltaK,(l=Math.pow(i,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(l),r.mK=i*s*r.deltaK,a.mK=o*s*r.deltaK)));for(t=0;t<d;++t)(r=u[t]).model.skip||(n=t>0?u[t-1]:null,a=t<d-1?u[t+1]:null,n&&!n.model.skip&&(c=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-c,r.model.controlPointPreviousY=r.model.y-c*r.mK),a&&!a.model.skip&&(c=(a.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+c,r.model.controlPointNextY=r.model.y+c*r.mK))},ie.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},ie.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},ie.niceNum=function(e,t){var n=Math.floor(ie.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},ie.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},ie.getRelativePosition=function(e,t){var n,r,a=e.originalEvent||e,i=e.target||e.srcElement,o=i.getBoundingClientRect(),s=a.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=a.clientX,r=a.clientY);var l=parseFloat(ie.getStyle(i,"padding-left")),c=parseFloat(ie.getStyle(i,"padding-top")),u=parseFloat(ie.getStyle(i,"padding-right")),d=parseFloat(ie.getStyle(i,"padding-bottom")),p=o.right-o.left-l-u,m=o.bottom-o.top-c-d;return{x:n=Math.round((n-o.left-l)/p*i.width/t.currentDevicePixelRatio),y:r=Math.round((r-o.top-c)/m*i.height/t.currentDevicePixelRatio)}},ie.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},ie.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},ie._calculatePadding=function(e,t,n){return(t=ie.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},ie._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},ie.getMaximumWidth=function(e){var t=ie._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-ie._calculatePadding(t,"padding-left",n)-ie._calculatePadding(t,"padding-right",n),a=ie.getConstraintWidth(e);return isNaN(a)?r:Math.min(r,a)},ie.getMaximumHeight=function(e){var t=ie._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-ie._calculatePadding(t,"padding-top",n)-ie._calculatePadding(t,"padding-bottom",n),a=ie.getConstraintHeight(e);return isNaN(a)?r:Math.min(r,a)},ie.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},ie.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,a=e.height,i=e.width;r.height=a*n,r.width=i*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=a+"px",r.style.width=i+"px")}},ie.fontString=function(e,t,n){return t+" "+e+"px "+n},ie.longestText=function(e,t,n,r){var a=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},i=r.garbageCollect=[],r.font=t),e.font=t;var o,s,l,c,u,d=0,p=n.length;for(o=0;o<p;o++)if(null!=(c=n[o])&&!0!==ie.isArray(c))d=ie.measureText(e,a,i,d,c);else if(ie.isArray(c))for(s=0,l=c.length;s<l;s++)null==(u=c[s])||ie.isArray(u)||(d=ie.measureText(e,a,i,d,u));var m=i.length/2;if(m>n.length){for(o=0;o<m;o++)delete a[i[o]];i.splice(0,m)}return d},ie.measureText=function(e,t,n,r,a){var i=t[a];return i||(i=t[a]=e.measureText(a).width,n.push(a)),i>r&&(r=i),r},ie.numberOfLabelLines=function(e){var t=1;return ie.each(e,(function(e){ie.isArray(e)&&e.length>t&&(t=e.length)})),t},ie.color=Y?function(e){return e instanceof CanvasGradient&&(e=J.global.defaultColor),Y(e)}:function(e){return console.error("Color.js not found!"),e},ie.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:ie.color(e).saturate(.5).darken(.1).rgbString()}};function Un(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Kn(e){this.options=e||{}}ie.extend(Kn.prototype,{formats:Un,parse:Un,format:Un,add:Un,diff:Un,startOf:Un,endOf:Un,_create:function(e){return e}}),Kn.override=function(e){ie.extend(Kn.prototype,e)};var Zn={_date:Kn},Gn={formatters:{values:function(e){return ie.isArray(e)?e:""+e},linear:function(e,t,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var a=ie.log10(Math.abs(r)),i="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=ie.log10(Math.abs(e)),s=Math.floor(o)-Math.floor(a);s=Math.max(Math.min(s,20),0),i=e.toExponential(s)}else{var l=-1*Math.floor(a);l=Math.max(Math.min(l,20),0),i=e.toFixed(l)}else i="0";return i},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(ie.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},Jn=ie.isArray,Xn=ie.isNullOrUndef,Qn=ie.valueOrDefault,er=ie.valueAtIndexOrDefault;function tr(e,t){for(var n=[],r=e.length/t,a=0,i=e.length;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function nr(e,t,n){var r,a=e.getTicks().length,i=Math.min(t,a-1),o=e.getPixelForTick(i),s=e._startPixel,l=e._endPixel,c=1e-6;if(!(n&&(r=1===a?Math.max(o-s,l-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(i-1))/2,(o+=i<t?r:-r)<s-c||o>l+c)))return o}function rr(e,t){ie.each(e,(function(e){var n,r=e.gc,a=r.length/2;if(a>t){for(n=0;n<a;++n)delete e.data[r[n]];r.splice(0,a)}}))}function ar(e,t,n,r){var a,i,o,s,l,c,u,d,p,m,f,h,_,v=n.length,g=[],y=[],b=[],w=0,x=0;for(a=0;a<v;++a){if(s=n[a].label,l=n[a].major?t.major:t.minor,e.font=c=l.string,u=r[c]=r[c]||{data:{},gc:[]},d=l.lineHeight,p=m=0,Xn(s)||Jn(s)){if(Jn(s))for(i=0,o=s.length;i<o;++i)f=s[i],Xn(f)||Jn(f)||(p=ie.measureText(e,u.data,u.gc,p,f),m+=d)}else p=ie.measureText(e,u.data,u.gc,p,s),m=d;g.push(p),y.push(m),b.push(d/2),w=Math.max(p,w),x=Math.max(m,x)}function k(e){return{width:g[e]||0,height:y[e]||0,offset:b[e]||0}}return rr(r,v),h=g.indexOf(w),_=y.indexOf(x),{first:k(0),last:k(v-1),widest:k(h),highest:k(_)}}function ir(e){return e.drawTicks?e.tickMarkLength:0}function or(e){var t,n;return e.display?(t=ie.options._parseFont(e),n=ie.options.toPadding(e.padding),t.lineHeight+n.height):0}function sr(e,t){return ie.extend(ie.options._parseFont({fontFamily:Qn(t.fontFamily,e.fontFamily),fontSize:Qn(t.fontSize,e.fontSize),fontStyle:Qn(t.fontStyle,e.fontStyle),lineHeight:Qn(t.lineHeight,e.lineHeight)}),{color:ie.options.resolve([t.fontColor,e.fontColor,J.global.defaultFontColor])})}function lr(e){var t=sr(e,e.minor);return{minor:t,major:e.major.enabled?sr(e,e.major):t}}function cr(e){var t,n,r,a=[];for(n=0,r=e.length;n<r;++n)void 0!==(t=e[n])._index&&a.push(t);return a}function ur(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}function dr(e,t,n,r){var a,i,o,s,l=ur(e),c=(t.length-1)/r;if(!l)return Math.max(c,1);for(o=0,s=(a=ie.math._factorize(l)).length-1;o<s;o++)if((i=a[o])>c)return i;return Math.max(c,1)}function pr(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}function mr(e,t,n){var r,a,i=0,o=t[0];for(n=Math.ceil(n),r=0;r<e.length;r++)a=e[r],r===o?(a._index=r,o=t[++i*n]):delete a.label}function fr(e,t,n,r){var a,i,o,s,l=Qn(n,0),c=Math.min(Qn(r,e.length),e.length),u=0;for(t=Math.ceil(t),r&&(t=(a=r-n)/Math.floor(a/t)),s=l;s<0;)u++,s=Math.round(l+u*t);for(i=Math.max(l,0);i<c;i++)o=e[i],i===s?(o._index=i,u++,s=Math.round(l+u*t)):delete o.label}J._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:Gn.formatters.values,minor:{},major:{}}});var hr=me.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){ie.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var r,a,i,o,s,l=this,c=l.options.ticks,u=c.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=ie.extend({left:0,right:0,top:0,bottom:0},n),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),o=l.buildTicks()||[],(!(o=l.afterBuildTicks(o)||o)||!o.length)&&l.ticks)for(o=[],r=0,a=l.ticks.length;r<a;++r)o.push({value:l.ticks[r],major:!1});return l._ticks=o,s=u<o.length,i=l._convertTicksToLabels(s?tr(o,u):o),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=c.display&&(c.autoSkip||"auto"===c.source)?l._autoSkip(o):o,s&&(i=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=i,l.afterUpdate(),l.minSize},_configure:function(){var e,t,n=this,r=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,r=!r),n._startPixel=e,n._endPixel=t,n._reversePixels=r,n._length=t-e},afterUpdate:function(){ie.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){ie.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){ie.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){ie.callback(this.options.beforeDataLimits,[this])},determineDataLimits:ie.noop,afterDataLimits:function(){ie.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){ie.callback(this.options.beforeBuildTicks,[this])},buildTicks:ie.noop,afterBuildTicks:function(e){var t=this;return Jn(e)&&e.length?ie.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=ie.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){ie.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){ie.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){ie.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,r,a,i,o,s=this,l=s.options,c=l.ticks,u=s.getTicks().length,d=c.minRotation||0,p=c.maxRotation,m=d;!s._isVisible()||!c.display||d>=p||u<=1||!s.isHorizontal()?s.labelRotation=d:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,r=Math.min(s.maxWidth,s.chart.width-t),t+6>(a=l.offset?s.maxWidth/u:r/(u-1))&&(a=r/(u-(l.offset?.5:1)),i=s.maxHeight-ir(l.gridLines)-c.padding-or(l.scaleLabel),o=Math.sqrt(t*t+n*n),m=ie.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/a,1)),Math.asin(Math.min(i/o,1))-Math.asin(n/o))),m=Math.max(d,Math.min(p,m))),s.labelRotation=m)},afterCalculateTickRotation:function(){ie.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ie.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,r=e.options,a=r.ticks,i=r.scaleLabel,o=r.gridLines,s=e._isVisible(),l="bottom"===r.position,c=e.isHorizontal();if(c?t.width=e.maxWidth:s&&(t.width=ir(o)+or(i)),c?s&&(t.height=ir(o)+or(i)):t.height=e.maxHeight,a.display&&s){var u=lr(a),d=e._getLabelSizes(),p=d.first,m=d.last,f=d.widest,h=d.highest,_=.4*u.minor.lineHeight,v=a.padding;if(c){var g=0!==e.labelRotation,y=ie.toRadians(e.labelRotation),b=Math.cos(y),w=Math.sin(y),x=w*f.width+b*(h.height-(g?h.offset:0))+(g?0:_);t.height=Math.min(e.maxHeight,t.height+x+v);var k,D,M=e.getPixelForTick(0)-e.left,S=e.right-e.getPixelForTick(e.getTicks().length-1);g?(k=l?b*p.width+w*p.offset:w*(p.height-p.offset),D=l?w*(m.height-m.offset):b*m.width+w*m.offset):(k=p.width/2,D=m.width/2),e.paddingLeft=Math.max((k-M)*e.width/(e.width-M),0)+3,e.paddingRight=Math.max((D-S)*e.width/(e.width-S),0)+3}else{var C=a.mirror?0:f.width+v+_;t.width=Math.min(e.maxWidth,t.width+C),e.paddingTop=p.height/2,e.paddingBottom=m.height/2}}e.handleMargins(),c?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){ie.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(Xn(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,r,a=this;for(a.ticks=e.map((function(e){return e.value})),a.beforeTickToLabelConversion(),t=a.convertTicksToLabels(e)||a.ticks,a.afterTickToLabelConversion(),n=0,r=e.length;n<r;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=ar(e.ctx,lr(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,r,a;return Jn(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),r=Math.min(t,n),a=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),r=e,a=e),{min:r,max:a,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:ie.noop,getPixelForValue:ie.noop,getValueForPixel:ie.noop,getPixelForTick:function(e){var t=this,n=t.options.offset,r=t._ticks.length,a=1/Math.max(r-(n?0:1),1);return e<0||e>r-1?null:t.getPixelForDecimal(e*a+(n?a/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,r,a,i=this,o=i.options.ticks,s=i._length,l=o.maxTicksLimit||s/i._tickSize()+1,c=o.major.enabled?pr(e):[],u=c.length,d=c[0],p=c[u-1];if(u>l)return mr(e,c,u/l),cr(e);if(r=dr(c,e,s,l),u>0){for(t=0,n=u-1;t<n;t++)fr(e,r,c[t],c[t+1]);return a=u>1?(p-d)/(u-1):null,fr(e,r,ie.isNullOrUndef(a)?0:d-a,d),fr(e,r,p,ie.isNullOrUndef(a)?e.length:p+a),cr(e)}return fr(e,r),cr(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=ie.toRadians(e.labelRotation),r=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),i=e._getLabelSizes(),o=t.autoSkipPadding||0,s=i?i.widest.width+o:0,l=i?i.highest.height+o:0;return e.isHorizontal()?l*r>s*a?s/r:l/a:l*a<s*r?l/r:s/a},_isVisible:function(){var e,t,n,r=this,a=r.chart,i=r.options.display;if("auto"!==i)return!!i;for(e=0,t=a.data.datasets.length;e<t;++e)if(a.isDatasetVisible(e)&&((n=a.getDatasetMeta(e)).xAxisID===r.id||n.yAxisID===r.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,r,a,i,o,s,l,c,u,d,p,m,f,h,_,v,g=this,y=g.chart,b=g.options,w=b.gridLines,x=b.position,k=w.offsetGridLines,D=g.isHorizontal(),M=g._ticksToDraw,S=M.length+(k?1:0),C=ir(w),L=[],T=w.drawBorder?er(w.lineWidth,0,0):0,O=T/2,E=ie._alignPixel,A=function(e){return E(y,e,T)};for("top"===x?(t=A(g.bottom),s=g.bottom-C,c=t-O,d=A(e.top)+O,m=e.bottom):"bottom"===x?(t=A(g.top),d=e.top,m=A(e.bottom)-O,s=t+O,c=g.top+C):"left"===x?(t=A(g.right),o=g.right-C,l=t-O,u=A(e.left)+O,p=e.right):(t=A(g.left),u=e.left,p=A(e.right)-O,o=t+O,l=g.left+C),n=0;n<S;++n)r=M[n]||{},Xn(r.label)&&n<M.length||(n===g.zeroLineIndex&&b.offset===k?(f=w.zeroLineWidth,h=w.zeroLineColor,_=w.zeroLineBorderDash||[],v=w.zeroLineBorderDashOffset||0):(f=er(w.lineWidth,n,1),h=er(w.color,n,"rgba(0,0,0,0.1)"),_=w.borderDash||[],v=w.borderDashOffset||0),void 0!==(a=nr(g,r._index||n,k))&&(i=E(y,a,f),D?o=l=u=p=i:s=c=d=m=i,L.push({tx1:o,ty1:s,tx2:l,ty2:c,x1:u,y1:d,x2:p,y2:m,width:f,color:h,borderDash:_,borderDashOffset:v})));return L.ticksLength=S,L.borderValue=t,L},_computeLabelItems:function(){var e,t,n,r,a,i,o,s,l,c,u,d,p=this,m=p.options,f=m.ticks,h=m.position,_=f.mirror,v=p.isHorizontal(),g=p._ticksToDraw,y=lr(f),b=f.padding,w=ir(m.gridLines),x=-ie.toRadians(p.labelRotation),k=[];for("top"===h?(i=p.bottom-w-b,o=x?"left":"center"):"bottom"===h?(i=p.top+w+b,o=x?"right":"center"):"left"===h?(a=p.right-(_?0:w)-b,o=_?"left":"right"):(a=p.left+(_?0:w)+b,o=_?"right":"left"),e=0,t=g.length;e<t;++e)r=(n=g[e]).label,Xn(r)||(s=p.getPixelForTick(n._index||e)+f.labelOffset,c=(l=n.major?y.major:y.minor).lineHeight,u=Jn(r)?r.length:1,v?(a=s,d="top"===h?((x?1:.5)-u)*c:(x?0:.5)*c):(i=s,d=(1-u)*c/2),k.push({x:a,y:i,rotation:x,label:r,font:l,textOffset:d,textAlign:o}));return k},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var r,a,i,o,s,l=t.ctx,c=t.chart,u=ie._alignPixel,d=n.drawBorder?er(n.lineWidth,0,0):0,p=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(i=0,o=p.length;i<o;++i)r=(s=p[i]).width,a=s.color,r&&a&&(l.save(),l.lineWidth=r,l.strokeStyle=a,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),n.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(d){var m,f,h,_,v=d,g=er(n.lineWidth,p.ticksLength-1,1),y=p.borderValue;t.isHorizontal()?(m=u(c,t.left,v)-v/2,f=u(c,t.right,g)+g/2,h=_=y):(h=u(c,t.top,v)-v/2,_=u(c,t.bottom,g)+g/2,m=f=y),l.lineWidth=d,l.strokeStyle=er(n.color,0),l.beginPath(),l.moveTo(m,h),l.lineTo(f,_),l.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,r,a,i,o,s,l,c=e.ctx,u=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,r=u.length;t<r;++t){if(o=(i=u[t]).font,c.save(),c.translate(i.x,i.y),c.rotate(i.rotation),c.font=o.string,c.fillStyle=o.color,c.textBaseline="middle",c.textAlign=i.textAlign,s=i.label,l=i.textOffset,Jn(s))for(n=0,a=s.length;n<a;++n)c.fillText(""+s[n],0,l),l+=o.lineHeight;else c.fillText(s,0,l);c.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,r=n.scaleLabel;if(r.display){var a,i,o=Qn(r.fontColor,J.global.defaultFontColor),s=ie.options._parseFont(r),l=ie.options.toPadding(r.padding),c=s.lineHeight/2,u=n.position,d=0;if(e.isHorizontal())a=e.left+e.width/2,i="bottom"===u?e.bottom-c-l.bottom:e.top+c+l.top;else{var p="left"===u;a=p?e.left+c+l.top:e.right-c-l.top,i=e.top+e.height/2,d=p?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(a,i),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=o,t.font=s.string,t.fillText(r.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,r=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==r&&e.draw===e._draw?[{z:r,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter((function(r){return(!e||r.type===e)&&(n?r.xAxisID===t.id:r.yAxisID===t.id)}))}});hr.prototype._draw=hr.prototype.draw;var _r=hr,vr=ie.isNullOrUndef,gr={position:"bottom"},yr=_r.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),r=t.options.ticks,a=r.min,i=r.max,o=0,s=n.length-1;void 0!==a&&(e=n.indexOf(a))>=0&&(o=e),void 0!==i&&(e=n.indexOf(i))>=0&&(s=e),t.minIndex=o,t.maxIndex=s,t.min=n[o],t.max=n[s]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,r=e.maxIndex;e.ticks=0===n&&r===t.length-1?t:t.slice(n,r+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(r.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;_r.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,a,i,o=this;return vr(t)||vr(n)||(e=o.chart.data.datasets[n].data[t]),vr(e)||(r=o.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(a=o._getLabels(),e=ie.valueOrDefault(r,e),t=-1!==(i=a.indexOf(e))?i:t,isNaN(t)&&(t=e)),o.getPixelForDecimal((t-o._startValue)/o._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),br=gr;yr._defaults=br;var wr=ie.noop,xr=ie.isNullOrUndef;function kr(e,t){var n,r,a,i,o=[],s=1e-14,l=e.stepSize,c=l||1,u=e.maxTicks-1,d=e.min,p=e.max,m=e.precision,f=t.min,h=t.max,_=ie.niceNum((h-f)/u/c)*c;if(_<s&&xr(d)&&xr(p))return[f,h];(i=Math.ceil(h/_)-Math.floor(f/_))>u&&(_=ie.niceNum(i*_/u/c)*c),l||xr(m)?n=Math.pow(10,ie._decimalPlaces(_)):(n=Math.pow(10,m),_=Math.ceil(_*n)/n),r=Math.floor(f/_)*_,a=Math.ceil(h/_)*_,l&&(!xr(d)&&ie.almostWhole(d/_,_/1e3)&&(r=d),!xr(p)&&ie.almostWhole(p/_,_/1e3)&&(a=p)),i=(a-r)/_,i=ie.almostEquals(i,Math.round(i),_/1e3)?Math.round(i):Math.ceil(i),r=Math.round(r*n)/n,a=Math.round(a*n)/n,o.push(xr(d)?r:d);for(var v=1;v<i;++v)o.push(Math.round((r+v*_)*n)/n);return o.push(xr(p)?a:p),o}var Dr=_r.extend({getRightValue:function(e){return"string"==typeof e?+e:_r.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=ie.sign(e.min),r=ie.sign(e.max);n<0&&r<0?e.max=0:n>0&&r>0&&(e.min=0)}var a=void 0!==t.min||void 0!==t.suggestedMin,i=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),a!==i&&e.min>=e.max&&(a?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,r=n.stepSize,a=n.maxTicksLimit;return r?e=Math.ceil(t.max/r)-Math.floor(t.min/r)+1:(e=t._computeTickLimit(),a=a||11),a&&(e=Math.min(a,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:wr,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:ie.valueOrDefault(t.fixedStepSize,t.stepSize)},a=e.ticks=kr(r,e);e.handleDirectionalChanges(),e.max=ie.max(a),e.min=ie.min(a),t.reverse?(a.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),_r.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),r=t.min,a=t.max;_r.prototype._configure.call(t),t.options.offset&&n.length&&(r-=e=(a-r)/Math.max(n.length-1,1)/2,a+=e),t._startValue=r,t._endValue=a,t._valueRange=a-r}}),Mr={position:"left",ticks:{callback:Gn.formatters.linear}},Sr=0,Cr=1;function Lr(e,t,n){var r=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[r]&&(e[r]={pos:[],neg:[]}),e[r]}function Tr(e,t,n,r){var a,i,o=e.options,s=Lr(t,o.stacked,n),l=s.pos,c=s.neg,u=r.length;for(a=0;a<u;++a)i=e._parseValue(r[a]),isNaN(i.min)||isNaN(i.max)||n.data[a].hidden||(l[a]=l[a]||0,c[a]=c[a]||0,o.relativePoints?l[a]=100:i.min<0||i.max<0?c[a]+=i.min:l[a]+=i.max)}function Or(e,t,n){var r,a,i=n.length;for(r=0;r<i;++r)a=e._parseValue(n[r]),isNaN(a.min)||isNaN(a.max)||t.data[r].hidden||(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}var Er=Dr.extend({determineDataLimits:function(){var e,t,n,r,a=this,i=a.options,o=a.chart.data.datasets,s=a._getMatchingVisibleMetas(),l=i.stacked,c={},u=s.length;if(a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,void 0===l)for(e=0;!l&&e<u;++e)l=void 0!==(t=s[e]).stack;for(e=0;e<u;++e)n=o[(t=s[e]).index].data,l?Tr(a,c,t,n):Or(a,t,n);ie.each(c,(function(e){r=e.pos.concat(e.neg),a.min=Math.min(a.min,ie.min(r)),a.max=Math.max(a.max,ie.max(r))})),a.min=ie.isFinite(a.min)&&!isNaN(a.min)?a.min:Sr,a.max=ie.isFinite(a.max)&&!isNaN(a.max)?a.max:Cr,a.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=ie.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),Ar=Mr;Er._defaults=Ar;var jr=ie.valueOrDefault,$r=ie.math.log10;function Pr(e,t){var n,r,a=[],i=jr(e.min,Math.pow(10,Math.floor($r(t.min)))),o=Math.floor($r(t.max)),s=Math.ceil(t.max/Math.pow(10,o));0===i?(n=Math.floor($r(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),a.push(i),i=r*Math.pow(10,n)):(n=Math.floor($r(i)),r=Math.floor(i/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{a.push(i),10==++r&&(r=1,l=++n>=0?1:l),i=Math.round(r*Math.pow(10,n)*l)/l}while(n<o||n===o&&r<s);var c=jr(e.max,i);return a.push(c),a}var Yr={position:"left",ticks:{callback:Gn.formatters.logarithmic}};function Nr(e,t){return ie.isFinite(e)&&e>=0?e:t}var zr=_r.extend({determineDataLimits:function(){var e,t,n,r,a,i,o=this,s=o.options,l=o.chart,c=l.data.datasets,u=o.isHorizontal();function d(e){return u?e.xAxisID===o.id:e.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var p=s.stacked;if(void 0===p)for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t)&&void 0!==t.stack){p=!0;break}if(s.stacked||p){var m={};for(e=0;e<c.length;e++){var f=[(t=l.getDatasetMeta(e)).type,void 0===s.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(l.isDatasetVisible(e)&&d(t))for(void 0===m[f]&&(m[f]=[]),a=0,i=(r=c[e].data).length;a<i;a++){var h=m[f];n=o._parseValue(r[a]),isNaN(n.min)||isNaN(n.max)||t.data[a].hidden||n.min<0||n.max<0||(h[a]=h[a]||0,h[a]+=n.max)}}ie.each(m,(function(e){if(e.length>0){var t=ie.min(e),n=ie.max(e);o.min=Math.min(o.min,t),o.max=Math.max(o.max,n)}}))}else for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t))for(a=0,i=(r=c[e].data).length;a<i;a++)n=o._parseValue(r[a]),isNaN(n.min)||isNaN(n.max)||t.data[a].hidden||n.min<0||n.max<0||(o.min=Math.min(n.min,o.min),o.max=Math.max(n.max,o.max),0!==n.min&&(o.minNotZero=Math.min(n.min,o.minNotZero)));o.min=ie.isFinite(o.min)?o.min:null,o.max=ie.isFinite(o.max)?o.max:null,o.minNotZero=ie.isFinite(o.minNotZero)?o.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,n=1,r=10;e.min=Nr(t.min,e.min),e.max=Nr(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor($r(e.min))-1),e.max=Math.pow(10,Math.floor($r(e.max))+1)):(e.min=n,e.max=r)),null===e.min&&(e.min=Math.pow(10,Math.floor($r(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor($r(e.min))+1):r),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor($r(e.max))):e.minNotZero=n)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:Nr(t.min),max:Nr(t.max)},a=e.ticks=Pr(r,e);e.max=ie.max(a),e.min=ie.min(a),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&a.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),_r.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor($r(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;_r.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=jr(e.options.ticks.fontSize,J.global.defaultFontSize)/e._length),e._startValue=$r(t),e._valueOffset=n,e._valueRange=($r(e.max)-$r(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=($r(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),Ir=Yr;zr._defaults=Ir;var Fr=ie.valueOrDefault,Hr=ie.valueAtIndexOrDefault,Rr=ie.options.resolve,Br={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Gn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function qr(e){var t=e.ticks;return t.display&&e.display?Fr(t.fontSize,J.global.defaultFontSize)+2*t.backdropPaddingY:0}function Vr(e,t,n){return ie.isArray(n)?{w:ie.longestText(e,e.font,n),h:n.length*t}:{w:e.measureText(n).width,h:t}}function Wr(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function Ur(e){var t,n,r,a=ie.options._parseFont(e.options.pointLabels),i={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=a.string,e._pointLabelSizes=[];var s=e.chart.data.labels.length;for(t=0;t<s;t++){r=e.getPointPosition(t,e.drawingArea+5),n=Vr(e.ctx,a.lineHeight,e.pointLabels[t]),e._pointLabelSizes[t]=n;var l=e.getIndexAngle(t),c=ie.toDegrees(l)%360,u=Wr(c,r.x,n.w,0,180),d=Wr(c,r.y,n.h,90,270);u.start<i.l&&(i.l=u.start,o.l=l),u.end>i.r&&(i.r=u.end,o.r=l),d.start<i.t&&(i.t=d.start,o.t=l),d.end>i.b&&(i.b=d.end,o.b=l)}e.setReductions(e.drawingArea,i,o)}function Kr(e){return 0===e||180===e?"center":e<180?"left":"right"}function Zr(e,t,n,r){var a,i,o=n.y+r/2;if(ie.isArray(t))for(a=0,i=t.length;a<i;++a)e.fillText(t[a],n.x,o),o+=r;else e.fillText(t,n.x,o)}function Gr(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Jr(e){var t=e.ctx,n=e.options,r=n.pointLabels,a=qr(n),i=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),o=ie.options._parseFont(r);t.save(),t.font=o.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?a/2:0,c=e.getPointPosition(s,i+l+5),u=Hr(r.fontColor,s,J.global.defaultFontColor);t.fillStyle=u;var d=e.getIndexAngle(s),p=ie.toDegrees(d);t.textAlign=Kr(p),Gr(p,e._pointLabelSizes[s],c),Zr(t,e.pointLabels[s],c,o.lineHeight)}t.restore()}function Xr(e,t,n,r){var a,i=e.ctx,o=t.circular,s=e.chart.data.labels.length,l=Hr(t.color,r-1),c=Hr(t.lineWidth,r-1);if((o||s)&&l&&c){if(i.save(),i.strokeStyle=l,i.lineWidth=c,i.setLineDash&&(i.setLineDash(t.borderDash||[]),i.lineDashOffset=t.borderDashOffset||0),i.beginPath(),o)i.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{a=e.getPointPosition(0,n),i.moveTo(a.x,a.y);for(var u=1;u<s;u++)a=e.getPointPosition(u,n),i.lineTo(a.x,a.y)}i.closePath(),i.stroke(),i.restore()}}function Qr(e){return ie.isNumber(e)?e:0}var ea=Dr.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=qr(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;ie.each(t.data.datasets,(function(a,i){if(t.isDatasetVisible(i)){var o=t.getDatasetMeta(i);ie.each(a.data,(function(t,a){var i=+e.getRightValue(t);isNaN(i)||o.data[a].hidden||(n=Math.min(i,n),r=Math.max(i,r))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/qr(this.options))},convertTicksToLabels:function(){var e=this;Dr.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=ie.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?Ur(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,a=t.l/Math.sin(n.l),i=Math.max(t.r-r.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);a=Qr(a),i=Qr(i),o=Qr(o),s=Qr(s),r.drawingArea=Math.min(Math.floor(e-(a+i)/2),Math.floor(e-(o+s)/2)),r.setCenterPoint(a,i,o,s)},setCenterPoint:function(e,t,n,r){var a=this,i=a.width-t-a.drawingArea,o=e+a.drawingArea,s=n+a.drawingArea,l=a.height-a.paddingTop-r-a.drawingArea;a.xCenter=Math.floor((o+i)/2+a.left),a.yCenter=Math.floor((s+l)/2+a.top+a.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(ie.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,r=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(r)*t+n.xCenter,y:Math.sin(r)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,n=t.min,r=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:n<0&&r<0?r:n>0&&r>0?n:0)},_drawGrid:function(){var e,t,n,r=this,a=r.ctx,i=r.options,o=i.gridLines,s=i.angleLines,l=Fr(s.lineWidth,o.lineWidth),c=Fr(s.color,o.color);if(i.pointLabels.display&&Jr(r),o.display&&ie.each(r.ticks,(function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),Xr(r,o,t,n))})),s.display&&l&&c){for(a.save(),a.lineWidth=l,a.strokeStyle=c,a.setLineDash&&(a.setLineDash(Rr([s.borderDash,o.borderDash,[]])),a.lineDashOffset=Rr([s.borderDashOffset,o.borderDashOffset,0])),e=r.chart.data.labels.length-1;e>=0;e--)t=r.getDistanceFromCenterForValue(i.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),a.beginPath(),a.moveTo(r.xCenter,r.yCenter),a.lineTo(n.x,n.y),a.stroke();a.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var r,a,i=e.getIndexAngle(0),o=ie.options._parseFont(n),s=Fr(n.fontColor,J.global.defaultFontColor);t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",ie.each(e.ticks,(function(i,l){(0!==l||n.reverse)&&(r=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(a=t.measureText(i).width,t.fillStyle=n.backdropColor,t.fillRect(-a/2-n.backdropPaddingX,-r-o.size/2-n.backdropPaddingY,a+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(i,0,-r))})),t.restore()}},_drawTitle:ie.noop}),ta=Br;ea._defaults=ta;var na=ie._deprecated,ra=ie.options.resolve,aa=ie.valueOrDefault,ia=Number.MIN_SAFE_INTEGER||-9007199254740991,oa=Number.MAX_SAFE_INTEGER||9007199254740991,sa={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},la=Object.keys(sa);function ca(e,t){return e-t}function ua(e){var t,n,r,a={},i=[];for(t=0,n=e.length;t<n;++t)a[r=e[t]]||(a[r]=!0,i.push(r));return i}function da(e){return ie.valueOrDefault(e.time.min,e.ticks.min)}function pa(e){return ie.valueOrDefault(e.time.max,e.ticks.max)}function ma(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var a,i,o,s,l,c=[],u=[t];for(a=0,i=e.length;a<i;++a)(s=e[a])>t&&s<n&&u.push(s);for(u.push(n),a=0,i=u.length;a<i;++a)l=u[a+1],o=u[a-1],s=u[a],void 0!==o&&void 0!==l&&Math.round((l+o)/2)===s||c.push({time:s,pos:a/(i-1)});return c}function fa(e,t,n){for(var r,a,i,o=0,s=e.length-1;o>=0&&o<=s;){if(a=e[(r=o+s>>1)-1]||null,i=e[r],!a)return{lo:null,hi:i};if(i[t]<n)o=r+1;else{if(!(a[t]>n))return{lo:a,hi:i};s=r-1}}return{lo:i,hi:null}}function ha(e,t,n,r){var a=fa(e,t,n),i=a.lo?a.hi?a.lo:e[e.length-2]:e[0],o=a.lo?a.hi?a.hi:e[e.length-1]:e[1],s=o[t]-i[t],l=s?(n-i[t])/s:0,c=(o[r]-i[r])*l;return i[r]+c}function _a(e,t){var n=e._adapter,r=e.options.time,a=r.parser,i=a||r.format,o=t;return"function"==typeof a&&(o=a(o)),ie.isFinite(o)||(o="string"==typeof i?n.parse(o,i):n.parse(o)),null!==o?+o:(a||"function"!=typeof i||(o=i(t),ie.isFinite(o)||(o=n.parse(o))),o)}function va(e,t){if(ie.isNullOrUndef(t))return null;var n=e.options.time,r=_a(e,e.getRightValue(t));return null===r||n.round&&(r=+e._adapter.startOf(r,n.round)),r}function ga(e,t,n,r){var a,i,o,s=la.length;for(a=la.indexOf(e);a<s-1;++a)if(o=(i=sa[la[a]]).steps?i.steps:oa,i.common&&Math.ceil((n-t)/(o*i.size))<=r)return la[a];return la[s-1]}function ya(e,t,n,r,a){var i,o;for(i=la.length-1;i>=la.indexOf(n);i--)if(o=la[i],sa[o].common&&e._adapter.diff(a,r,o)>=t-1)return o;return la[n?la.indexOf(n):0]}function ba(e){for(var t=la.indexOf(e)+1,n=la.length;t<n;++t)if(sa[la[t]].common)return la[t]}function wa(e,t,n,r){var a,i=e._adapter,o=e.options,s=o.time,l=s.unit||ga(s.minUnit,t,n,r),c=ra([s.stepSize,s.unitStepSize,1]),u="week"===l&&s.isoWeekday,d=t,p=[];if(u&&(d=+i.startOf(d,"isoWeek",u)),d=+i.startOf(d,u?"day":l),i.diff(n,t,l)>1e5*c)throw t+" and "+n+" are too far apart with stepSize of "+c+" "+l;for(a=d;a<n;a=+i.add(a,c,l))p.push(a);return a!==n&&"ticks"!==o.bounds||p.push(a),p}function xa(e,t,n,r,a){var i,o,s=0,l=0;return a.offset&&t.length&&(i=ha(e,"time",t[0],"pos"),s=1===t.length?1-i:(ha(e,"time",t[1],"pos")-i)/2,o=ha(e,"time",t[t.length-1],"pos"),l=1===t.length?o:(o-ha(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}function ka(e,t,n,r){var a,i,o=e._adapter,s=+o.startOf(t[0].value,r),l=t[t.length-1].value;for(a=s;a<=l;a=+o.add(a,1,r))(i=n[a])>=0&&(t[i].major=!0);return t}function Da(e,t,n){var r,a,i=[],o={},s=t.length;for(r=0;r<s;++r)o[a=t[r]]=r,i.push({value:a,major:!1});return 0!==s&&n?ka(e,i,o,n):i}var Ma={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},Sa=_r.extend({initialize:function(){this.mergeTicksOptions(),_r.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),r=e._adapter=new Zn._date(t.adapters.date);return na("time scale",n.format,"time.format","time.parser"),na("time scale",n.min,"time.min","ticks.min"),na("time scale",n.max,"time.max","ticks.max"),ie.mergeIf(n.displayFormats,r.formats()),_r.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),_r.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,a,i,o,s=this,l=s.chart,c=s._adapter,u=s.options,d=u.time.unit||"day",p=oa,m=ia,f=[],h=[],_=[],v=s._getLabels();for(e=0,n=v.length;e<n;++e)_.push(va(s,v[e]));for(e=0,n=(l.data.datasets||[]).length;e<n;++e)if(l.isDatasetVisible(e))if(a=l.data.datasets[e].data,ie.isObject(a[0]))for(h[e]=[],t=0,r=a.length;t<r;++t)i=va(s,a[t]),f.push(i),h[e][t]=i;else h[e]=_.slice(0),o||(f=f.concat(_),o=!0);else h[e]=[];_.length&&(p=Math.min(p,_[0]),m=Math.max(m,_[_.length-1])),f.length&&(f=n>1?ua(f).sort(ca):f.sort(ca),p=Math.min(p,f[0]),m=Math.max(m,f[f.length-1])),p=va(s,da(u))||p,m=va(s,pa(u))||m,p=p===oa?+c.startOf(Date.now(),d):p,m=m===ia?+c.endOf(Date.now(),d)+1:m,s.min=Math.min(p,m),s.max=Math.max(p+1,m),s._table=[],s._timestamps={data:f,datasets:h,labels:_}},buildTicks:function(){var e,t,n,r=this,a=r.min,i=r.max,o=r.options,s=o.ticks,l=o.time,c=r._timestamps,u=[],d=r.getLabelCapacity(a),p=s.source,m=o.distribution;for(c="data"===p||"auto"===p&&"series"===m?c.data:"labels"===p?c.labels:wa(r,a,i,d),"ticks"===o.bounds&&c.length&&(a=c[0],i=c[c.length-1]),a=va(r,da(o))||a,i=va(r,pa(o))||i,e=0,t=c.length;e<t;++e)(n=c[e])>=a&&n<=i&&u.push(n);return r.min=a,r.max=i,r._unit=l.unit||(s.autoSkip?ga(l.minUnit,r.min,r.max,d):ya(r,u.length,l.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?ba(r._unit):void 0,r._table=ma(r._timestamps.data,a,i,m),r._offsets=xa(r._table,u,a,i,o),s.reverse&&u.reverse(),Da(r,u,r._majorUnit)},getLabelForIndex:function(e,t){var n=this,r=n._adapter,a=n.chart.data,i=n.options.time,o=a.labels&&e<a.labels.length?a.labels[e]:"",s=a.datasets[t].data[e];return ie.isObject(s)&&(o=n.getRightValue(s)),i.tooltipFormat?r.format(_a(n,o),i.tooltipFormat):"string"==typeof o?o:r.format(_a(n,o),i.displayFormats.datetime)},tickFormatFunction:function(e,t,n,r){var a=this,i=a._adapter,o=a.options,s=o.time.displayFormats,l=s[a._unit],c=a._majorUnit,u=s[c],d=n[t],p=o.ticks,m=c&&u&&d&&d.major,f=i.format(e,r||(m?u:l)),h=m?p.major:p.minor,_=ra([h.callback,h.userCallback,p.callback,p.userCallback]);return _?_(f,t,n):f},convertTicksToLabels:function(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(this.tickFormatFunction(e[t].value,t,e));return r},getPixelForOffset:function(e){var t=this,n=t._offsets,r=ha(t._table,"time",e,"pos");return t.getPixelForDecimal((n.start+r)*n.factor)},getPixelForValue:function(e,t,n){var r=this,a=null;if(void 0!==t&&void 0!==n&&(a=r._timestamps.datasets[n][t]),null===a&&(a=va(r,e)),null!==a)return r.getPixelForOffset(a)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._offsets,r=t.getDecimalForPixel(e)/n.factor-n.end,a=ha(t._table,"pos",r,"time");return t._adapter._create(a)},_getLabelSize:function(e){var t=this,n=t.options.ticks,r=t.ctx.measureText(e).width,a=ie.toRadians(t.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(a),o=Math.sin(a),s=aa(n.fontSize,J.global.defaultFontSize);return{w:r*i+s*o,h:r*o+s*i}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,i=t.tickFormatFunction(e,0,Da(t,[e],t._majorUnit),a),o=t._getLabelSize(i),s=Math.floor(t.isHorizontal()?t.width/o.w:t.height/o.h);return t.options.offset&&s--,s>0?s:1}}),Ca=Ma;Sa._defaults=Ca;var La={category:yr,linear:Er,logarithmic:zr,radialLinear:ea,time:Sa},Ta={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Zn._date.override("function"==typeof e?{_id:"moment",formats:function(){return Ta},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e(t).diff(e(n),r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),J._set("global",{plugins:{filler:{propagate:!0}}});var Oa={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),a=r&&n.isDatasetVisible(t)&&r.dataset._children||[],i=a.length||0;return i?function(e,t){return t<i&&a[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return ie.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function Ea(e,t,n){var r,a=e._model||{},i=a.fill;if(void 0===i&&(i=!!a.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(r=parseFloat(i,10),isFinite(r)&&Math.floor(r)===r)return"-"!==i[0]&&"+"!==i[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function Aa(e){var t,n=e.el._model||{},r=e.el._scale||{},a=e.fill,i=null;if(isFinite(a))return null;if("start"===a?i=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===a?i=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?i=n.scaleZero:r.getBasePixel&&(i=r.getBasePixel()),null!=i){if(void 0!==i.x&&void 0!==i.y)return i;if(ie.isFinite(i))return{x:(t=r.isHorizontal())?i:null,y:t?null:i}}return null}function ja(e){var t,n,r,a,i,o=e.el._scale,s=o.options,l=o.chart.data.labels.length,c=e.fill,u=[];if(!l)return null;for(t=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,r=o.getPointPositionForValue(0,t),a=0;a<l;++a)i="start"===c||"end"===c?o.getPointPositionForValue(a,"start"===c?t:n):o.getBasePosition(a),s.gridLines.circular&&(i.cx=r.x,i.cy=r.y,i.angle=o.getIndexAngle(a)-Math.PI/2),u.push(i);return u}function $a(e){return(e.el._scale||{}).getPointPositionForValue?ja(e):Aa(e)}function Pa(e,t,n){var r,a=e[t].fill,i=[t];if(!n)return a;for(;!1!==a&&-1===i.indexOf(a);){if(!isFinite(a))return a;if(!(r=e[a]))return!1;if(r.visible)return a;i.push(a),a=r.fill}return!1}function Ya(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),Oa[n](e))}function Na(e){return e&&!e.skip}function za(e,t,n,r,a){var i,o,s,l;if(r&&a){for(e.moveTo(t[0].x,t[0].y),i=1;i<r;++i)ie.canvas.lineTo(e,t[i-1],t[i]);if(void 0===n[0].angle)for(e.lineTo(n[a-1].x,n[a-1].y),i=a-1;i>0;--i)ie.canvas.lineTo(e,n[i],n[i-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),i=a-1;i>0;--i)e.arc(o,s,l,n[i].angle,n[i-1].angle,!0)}}function Ia(e,t,n,r,a,i){var o,s,l,c,u,d,p,m,f=t.length,h=r.spanGaps,_=[],v=[],g=0,y=0;for(e.beginPath(),o=0,s=f;o<s;++o)u=n(c=t[l=o%f]._view,l,r),d=Na(c),p=Na(u),i&&void 0===m&&d&&(s=f+(m=o+1)),d&&p?(g=_.push(c),y=v.push(u)):g&&y&&(h?(d&&_.push(c),p&&v.push(u)):(za(e,_,v,g,y),g=y=0,_=[],v=[]));za(e,_,v,g,y),e.closePath(),e.fillStyle=a,e.fill()}var Fa={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,a,i,o=(e.data.datasets||[]).length,s=t.propagate,l=[];for(r=0;r<o;++r)i=null,(a=(n=e.getDatasetMeta(r)).dataset)&&a._model&&a instanceof Ve.Line&&(i={visible:e.isDatasetVisible(r),fill:Ea(a,r,o),chart:e,el:a}),n.$filler=i,l.push(i);for(r=0;r<o;++r)(i=l[r])&&(i.fill=Pa(l,r,s),i.boundary=$a(i),i.mapper=Ya(i))},beforeDatasetsDraw:function(e){var t,n,r,a,i,o,s,l=e._getSortedVisibleDatasetMetas(),c=e.ctx;for(n=l.length-1;n>=0;--n)(t=l[n].$filler)&&t.visible&&(a=(r=t.el)._view,i=r._children||[],o=t.mapper,s=a.backgroundColor||J.global.defaultColor,o&&s&&i.length&&(ie.canvas.clipArea(c,e.chartArea),Ia(c,i,o,a,s,r._loop),ie.canvas.unclipArea(c)))}},Ha=ie.rtl.getRtlAdapter,Ra=ie.noop,Ba=ie.valueOrDefault;function qa(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}J._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,a=r.getDatasetMeta(n);a.hidden=null===a.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var a=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:a.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:a.borderWidth,strokeStyle:a.borderColor,pointStyle:a.pointStyle,rotation:a.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,r,a=document.createElement("ul"),i=e.data.datasets;for(a.setAttribute("class",e.id+"-legend"),t=0,n=i.length;t<n;t++)(r=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=i[t].backgroundColor,i[t].label&&r.appendChild(document.createTextNode(i[t].label));return a.outerHTML}});var Va=me.extend({initialize:function(e){var t=this;ie.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:Ra,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Ra,beforeSetDimensions:Ra,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Ra,beforeBuildLabels:Ra,buildLabels:function(){var e=this,t=e.options.labels||{},n=ie.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:Ra,beforeFit:Ra,fit:function(){var e=this,t=e.options,n=t.labels,r=t.display,a=e.ctx,i=ie.options._parseFont(n),o=i.size,s=e.legendHitBoxes=[],l=e.minSize,c=e.isHorizontal();if(c?(l.width=e.maxWidth,l.height=r?10:0):(l.width=r?10:0,l.height=e.maxHeight),r){if(a.font=i.string,c){var u=e.lineWidths=[0],d=0;a.textAlign="left",a.textBaseline="middle",ie.each(e.legendItems,(function(e,t){var r=qa(n,o)+o/2+a.measureText(e.text).width;(0===t||u[u.length-1]+r+2*n.padding>l.width)&&(d+=o+n.padding,u[u.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:r,height:o},u[u.length-1]+=r+n.padding})),l.height+=d}else{var p=n.padding,m=e.columnWidths=[],f=e.columnHeights=[],h=n.padding,_=0,v=0;ie.each(e.legendItems,(function(e,t){var r=qa(n,o)+o/2+a.measureText(e.text).width;t>0&&v+o+2*p>l.height&&(h+=_+n.padding,m.push(_),f.push(v),_=0,v=0),_=Math.max(_,r),v+=o+p,s[t]={left:0,top:0,width:r,height:o}})),h+=_,m.push(_),f.push(v),l.width+=h}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:Ra,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=J.global,a=r.defaultColor,i=r.elements.line,o=e.height,s=e.columnHeights,l=e.width,c=e.lineWidths;if(t.display){var u,d=Ha(t.rtl,e.left,e.minSize.width),p=e.ctx,m=Ba(n.fontColor,r.defaultFontColor),f=ie.options._parseFont(n),h=f.size;p.textAlign=d.textAlign("left"),p.textBaseline="middle",p.lineWidth=.5,p.strokeStyle=m,p.fillStyle=m,p.font=f.string;var _=qa(n,h),v=e.legendHitBoxes,g=function(e,t,r){if(!(isNaN(_)||_<=0)){p.save();var o=Ba(r.lineWidth,i.borderWidth);if(p.fillStyle=Ba(r.fillStyle,a),p.lineCap=Ba(r.lineCap,i.borderCapStyle),p.lineDashOffset=Ba(r.lineDashOffset,i.borderDashOffset),p.lineJoin=Ba(r.lineJoin,i.borderJoinStyle),p.lineWidth=o,p.strokeStyle=Ba(r.strokeStyle,a),p.setLineDash&&p.setLineDash(Ba(r.lineDash,i.borderDash)),n&&n.usePointStyle){var s=_*Math.SQRT2/2,l=d.xPlus(e,_/2),c=t+h/2;ie.canvas.drawPoint(p,r.pointStyle,s,l,c,r.rotation)}else p.fillRect(d.leftForLtr(e,_),t,_,h),0!==o&&p.strokeRect(d.leftForLtr(e,_),t,_,h);p.restore()}},y=function(e,t,n,r){var a=h/2,i=d.xPlus(e,_+a),o=t+a;p.fillText(n.text,i,o),n.hidden&&(p.beginPath(),p.lineWidth=2,p.moveTo(i,o),p.lineTo(d.xPlus(i,r),o),p.stroke())},b=function(e,r){switch(t.align){case"start":return n.padding;case"end":return e-r;default:return(e-r+n.padding)/2}},w=e.isHorizontal();u=w?{x:e.left+b(l,c[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+b(o,s[0]),line:0},ie.rtl.overrideTextDirection(e.ctx,t.textDirection);var x=h+n.padding;ie.each(e.legendItems,(function(t,r){var a=p.measureText(t.text).width,i=_+h/2+a,m=u.x,f=u.y;d.setWidth(e.minSize.width),w?r>0&&m+i+n.padding>e.left+e.minSize.width&&(f=u.y+=x,u.line++,m=u.x=e.left+b(l,c[u.line])):r>0&&f+x>e.top+e.minSize.height&&(m=u.x=m+e.columnWidths[u.line]+n.padding,u.line++,f=u.y=e.top+b(o,s[u.line]));var k=d.x(m);g(k,f,t),v[r].left=d.leftForLtr(k,v[r].width),v[r].top=f,y(k,f,t,a),w?u.x+=i+n.padding:u.y+=x})),ie.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,r,a,i=this;if(e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom)for(a=i.legendHitBoxes,n=0;n<a.length;++n)if(e>=(r=a[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return i.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,a="mouseup"===e.type?"click":e.type;if("mousemove"===a){if(!r.onHover&&!r.onLeave)return}else{if("click"!==a)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===a?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function Wa(e,t){var n=new Va({ctx:e.ctx,options:t,chart:e});Bt.configure(e,n,t),Bt.addBox(e,n),e.legend=n}var Ua={id:"legend",_element:Va,beforeInit:function(e){var t=e.options.legend;t&&Wa(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(ie.mergeIf(t,J.global.legend),n?(Bt.configure(e,n,t),n.options=t):Wa(e,t)):n&&(Bt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Ka=ie.noop;J._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Za=me.extend({initialize:function(e){var t=this;ie.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:Ka,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Ka,beforeSetDimensions:Ka,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Ka,beforeBuildLabels:Ka,buildLabels:Ka,afterBuildLabels:Ka,beforeFit:Ka,fit:function(){var e,t=this,n=t.options,r=t.minSize={},a=t.isHorizontal();n.display?(e=(ie.isArray(n.text)?n.text.length:1)*ie.options._parseFont(n).lineHeight+2*n.padding,t.width=r.width=a?t.maxWidth:e,t.height=r.height=a?e:t.maxHeight):t.width=r.width=t.height=r.height=0},afterFit:Ka,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,a,i,o=ie.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,c=0,u=e.top,d=e.left,p=e.bottom,m=e.right;t.fillStyle=ie.valueOrDefault(n.fontColor,J.global.defaultFontColor),t.font=o.string,e.isHorizontal()?(a=d+(m-d)/2,i=u+l,r=m-d):(a="left"===n.position?d+l:m-l,i=u+(p-u)/2,r=p-u,c=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(a,i),t.rotate(c),t.textAlign="center",t.textBaseline="middle";var f=n.text;if(ie.isArray(f))for(var h=0,_=0;_<f.length;++_)t.fillText(f[_],0,h,r),h+=s;else t.fillText(f,0,0,r);t.restore()}}});function Ga(e,t){var n=new Za({ctx:e.ctx,options:t,chart:e});Bt.configure(e,n,t),Bt.addBox(e,n),e.titleBlock=n}var Ja={},Xa=Fa,Qa=Ua,ei={id:"title",_element:Za,beforeInit:function(e){var t=e.options.title;t&&Ga(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(ie.mergeIf(t,J.global.title),n?(Bt.configure(e,n,t),n.options=t):Ga(e,t)):n&&(Bt.removeBox(e,n),delete e.titleBlock)}};for(var ti in Ja.filler=Xa,Ja.legend=Qa,Ja.title=ei,Vn.helpers=ie,Wn(),Vn._adapters=Zn,Vn.Animation=he,Vn.animationService=_e,Vn.controllers=kt,Vn.DatasetController=xe,Vn.defaults=J,Vn.Element=me,Vn.elements=Ve,Vn.Interaction=Ot,Vn.layouts=Bt,Vn.platform=gn,Vn.plugins=yn,Vn.Scale=_r,Vn.scaleService=bn,Vn.Ticks=Gn,Vn.Tooltip=Pn,Vn.helpers.each(La,(function(e,t){Vn.scaleService.registerScaleType(t,e,e._defaults)})),Ja)Ja.hasOwnProperty(ti)&&Vn.plugins.register(Ja[ti]);Vn.platform.initialize();var ni=Vn;return"undefined"!=typeof window&&(window.Chart=Vn),Vn.Chart=Vn,Vn.Legend=Ja.legend._element,Vn.Title=Ja.title._element,Vn.pluginService=Vn.plugins,Vn.PluginBase=Vn.Element.extend({}),Vn.canvasHelpers=Vn.helpers.canvas,Vn.layoutService=Vn.layouts,Vn.LinearScaleBase=Dr,Vn.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Vn[e]=function(t,n){return new Vn(t,Vn.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),ni}(function(){try{return n(381)}catch(e){}}())},1713:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,'@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@-webkit-keyframes rotatePlaceholder{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}to{transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}to{transform:rotate(-405deg)}}.animateSuccessTip{-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.animateSuccessLong{-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}.sweet-modal-icon.sweet-modal-success.animate:after{-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}@-webkit-keyframes animateErrorIcon{0%{transform:rotateX(100deg);opacity:0}to{transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{transform:rotateX(100deg);opacity:0}to{transform:rotateX(0deg);opacity:1}}.animateErrorIcon{-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}@-webkit-keyframes animateXMark{0%{transform:scale(.4);margin-top:26px;opacity:0}50%{transform:scale(.4);margin-top:26px;opacity:0}80%{transform:scale(1.15);margin-top:-6px}to{transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{transform:scale(.4);margin-top:26px;opacity:0}50%{transform:scale(.4);margin-top:26px;opacity:0}80%{transform:scale(1.15);margin-top:-6px}to{transform:scale(1);margin-top:0;opacity:1}}.animateXMark{-webkit-animation:animateXMark .5s;animation:animateXMark .5s}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.pulseWarning{-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}@-webkit-keyframes pulseWarningIns{0%{background-color:#f8d486}to{background-color:#f8bb86}}@keyframes pulseWarningIns{0%{background-color:#f8d486}to{background-color:#f8bb86}}.pulseWarningIns{-webkit-animation:pulseWarningIns .75s infinite alternate;animation:pulseWarningIns .75s infinite alternate}@-webkit-keyframes rotate-loading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes rotate-loading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.sweet-modal-icon{position:relative;width:80px;height:80px;border:4px solid grey;border-radius:50%;margin:auto;padding:0;box-sizing:content-box}.sweet-modal-icon.sweet-modal-error{border-color:#f44336}.sweet-modal-icon.sweet-modal-error .sweet-modal-x-mark{position:relative;display:block}.sweet-modal-icon.sweet-modal-error .sweet-modal-line{display:block;position:absolute;top:37px;height:5px;width:47px;background-color:#f44336;border-radius:2px}.sweet-modal-icon.sweet-modal-error .sweet-modal-line.sweet-modal-left{transform:rotate(45deg);left:17px}.sweet-modal-icon.sweet-modal-error .sweet-modal-line.sweet-modal-right{transform:rotate(-45deg);right:16px}.sweet-modal-icon.sweet-modal-warning{border-color:#ff9800}.sweet-modal-icon.sweet-modal-warning .sweet-modal-body{position:absolute;width:5px;height:47px;left:50%;top:10px;margin-left:-2px;border-radius:2px;background-color:#ff9800}.sweet-modal-icon.sweet-modal-warning .sweet-modal-dot{position:absolute;left:50%;bottom:10px;width:7px;height:7px;margin-left:-3px;border-radius:50%;background-color:#ff9800}.sweet-modal-icon.sweet-modal-info{border-color:#039be5}.sweet-modal-icon.sweet-modal-info:before{content:"";position:absolute;width:5px;height:29px;left:50%;bottom:17px;margin-left:-2px;border-radius:2px;background-color:#039be5}.sweet-modal-icon.sweet-modal-info:after{content:"";position:absolute;width:7px;height:7px;top:19px;margin-left:-3px;border-radius:50%;background-color:#039be5}.sweet-modal-icon.sweet-modal-success{border-color:#4caf50}.sweet-modal-icon.sweet-modal-success:after,.sweet-modal-icon.sweet-modal-success:before{content:"";position:absolute;border-radius:40px;width:60px;height:120px;background:#fff;transform:rotate(45deg)}.sweet-modal-icon.sweet-modal-success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;transform:rotate(-45deg);transform-origin:60px 60px}.sweet-modal-icon.sweet-modal-success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;transform:rotate(-45deg);transform-origin:0 60px}.sweet-modal-icon.sweet-modal-success .sweet-modal-placeholder{box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2;width:80px;height:80px;border:4px solid rgba(76,175,80,.2);border-radius:50%}.sweet-modal-icon.sweet-modal-success .sweet-modal-fix{position:absolute;left:28px;top:8px;z-index:1;width:7px;height:90px;background-color:#fff;transform:rotate(-45deg)}.sweet-modal-icon.sweet-modal-success .sweet-modal-line{display:block;position:absolute;z-index:2;height:5px;background-color:#4caf50;border-radius:2px}.sweet-modal-icon.sweet-modal-success .sweet-modal-line.sweet-modal-tip{width:25px;left:14px;top:46px;transform:rotate(45deg)}.sweet-modal-icon.sweet-modal-success .sweet-modal-line.sweet-modal-long{width:47px;right:8px;top:38px;transform:rotate(-45deg)}.sweet-modal-icon.sweet-modal-custom{border-radius:0;border:none;background-size:contain;background-position:50%;background-repeat:no-repeat}.sweet-modal.theme-dark .sweet-modal-icon.sweet-modal-success .sweet-modal-fix,.sweet-modal.theme-dark .sweet-modal-icon.sweet-modal-success:after,.sweet-modal.theme-dark .sweet-modal-icon.sweet-modal-success:before{background-color:#182028}.sweet-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9001;font-size:14px;-webkit-font-smoothing:antialiased;background:hsla(0,0%,100%,.9);opacity:0;transition:opacity .3s;transform:translateZ(0);-webkit-perspective:500px}.sweet-modal-overlay.theme-dark{background:rgba(24,32,40,.94)}.sweet-modal-overlay.is-visible{opacity:1}.sweet-modal{box-sizing:border-box;background:#fff;box-shadow:0 8px 46px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.03);position:absolute;top:50%;left:50%;width:80%;max-width:640px;max-height:100vh;overflow-y:auto;border-radius:2px;transform:scale(.9) translate(calc(-50% - 32px),-50%);opacity:0;transition-property:transform,opacity;transition-duration:.3s;transition-delay:.05s;transition-timing-function:cubic-bezier(.52,.02,.19,1.02)}.sweet-modal .sweet-box-actions{position:absolute;top:12px;right:12px}.sweet-modal .sweet-box-actions .sweet-action-close{display:inline-block;cursor:pointer;color:#222c38;text-align:center;width:42px;height:42px;line-height:42px;border-radius:50%}.sweet-modal .sweet-box-actions .sweet-action-close svg{width:24px;height:24px;vertical-align:middle;margin-top:-2px}.sweet-modal .sweet-box-actions .sweet-action-close svg,.sweet-modal .sweet-box-actions .sweet-action-close svg circle,.sweet-modal .sweet-box-actions .sweet-action-close svg path,.sweet-modal .sweet-box-actions .sweet-action-close svg polygon,.sweet-modal .sweet-box-actions .sweet-action-close svg rect{fill:currentColor}.sweet-modal .sweet-box-actions .sweet-action-close:hover{background:#039be5;color:#fff}.sweet-modal .sweet-title{height:64px;line-height:64px;border-bottom:1px solid #eaeaea;padding-left:32px;padding-right:64px}.sweet-modal .sweet-title,.sweet-modal .sweet-title>h2{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sweet-modal .sweet-title>h2{margin:0;padding:0;font-weight:500;font-size:22px}.sweet-modal ul.sweet-modal-tabs{padding:0;list-style-type:none;display:flex;align-items:center;width:calc(100% + 32px);height:100%;margin:0 0 0 -32px;overflow-x:auto}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab{display:block;height:100%}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:flex;align-items:center;padding-left:20px;padding-right:20px;color:#222c38;text-decoration:none;text-align:center;height:100%}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-title{display:block}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon{display:block;line-height:1}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg{width:16px;height:16px}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img circle,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img path,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img polygon,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img rect,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg circle,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg path,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg polygon,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg rect{fill:currentColor}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon+span.sweet-modal-tab-title{line-height:1;margin-top:8px}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab:first-child a{padding-left:32px}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab.active a{font-weight:600;color:#039be5}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab.disabled a{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;pointer-events:none;color:#999}.sweet-modal.has-tabs:not(.has-title) .sweet-title{height:84px;line-height:84px}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs{width:100%;height:48px;margin:0;border-bottom:1px solid #eaeaea}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a{margin-top:-4px}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon{display:inline-block}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img,.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg{vertical-align:middle;margin-top:-2px;margin-right:8px}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-title{display:inline-block}.sweet-modal .sweet-content{display:flex;align-items:center;padding:24px 32px;line-height:1.5}.sweet-modal .sweet-content .sweet-content-content{flex-grow:1}.sweet-modal .sweet-content .sweet-modal-tab:not(.active){display:none}.sweet-modal .sweet-content .sweet-modal-icon{margin-bottom:36px}.sweet-modal .sweet-buttons{text-align:right;padding:12px 20px}.sweet-modal .sweet-content+.sweet-buttons{border-top:1px solid #eaeaea}.sweet-modal.is-alert .sweet-content{display:block;text-align:center;font-size:16px;padding-top:64px;padding-bottom:64px}.sweet-modal.has-tabs.has-icon .sweet-content{padding-top:32px;padding-bottom:32px}.sweet-modal.has-tabs.has-icon .sweet-content .sweet-content-content{padding-left:32px}.sweet-modal.has-tabs.has-icon .sweet-content .sweet-modal-icon,.sweet-modal:not(.has-content) .sweet-modal-icon{margin-bottom:0}.sweet-modal.theme-dark{background:#182028;color:#fff}.sweet-modal.theme-dark .sweet-box-actions .sweet-action-close{color:#fff}.sweet-modal.theme-dark .sweet-title{border-bottom-color:#090c0f;box-shadow:0 1px 0 #273442}.sweet-modal.theme-dark ul.sweet-modal-tabs li a{color:#fff}.sweet-modal.theme-dark ul.sweet-modal-tabs li.active a{color:#039be5}.sweet-modal.theme-dark ul.sweet-modal-tabs li.disabled a{color:#3e5368}.sweet-modal.theme-dark.has-tabs.has-title ul.sweet-modal-tabs{border-bottom-color:#090c0f;box-shadow:0 1px 0 #273442}.sweet-modal.theme-dark .sweet-content+.sweet-buttons{border-top-color:#273442;box-shadow:0 -1px 0 #090c0f}.sweet-modal .sweet-buttons,.sweet-modal .sweet-content{opacity:0;transition-property:transform,opacity;transition-duration:.3s;transition-delay:.09s;transition-timing-function:cubic-bezier(.52,.02,.19,1.02)}.sweet-modal .sweet-content{transform:translateY(-8px)}.sweet-modal .sweet-buttons{transform:translateY(16px)}.sweet-modal.is-visible{transform:translate(-50%,-50%);opacity:1}.sweet-modal.is-visible .sweet-buttons,.sweet-modal.is-visible .sweet-content{transform:none;opacity:1}.sweet-modal.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-direction:alternate;animation-direction:alternate}@media screen and (min-width:601px){@-webkit-keyframes bounce{0%{transform:scale(1) translate(-50%,-50%)}50%{transform:scale(1.02) translate(calc(-50% + 8px),-50%)}to{transform:scale(1) translate(-50%,-50%)}}@keyframes bounce{0%{transform:scale(1) translate(-50%,-50%)}50%{transform:scale(1.02) translate(calc(-50% + 8px),-50%)}to{transform:scale(1) translate(-50%,-50%)}}}@media screen and (max-width:600px){.sweet-modal.is-mobile-fullscreen{width:100%;height:100vh;left:0;top:0;transform:scale(.9)}.sweet-modal.is-mobile-fullscreen.is-visible{transform:none}.sweet-modal.is-mobile-fullscreen .sweet-buttons{box-sizing:border-box;position:absolute;bottom:0;left:0;width:100%}}',""]);const i=a},2130:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,".flatpickr-calendar.open{z-index:60!important}",""]);const i=a},9:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,"@-webkit-keyframes ball-scale-ripple-multiple{0%{transform:scale(.1);opacity:1}70%{transform:scale(1);opacity:.7}to{opacity:0}}@keyframes ball-scale-ripple-multiple{0%{transform:scale(.1);opacity:1}70%{transform:scale(1);opacity:.7}to{opacity:0}}.base-loader .overlay .loader{width:100%;position:relative;min-height:500px}.base-loader .overlay .ball-scale-ripple-multiple{transform:translateY(-25px);top:50%;left:50%;transform:translateY(-50px/2)}.base-loader .overlay .ball-scale-ripple-multiple>div:nth-child(0){-webkit-animation-delay:-.8s;animation-delay:-.8s}.base-loader .overlay .ball-scale-ripple-multiple>div:first-child{-webkit-animation-delay:-.6s;animation-delay:-.6s}.base-loader .overlay .ball-scale-ripple-multiple>div:nth-child(2){-webkit-animation-delay:-.4s;animation-delay:-.4s}.base-loader .overlay .ball-scale-ripple-multiple>div:nth-child(3){-webkit-animation-delay:-.2s;animation-delay:-.2s}.base-loader .overlay .ball-scale-ripple-multiple>div{-webkit-animation-fill-mode:both;animation-fill-mode:both;position:absolute;top:-2px;left:-26px;width:50px;height:50px;border-radius:100%;border:2px solid #5851d8;-webkit-animation:ball-scale-ripple-multiple 1.25s cubic-bezier(.21,.53,.56,.8) 0s infinite;animation:ball-scale-ripple-multiple 1.25s cubic-bezier(.21,.53,.56,.8) 0s infinite}.base-loader.table-loader .overlay{background:hsla(0,0%,100%,.5);height:calc(100% - 80px);top:80px}",""]);const i=a},2222:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,".note-modal .header-editior .editor-menu-bar{margin-left:.5px;margin-right:0}",""]);const i=a},3042:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,".customer-select .list{max-height:173px;min-height:173px}",""]);const i=a},2828:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,".estimate-create-page .estimate-foot .estimate-total{min-width:390px}@media (max-width:480px){.estimate-create-page .estimate-foot .estimate-total{min-width:384px!important}}",""]);const i=a},9963:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,".invoice-create-page .invoice-foot .invoice-total{min-width:390px}@media (max-width:480px){.invoice-create-page .invoice-foot .invoice-total{min-width:384px}}",""]);const i=a},964:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,'.content-box[data-v-f30130f4]{background-image:url(/images/login-vector1.svg)}.content-bottom[data-v-f30130f4]{background-image:url(/images/login-vector3.svg);background-size:100% 100%;height:300px;right:32%;bottom:0}.content-box[data-v-f30130f4]:before{background-image:url(/images/frame.svg);background-size:100% 100%;height:300px;right:0;top:0;width:420px;z-index:1}.content-box[data-v-f30130f4]:after,.content-box[data-v-f30130f4]:before{content:"";background-repeat:no-repeat;position:absolute}.content-box[data-v-f30130f4]:after{background-image:url(/images/login-vector2.svg);background-size:cover;height:100%;width:100%;right:7.5%}',""]);const i=a},2921:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,'.hamburger{transition-property:opacity,filter;transition-duration:.15s}.hamburger-inner{top:50%;left:4.5px;right:4.5px}.hamburger-inner,.hamburger-inner:after,.hamburger-inner:before{height:2px;background-color:#000;border-radius:2px;position:absolute;transition-property:transform;transition-duration:.15s;transition-timing-function:ease}.hamburger-inner:after,.hamburger-inner:before{content:"";display:block;width:100%}.hamburger-inner:before{top:-5px}.hamburger-inner:after{bottom:-5px}.hamburger--arrowturn.is-active .hamburger-inner{transform:rotate(-180deg)}.hamburger--arrowturn.is-active .hamburger-inner:before{transform:translate3d(5px,3px,0) rotate(45deg) scaleX(.5)}.hamburger--arrowturn.is-active .hamburger-inner:after{transform:translate3d(5px,-3px,0) rotate(-45deg) scaleX(.5)}',""]);const i=a},6691:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,"@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",""]);const i=a},9818:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,'.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08)}.flatpickr-calendar.inline,.flatpickr-calendar.open{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.arrowRight:after,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.rightMost:before{left:auto;right:22px}.flatpickr-calendar.arrowCenter:after,.flatpickr-calendar.arrowCenter:before{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:after,.flatpickr-calendar.arrowTop:before{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:after,.flatpickr-calendar.arrowBottom:before{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9)}.flatpickr-months .flatpickr-next-month.flatpickr-disabled,.flatpickr-months .flatpickr-prev-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-next-month i,.flatpickr-months .flatpickr-prev-month i{position:relative}.flatpickr-months .flatpickr-next-month.flatpickr-prev-month,.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-next-month.flatpickr-next-month,.flatpickr-months .flatpickr-prev-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-next-month:hover,.flatpickr-months .flatpickr-prev-month:hover{color:#959ea9}.flatpickr-months .flatpickr-next-month:hover svg,.flatpickr-months .flatpickr-prev-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-next-month svg,.flatpickr-months .flatpickr-prev-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-next-month svg path,.flatpickr-months .flatpickr-prev-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-inner-spin-button,.numInputWrapper input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,.5)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translateZ(0);transform:translateZ(0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:active,.flatpickr-current-month .flatpickr-monthDropdown-months:focus{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays,.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-weekdays .flatpickr-weekdaycontainer,span.flatpickr-weekday{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,.54);line-height:1;margin:0;text-align:center;display:block;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:focus,.flatpickr-day.today:hover{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.endRange.startRange,.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.endRange.endRange,.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.endRange.startRange.endRange,.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{color:rgba(57,57,57,.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.flatpickr-innerContainer,.flatpickr-rContainer{-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-rContainer{display:inline-block;padding:0}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-am-pm,.flatpickr-time .flatpickr-time-separator{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time .flatpickr-am-pm:focus,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time input:hover{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}',""]);const i=a},7155:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,".box[data-v-087248b1]::-webkit-scrollbar{width:4px}.box[data-v-087248b1]::-webkit-scrollbar-thumb{background-color:transparent;outline:1px solid #fff;border-radius:.42rem!important;background-color:#e4e6ef}",""]);const i=a},434:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,".graph-container[data-v-878dc3be]{height:300px}",""]);const i=a},7107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,".dot-icon{display:flex;cursor:pointer;padding:8px 5px 5px;justify-content:flex-end}.dot{display:inline-block;background:#a5acc1;display:block;width:6px;height:6px;border-radius:50%;position:relative}.dot1,.dot2{margin-right:3px}.move-right{-webkit-animation:moveright .2s;animation:moveright .2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.move-left{-webkit-animation:moveleft .2s;animation:moveleft .2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes moveleft{0%{left:0}to{left:-18px}}@keyframes moveleft{0%{left:0}to{left:-18px}}@-webkit-keyframes moveright{0%{left:0}to{left:18px}}@keyframes moveright{0%{left:0}to{left:18px}}",""]);const i=a},788:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,".tab[data-v-135b706d]{padding:0!important}.tab-link[data-v-135b706d]{padding:10px 30px;display:block}",""]);const i=a},3499:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3645),a=n.n(r)()((function(e){return e[1]}));a.push([e.id,".update-description ul li{list-style:disc!important;margin-bottom:4px}",""]);const i=a},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(r)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(a[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&a[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},8527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});const r=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],a={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:e=>"undefined"!=typeof console&&console.warn(e),getWeek:e=>{const t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},i={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:e=>{const t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=i,s=(e,t=2)=>`000${e}`.slice(-1*t),l=e=>!0===e?1:0;function c(e,t){let n;return function(){clearTimeout(n),n=setTimeout((()=>e.apply(this,arguments)),t)}}const u=e=>e instanceof Array?e:[e];function d(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function p(e,t,n){const r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function m(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function f(e,t){return t(e)?e:e.parentNode?f(e.parentNode,t):void 0}function h(e,t){const n=p("div","numInputWrapper"),r=p("input","numInput "+e),a=p("span","arrowUp"),i=p("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(const e in t)r.setAttribute(e,t[e]);return n.appendChild(r),n.appendChild(a),n.appendChild(i),n}function _(e){try{if("function"==typeof e.composedPath){return e.composedPath()[0]}return e.target}catch(t){return e.target}}const v=()=>{},g=(e,t,n)=>n.months[t?"shorthand":"longhand"][e],y={D:v,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:(e,t)=>{e.setHours(parseFloat(t))},H:(e,t)=>{e.setHours(parseFloat(t))},J:(e,t)=>{e.setDate(parseFloat(t))},K:(e,t,n)=>{e.setHours(e.getHours()%12+12*l(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:(e,t)=>{e.setSeconds(parseFloat(t))},U:(e,t)=>new Date(1e3*parseFloat(t)),W:function(e,t,n){const r=parseInt(t),a=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+n.firstDayOfWeek),a},Y:(e,t)=>{e.setFullYear(parseFloat(t))},Z:(e,t)=>new Date(t),d:(e,t)=>{e.setDate(parseFloat(t))},h:(e,t)=>{e.setHours(parseFloat(t))},i:(e,t)=>{e.setMinutes(parseFloat(t))},j:(e,t)=>{e.setDate(parseFloat(t))},l:v,m:(e,t)=>{e.setMonth(parseFloat(t)-1)},n:(e,t)=>{e.setMonth(parseFloat(t)-1)},s:(e,t)=>{e.setSeconds(parseFloat(t))},u:(e,t)=>new Date(parseFloat(t)),w:v,y:(e,t)=>{e.setFullYear(2e3+parseFloat(t))}},b={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},w={Z:e=>e.toISOString(),D:function(e,t,n){return t.weekdays.shorthand[w.w(e,t,n)]},F:function(e,t,n){return g(w.n(e,t,n)-1,!1,t)},G:function(e,t,n){return s(w.h(e,t,n))},H:e=>s(e.getHours()),J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:(e,t)=>t.amPM[l(e.getHours()>11)],M:function(e,t){return g(e.getMonth(),!0,t)},S:e=>s(e.getSeconds()),U:e=>e.getTime()/1e3,W:function(e,t,n){return n.getWeek(e)},Y:e=>s(e.getFullYear(),4),d:e=>s(e.getDate()),h:e=>e.getHours()%12?e.getHours()%12:12,i:e=>s(e.getMinutes()),j:e=>e.getDate(),l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:e=>s(e.getMonth()+1),n:e=>e.getMonth()+1,s:e=>e.getSeconds(),u:e=>e.getTime(),w:e=>e.getDay(),y:e=>String(e.getFullYear()).substring(2)},x=({config:e=a,l10n:t=i,isMobile:n=!1})=>(r,a,i)=>{const o=i||t;return void 0===e.formatDate||n?a.split("").map(((t,n,a)=>w[t]&&"\\"!==a[n-1]?w[t](r,o,e):"\\"!==t?t:"")).join(""):e.formatDate(r,a,o)},k=({config:e=a,l10n:t=i})=>(n,r,i,o)=>{if(0!==n&&!n)return;const s=o||t;let l;const c=n;if(n instanceof Date)l=new Date(n.getTime());else if("string"!=typeof n&&void 0!==n.toFixed)l=new Date(n);else if("string"==typeof n){const t=r||(e||a).dateFormat,o=String(n).trim();if("today"===o)l=new Date,i=!0;else if(/Z$/.test(o)||/GMT$/.test(o))l=new Date(n);else if(e&&e.parseDate)l=e.parseDate(n,t);else{l=e&&e.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);let r,a=[];for(let e=0,i=0,o="";e<t.length;e++){const c=t[e],u="\\"===c,d="\\"===t[e-1]||u;if(b[c]&&!d){o+=b[c];const e=new RegExp(o).exec(n);e&&(r=!0)&&a["Y"!==c?"push":"unshift"]({fn:y[c],val:e[++i]})}else u||(o+=".");a.forEach((({fn:e,val:t})=>l=e(l,t,s)||l))}l=r?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===i&&l.setHours(0,0,0,0),l;e.errorHandler(new Error(`Invalid date provided: ${c}`))};function D(e,t,n=!0){return!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}const M=864e5;function S(e){let t=e.defaultHour,n=e.defaultMinute,r=e.defaultSeconds;if(void 0!==e.minDate){const a=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();t<a&&(t=a),t===a&&n<i&&(n=i),t===a&&n===i&&r<o&&(r=e.minDate.getSeconds())}if(void 0!==e.maxDate){const a=e.maxDate.getHours(),i=e.maxDate.getMinutes();t=Math.min(t,a),t===a&&(n=Math.min(i,n)),t===a&&n===i&&(r=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:r}}n(1895);function C(e,t){const n={config:Object.assign(Object.assign({},a),T.defaultConfig),l10n:o};function i(e){return e.bind(n)}function v(){const e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){const t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+"px",n.calendarContainer.style.width=t+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}}))}function y(e){if(0===n.selectedDates.length){const e=void 0===n.config.minDate||D(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),t=S(n.config);e.setHours(t.hours,t.minutes,t.seconds,e.getMilliseconds()),n.selectedDates=[e],n.latestSelectedDateObj=e}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();const t="keydown"===e.type,r=_(e),a=r;void 0!==n.amPM&&r===n.amPM&&(n.amPM.textContent=n.l10n.amPM[l(n.amPM.textContent===n.l10n.amPM[0])]);const i=parseFloat(a.getAttribute("min")),o=parseFloat(a.getAttribute("max")),c=parseFloat(a.getAttribute("step")),u=parseInt(a.value,10),d=e.delta||(t?38===e.which?1:-1:0);let p=u+c*d;if(void 0!==a.value&&2===a.value.length){const e=a===n.hourElement,t=a===n.minuteElement;p<i?(p=o+p+l(!e)+(l(e)&&l(!n.amPM)),t&&P(void 0,-1,n.hourElement)):p>o&&(p=a===n.hourElement?p-o-l(!n.amPM):i,t&&P(void 0,1,n.hourElement)),n.amPM&&e&&(1===c?p+u===23:Math.abs(p-u)>c)&&(n.amPM.textContent=n.l10n.amPM[l(n.amPM.textContent===n.l10n.amPM[0])]),a.value=s(p)}}(e);const t=n._input.value;w(),ge(),n._input.value!==t&&n._debouncedChange()}function w(){if(void 0===n.hourElement||void 0===n.minuteElement)return;let e=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(n.minuteElement.value,10)||0)%60,r=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;var a,i;void 0!==n.amPM&&(a=e,i=n.amPM.textContent,e=a%12+12*l(i===n.l10n.amPM[1]));const o=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===D(n.latestSelectedDateObj,n.config.minDate,!0);if(void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===D(n.latestSelectedDateObj,n.config.maxDate,!0)){const a=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;e=Math.min(e,a.getHours()),e===a.getHours()&&(t=Math.min(t,a.getMinutes())),t===a.getMinutes()&&(r=Math.min(r,a.getSeconds()))}if(o){const a=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;e=Math.max(e,a.getHours()),e===a.getHours()&&t<a.getMinutes()&&(t=a.getMinutes()),t===a.getMinutes()&&(r=Math.max(r,a.getSeconds()))}L(e,t,r)}function C(e){const t=e||n.latestSelectedDateObj;t&&L(t.getHours(),t.getMinutes(),t.getSeconds())}function L(e,t,r){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,r||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=s(n.config.time_24hr?e:(12+e)%12+12*l(e%12==0)),n.minuteElement.value=s(t),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[l(e>=12)]),void 0!==n.secondElement&&(n.secondElement.value=s(r)))}function O(e){const t=_(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&G(n)}function E(e,t,r,a){return t instanceof Array?t.forEach((t=>E(e,t,r,a))):e instanceof Array?e.forEach((e=>E(e,t,r,a))):(e.addEventListener(t,r,a),void n._handlers.push({remove:()=>e.removeEventListener(t,r)}))}function A(){me("onChange")}function j(e,t){const r=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),a=n.currentYear,i=n.currentMonth;try{void 0!==r&&(n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth())}catch(e){e.message="Invalid date supplied: "+r,n.config.errorHandler(e)}t&&n.currentYear!==a&&(me("onYearChange"),R()),!t||n.currentYear===a&&n.currentMonth===i||me("onMonthChange"),n.redraw()}function $(e){const t=_(e);~t.className.indexOf("arrow")&&P(e,t.classList.contains("arrowUp")?1:-1)}function P(e,t,n){const r=e&&_(e),a=n||r&&r.parentNode&&r.parentNode.firstChild,i=fe("increment");i.delta=t,a&&a.dispatchEvent(i)}function Y(e,t,r,a){const i=J(t,!0),o=p("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=a,o.setAttribute("aria-label",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===D(t,n.now)&&(n.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,he(t)&&(o.classList.add("selected"),n.selectedDateElem=o,"range"===n.config.mode&&(d(o,"startRange",n.selectedDates[0]&&0===D(t,n.selectedDates[0],!0)),d(o,"endRange",n.selectedDates[1]&&0===D(t,n.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(e){return!("range"!==n.config.mode||n.selectedDates.length<2)&&(D(e,n.selectedDates[0])>=0&&D(e,n.selectedDates[1])<=0)}(t)&&!he(t)&&o.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&r%7==1&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(t)+"</span>"),me("onDayCreate",o),o}function N(e){e.focus(),"range"===n.config.mode&&te(e)}function z(e){const t=e>0?0:n.config.showMonths-1,r=e>0?n.config.showMonths:-1;for(let a=t;a!=r;a+=e){const t=n.daysContainer.children[a],r=e>0?0:t.children.length-1,i=e>0?t.children.length:-1;for(let n=r;n!=i;n+=e){const e=t.children[n];if(-1===e.className.indexOf("hidden")&&J(e.dateObj))return e}}}function I(e,t){const r=X(document.activeElement||document.body),a=void 0!==e?e:r?document.activeElement:void 0!==n.selectedDateElem&&X(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&X(n.todayDateElem)?n.todayDateElem:z(t>0?1:-1);void 0===a?n._input.focus():r?function(e,t){const r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,a=t>0?n.config.showMonths:-1,i=t>0?1:-1;for(let o=r-n.currentMonth;o!=a;o+=i){const a=n.daysContainer.children[o],s=r-n.currentMonth===o?e.$i+t:t<0?a.children.length-1:0,l=a.children.length;for(let n=s;n>=0&&n<l&&n!=(t>0?l:-1);n+=i){const r=a.children[n];if(-1===r.className.indexOf("hidden")&&J(r.dateObj)&&Math.abs(e.$i-n)>=Math.abs(t))return N(r)}}n.changeMonth(i),I(z(i),0)}(a,t):N(a)}function F(e,t){const r=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,a=n.utils.getDaysInMonth((t-1+12)%12,e),i=n.utils.getDaysInMonth(t,e),o=window.document.createDocumentFragment(),s=n.config.showMonths>1,l=s?"prevMonthDay hidden":"prevMonthDay",c=s?"nextMonthDay hidden":"nextMonthDay";let u=a+1-r,d=0;for(;u<=a;u++,d++)o.appendChild(Y(l,new Date(e,t-1,u),u,d));for(u=1;u<=i;u++,d++)o.appendChild(Y("",new Date(e,t,u),u,d));for(let a=i+1;a<=42-r&&(1===n.config.showMonths||d%7!=0);a++,d++)o.appendChild(Y(c,new Date(e,t+1,a%i),a,d));const m=p("div","dayContainer");return m.appendChild(o),m}function H(){if(void 0===n.daysContainer)return;m(n.daysContainer),n.weekNumbers&&m(n.weekNumbers);const e=document.createDocumentFragment();for(let t=0;t<n.config.showMonths;t++){const r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),e.appendChild(F(r.getFullYear(),r.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&te()}function R(){if(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)return;const e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(let t=0;t<12;t++){if(!e(t))continue;const r=p("option","flatpickr-monthDropdown-month");r.value=new Date(n.currentYear,t).getMonth().toString(),r.textContent=g(t,n.config.shorthandCurrentMonth,n.l10n),r.tabIndex=-1,n.currentMonth===t&&(r.selected=!0),n.monthsDropdownContainer.appendChild(r)}}function B(){const e=p("div","flatpickr-month"),t=window.document.createDocumentFragment();let r;n.config.showMonths>1||"static"===n.config.monthSelectorType?r=p("span","cur-month"):(n.monthsDropdownContainer=p("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),E(n.monthsDropdownContainer,"change",(e=>{const t=_(e),r=parseInt(t.value,10);n.changeMonth(r-n.currentMonth),me("onMonthChange")})),R(),r=n.monthsDropdownContainer);const a=h("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&i.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(i.setAttribute("max",n.config.maxDate.getFullYear().toString()),i.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());const o=p("div","flatpickr-current-month");return o.appendChild(r),o.appendChild(a),t.appendChild(o),e.appendChild(t),{container:e,yearElement:i,monthElement:r}}function q(){m(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(let e=n.config.showMonths;e--;){const e=B();n.yearElements.push(e.yearElement),n.monthElements.push(e.monthElement),n.monthNav.appendChild(e.container)}n.monthNav.appendChild(n.nextMonthNav)}function V(){n.weekdayContainer?m(n.weekdayContainer):n.weekdayContainer=p("div","flatpickr-weekdays");for(let e=n.config.showMonths;e--;){const e=p("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(e)}return W(),n.weekdayContainer}function W(){if(!n.weekdayContainer)return;const e=n.l10n.firstDayOfWeek;let t=[...n.l10n.weekdays.shorthand];e>0&&e<t.length&&(t=[...t.splice(e,t.length),...t.splice(0,e)]);for(let e=n.config.showMonths;e--;)n.weekdayContainer.children[e].innerHTML=`\n <span class='flatpickr-weekday'>\n ${t.join("</span><span class='flatpickr-weekday'>")}\n </span>\n `}function U(e,t=!0){const r=t?e:e-n.currentMonth;r<0&&!0===n._hidePrevMonthArrow||r>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=r,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,me("onYearChange"),R()),H(),me("onMonthChange"),_e())}function K(e){return!(!n.config.appendTo||!n.config.appendTo.contains(e))||n.calendarContainer.contains(e)}function Z(e){if(n.isOpen&&!n.config.inline){const t=_(e),r=K(t),a=t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)),i="blur"===e.type?a&&e.relatedTarget&&!K(e.relatedTarget):!a&&!r&&!K(e.relatedTarget),o=!n.config.ignoredFocusElements.some((e=>e.contains(t)));i&&o&&(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&y(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&(n.clear(!1),n.redraw()))}}function G(e){if(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())return;const t=e,r=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),r&&(n.redraw(),me("onYearChange"),R())}function J(e,t=!0){var r;const a=n.parseDate(e,void 0,t);if(n.config.minDate&&a&&D(a,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&a&&D(a,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===a)return!1;const i=!!n.config.enable,o=null!==(r=n.config.enable)&&void 0!==r?r:n.config.disable;for(let e,t=0;t<o.length;t++){if(e=o[t],"function"==typeof e&&e(a))return i;if(e instanceof Date&&void 0!==a&&e.getTime()===a.getTime())return i;if("string"==typeof e){const t=n.parseDate(e,void 0,!0);return t&&t.getTime()===a.getTime()?i:!i}if("object"==typeof e&&void 0!==a&&e.from&&e.to&&a.getTime()>=e.from.getTime()&&a.getTime()<=e.to.getTime())return i}return!i}function X(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function Q(e){!(e.target===n._input)||!(n.selectedDates.length>0||n._input.value.length>0)||e.relatedTarget&&K(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function ee(t){const r=_(t),a=n.config.wrap?e.contains(r):r===n._input,i=n.config.allowInput,o=n.isOpen&&(!i||!a),s=n.config.inline&&a&&!i;if(13===t.keyCode&&a){if(i)return n.setDate(n._input.value,!0,r===n.altInput?n.config.altFormat:n.config.dateFormat),r.blur();n.open()}else if(K(r)||o||s){const e=!!n.timeContainer&&n.timeContainer.contains(r);switch(t.keyCode){case 13:e?(t.preventDefault(),y(),le()):ce(t);break;case 27:t.preventDefault(),le();break;case 8:case 46:a&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(e||a)n.hourElement&&n.hourElement.focus();else if(t.preventDefault(),void 0!==n.daysContainer&&(!1===i||document.activeElement&&X(document.activeElement))){const e=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),U(e),I(z(1),0)):I(void 0,e)}break;case 38:case 40:t.preventDefault();const o=40===t.keyCode?1:-1;n.daysContainer&&void 0!==r.$i||r===n.input||r===n.altInput?t.ctrlKey?(t.stopPropagation(),G(n.currentYear-o),I(z(1),0)):e||I(void 0,7*o):r===n.currentYearElement?G(n.currentYear-o):n.config.enableTime&&(!e&&n.hourElement&&n.hourElement.focus(),y(t),n._debouncedChange());break;case 9:if(e){const e=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((e=>e)),a=e.indexOf(r);if(-1!==a){const r=e[a+(t.shiftKey?-1:1)];t.preventDefault(),(r||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(r)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&r===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],w(),ge();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],w(),ge()}(a||K(r))&&me("onKeyDown",t)}function te(e){if(1!==n.selectedDates.length||e&&(!e.classList.contains("flatpickr-day")||e.classList.contains("flatpickr-disabled")))return;const t=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),r=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),a=Math.min(t,n.selectedDates[0].getTime()),i=Math.max(t,n.selectedDates[0].getTime());let o=!1,s=0,l=0;for(let e=a;e<i;e+=M)J(new Date(e),!0)||(o=o||e>a&&e<i,e<r&&(!s||e>s)?s=e:e>r&&(!l||e<l)&&(l=e));for(let a=0;a<n.config.showMonths;a++){const i=n.daysContainer.children[a];for(let a=0,p=i.children.length;a<p;a++){const p=i.children[a],m=p.dateObj.getTime(),f=s>0&&m<s||l>0&&m>l;f?(p.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((e=>{p.classList.remove(e)}))):o&&!f||(["startRange","inRange","endRange","notAllowed"].forEach((e=>{p.classList.remove(e)})),void 0!==e&&(e.classList.add(t<=n.selectedDates[0].getTime()?"startRange":"endRange"),r<t&&m===r?p.classList.add("startRange"):r>t&&m===r&&p.classList.add("endRange"),m>=s&&(0===l||m<=l)&&(u=r,d=t,(c=m)>Math.min(u,d)&&c<Math.max(u,d))&&p.classList.add("inRange")))}}var c,u,d}function ne(){!n.isOpen||n.config.static||n.config.inline||oe()}function re(e){return t=>{const r=n.config[`_${e}Date`]=n.parseDate(t,n.config.dateFormat),a=n.config[`_${"min"===e?"max":"min"}Date`];void 0!==r&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((e=>J(e))),n.selectedDates.length||"min"!==e||C(r),ge()),n.daysContainer&&(se(),void 0!==r?n.currentYearElement[e]=r.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!a&&void 0!==r&&a.getFullYear()===r.getFullYear())}}function ae(){return n.config.wrap?e.querySelector("[data-input]"):e}function ie(){"object"!=typeof n.config.locale&&void 0===T.l10ns[n.config.locale]&&n.config.errorHandler(new Error(`flatpickr: invalid locale ${n.config.locale}`)),n.l10n=Object.assign(Object.assign({},T.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?T.l10ns[n.config.locale]:void 0),b.K=`(${n.l10n.amPM[0]}|${n.l10n.amPM[1]}|${n.l10n.amPM[0].toLowerCase()}|${n.l10n.amPM[1].toLowerCase()})`;void 0===Object.assign(Object.assign({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===T.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=x(n),n.parseDate=k({config:n.config,l10n:n.l10n})}function oe(e){if("function"==typeof n.config.position)return void n.config.position(n,e);if(void 0===n.calendarContainer)return;me("onPreCalendarPosition");const t=e||n._positionElement,r=Array.prototype.reduce.call(n.calendarContainer.children,((e,t)=>e+t.offsetHeight),0),a=n.calendarContainer.offsetWidth,i=n.config.position.split(" "),o=i[0],s=i.length>1?i[1]:null,l=t.getBoundingClientRect(),c=window.innerHeight-l.bottom,u="above"===o||"below"!==o&&c<r&&l.top>r,p=window.pageYOffset+l.top+(u?-r-2:t.offsetHeight+2);if(d(n.calendarContainer,"arrowTop",!u),d(n.calendarContainer,"arrowBottom",u),n.config.inline)return;let m=window.pageXOffset+l.left,f=!1,h=!1;"center"===s?(m-=(a-l.width)/2,f=!0):"right"===s&&(m-=a-l.width,h=!0),d(n.calendarContainer,"arrowLeft",!f&&!h),d(n.calendarContainer,"arrowCenter",f),d(n.calendarContainer,"arrowRight",h);const _=window.document.body.offsetWidth-(window.pageXOffset+l.right),v=m+a>window.document.body.offsetWidth,g=_+a>window.document.body.offsetWidth;if(d(n.calendarContainer,"rightMost",v),!n.config.static)if(n.calendarContainer.style.top=`${p}px`,v)if(g){const e=function(){let e=null;for(let t=0;t<document.styleSheets.length;t++){const n=document.styleSheets[t];try{n.cssRules}catch(e){continue}e=n;break}return null!=e?e:function(){const e=document.createElement("style");return document.head.appendChild(e),e.sheet}()}();if(void 0===e)return;const t=window.document.body.offsetWidth,r=Math.max(0,t/2-a/2),i=".flatpickr-calendar.centerMost:before",o=".flatpickr-calendar.centerMost:after",s=e.cssRules.length,c=`{left:${l.left}px;right:auto;}`;d(n.calendarContainer,"rightMost",!1),d(n.calendarContainer,"centerMost",!0),e.insertRule(`${i},${o}${c}`,s),n.calendarContainer.style.left=`${r}px`,n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=`${_}px`;else n.calendarContainer.style.left=`${m}px`,n.calendarContainer.style.right="auto"}function se(){n.config.noCalendar||n.isMobile||(R(),_e(),H())}function le(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function ce(e){e.preventDefault(),e.stopPropagation();const t=f(_(e),(e=>e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")));if(void 0===t)return;const r=t,a=n.latestSelectedDateObj=new Date(r.dateObj.getTime()),i=(a.getMonth()<n.currentMonth||a.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=r,"single"===n.config.mode)n.selectedDates=[a];else if("multiple"===n.config.mode){const e=he(a);e?n.selectedDates.splice(parseInt(e),1):n.selectedDates.push(a)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=a,n.selectedDates.push(a),0!==D(a,n.selectedDates[0],!0)&&n.selectedDates.sort(((e,t)=>e.getTime()-t.getTime())));if(w(),i){const e=n.currentYear!==a.getFullYear();n.currentYear=a.getFullYear(),n.currentMonth=a.getMonth(),e&&(me("onYearChange"),R()),me("onMonthChange")}if(_e(),H(),ge(),i||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():N(r),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){const e="single"===n.config.mode&&!n.config.enableTime,t="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(e||t)&&le()}A()}n.parseDate=k({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=E,n._setHoursFromDate=C,n._positionCalendar=oe,n.changeMonth=U,n.changeYear=G,n.clear=function(e=!0,t=!0){n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){const{hours:e,minutes:t,seconds:r}=S(n.config);L(e,t,r)}n.redraw(),e&&me("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));me("onClose")},n._createElement=p,n.destroy=function(){void 0!==n.config&&me("onDestroy");for(let e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){const e=n.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((e=>{try{delete n[e]}catch(e){}}))},n.isEnabled=J,n.jumpToDate=j,n.open=function(e,t=n._positionElement){if(!0===n.isMobile){if(e){e.preventDefault();const t=_(e);t&&t.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void me("onOpen")}if(n._input.disabled||n.config.inline)return;const r=n.isOpen;n.isOpen=!0,r||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),me("onOpen"),oe(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout((()=>n.hourElement.select()),50))},n.redraw=se,n.set=function(e,t){if(null!==e&&"object"==typeof e){Object.assign(n.config,e);for(const t in e)void 0!==ue[t]&&ue[t].forEach((e=>e()))}else n.config[e]=t,void 0!==ue[e]?ue[e].forEach((e=>e())):r.indexOf(e)>-1&&(n.config[e]=u(t));n.redraw(),ge(!0)},n.setDate=function(e,t=!1,r=n.config.dateFormat){if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);de(e,r),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),j(void 0,t),C(),0===n.selectedDates.length&&n.clear(!1);ge(t),t&&me("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};const ue={locale:[ie,W],showMonths:[q,v,V],minDate:[j],maxDate:[j],clickOpens:[()=>{!0===n.config.clickOpens?(E(n._input,"focus",n.open),E(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function de(e,t){let r=[];if(e instanceof Array)r=e.map((e=>n.parseDate(e,t)));else if(e instanceof Date||"number"==typeof e)r=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":r=[n.parseDate(e,t)];break;case"multiple":r=e.split(n.config.conjunction).map((e=>n.parseDate(e,t)));break;case"range":r=e.split(n.l10n.rangeSeparator).map((e=>n.parseDate(e,t)))}else n.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(e)}`));n.selectedDates=n.config.allowInvalidPreload?r:r.filter((e=>e instanceof Date&&J(e,!1))),"range"===n.config.mode&&n.selectedDates.sort(((e,t)=>e.getTime()-t.getTime()))}function pe(e){return e.slice().map((e=>"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e)).filter((e=>e))}function me(e,t){if(void 0===n.config)return;const r=n.config[e];if(void 0!==r&&r.length>0)for(let e=0;r[e]&&e<r.length;e++)r[e](n.selectedDates,n.input.value,n,t);"onChange"===e&&(n.input.dispatchEvent(fe("change")),n.input.dispatchEvent(fe("input")))}function fe(e){const t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function he(e){for(let t=0;t<n.selectedDates.length;t++)if(0===D(n.selectedDates[t],e))return""+t;return!1}function _e(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(((e,t)=>{const r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=g(r.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=r.getMonth().toString(),e.value=r.getFullYear().toString()})),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function ve(e){return n.selectedDates.map((t=>n.formatDate(t,e))).filter(((e,t,r)=>"range"!==n.config.mode||n.config.enableTime||r.indexOf(e)===t)).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function ge(e=!0){void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=ve(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=ve(n.config.altFormat)),!1!==e&&me("onValueUpdate")}function ye(e){const t=_(e),r=n.prevMonthNav.contains(t),a=n.nextMonthNav.contains(t);r||a?U(r?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){const o=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],s=Object.assign(Object.assign({},JSON.parse(JSON.stringify(e.dataset||{}))),t),l={};n.config.parseDate=s.parseDate,n.config.formatDate=s.formatDate,Object.defineProperty(n.config,"enable",{get:()=>n.config._enable,set:e=>{n.config._enable=pe(e)}}),Object.defineProperty(n.config,"disable",{get:()=>n.config._disable,set:e=>{n.config._disable=pe(e)}});const c="time"===s.mode;if(!s.dateFormat&&(s.enableTime||c)){const e=T.defaultConfig.dateFormat||a.dateFormat;l.dateFormat=s.noCalendar||c?"H:i"+(s.enableSeconds?":S":""):e+" H:i"+(s.enableSeconds?":S":"")}if(s.altInput&&(s.enableTime||c)&&!s.altFormat){const e=T.defaultConfig.altFormat||a.altFormat;l.altFormat=s.noCalendar||c?"h:i"+(s.enableSeconds?":S K":" K"):e+` h:i${s.enableSeconds?":S":""} K`}Object.defineProperty(n.config,"minDate",{get:()=>n.config._minDate,set:re("min")}),Object.defineProperty(n.config,"maxDate",{get:()=>n.config._maxDate,set:re("max")});const d=e=>t=>{n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")};Object.defineProperty(n.config,"minTime",{get:()=>n.config._minTime,set:d("min")}),Object.defineProperty(n.config,"maxTime",{get:()=>n.config._maxTime,set:d("max")}),"time"===s.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,l,s);for(let e=0;e<o.length;e++)n.config[o[e]]=!0===n.config[o[e]]||"true"===n.config[o[e]];r.filter((e=>void 0!==n.config[e])).forEach((e=>{n.config[e]=u(n.config[e]||[]).map(i)})),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let e=0;e<n.config.plugins.length;e++){const t=n.config.plugins[e](n)||{};for(const e in t)r.indexOf(e)>-1?n.config[e]=u(t[e]).map(i).concat(n.config[e]):void 0===s[e]&&(n.config[e]=t[e])}s.altInputClass||(n.config.altInputClass=ae().className+" "+n.config.altInputClass);me("onParseConfig")}(),ie(),function(){if(n.input=ae(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=p(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");n._positionElement=n.config.positionElement||n._input}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;const e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&de(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:(e=n.currentMonth,t=n.currentYear)=>1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]},n.isMobile||function(){const e=window.document.createDocumentFragment();if(n.calendarContainer=p("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=p("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=p("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=p("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,q(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:()=>n.__hidePrevMonthArrow,set(e){n.__hidePrevMonthArrow!==e&&(d(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:()=>n.__hideNextMonthArrow,set(e){n.__hideNextMonthArrow!==e&&(d(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],_e(),n.monthNav)),n.innerContainer=p("div","flatpickr-innerContainer"),n.config.weekNumbers){const{weekWrapper:e,weekNumbers:t}=function(){n.calendarContainer.classList.add("hasWeeks");const e=p("div","flatpickr-weekwrapper");e.appendChild(p("span","flatpickr-weekday",n.l10n.weekAbbreviation));const t=p("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}();n.innerContainer.appendChild(e),n.weekNumbers=t,n.weekWrapper=e}n.rContainer=p("div","flatpickr-rContainer"),n.rContainer.appendChild(V()),n.daysContainer||(n.daysContainer=p("div","flatpickr-days"),n.daysContainer.tabIndex=-1),H(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");const e=S(n.config);n.timeContainer=p("div","flatpickr-time"),n.timeContainer.tabIndex=-1;const t=p("span","flatpickr-time-separator",":"),r=h("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=r.getElementsByTagName("input")[0];const a=h("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=a.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(r),n.timeContainer.appendChild(t),n.timeContainer.appendChild(a),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");const t=h("flatpickr-second");n.secondElement=t.getElementsByTagName("input")[0],n.secondElement.value=s(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(p("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(t)}n.config.time_24hr||(n.amPM=p("span","flatpickr-am-pm",n.l10n.amPM[l((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());d(n.calendarContainer,"rangeMode","range"===n.config.mode),d(n.calendarContainer,"animate",!0===n.config.animate),d(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);const t=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!t&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){const e=p("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(e,n.element),e.appendChild(n.element),n.altInput&&e.appendChild(n.altInput),e.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach((e=>{Array.prototype.forEach.call(n.element.querySelectorAll(`[data-${e}]`),(t=>E(t,"click",n[e])))}));if(n.isMobile)return void function(){const e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=p("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}E(n.mobileInput,"change",(e=>{n.setDate(_(e).value,!1,n.mobileFormatStr),me("onChange"),me("onClose")}))}();const e=c(ne,50);n._debouncedChange=c(A,300),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&E(n.daysContainer,"mouseover",(e=>{"range"===n.config.mode&&te(_(e))}));E(window.document.body,"keydown",ee),n.config.inline||n.config.static||E(window,"resize",e);void 0!==window.ontouchstart?E(window.document,"touchstart",Z):E(window.document,"mousedown",Z);E(window.document,"focus",Z,{capture:!0}),!0===n.config.clickOpens&&(E(n._input,"focus",n.open),E(n._input,"click",n.open));void 0!==n.daysContainer&&(E(n.monthNav,"click",ye),E(n.monthNav,["keyup","increment"],O),E(n.daysContainer,"click",ce));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){const e=e=>_(e).select();E(n.timeContainer,["increment"],y),E(n.timeContainer,"blur",y,{capture:!0}),E(n.timeContainer,"click",$),E([n.hourElement,n.minuteElement],["focus","click"],e),void 0!==n.secondElement&&E(n.secondElement,"focus",(()=>n.secondElement&&n.secondElement.select())),void 0!==n.amPM&&E(n.amPM,"click",(e=>{y(e),A()}))}n.config.allowInput&&E(n._input,"blur",Q)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&C(n.config.noCalendar?n.latestSelectedDateObj:void 0),ge(!1)),v();const o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&o&&oe(),me("onReady")}(),n}function L(e,t){const n=Array.prototype.slice.call(e).filter((e=>e instanceof HTMLElement)),r=[];for(let e=0;e<n.length;e++){const a=n[e];try{if(null!==a.getAttribute("data-fp-omit"))continue;void 0!==a._flatpickr&&(a._flatpickr.destroy(),a._flatpickr=void 0),a._flatpickr=C(a,t||{}),r.push(a._flatpickr)}catch(e){console.error(e)}}return 1===r.length?r[0]:r}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return L(this,e)},HTMLElement.prototype.flatpickr=function(e){return L([this],e)});var T=function(e,t){return"string"==typeof e?L(window.document.querySelectorAll(e),t):e instanceof Node?L([e],t):L(e,t)};T.defaultConfig={},T.l10ns={en:Object.assign({},o),default:Object.assign({},o)},T.localize=e=>{T.l10ns.default=Object.assign(Object.assign({},T.l10ns.default),e)},T.setDefaults=e=>{T.defaultConfig=Object.assign(Object.assign({},T.defaultConfig),e)},T.parseDate=k({}),T.formatDate=x({}),T.compareDates=D,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return L(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=T);const O=T},1895:()=>{"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e,...t){if(!e)throw TypeError("Cannot convert undefined or null to object");for(const n of t)n&&Object.keys(n).forEach((t=>e[t]=n[t]));return e})},1518:e=>{!function(){var t=new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$","i");function n(e){for(var t="",n=0;n<e;n++)t+=(65536*(1+Math.random())|0).toString(16).substring(1);return t}function r(e){if(!e)throw new TypeError("Invalid argument; `value` has no value.");this.value=r.EMPTY,e&&e instanceof r?this.value=e.toString():e&&"[object String]"===Object.prototype.toString.call(e)&&r.isGuid(e)&&(this.value=e),this.equals=function(e){return r.isGuid(e)&&this.value==e},this.isEmpty=function(){return this.value===r.EMPTY},this.toString=function(){return this.value},this.toJSON=function(){return this.value}}r.EMPTY="00000000-0000-0000-0000-000000000000",r.isGuid=function(e){return e&&(e instanceof r||t.test(e.toString()))},r.create=function(){return new r([n(2),n(1),n(1),n(1),n(3)].join("-"))},r.raw=function(){return[n(2),n(1),n(1),n(1),n(3)].join("-")},e.exports?e.exports=r:"undefined"!=typeof window&&(window.Guid=r)}()},9755:function(e,t){var n;!function(t,n){"use strict";"object"==typeof 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:this,(function(r,a){"use strict";var i=[],o=Object.getPrototypeOf,s=i.slice,l=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},c=i.push,u=i.indexOf,d={},p=d.toString,m=d.hasOwnProperty,f=m.toString,h=f.call(Object),_={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},y=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,a,i=(n=n||y).createElement("script");if(i.text=e,t)for(r in b)(a=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,a);n.head.appendChild(i).parentNode.removeChild(i)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var k="3.5.1",D=function(e,t){return new D.fn.init(e,t)};function M(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}D.fn=D.prototype={jquery:k,constructor:D,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=D.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return D.each(this,e)},map:function(e){return this.pushStack(D.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(D.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(D.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},D.extend=D.fn.extend=function(){var e,t,n,r,a,i,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||v(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&o!==r&&(c&&r&&(D.isPlainObject(r)||(a=Array.isArray(r)))?(n=o[t],i=a&&!Array.isArray(n)?[]:a||D.isPlainObject(n)?n:{},a=!1,o[t]=D.extend(c,i,r)):void 0!==r&&(o[t]=r));return o},D.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=o(e))||"function"==typeof(n=m.call(t,"constructor")&&t.constructor)&&f.call(n)===h)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(M(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?D.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,a=e.length;r<n;r++)e[a++]=t[r];return e.length=a,e},grep:function(e,t,n){for(var r=[],a=0,i=e.length,o=!n;a<i;a++)!t(e[a],a)!==o&&r.push(e[a]);return r},map:function(e,t,n){var r,a,i=0,o=[];if(M(e))for(r=e.length;i<r;i++)null!=(a=t(e[i],i,n))&&o.push(a);else for(i in e)null!=(a=t(e[i],i,n))&&o.push(a);return l(o)},guid:1,support:_}),"function"==typeof Symbol&&(D.fn[Symbol.iterator]=i[Symbol.iterator]),D.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var S=function(e){var t,n,r,a,i,o,s,l,c,u,d,p,m,f,h,_,v,g,y,b="sizzle"+1*new Date,w=e.document,x=0,k=0,D=le(),M=le(),S=le(),C=le(),L=function(e,t){return e===t&&(d=!0),0},T={}.hasOwnProperty,O=[],E=O.pop,A=O.push,j=O.push,$=O.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Y="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\[[\\x20\\t\\r\\n\\f]*("+z+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+N+"*\\]",F=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",H=new RegExp(N+"+","g"),R=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),B=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),q=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),V=new RegExp(N+"|>"),W=new RegExp(F),U=new RegExp("^"+z+"$"),K={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+Y+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){p()},oe=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(O=$.call(w.childNodes),w.childNodes),O[w.childNodes.length].nodeType}catch(e){j={apply:O.length?function(e,t){A.apply(e,$.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,a){var i,s,c,u,d,f,v,g=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!a&&(p(t),t=t||m,h)){if(11!==w&&(d=Q.exec(e)))if(i=d[1]){if(9===w){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(g&&(c=g.getElementById(i))&&y(t,c)&&c.id===i)return r.push(c),r}else{if(d[2])return j.apply(r,t.getElementsByTagName(e)),r;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return j.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!C[e+" "]&&(!_||!_.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,g=t,1===w&&(V.test(e)||q.test(e))){for((g=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ae):t.setAttribute("id",u=b)),s=(f=o(e)).length;s--;)f[s]=(u?"#"+u:":scope")+" "+ye(f[s]);v=f.join(",")}try{return j.apply(r,g.querySelectorAll(v)),r}catch(t){C(e,!0)}finally{u===b&&t.removeAttribute("id")}}}return l(e.replace(R,"$1"),t,r,a)}function le(){var e=[];return function t(n,a){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function ce(e){return e[b]=!0,e}function ue(e){var t=m.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),a=n.length;a--;)r.attrHandle[n[a]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function me(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(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&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function _e(e){return ce((function(t){return t=+t,ce((function(n,r){for(var a,i=e([],n.length,t),o=i.length;o--;)n[a=i[o]]&&(n[a]=!(r[a]=n[a]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Z.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,a,o=e?e.ownerDocument||e:w;return o!=m&&9===o.nodeType&&o.documentElement?(f=(m=o).documentElement,h=!i(m),w!=m&&(a=m.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",ie,!1):a.attachEvent&&a.attachEvent("onunload",ie)),n.scope=ue((function(e){return f.appendChild(e).appendChild(m.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(m.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(m.getElementsByClassName),n.getById=ue((function(e){return f.appendChild(e).id=b,!m.getElementsByName||!m.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}}):(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.ID=function(e,t){if(void 0!==t.getElementById&&h){var n,r,a,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(a=t.getElementsByName(e),r=0;i=a[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),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=[],a=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[a++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},v=[],_=[],(n.qsa=X.test(m.querySelectorAll))&&(ue((function(e){var t;f.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||_.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+Y+")"),e.querySelectorAll("[id~="+b+"-]").length||_.push("~="),(t=m.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||_.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||_.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||_.push(".#.+[+~]"),e.querySelectorAll("\\\f"),_.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=m.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&_.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&_.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),_.push(",.*:")}))),(n.matchesSelector=X.test(g=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),v.push("!=",F)})),_=_.length&&new RegExp(_.join("|")),v=v.length&&new RegExp(v.join("|")),t=X.test(f.compareDocumentPosition),y=t||X.test(f.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},L=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==m||e.ownerDocument==w&&y(w,e)?-1:t==m||t.ownerDocument==w&&y(w,t)?1:u?P(u,e)-P(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,a=e.parentNode,i=t.parentNode,o=[e],s=[t];if(!a||!i)return e==m?-1:t==m?1:a?-1:i?1:u?P(u,e)-P(u,t):0;if(a===i)return pe(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?pe(o[r],s[r]):o[r]==w?-1:s[r]==w?1:0},m):m},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&h&&!C[t+" "]&&(!v||!v.test(t))&&(!_||!_.test(t)))try{var r=g.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){C(t,!0)}return se(t,m,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=m&&p(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=m&&p(e);var a=r.attrHandle[t.toLowerCase()],i=a&&T.call(r.attrHandle,t.toLowerCase())?a(e,t,!h):void 0;return void 0!==i?i:n.attributes||!h?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,ae)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],a=0,i=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(L),d){for(;t=e[i++];)t===e[i]&&(a=r.push(i));for(;a--;)e.splice(r[a],1)}return u=null,e},a=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=a(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ce,match:K,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]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=o(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=D[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+N+"|$)"))&&D(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 a=se.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,a){var i="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,m,f,h=i!==o?"nextSibling":"previousSibling",_=t.parentNode,v=s&&t.nodeName.toLowerCase(),g=!l&&!s,y=!1;if(_){if(i){for(;h;){for(p=t;p=p[h];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=h="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?_.firstChild:_.lastChild],o&&g){for(y=(m=(c=(u=(d=(p=_)[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],p=m&&_.childNodes[m];p=++m&&p&&p[h]||(y=m=0)||f.pop();)if(1===p.nodeType&&++y&&p===t){u[e]=[x,m,y];break}}else if(g&&(y=m=(c=(u=(d=(p=t)[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===y)for(;(p=++m&&p&&p[h]||(y=m=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++y||(g&&((u=(d=p[b]||(p[b]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[x,y]),p!==t)););return(y-=a)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,a=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[b]?a(t):a.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,i=a(e,t),o=i.length;o--;)e[r=P(e,i[o])]=!(n[r]=i[o])})):function(e){return a(e,0,n)}):a}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(R,"$1"));return r[b]?ce((function(e,t,n,a){for(var i,o=r(e,null,a,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))})):function(e,a,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||a(t)).indexOf(e)>-1}})),lang:ce((function(e){return U.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=h?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===f},focus:function(e){return e===m.activeElement&&(!m.hasFocus||m.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!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!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return G.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:_e((function(){return[0]})),last:_e((function(e,t){return[t-1]})),eq:_e((function(e,t,n){return[n<0?n+t:n]})),even:_e((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:_e((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:_e((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:_e((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=me(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ge(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,a=t.next,i=a||r,o=n&&"parentNode"===i,s=k++;return t.first?function(t,n,a){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,a);return!1}:function(t,n,l){var c,u,d,p=[x,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=(d=t[b]||(t[b]={}))[t.uniqueID]||(d[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[i])&&c[0]===x&&c[1]===s)return p[2]=c[2];if(u[i]=p,p[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var a=e.length;a--;)if(!e[a](t,n,r))return!1;return!0}:e[0]}function xe(e,t,n,r,a){for(var i,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,r,a)||(o.push(i),c&&t.push(s)));return o}function ke(e,t,n,r,a,i){return r&&!r[b]&&(r=ke(r)),a&&!a[b]&&(a=ke(a,i)),ce((function(i,o,s,l){var c,u,d,p=[],m=[],f=o.length,h=i||function(e,t,n){for(var r=0,a=t.length;r<a;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),_=!e||!i&&t?h:xe(h,p,e,s,l),v=n?a||(i?e:f||r)?[]:o:_;if(n&&n(_,v,s,l),r)for(c=xe(v,m),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[m[u]]=!(_[m[u]]=d));if(i){if(a||e){if(a){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(_[u]=d);a(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=a?P(i,d):p[u])>-1&&(i[c]=!(o[c]=d))}}else v=xe(v===o?v.splice(f,v.length):v),a?a(null,o,v,l):j.apply(o,v)}))}function De(e){for(var t,n,a,i=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],l=o?1:0,u=be((function(e){return e===t}),s,!0),d=be((function(e){return P(t,e)>-1}),s,!0),p=[function(e,n,r){var a=!o&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,a}];l<i;l++)if(n=r.relative[e[l].type])p=[be(we(p),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[b]){for(a=++l;a<i&&!r.relative[e[a].type];a++);return ke(l>1&&we(p),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(R,"$1"),n,l<a&&De(e.slice(l,a)),a<i&&De(e=e.slice(a)),a<i&&ye(e))}p.push(n)}return we(p)}return ge.prototype=r.filters=r.pseudos,r.setFilters=new ge,o=se.tokenize=function(e,t){var n,a,i,o,s,l,c,u=M[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(o in n&&!(a=B.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(i=[])),n=!1,(a=q.exec(s))&&(n=a.shift(),i.push({value:n,type:a[0].replace(R," ")}),s=s.slice(n.length)),r.filter)!(a=K[o].exec(s))||c[o]&&!(a=c[o](a))||(n=a.shift(),i.push({value:n,type:o,matches:a}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):M(e,l).slice(0)},s=se.compile=function(e,t){var n,a=[],i=[],s=S[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=De(t[n]))[b]?a.push(s):i.push(s);(s=S(e,function(e,t){var n=t.length>0,a=e.length>0,i=function(i,o,s,l,u){var d,f,_,v=0,g="0",y=i&&[],b=[],w=c,k=i||a&&r.find.TAG("*",u),D=x+=null==w?1:Math.random()||.1,M=k.length;for(u&&(c=o==m||o||u);g!==M&&null!=(d=k[g]);g++){if(a&&d){for(f=0,o||d.ownerDocument==m||(p(d),s=!h);_=e[f++];)if(_(d,o||m,s)){l.push(d);break}u&&(x=D)}n&&((d=!_&&d)&&v--,i&&y.push(d))}if(v+=g,n&&g!==v){for(f=0;_=t[f++];)_(y,b,o,s);if(i){if(v>0)for(;g--;)y[g]||b[g]||(b[g]=E.call(l));b=xe(b)}j.apply(l,b),u&&!i&&b.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(x=D,c=w),y};return n?ce(i):i}(i,a))).selector=e}return s},l=se.select=function(e,t,n,a){var i,l,c,u,d,p="function"==typeof e&&e,m=!a&&o(e=p.selector||e);if(n=n||[],1===m.length){if((l=m[0]=m[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&h&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=K.needsContext.test(e)?0:l.length;i--&&(c=l[i],!r.relative[u=c.type]);)if((d=r.find[u])&&(a=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(i,1),!(e=a.length&&ye(l)))return j.apply(n,a),n;break}}return(p||s(e,m))(a,t,!h,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=b.split("").sort(L).join("")===b,n.detectDuplicates=!!d,p(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(m.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(Y,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(r);D.find=S,D.expr=S.selectors,D.expr[":"]=D.expr.pseudos,D.uniqueSort=D.unique=S.uniqueSort,D.text=S.getText,D.isXMLDoc=S.isXML,D.contains=S.contains,D.escapeSelector=S.escape;var C=function(e,t,n){for(var r=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&D(e).is(n))break;r.push(e)}return r},L=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},T=D.expr.match.needsContext;function O(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(e,t,n){return v(t)?D.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?D.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?D.grep(e,(function(e){return u.call(t,e)>-1!==n})):D.filter(t,e,n)}D.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?D.find.matchesSelector(r,e)?[r]:[]:D.find.matches(e,D.grep(t,(function(e){return 1===e.nodeType})))},D.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!=typeof e)return this.pushStack(D(e).filter((function(){for(t=0;t<r;t++)if(D.contains(a[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)D.find(e,a[t],n);return r>1?D.uniqueSort(n):n},filter:function(e){return this.pushStack(A(this,e||[],!1))},not:function(e){return this.pushStack(A(this,e||[],!0))},is:function(e){return!!A(this,"string"==typeof e&&T.test(e)?D(e):e||[],!1).length}});var j,$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(D.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:$.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 D?t[0]:t,D.merge(this,D.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),E.test(r[1])&&D.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(a=y.getElementById(r[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(D):D.makeArray(e,this)}).prototype=D.fn,j=D(y);var P=/^(?:parents|prev(?:Until|All))/,Y={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}D.fn.extend({has:function(e){var t=D(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(D.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,a=this.length,i=[],o="string"!=typeof e&&D(e);if(!T.test(e))for(;r<a;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&D.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?D.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(D(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(D.uniqueSort(D.merge(this.get(),D(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),D.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 N(e,"nextSibling")},prev:function(e){return N(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 L((e.parentNode||{}).firstChild,e)},children:function(e){return L(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(O(e,"template")&&(e=e.content||e),D.merge([],e.childNodes))}},(function(e,t){D.fn[e]=function(n,r){var a=D.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(a=D.filter(r,a)),this.length>1&&(Y[e]||D.uniqueSort(a),P.test(e)&&a.reverse()),this.pushStack(a)}}));var z=/[^\x20\t\r\n\f]+/g;function I(e){return e}function F(e){throw e}function H(e,t,n,r){var a;try{e&&v(a=e.promise)?a.call(e).done(t).fail(n):e&&v(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}D.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return D.each(e.match(z)||[],(function(e,n){t[n]=!0})),t}(e):D.extend({},e);var t,n,r,a,i=[],o=[],s=-1,l=function(){for(a=a||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,a&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,o.push(n)),function t(n){D.each(n,(function(n,r){v(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return D.each(arguments,(function(e,t){for(var n;(n=D.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--})),this},has:function(e){return e?D.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return a=o=[],i=n="",this},disabled:function(){return!i},lock:function(){return a=o=[],n||t||(i=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},D.extend({Deferred:function(e){var t=[["notify","progress",D.Callbacks("memory"),D.Callbacks("memory"),2],["resolve","done",D.Callbacks("once memory"),D.Callbacks("once memory"),0,"resolved"],["reject","fail",D.Callbacks("once memory"),D.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return D.Deferred((function(n){D.each(t,(function(t,r){var a=v(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=a&&a.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,a){var i=0;function o(e,t,n,a){return function(){var s=this,l=arguments,c=function(){var r,c;if(!(e<i)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(c)?a?c.call(r,o(i,t,I,a),o(i,t,F,a)):(i++,c.call(r,o(i,t,I,a),o(i,t,F,a),o(i,t,I,t.notifyWith))):(n!==I&&(s=void 0,l=[r]),(a||t.resolveWith)(s,l))}},u=a?c:function(){try{c()}catch(r){D.Deferred.exceptionHook&&D.Deferred.exceptionHook(r,u.stackTrace),e+1>=i&&(n!==F&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?u():(D.Deferred.getStackHook&&(u.stackTrace=D.Deferred.getStackHook()),r.setTimeout(u))}}return D.Deferred((function(r){t[0][3].add(o(0,r,v(a)?a:I,r.notifyWith)),t[1][3].add(o(0,r,v(e)?e:I)),t[2][3].add(o(0,r,v(n)?n:F))})).promise()},promise:function(e){return null!=e?D.extend(e,a):a}},i={};return D.each(t,(function(e,r){var o=r[2],s=r[5];a[r[1]]=o.add,s&&o.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(r[3].fire),i[r[0]]=function(){return i[r[0]+"With"](this===i?void 0:this,arguments),this},i[r[0]+"With"]=o.fireWith})),a.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),a=s.call(arguments),i=D.Deferred(),o=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?s.call(arguments):n,--t||i.resolveWith(r,a)}};if(t<=1&&(H(e,i.done(o(n)).resolve,i.reject,!t),"pending"===i.state()||v(a[n]&&a[n].then)))return i.then();for(;n--;)H(a[n],o(n),i.reject);return i.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;D.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&R.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},D.readyException=function(e){r.setTimeout((function(){throw e}))};var B=D.Deferred();function q(){y.removeEventListener("DOMContentLoaded",q),r.removeEventListener("load",q),D.ready()}D.fn.ready=function(e){return B.then(e).catch((function(e){D.readyException(e)})),this},D.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--D.readyWait:D.isReady)||(D.isReady=!0,!0!==e&&--D.readyWait>0||B.resolveWith(y,[D]))}}),D.ready.then=B.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?r.setTimeout(D.ready):(y.addEventListener("DOMContentLoaded",q),r.addEventListener("load",q));var V=function(e,t,n,r,a,i,o){var s=0,l=e.length,c=null==n;if("object"===x(n))for(s in a=!0,n)V(e,t,s,n[s],!0,i,o);else if(void 0!==r&&(a=!0,v(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(D(e),n)})),t))for(;s<l;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return a?e:c?t.call(e):l?t(e[0],n):i},W=/^-ms-/,U=/-([a-z])/g;function K(e,t){return t.toUpperCase()}function Z(e){return e.replace(W,"ms-").replace(U,K)}var G=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=D.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,a=this.cache(e);if("string"==typeof t)a[Z(t)]=n;else for(r in t)a[Z(r)]=t[r];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Z(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(Z):(t=Z(t))in r?[t]:t.match(z)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||D.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!D.isEmptyObject(t)}};var X=new J,Q=new J,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}D.extend({hasData:function(e){return Q.hasData(e)||X.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),D.fn.extend({data:function(e,t){var n,r,a,i=this[0],o=i&&i.attributes;if(void 0===e){if(this.length&&(a=Q.get(i),1===i.nodeType&&!X.get(i,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=Z(r.slice(5)),ne(i,r,a[r]));X.set(i,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){Q.set(this,e)})):V(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=Q.get(i,e))||void 0!==(n=ne(i,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),D.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=X.get(e,t),n&&(!r||Array.isArray(n)?r=X.access(e,t,D.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=D.queue(e,t),r=n.length,a=n.shift(),i=D._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),r--),a&&("fx"===t&&n.unshift("inprogress"),delete i.stop,a.call(e,(function(){D.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:D.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",n])}))})}}),D.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?D.queue(this[0],e):void 0===t?this:this.each((function(){var n=D.queue(this,e,t);D._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&D.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){D.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,a=D.Deferred(),i=this,o=this.length,s=function(){--r||a.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=X.get(i[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),a.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ae=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],oe=y.documentElement,se=function(e){return D.contains(e.ownerDocument,e)},le={composed:!0};oe.getRootNode&&(se=function(e){return D.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===D.css(e,"display")};function ue(e,t,n,r){var a,i,o=20,s=r?function(){return r.cur()}:function(){return D.css(e,t,"")},l=s(),c=n&&n[3]||(D.cssNumber[t]?"":"px"),u=e.nodeType&&(D.cssNumber[t]||"px"!==c&&+l)&&ae.exec(D.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)D.style(e,t,u+c),(1-i)*(1-(i=s()/l||.5))<=0&&(o=0),u/=i;u*=2,D.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,a=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=a)),a}var de={};function pe(e){var t,n=e.ownerDocument,r=e.nodeName,a=de[r];return a||(t=n.body.appendChild(n.createElement(r)),a=D.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),de[r]=a,a)}function me(e,t){for(var n,r,a=[],i=0,o=e.length;i<o;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(a[i]=X.get(r,"display")||null,a[i]||(r.style.display="")),""===r.style.display&&ce(r)&&(a[i]=pe(r))):"none"!==n&&(a[i]="none",X.set(r,"display",n)));for(i=0;i<o;i++)null!=a[i]&&(e[i].style.display=a[i]);return e}D.fn.extend({show:function(){return me(this,!0)},hide:function(){return me(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?D(this).show():D(this).hide()}))}});var fe,he,_e=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;fe=y.createDocumentFragment().appendChild(y.createElement("div")),(he=y.createElement("input")).setAttribute("type","radio"),he.setAttribute("checked","checked"),he.setAttribute("name","t"),fe.appendChild(he),_.checkClone=fe.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!fe.cloneNode(!0).lastChild.defaultValue,fe.innerHTML="<option></option>",_.option=!!fe.lastChild;var ye={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&O(e,t)?D.merge([e],n):n}function we(e,t){for(var n=0,r=e.length;n<r;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,_.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var xe=/<|&#?\w+;/;function ke(e,t,n,r,a){for(var i,o,s,l,c,u,d=t.createDocumentFragment(),p=[],m=0,f=e.length;m<f;m++)if((i=e[m])||0===i)if("object"===x(i))D.merge(p,i.nodeType?[i]:i);else if(xe.test(i)){for(o=o||d.appendChild(t.createElement("div")),s=(ve.exec(i)||["",""])[1].toLowerCase(),l=ye[s]||ye._default,o.innerHTML=l[1]+D.htmlPrefilter(i)+l[2],u=l[0];u--;)o=o.lastChild;D.merge(p,o.childNodes),(o=d.firstChild).textContent=""}else p.push(t.createTextNode(i));for(d.textContent="",m=0;i=p[m++];)if(r&&D.inArray(i,r)>-1)a&&a.push(i);else if(c=se(i),o=be(d.appendChild(i),"script"),c&&we(o),n)for(u=0;i=o[u++];)ge.test(i.type||"")&&n.push(i);return d}var De=/^key/,Me=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Le(){return!1}function Te(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Oe(e,t,n,r,a,i){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Oe(e,s,n,r,t[s],i);return e}if(null==r&&null==a?(a=n,r=n=void 0):null==a&&("string"==typeof n?(a=r,r=void 0):(a=r,r=n,n=void 0)),!1===a)a=Le;else if(!a)return e;return 1===i&&(o=a,(a=function(e){return D().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=D.guid++)),e.each((function(){D.event.add(this,t,a,r,n)}))}function Ee(e,t,n){n?(X.set(e,t,!1),D.event.add(e,t,{namespace:!1,handler:function(e){var r,a,i=X.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(D.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),X.set(this,t,i),r=n(this,t),this[t](),i!==(a=X.get(this,t))||r?X.set(this,t,!1):a={},i!==a)return e.stopImmediatePropagation(),e.preventDefault(),a.value}else i.length&&(X.set(this,t,{value:D.event.trigger(D.extend(i[0],D.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&D.event.add(e,t,Ce)}D.event={global:{},add:function(e,t,n,r,a){var i,o,s,l,c,u,d,p,m,f,h,_=X.get(e);if(G(e))for(n.handler&&(n=(i=n).handler,a=i.selector),a&&D.find.matchesSelector(oe,a),n.guid||(n.guid=D.guid++),(l=_.events)||(l=_.events=Object.create(null)),(o=_.handle)||(o=_.handle=function(t){return void 0!==D&&D.event.triggered!==t.type?D.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(z)||[""]).length;c--;)m=h=(s=Se.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),m&&(d=D.event.special[m]||{},m=(a?d.delegateType:d.bindType)||m,d=D.event.special[m]||{},u=D.extend({type:m,origType:h,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&D.expr.match.needsContext.test(a),namespace:f.join(".")},i),(p=l[m])||((p=l[m]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,f,o)||e.addEventListener&&e.addEventListener(m,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),a?p.splice(p.delegateCount++,0,u):p.push(u),D.event.global[m]=!0)},remove:function(e,t,n,r,a){var i,o,s,l,c,u,d,p,m,f,h,_=X.hasData(e)&&X.get(e);if(_&&(l=_.events)){for(c=(t=(t||"").match(z)||[""]).length;c--;)if(m=h=(s=Se.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),m){for(d=D.event.special[m]||{},p=l[m=(r?d.delegateType:d.bindType)||m]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=i=p.length;i--;)u=p[i],!a&&h!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(i,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));o&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,_.handle)||D.removeEvent(e,m,_.handle),delete l[m])}else for(m in l)D.event.remove(e,m+t[c],n,r,!0);D.isEmptyObject(l)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,i,o,s=new Array(arguments.length),l=D.event.fix(e),c=(X.get(this,"events")||Object.create(null))[l.type]||[],u=D.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=D.event.handlers.call(this,l,c),t=0;(a=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=a.elem,n=0;(i=a.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,void 0!==(r=((D.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,a,i,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],o={},n=0;n<l;n++)void 0===o[a=(r=t[n]).selector+" "]&&(o[a]=r.needsContext?D(a,this).index(c)>-1:D.find(a,this,null,[c]).length),o[a]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(D.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[D.expando]?e:new D.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return _e.test(t.type)&&t.click&&O(t,"input")&&Ee(t,"click",Ce),!1},trigger:function(e){var t=this||e;return _e.test(t.type)&&t.click&&O(t,"input")&&Ee(t,"click"),!0},_default:function(e){var t=e.target;return _e.test(t.type)&&t.click&&O(t,"input")&&X.get(t,"click")||O(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},D.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},D.Event=function(e,t){if(!(this instanceof D.Event))return new D.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Le,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&D.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[D.expando]=!0},D.Event.prototype={constructor:D.Event,isDefaultPrevented:Le,isPropagationStopped:Le,isImmediatePropagationStopped:Le,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},D.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&De.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Me.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},D.event.addProp),D.each({focus:"focusin",blur:"focusout"},(function(e,t){D.event.special[e]={setup:function(){return Ee(this,e,Te),!1},trigger:function(){return Ee(this,e),!0},delegateType:t}})),D.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){D.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,a=e.relatedTarget,i=e.handleObj;return a&&(a===r||D.contains(r,a))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),D.fn.extend({on:function(e,t,n,r){return Oe(this,e,t,n,r)},one:function(e,t,n,r){return Oe(this,e,t,n,r,1)},off:function(e,t,n){var r,a;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,D(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Le),this.each((function(){D.event.remove(this,e,n,t)}))}});var Ae=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,$e=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pe(e,t){return O(e,"table")&&O(11!==t.nodeType?t:t.firstChild,"tr")&&D(e).children("tbody")[0]||e}function Ye(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ze(e,t){var n,r,a,i,o,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(a in X.remove(t,"handle events"),s)for(n=0,r=s[a].length;n<r;n++)D.event.add(t,a,s[a][n]);Q.hasData(e)&&(i=Q.access(e),o=D.extend({},i),Q.set(t,o))}}function Ie(e,t){var n=t.nodeName.toLowerCase();"input"===n&&_e.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Fe(e,t,n,r){t=l(t);var a,i,o,s,c,u,d=0,p=e.length,m=p-1,f=t[0],h=v(f);if(h||p>1&&"string"==typeof f&&!_.checkClone&&je.test(f))return e.each((function(a){var i=e.eq(a);h&&(t[0]=f.call(this,a,i.html())),Fe(i,t,n,r)}));if(p&&(i=(a=ke(t,e[0].ownerDocument,!1,e,r)).firstChild,1===a.childNodes.length&&(a=i),i||r)){for(s=(o=D.map(be(a,"script"),Ye)).length;d<p;d++)c=a,d!==m&&(c=D.clone(c,!0,!0),s&&D.merge(o,be(c,"script"))),n.call(e[d],c,d);if(s)for(u=o[o.length-1].ownerDocument,D.map(o,Ne),d=0;d<s;d++)c=o[d],ge.test(c.type||"")&&!X.access(c,"globalEval")&&D.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?D._evalUrl&&!c.noModule&&D._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace($e,""),c,u))}return e}function He(e,t,n){for(var r,a=t?D.filter(t,e):e,i=0;null!=(r=a[i]);i++)n||1!==r.nodeType||D.cleanData(be(r)),r.parentNode&&(n&&se(r)&&we(be(r,"script")),r.parentNode.removeChild(r));return e}D.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,a,i,o,s=e.cloneNode(!0),l=se(e);if(!(_.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||D.isXMLDoc(e)))for(o=be(s),r=0,a=(i=be(e)).length;r<a;r++)Ie(i[r],o[r]);if(t)if(n)for(i=i||be(e),o=o||be(s),r=0,a=i.length;r<a;r++)ze(i[r],o[r]);else ze(e,s);return(o=be(s,"script")).length>0&&we(o,!l&&be(e,"script")),s},cleanData:function(e){for(var t,n,r,a=D.event.special,i=0;void 0!==(n=e[i]);i++)if(G(n)){if(t=n[X.expando]){if(t.events)for(r in t.events)a[r]?D.event.remove(n,r):D.removeEvent(n,r,t.handle);n[X.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),D.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return V(this,(function(e){return void 0===e?D.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 Fe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pe(this,e).appendChild(e)}))},prepend:function(){return Fe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Pe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Fe(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&&(D.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return D.clone(this,e,t)}))},html:function(e){return V(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&&!Ae.test(e)&&!ye[(ve.exec(e)||["",""])[1].toLowerCase()]){e=D.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(D.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Fe(this,arguments,(function(t){var n=this.parentNode;D.inArray(this,e)<0&&(D.cleanData(be(this)),n&&n.replaceChild(t,this))}),e)}}),D.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){D.fn[e]=function(e){for(var n,r=[],a=D(e),i=a.length-1,o=0;o<=i;o++)n=o===i?this:this.clone(!0),D(a[o])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Re=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),Be=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},qe=function(e,t,n){var r,a,i={};for(a in t)i[a]=e.style[a],e.style[a]=t[a];for(a in r=n.call(e),t)e.style[a]=i[a];return r},Ve=new RegExp(ie.join("|"),"i");function We(e,t,n){var r,a,i,o,s=e.style;return(n=n||Be(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||se(e)||(o=D.style(e,t)),!_.pixelBoxStyles()&&Re.test(o)&&Ve.test(t)&&(r=s.width,a=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=a,s.maxWidth=i)),void 0!==o?o+"":o}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(c).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),a=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),oe.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,a,i,o,s,l,c=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle="content-box"===u.style.backgroundClip,D.extend(_,{boxSizingReliable:function(){return e(),a},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,a;return null==s&&(e=y.createElement("table"),t=y.createElement("tr"),n=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",oe.appendChild(e).appendChild(t).appendChild(n),a=r.getComputedStyle(t),s=parseInt(a.height)>3,oe.removeChild(e)),s}}))}();var Ke=["Webkit","Moz","ms"],Ze=y.createElement("div").style,Ge={};function Je(e){var t=D.cssProps[e]||Ge[e];return t||(e in Ze?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ke.length;n--;)if((e=Ke[n]+t)in Ze)return e}(e)||e)}var Xe=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=ae.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,a,i){var o="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=D.css(e,n+ie[o],!0,a)),r?("content"===n&&(l-=D.css(e,"padding"+ie[o],!0,a)),"margin"!==n&&(l-=D.css(e,"border"+ie[o]+"Width",!0,a))):(l+=D.css(e,"padding"+ie[o],!0,a),"padding"!==n?l+=D.css(e,"border"+ie[o]+"Width",!0,a):s+=D.css(e,"border"+ie[o]+"Width",!0,a));return!r&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))||0),l}function at(e,t,n){var r=Be(e),a=(!_.boxSizingReliable()||n)&&"border-box"===D.css(e,"boxSizing",!1,r),i=a,o=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Re.test(o)){if(!n)return o;o="auto"}return(!_.boxSizingReliable()&&a||!_.reliableTrDimensions()&&O(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===D.css(e,"display",!1,r))&&e.getClientRects().length&&(a="border-box"===D.css(e,"boxSizing",!1,r),(i=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+rt(e,t,n||(a?"border":"content"),i,r,o)+"px"}function it(e,t,n,r,a){return new it.prototype.init(e,t,n,r,a)}D.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,i,o,s=Z(t),l=Qe.test(t),c=e.style;if(l||(t=Je(s)),o=D.cssHooks[t]||D.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(a=o.get(e,!1,r))?a:c[t];"string"===(i=typeof n)&&(a=ae.exec(n))&&a[1]&&(n=ue(e,t,a),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=a&&a[3]||(D.cssNumber[s]?"":"px")),_.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var a,i,o,s=Z(t);return Qe.test(t)||(t=Je(s)),(o=D.cssHooks[t]||D.cssHooks[s])&&"get"in o&&(a=o.get(e,!0,n)),void 0===a&&(a=We(e,t,r)),"normal"===a&&t in tt&&(a=tt[t]),""===n||n?(i=parseFloat(a),!0===n||isFinite(i)?i||0:a):a}}),D.each(["height","width"],(function(e,t){D.cssHooks[t]={get:function(e,n,r){if(n)return!Xe.test(D.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?at(e,t,r):qe(e,et,(function(){return at(e,t,r)}))},set:function(e,n,r){var a,i=Be(e),o=!_.scrollboxSize()&&"absolute"===i.position,s=(o||r)&&"border-box"===D.css(e,"boxSizing",!1,i),l=r?rt(e,t,r,s,i):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-rt(e,t,"border",!1,i)-.5)),l&&(a=ae.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=D.css(e,t)),nt(0,n,l)}}})),D.cssHooks.marginLeft=Ue(_.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-qe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),D.each({margin:"",padding:"",border:"Width"},(function(e,t){D.cssHooks[e+t]={expand:function(n){for(var r=0,a={},i="string"==typeof n?n.split(" "):[n];r<4;r++)a[e+ie[r]+t]=i[r]||i[r-2]||i[0];return a}},"margin"!==e&&(D.cssHooks[e+t].set=nt)})),D.fn.extend({css:function(e,t){return V(this,(function(e,t,n){var r,a,i={},o=0;if(Array.isArray(t)){for(r=Be(e),a=t.length;o<a;o++)i[t[o]]=D.css(e,t[o],!1,r);return i}return void 0!==n?D.style(e,t,n):D.css(e,t)}),e,t,arguments.length>1)}}),D.Tween=it,it.prototype={constructor:it,init:function(e,t,n,r,a,i){this.elem=e,this.prop=n,this.easing=a||D.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(D.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=D.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):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.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=D.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){D.fx.step[e.prop]?D.fx.step[e.prop](e):1!==e.elem.nodeType||!D.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:D.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},D.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},D.fx=it.prototype.init,D.fx.step={};var ot,st,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){st&&(!1===y.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ut):r.setTimeout(ut,D.fx.interval),D.fx.tick())}function dt(){return r.setTimeout((function(){ot=void 0})),ot=Date.now()}function pt(e,t){var n,r=0,a={height:e};for(t=t?1:0;r<4;r+=2-t)a["margin"+(n=ie[r])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function mt(e,t,n){for(var r,a=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),i=0,o=a.length;i<o;i++)if(r=a[i].call(n,t,e))return r}function ft(e,t,n){var r,a,i=0,o=ft.prefilters.length,s=D.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var t=ot||dt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,o=c.tweens.length;i<o;i++)c.tweens[i].run(r);return s.notifyWith(e,[c,r,n]),r<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:D.extend({},t),opts:D.extend(!0,{specialEasing:{},easing:D.easing._default},n),originalProperties:t,originalOptions:n,startTime:ot||dt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=D.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,a,i,o;for(n in e)if(a=t[r=Z(n)],i=e[n],Array.isArray(i)&&(a=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(o=D.cssHooks[r])&&"expand"in o)for(n in i=o.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=a);else t[r]=a}(u,c.opts.specialEasing);i<o;i++)if(r=ft.prefilters[i].call(c,e,u,c.opts))return v(r.stop)&&(D._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return D.map(u,mt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),D.fx.timer(D.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}D.Animation=D.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ae.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(z);for(var n,r=0,a=e.length;r<a;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,a,i,o,s,l,c,u,d="width"in t||"height"in t,p=this,m={},f=e.style,h=e.nodeType&&ce(e),_=X.get(e,"fxshow");for(r in n.queue||(null==(o=D._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,p.always((function(){p.always((function(){o.unqueued--,D.queue(e,"fx").length||o.empty.fire()}))}))),t)if(a=t[r],lt.test(a)){if(delete t[r],i=i||"toggle"===a,a===(h?"hide":"show")){if("show"!==a||!_||void 0===_[r])continue;h=!0}m[r]=_&&_[r]||D.style(e,r)}if((l=!D.isEmptyObject(t))||!D.isEmptyObject(m))for(r in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=_&&_.display)&&(c=X.get(e,"display")),"none"===(u=D.css(e,"display"))&&(c?u=c:(me([e],!0),c=e.style.display||c,u=D.css(e,"display"),me([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===D.css(e,"float")&&(l||(p.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,m)l||(_?"hidden"in _&&(h=_.hidden):_=X.access(e,"fxshow",{display:c}),i&&(_.hidden=!h),h&&me([e],!0),p.done((function(){for(r in h||me([e]),X.remove(e,"fxshow"),m)D.style(e,r,m[r])}))),l=mt(h?_[r]:0,r,p),r in _||(_[r]=l.start,h&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),D.speed=function(e,t,n){var r=e&&"object"==typeof e?D.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return D.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in D.fx.speeds?r.duration=D.fx.speeds[r.duration]:r.duration=D.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&D.dequeue(this,r.queue)},r},D.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var a=D.isEmptyObject(e),i=D.speed(t,n,r),o=function(){var t=ft(this,D.extend({},e),i);(a||X.get(this,"finish"))&&t.stop(!0)};return o.finish=o,a||!1===i.queue?this.each(o):this.queue(i.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",i=D.timers,o=X.get(this);if(a)o[a]&&o[a].stop&&r(o[a]);else for(a in o)o[a]&&o[a].stop&&ct.test(a)&&r(o[a]);for(a=i.length;a--;)i[a].elem!==this||null!=e&&i[a].queue!==e||(i[a].anim.stop(n),t=!1,i.splice(a,1));!t&&n||D.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=X.get(this),r=n[e+"queue"],a=n[e+"queueHooks"],i=D.timers,o=r?r.length:0;for(n.finish=!0,D.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),D.each(["toggle","show","hide"],(function(e,t){var n=D.fn[t];D.fn[t]=function(e,r,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(pt(t,!0),e,r,a)}})),D.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){D.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),D.timers=[],D.fx.tick=function(){var e,t=0,n=D.timers;for(ot=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||D.fx.stop(),ot=void 0},D.fx.timer=function(e){D.timers.push(e),D.fx.start()},D.fx.interval=13,D.fx.start=function(){st||(st=!0,ut())},D.fx.stop=function(){st=null},D.fx.speeds={slow:600,fast:200,_default:400},D.fn.delay=function(e,t){return e=D.fx&&D.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var a=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(a)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",_.checkOn=""!==e.value,_.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",_.radioValue="t"===e.value}();var ht,_t=D.expr.attrHandle;D.fn.extend({attr:function(e,t){return V(this,D.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){D.removeAttr(this,e)}))}}),D.extend({attr:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?D.prop(e,t,n):(1===i&&D.isXMLDoc(e)||(a=D.attrHooks[t.toLowerCase()]||(D.expr.match.bool.test(t)?ht:void 0)),void 0!==n?null===n?void D.removeAttr(e,t):a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(r=a.get(e,t))?r:null==(r=D.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!_.radioValue&&"radio"===t&&O(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,a=t&&t.match(z);if(a&&1===e.nodeType)for(;n=a[r++];)e.removeAttribute(n)}}),ht={set:function(e,t,n){return!1===t?D.removeAttr(e,n):e.setAttribute(n,n),n}},D.each(D.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=_t[t]||D.find.attr;_t[t]=function(e,t,r){var a,i,o=t.toLowerCase();return r||(i=_t[o],_t[o]=a,a=null!=n(e,t,r)?o:null,_t[o]=i),a}}));var vt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function yt(e){return(e.match(z)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}D.fn.extend({prop:function(e,t){return V(this,D.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[D.propFix[e]||e]}))}}),D.extend({prop:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&D.isXMLDoc(e)||(t=D.propFix[t]||t,a=D.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:e[t]=n:a&&"get"in a&&null!==(r=a.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=D.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(D.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)}}),D.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){D.propFix[this.toLowerCase()]=this})),D.fn.extend({addClass:function(e){var t,n,r,a,i,o,s,l=0;if(v(e))return this.each((function(t){D(this).addClass(e.call(this,t,bt(this)))}));if((t=wt(e)).length)for(;n=this[l++];)if(a=bt(n),r=1===n.nodeType&&" "+yt(a)+" "){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a!==(s=yt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,a,i,o,s,l=0;if(v(e))return this.each((function(t){D(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=wt(e)).length)for(;n=this[l++];)if(a=bt(n),r=1===n.nodeType&&" "+yt(a)+" "){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");a!==(s=yt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):v(e)?this.each((function(n){D(this).toggleClass(e.call(this,n,bt(this),t),t)})):this.each((function(){var t,a,i,o;if(r)for(a=0,i=D(this),o=wt(e);t=o[a++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=bt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+yt(bt(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;D.fn.extend({val:function(e){var t,n,r,a=this[0];return arguments.length?(r=v(e),this.each((function(n){var a;1===this.nodeType&&(null==(a=r?e.call(this,n,D(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=D.map(a,(function(e){return null==e?"":e+""}))),(t=D.valHooks[this.type]||D.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=D.valHooks[a.type]||D.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(xt,""):null==n?"":n:void 0}}),D.extend({valHooks:{option:{get:function(e){var t=D.find.attr(e,"value");return null!=t?t:yt(D.text(e))}},select:{get:function(e){var t,n,r,a=e.options,i=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?i+1:a.length;for(r=i<0?l:o?i:0;r<l;r++)if(((n=a[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!O(n.parentNode,"optgroup"))){if(t=D(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,a=e.options,i=D.makeArray(t),o=a.length;o--;)((r=a[o]).selected=D.inArray(D.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),D.each(["radio","checkbox"],(function(){D.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=D.inArray(D(e).val(),t)>-1}},_.checkOn||(D.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),_.focusin="onfocusin"in r;var kt=/^(?:focusinfocus|focusoutblur)$/,Dt=function(e){e.stopPropagation()};D.extend(D.event,{trigger:function(e,t,n,a){var i,o,s,l,c,u,d,p,f=[n||y],h=m.call(e,"type")?e.type:e,_=m.call(e,"namespace")?e.namespace.split("."):[];if(o=p=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!kt.test(h+D.event.triggered)&&(h.indexOf(".")>-1&&(_=h.split("."),h=_.shift(),_.sort()),c=h.indexOf(":")<0&&"on"+h,(e=e[D.expando]?e:new D.Event(h,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=_.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:D.makeArray(t,[e]),d=D.event.special[h]||{},a||!d.trigger||!1!==d.trigger.apply(n,t))){if(!a&&!d.noBubble&&!g(n)){for(l=d.delegateType||h,kt.test(l+h)||(o=o.parentNode);o;o=o.parentNode)f.push(o),s=o;s===(n.ownerDocument||y)&&f.push(s.defaultView||s.parentWindow||r)}for(i=0;(o=f[i++])&&!e.isPropagationStopped();)p=o,e.type=i>1?l:d.bindType||h,(u=(X.get(o,"events")||Object.create(null))[e.type]&&X.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&G(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=h,a||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!G(n)||c&&v(n[h])&&!g(n)&&((s=n[c])&&(n[c]=null),D.event.triggered=h,e.isPropagationStopped()&&p.addEventListener(h,Dt),n[h](),e.isPropagationStopped()&&p.removeEventListener(h,Dt),D.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var r=D.extend(new D.Event,n,{type:e,isSimulated:!0});D.event.trigger(r,null,t)}}),D.fn.extend({trigger:function(e,t){return this.each((function(){D.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return D.event.trigger(e,t,n,!0)}}),_.focusin||D.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){D.event.simulate(t,e.target,D.event.fix(e))};D.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,a=X.access(r,t);a||r.addEventListener(e,n,!0),X.access(r,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,a=X.access(r,t)-1;a?X.access(r,t,a):(r.removeEventListener(e,n,!0),X.remove(r,t))}}}));var Mt=r.location,St={guid:Date.now()},Ct=/\?/;D.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||D.error("Invalid XML: "+e),t};var Lt=/\[\]$/,Tt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function At(e,t,n,r){var a;if(Array.isArray(t))D.each(t,(function(t,a){n||Lt.test(e)?r(e,a):At(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(a in t)At(e+"["+a+"]",t[a],n,r)}D.param=function(e,t){var n,r=[],a=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!D.isPlainObject(e))D.each(e,(function(){a(this.name,this.value)}));else for(n in e)At(n,e[n],t,a);return r.join("&")},D.fn.extend({serialize:function(){return D.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=D.prop(this,"elements");return e?D.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!D(this).is(":disabled")&&Et.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!_e.test(e))})).map((function(e,t){var n=D(this).val();return null==n?null:Array.isArray(n)?D.map(n,(function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}})):{name:t.name,value:n.replace(Tt,"\r\n")}})).get()}});var jt=/%20/g,$t=/#.*$/,Pt=/([?&])_=[^&]*/,Yt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Nt=/^(?:GET|HEAD)$/,zt=/^\/\//,It={},Ft={},Ht="*/".concat("*"),Rt=y.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,a=0,i=t.toLowerCase().match(z)||[];if(v(n))for(;r=i[a++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qt(e,t,n,r){var a={},i=e===Ft;function o(s){var l;return a[s]=!0,D.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||i||a[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!a["*"]&&o("*")}function Vt(e,t){var n,r,a=D.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:r||(r={}))[n]=t[n]);return r&&D.extend(!0,e,r),e}Rt.href=Mt.href,D.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,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":D.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,D.ajaxSettings),t):Vt(D.ajaxSettings,e)},ajaxPrefilter:Bt(It),ajaxTransport:Bt(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,a,i,o,s,l,c,u,d,p,m=D.ajaxSetup({},t),f=m.context||m,h=m.context&&(f.nodeType||f.jquery)?D(f):D.event,_=D.Deferred(),v=D.Callbacks("once memory"),g=m.statusCode||{},b={},w={},x="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=Yt.exec(i);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)g[t]=[g[t],e[t]];return this},abort:function(e){var t=e||x;return n&&n.abort(t),M(0,t),this}};if(_.promise(k),m.url=((e||m.url||Mt.href)+"").replace(zt,Mt.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(z)||[""],null==m.crossDomain){l=y.createElement("a");try{l.href=m.url,l.href=l.href,m.crossDomain=Rt.protocol+"//"+Rt.host!=l.protocol+"//"+l.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=D.param(m.data,m.traditional)),qt(It,m,t,k),c)return k;for(d in(u=D.event&&m.global)&&0==D.active++&&D.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Nt.test(m.type),a=m.url.replace($t,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(jt,"+")):(p=m.url.slice(a.length),m.data&&(m.processData||"string"==typeof m.data)&&(a+=(Ct.test(a)?"&":"?")+m.data,delete m.data),!1===m.cache&&(a=a.replace(Pt,"$1"),p=(Ct.test(a)?"&":"?")+"_="+St.guid+++p),m.url=a+p),m.ifModified&&(D.lastModified[a]&&k.setRequestHeader("If-Modified-Since",D.lastModified[a]),D.etag[a]&&k.setRequestHeader("If-None-Match",D.etag[a])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&k.setRequestHeader("Content-Type",m.contentType),k.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Ht+"; q=0.01":""):m.accepts["*"]),m.headers)k.setRequestHeader(d,m.headers[d]);if(m.beforeSend&&(!1===m.beforeSend.call(f,k,m)||c))return k.abort();if(x="abort",v.add(m.complete),k.done(m.success),k.fail(m.error),n=qt(Ft,m,t,k)){if(k.readyState=1,u&&h.trigger("ajaxSend",[k,m]),c)return k;m.async&&m.timeout>0&&(s=r.setTimeout((function(){k.abort("timeout")}),m.timeout));try{c=!1,n.send(b,M)}catch(e){if(c)throw e;M(-1,e)}}else M(-1,"No Transport");function M(e,t,o,l){var d,p,y,b,w,x=t;c||(c=!0,s&&r.clearTimeout(s),n=void 0,i=l||"",k.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(b=function(e,t,n){for(var r,a,i,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)i=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){i=a;break}o||(o=a)}i=i||o}if(i)return i!==l[0]&&l.unshift(i),n[i]}(m,k,o)),!d&&D.inArray("script",m.dataTypes)>-1&&(m.converters["text script"]=function(){}),b=function(e,t,n,r){var a,i,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(o=c[l+" "+i]||c["* "+i]))for(a in c)if((s=a.split(" "))[1]===i&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[a]:!0!==c[a]&&(i=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(m,b,k,d),d?(m.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(D.lastModified[a]=w),(w=k.getResponseHeader("etag"))&&(D.etag[a]=w)),204===e||"HEAD"===m.type?x="nocontent":304===e?x="notmodified":(x=b.state,p=b.data,d=!(y=b.error))):(y=x,!e&&x||(x="error",e<0&&(e=0))),k.status=e,k.statusText=(t||x)+"",d?_.resolveWith(f,[p,x,k]):_.rejectWith(f,[k,x,y]),k.statusCode(g),g=void 0,u&&h.trigger(d?"ajaxSuccess":"ajaxError",[k,m,d?p:y]),v.fireWith(f,[k,x]),u&&(h.trigger("ajaxComplete",[k,m]),--D.active||D.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return D.get(e,t,n,"json")},getScript:function(e,t){return D.get(e,void 0,t,"script")}}),D.each(["get","post"],(function(e,t){D[t]=function(e,n,r,a){return v(n)&&(a=a||r,r=n,n=void 0),D.ajax(D.extend({url:e,type:t,dataType:a,data:n,success:r},D.isPlainObject(e)&&e))}})),D.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),D._evalUrl=function(e,t,n){return D.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){D.globalEval(e,t,n)}})},D.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=D(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 v(e)?this.each((function(t){D(this).wrapInner(e.call(this,t))})):this.each((function(){var t=D(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){D(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){D(this).replaceWith(this.childNodes)})),this}}),D.expr.pseudos.hidden=function(e){return!D.expr.pseudos.visible(e)},D.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},D.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},Ut=D.ajaxSettings.xhr();_.cors=!!Ut&&"withCredentials"in Ut,_.ajax=Ut=!!Ut,D.ajaxTransport((function(e){var t,n;if(_.cors||Ut&&!e.crossDomain)return{send:function(a,i){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(o,a[o]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Wt[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=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.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()}}})),D.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),D.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 D.globalEval(e),e}}}),D.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),D.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,a){t=D("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Kt,Zt=[],Gt=/(=)\?(?=&|$)|\?\?/;D.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Zt.pop()||D.expando+"_"+St.guid++;return this[e]=!0,e}}),D.ajaxPrefilter("json jsonp",(function(e,t,n){var a,i,o,s=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Gt,"$1"+a):!1!==e.jsonp&&(e.url+=(Ct.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return o||D.error(a+" was not called"),o[0]},e.dataTypes[0]="json",i=r[a],r[a]=function(){o=arguments},n.always((function(){void 0===i?D(r).removeProp(a):r[a]=i,e[a]&&(e.jsonpCallback=t.jsonpCallback,Zt.push(a)),o&&v(i)&&i(o[0]),o=i=void 0})),"script"})),_.createHTMLDocument=((Kt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Kt.childNodes.length),D.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(_.createHTMLDocument?((r=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(r)):t=y),i=!n&&[],(a=E.exec(e))?[t.createElement(a[1])]:(a=ke([e],t,i),i&&i.length&&D(i).remove(),D.merge([],a.childNodes)));var r,a,i},D.fn.load=function(e,t,n){var r,a,i,o=this,s=e.indexOf(" ");return s>-1&&(r=yt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),o.length>0&&D.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){i=arguments,o.html(r?D("<div>").append(D.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},D.expr.pseudos.animated=function(e){return D.grep(D.timers,(function(t){return e===t.elem})).length},D.offset={setOffset:function(e,t,n){var r,a,i,o,s,l,c=D.css(e,"position"),u=D(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),i=D.css(e,"top"),l=D.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(o=(r=u.position()).top,a=r.left):(o=parseFloat(i)||0,a=parseFloat(l)||0),v(t)&&(t=t.call(e,n,D.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+a),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},D.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){D.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],a={top:0,left:0};if("fixed"===D.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===D.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((a=D(e).offset()).top+=D.css(e,"borderTopWidth",!0),a.left+=D.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-D.css(r,"marginTop",!0),left:t.left-a.left-D.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===D.css(e,"position");)e=e.offsetParent;return e||oe}))}}),D.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;D.fn[e]=function(r){return V(this,(function(e,r,a){var i;if(g(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===a)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:a,n?a:i.pageYOffset):e[r]=a}),e,r,arguments.length)}})),D.each(["top","left"],(function(e,t){D.cssHooks[t]=Ue(_.pixelPosition,(function(e,n){if(n)return n=We(e,t),Re.test(n)?D(e).position()[t]+"px":n}))})),D.each({Height:"height",Width:"width"},(function(e,t){D.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){D.fn[r]=function(a,i){var o=arguments.length&&(n||"boolean"!=typeof a),s=n||(!0===a||!0===i?"margin":"border");return V(this,(function(t,n,a){var i;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===a?D.css(t,n,s):D.style(t,n,a,s)}),t,o?a:void 0,o)}}))})),D.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){D.fn[t]=function(e){return this.on(t,e)}})),D.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),D.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){D.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Jt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;D.proxy=function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),(a=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||D.guid++,a},D.holdReady=function(e){e?D.readyWait++:D.ready(!0)},D.isArray=Array.isArray,D.parseJSON=JSON.parse,D.nodeName=O,D.isFunction=v,D.isWindow=g,D.camelCase=Z,D.type=x,D.now=Date.now,D.isNumeric=function(e){var t=D.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},D.trim=function(e){return null==e?"":(e+"").replace(Jt,"")},void 0===(n=function(){return D}.apply(t,[]))||(e.exports=n);var Xt=r.jQuery,Qt=r.$;return D.noConflict=function(e){return r.$===D&&(r.$=Qt),e&&r.jQuery===D&&(r.jQuery=Xt),D},void 0===a&&(r.jQuery=r.$=D),D}))},8552:(e,t,n)=>{var r=n(852)(n(5639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(1789),a=n(401),i=n(7667),o=n(1327),s=n(1866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},8407:(e,t,n)=>{var r=n(7040),a=n(4125),i=n(2117),o=n(7518),s=n(4705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),a=n(1285),i=n(6e3),o=n(9916),s=n(5265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},3818:(e,t,n)=>{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");e.exports=r},8668:(e,t,n)=>{var r=n(3369),a=n(619),i=n(2385);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=a,o.prototype.has=i,e.exports=o},6384:(e,t,n)=>{var r=n(8407),a=n(7465),i=n(3779),o=n(7599),s=n(4758),l=n(4309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},6874:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},4963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}},4636:(e,t,n)=>{var r=n(2545),a=n(5694),i=n(1469),o=n(4144),s=n(5776),l=n(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&a(e),d=!n&&!u&&o(e),p=!n&&!u&&!d&&l(e),m=n||u||d||p,f=m?r(e.length,String):[],h=f.length;for(var _ in e)!t&&!c.call(e,_)||m&&("length"==_||d&&("offset"==_||"parent"==_)||p&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||s(_,h))||f.push(_);return f}},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},6556:(e,t,n)=>{var r=n(9465),a=n(7813);e.exports=function(e,t,n){(void 0!==n&&!a(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},4865:(e,t,n)=>{var r=n(9465),a=n(7813),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];i.call(e,t)&&a(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},9465:(e,t,n)=>{var r=n(8777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3118:(e,t,n)=>{var r=n(3218),a=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},8483:(e,t,n)=>{var r=n(5063)();e.exports=r},8866:(e,t,n)=>{var r=n(2488),a=n(1469);e.exports=function(e,t,n){var i=t(e);return a(e)?i:r(i,n(e))}},4239:(e,t,n)=>{var r=n(2705),a=n(9607),i=n(2333),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},9454:(e,t,n)=>{var r=n(4239),a=n(7005);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(2492),a=n(7005);e.exports=function e(t,n,i,o,s){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!=t&&n!=n:r(t,n,i,o,e,s))}},2492:(e,t,n)=>{var r=n(6384),a=n(7114),i=n(8351),o=n(6096),s=n(4160),l=n(1469),c=n(4144),u=n(6719),d="[object Arguments]",p="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,_,v){var g=l(e),y=l(t),b=g?p:s(e),w=y?p:s(t),x=(b=b==d?m:b)==m,k=(w=w==d?m:w)==m,D=b==w;if(D&&c(e)){if(!c(t))return!1;g=!0,x=!1}if(D&&!x)return v||(v=new r),g||u(e)?a(e,t,n,h,_,v):i(e,t,b,n,h,_,v);if(!(1&n)){var M=x&&f.call(e,"__wrapped__"),S=k&&f.call(t,"__wrapped__");if(M||S){var C=M?e.value():e,L=S?t.value():t;return v||(v=new r),_(C,L,n,h,v)}}return!!D&&(v||(v=new r),o(e,t,n,h,_,v))}},8458:(e,t,n)=>{var r=n(3560),a=n(5346),i=n(3218),o=n(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(r(e)?p:s).test(o(e))}},8749:(e,t,n)=>{var r=n(4239),a=n(1780),i=n(7005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[r(e)]}},280:(e,t,n)=>{var r=n(7360),a=n(6916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},313:(e,t,n)=>{var r=n(3218),a=n(7360),i=n(3498),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=a(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},2980:(e,t,n)=>{var r=n(6384),a=n(6556),i=n(8483),o=n(9783),s=n(3218),l=n(1704),c=n(6390);e.exports=function e(t,n,u,d,p){t!==n&&i(n,(function(i,l){if(p||(p=new r),s(i))o(t,n,l,u,e,d,p);else{var m=d?d(c(t,l),i,l+"",t,n,p):void 0;void 0===m&&(m=i),a(t,l,m)}}),l)}},9783:(e,t,n)=>{var r=n(6556),a=n(4626),i=n(7133),o=n(278),s=n(8517),l=n(5694),c=n(1469),u=n(9246),d=n(4144),p=n(3560),m=n(3218),f=n(8630),h=n(6719),_=n(6390),v=n(9881);e.exports=function(e,t,n,g,y,b,w){var x=_(e,n),k=_(t,n),D=w.get(k);if(D)r(e,n,D);else{var M=b?b(x,k,n+"",e,t,w):void 0,S=void 0===M;if(S){var C=c(k),L=!C&&d(k),T=!C&&!L&&h(k);M=k,C||L||T?c(x)?M=x:u(x)?M=o(x):L?(S=!1,M=a(k,!0)):T?(S=!1,M=i(k,!0)):M=[]:f(k)||l(k)?(M=x,l(x)?M=v(x):m(x)&&!p(x)||(M=s(k))):S=!1}S&&(w.set(k,M),y(M,k,g,b,w),w.delete(k)),r(e,n,M)}}},5976:(e,t,n)=>{var r=n(6557),a=n(5357),i=n(61);e.exports=function(e,t){return i(a(e,t,r),e+"")}},6560:(e,t,n)=>{var r=n(5703),a=n(8777),i=n(6557),o=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=o},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},4318:(e,t,n)=>{var r=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},4626:(e,t,n)=>{e=n.nmd(e);var r=n(5639),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},7133:(e,t,n)=>{var r=n(4318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},8363:(e,t,n)=>{var r=n(4865),a=n(9465);e.exports=function(e,t,n,i){var o=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?a(n,c,u):r(n,c,u)}return n}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},1463:(e,t,n)=>{var r=n(5976),a=n(6612);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&a(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t}))}},5063:e=>{e.exports=function(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===n(i[l],l,i))break}return t}}},8777:(e,t,n)=>{var r=n(852),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},7114:(e,t,n)=>{var r=n(8668),a=n(2908),i=n(4757);e.exports=function(e,t,n,o,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),m=l.get(t);if(p&&m)return p==t&&m==e;var f=-1,h=!0,_=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var v=e[f],g=t[f];if(o)var y=c?o(g,v,f,t,e,l):o(v,g,f,e,t,l);if(void 0!==y){if(y)continue;h=!1;break}if(_){if(!a(t,(function(e,t){if(!i(_,t)&&(v===e||s(v,e,n,o,l)))return _.push(t)}))){h=!1;break}}else if(v!==g&&!s(v,g,n,o,l)){h=!1;break}}return l.delete(e),l.delete(t),h}},8351:(e,t,n)=>{var r=n(2705),a=n(1149),i=n(7813),o=n(7114),s=n(8776),l=n(1814),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=s;case"[object Set]":var f=1&r;if(m||(m=l),e.size!=t.size&&!f)return!1;var h=p.get(e);if(h)return h==t;r|=2,p.set(e,t);var _=o(m(e),m(t),r,c,d,p);return p.delete(e),_;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:a.call(t,p)))return!1}var m=s.get(e),f=s.get(t);if(m&&f)return m==t&&f==e;var h=!0;s.set(e,t),s.set(t,e);for(var _=l;++d<u;){var v=e[p=c[d]],g=t[p];if(i)var y=l?i(g,v,p,t,e,s):i(v,g,p,e,t,s);if(!(void 0===y?v===g||o(v,g,n,i,s):y)){h=!1;break}_||(_="constructor"==p)}if(h&&!_){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return s.delete(e),s.delete(t),h}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),a=n(9551),i=n(3674);e.exports=function(e){return r(e,i,a)}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},852:(e,t,n)=>{var r=n(8458),a=n(7801);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},5924:(e,t,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},9607:(e,t,n)=>{var r=n(2705),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[s]=n:delete e[s]),a}},9551:(e,t,n)=>{var r=n(4963),a=n(479),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:a;e.exports=s},4160:(e,t,n)=>{var r=n(8552),a=n(7071),i=n(3818),o=n(8525),s=n(577),l=n(4239),c=n(346),u="[object Map]",d="[object Promise]",p="[object Set]",m="[object WeakMap]",f="[object DataView]",h=c(r),_=c(a),v=c(i),g=c(o),y=c(s),b=l;(r&&b(new r(new ArrayBuffer(1)))!=f||a&&b(new a)!=u||i&&b(i.resolve())!=d||o&&b(new o)!=p||s&&b(new s)!=m)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case h:return f;case _:return u;case v:return d;case g:return p;case y:return m}return t}),e.exports=b},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},8517:(e,t,n)=>{var r=n(3118),a=n(5924),i=n(7360);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(a(e))}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:(e,t,n)=>{var r=n(7813),a=n(8612),i=n(5776),o=n(3218);e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?a(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,a=n(4429),i=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},7360:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7518:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),a=n(8407),i=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||a),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},3498:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1167:(e,t,n)=>{e=n.nmd(e);var r=n(1957),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5357:(e,t,n)=>{var r=n(6874),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=a(i.length-t,0),l=Array(s);++o<s;)l[o]=i[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=i[o];return c[t]=n(l),r(e,this,c)}}},5639:(e,t,n)=>{var r=n(1957),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},6390:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},61:(e,t,n)=>{var r=n(6560),a=n(1275)(r);e.exports=a},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var a=t(),i=16-(a-r);if(r=a,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),a=n(7071),i=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5703:e=>{e.exports=function(e){return function(){return e}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,n)=>{var r=n(9454),a=n(7005),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),a=n(1780);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},9246:(e,t,n)=>{var r=n(8612),a=n(7005);e.exports=function(e){return a(e)&&r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),a=n(5062),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||a;e.exports=l},8446:(e,t,n)=>{var r=n(939);e.exports=function(e,t){return r(e,t)}},3560:(e,t,n)=>{var r=n(4239),a=n(3218);e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8630:(e,t,n)=>{var r=n(4239),a=n(5924),i=n(7005),o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=a(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},6719:(e,t,n)=>{var r=n(8749),a=n(1717),i=n(1167),o=i&&i.isTypedArray,s=o?a(o):r;e.exports=s},3674:(e,t,n)=>{var r=n(4636),a=n(280),i=n(8612);e.exports=function(e){return i(e)?r(e):a(e)}},1704:(e,t,n)=>{var r=n(4636),a=n(313),i=n(8612);e.exports=function(e){return i(e)?r(e,!0):a(e)}},6486:function(e,t,n){var r;e=n.nmd(e),function(){var a,i="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,p=256,m=1/0,f=9007199254740991,h=NaN,_=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",p]],g="[object Arguments]",y="[object Array]",b="[object Boolean]",w="[object Date]",x="[object Error]",k="[object Function]",D="[object GeneratorFunction]",M="[object Map]",S="[object Number]",C="[object Object]",L="[object Promise]",T="[object RegExp]",O="[object Set]",E="[object String]",A="[object Symbol]",j="[object WeakMap]",$="[object ArrayBuffer]",P="[object DataView]",Y="[object Float32Array]",N="[object Float64Array]",z="[object Int8Array]",I="[object Int16Array]",F="[object Int32Array]",H="[object Uint8Array]",R="[object Uint8ClampedArray]",B="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,G=RegExp(K.source),J=RegExp(Z.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(ae.source),oe=/^\s+|\s+$/g,se=/^\s+/,le=/\s+$/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,de=/,? & /,pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,me=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,_e=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,De="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Me="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Le="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="[']",Ee="[\\ud800-\\udfff]",Ae="["+Te+"]",je="["+De+"]",$e="\\d+",Pe="[\\u2700-\\u27bf]",Ye="["+Se+"]",Ne="[^\\ud800-\\udfff"+Te+$e+Me+Se+Ce+"]",ze="\\ud83c[\\udffb-\\udfff]",Ie="[^\\ud800-\\udfff]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",Re="["+Ce+"]",Be="(?:"+Ye+"|"+Ne+")",qe="(?:"+Re+"|"+Ne+")",Ve="(?:['](?:d|ll|m|re|s|t|ve))?",We="(?:['](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+je+"|"+ze+")"+"?",Ke="[\\ufe0e\\ufe0f]?",Ze=Ke+Ue+("(?:\\u200d(?:"+[Ie,Fe,He].join("|")+")"+Ke+Ue+")*"),Ge="(?:"+[Pe,Fe,He].join("|")+")"+Ze,Je="(?:"+[Ie+je+"?",je,Fe,He,Ee].join("|")+")",Xe=RegExp(Oe,"g"),Qe=RegExp(je,"g"),et=RegExp(ze+"(?="+ze+")|"+Je+Ze,"g"),tt=RegExp([Re+"?"+Ye+"+"+Ve+"(?="+[Ae,Re,"$"].join("|")+")",qe+"+"+We+"(?="+[Ae,Re+Be,"$"].join("|")+")",Re+"?"+Be+"+"+Ve,Re+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$e,Ge].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+De+Le+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,ot={};ot[Y]=ot[N]=ot[z]=ot[I]=ot[F]=ot[H]=ot[R]=ot[B]=ot[q]=!0,ot[g]=ot[y]=ot[$]=ot[b]=ot[P]=ot[w]=ot[x]=ot[k]=ot[M]=ot[S]=ot[C]=ot[T]=ot[O]=ot[E]=ot[j]=!1;var st={};st[g]=st[y]=st[$]=st[P]=st[b]=st[w]=st[Y]=st[N]=st[z]=st[I]=st[F]=st[M]=st[S]=st[C]=st[T]=st[O]=st[E]=st[A]=st[H]=st[R]=st[B]=st[q]=!0,st[x]=st[k]=st[j]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,mt=dt||pt||Function("return this")(),ft=t&&!t.nodeType&&t,ht=ft&&e&&!e.nodeType&&e,_t=ht&&ht.exports===ft,vt=_t&&dt.process,gt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),yt=gt&&gt.isArrayBuffer,bt=gt&&gt.isDate,wt=gt&&gt.isMap,xt=gt&&gt.isRegExp,kt=gt&&gt.isSet,Dt=gt&&gt.isTypedArray;function Mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function St(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a<i;){var o=e[a];t(r,o,n(o),e)}return r}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Lt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}function Et(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function At(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function jt(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}function $t(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function Pt(e,t,n,r){var a=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++a]);++a<i;)n=t(n,e[a],a,e);return n}function Yt(e,t,n,r){var a=null==e?0:e.length;for(r&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function Nt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zt=Vt("length");function It(e,t,n){var r;return n(e,(function(e,n,a){if(t(e,n,a))return r=n,!1})),r}function Ft(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,n){return t==t?function(e,t,n){var r=n-1,a=e.length;for(;++r<a;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Bt,n)}function Rt(e,t,n,r){for(var a=n-1,i=e.length;++a<i;)if(r(e[a],t))return a;return-1}function Bt(e){return e!=e}function qt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:h}function Vt(e){return function(t){return null==t?a:t[e]}}function Wt(e){return function(t){return null==e?a:e[t]}}function Ut(e,t,n,r,a){return a(e,(function(e,a,i){n=r?(r=!1,e):t(n,e,a,i)})),n}function Kt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==a&&(n=n===a?o:n+o)}return n}function Zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Gt(e){return function(t){return e(t)}}function Jt(e,t){return jt(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&Ht(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var nn=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),rn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+lt[e]}function on(e){return nt.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var o=e[n];o!==t&&o!==s||(e[n]=s,i[a++]=n)}return i}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return on(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):zt(e)}function mn(e){return on(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}var fn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var hn=function e(t){var n,r=(t=null==t?mt:hn.defaults(mt.Object(),t,hn.pick(mt,at))).Array,De=t.Date,Me=t.Error,Se=t.Function,Ce=t.Math,Le=t.Object,Te=t.RegExp,Oe=t.String,Ee=t.TypeError,Ae=r.prototype,je=Se.prototype,$e=Le.prototype,Pe=t["__core-js_shared__"],Ye=je.toString,Ne=$e.hasOwnProperty,ze=0,Ie=(n=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Fe=$e.toString,He=Ye.call(Le),Re=mt._,Be=Te("^"+Ye.call(Ne).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=_t?t.Buffer:a,Ve=t.Symbol,We=t.Uint8Array,Ue=qe?qe.allocUnsafe:a,Ke=ln(Le.getPrototypeOf,Le),Ze=Le.create,Ge=$e.propertyIsEnumerable,Je=Ae.splice,et=Ve?Ve.isConcatSpreadable:a,nt=Ve?Ve.iterator:a,lt=Ve?Ve.toStringTag:a,dt=function(){try{var e=pi(Le,"defineProperty");return e({},"",{}),e}catch(e){}}(),pt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ft=De&&De.now!==mt.Date.now&&De.now,ht=t.setTimeout!==mt.setTimeout&&t.setTimeout,vt=Ce.ceil,gt=Ce.floor,zt=Le.getOwnPropertySymbols,Wt=qe?qe.isBuffer:a,_n=t.isFinite,vn=Ae.join,gn=ln(Le.keys,Le),yn=Ce.max,bn=Ce.min,wn=De.now,xn=t.parseInt,kn=Ce.random,Dn=Ae.reverse,Mn=pi(t,"DataView"),Sn=pi(t,"Map"),Cn=pi(t,"Promise"),Ln=pi(t,"Set"),Tn=pi(t,"WeakMap"),On=pi(Le,"create"),En=Tn&&new Tn,An={},jn=Ii(Mn),$n=Ii(Sn),Pn=Ii(Cn),Yn=Ii(Ln),Nn=Ii(Tn),zn=Ve?Ve.prototype:a,In=zn?zn.valueOf:a,Fn=zn?zn.toString:a;function Hn(e){if(rs(e)&&!Wo(e)&&!(e instanceof Vn)){if(e instanceof qn)return e;if(Ne.call(e,"__wrapped__"))return Fi(e)}return new qn(e)}var Rn=function(){function e(){}return function(t){if(!ns(t))return{};if(Ze)return Ze(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Bn(){}function qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Un(e);this.size=t.size}function Jn(e,t){var n=Wo(e),r=!n&&Vo(e),a=!n&&!r&&Go(e),i=!n&&!r&&!a&&ds(e),o=n||r||a||i,s=o?Zt(e.length,Oe):[],l=s.length;for(var c in e)!t&&!Ne.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||yi(c,l))||s.push(c);return s}function Xn(e){var t=e.length;return t?e[Zr(0,t-1)]:a}function Qn(e,t){return Yi(Oa(e),lr(t,0,e.length))}function er(e){return Yi(Oa(e))}function tr(e,t,n){(n!==a&&!Ro(e[t],n)||n===a&&!(t in e))&&or(e,t,n)}function nr(e,t,n){var r=e[t];Ne.call(e,t)&&Ro(r,n)&&(n!==a||t in e)||or(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Ro(e[n][0],t))return n;return-1}function ar(e,t,n,r){return mr(e,(function(e,a,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Ea(t,js(t),e)}function or(e,t,n){"__proto__"==t&&dt?dt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var n=-1,i=t.length,o=r(i),s=null==e;++n<i;)o[n]=s?a:Ls(e,t[n]);return o}function lr(e,t,n){return e==e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function cr(e,t,n,r,i,o){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!ns(e))return e;var d=Wo(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Oa(e,s)}else{var p=hi(e),m=p==k||p==D;if(Go(e))return Da(e,l);if(p==C||p==g||m&&!i){if(s=c||m?{}:vi(e),!l)return c?function(e,t){return Ea(e,fi(e),t)}(e,function(e,t){return e&&Ea(t,$s(t),e)}(s,e)):function(e,t){return Ea(e,mi(e),t)}(e,ir(s,e))}else{if(!st[p])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case $:return Ma(e);case b:case w:return new r(+e);case P:return function(e,t){var n=t?Ma(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case Y:case N:case z:case I:case F:case H:case R:case B:case q:return Sa(e,n);case M:return new r;case S:case E:return new r(e);case T:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new r;case A:return a=e,In?Le(In.call(a)):{}}var a}(e,p,l)}}o||(o=new Gn);var f=o.get(e);if(f)return f;o.set(e,s),ls(e)?e.forEach((function(r){s.add(cr(r,t,n,r,e,o))})):as(e)&&e.forEach((function(r,a){s.set(a,cr(r,t,n,a,e,o))}));var h=d?a:(u?c?ii:ai:c?$s:js)(e);return Ct(h||e,(function(r,a){h&&(r=e[a=r]),nr(s,a,cr(r,t,n,a,e,o))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Le(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Ee(i);return Ai((function(){e.apply(a,n)}),t)}function pr(e,t,n,r){var a=-1,i=Et,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=jt(t,Gt(n))),r?(i=At,o=!1):t.length>=200&&(i=Xt,o=!1,t=new Zn(t));e:for(;++a<s;){var u=e[a],d=null==n?u:n(u);if(u=r||0!==u?u:0,o&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Hn.templateSettings={escape:X,evaluate:Q,interpolate:ee,variable:"",imports:{_:Hn}},Hn.prototype=Bn.prototype,Hn.prototype.constructor=Hn,qn.prototype=Rn(Bn.prototype),qn.prototype.constructor=qn,Vn.prototype=Rn(Bn.prototype),Vn.prototype.constructor=Vn,Wn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===o?a:n}return Ne.call(t,e)?t[e]:a},Wn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==a:Ne.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===a?o:t,this},Un.prototype.clear=function(){this.__data__=[],this.size=0},Un.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,!0)},Un.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?a:t[n][1]},Un.prototype.has=function(e){return rr(this.__data__,e)>-1},Un.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Sn||Un),string:new Wn}},Kn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return ui(this,e).get(e)},Kn.prototype.has=function(e){return ui(this,e).has(e)},Kn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Zn.prototype.add=Zn.prototype.push=function(e){return this.__data__.set(e,o),this},Zn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Un,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Un){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var mr=$a(wr),fr=$a(xr,!0);function hr(e,t){var n=!0;return mr(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function _r(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],s=t(o);if(null!=s&&(l===a?s==s&&!us(s):n(s,l)))var l=s,c=o}return c}function vr(e,t){var n=[];return mr(e,(function(e,r,a){t(e,r,a)&&n.push(e)})),n}function gr(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=gi),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?gr(s,t-1,n,r,a):$t(a,s):r||(a[a.length]=s)}return a}var yr=Pa(),br=Pa(!0);function wr(e,t){return e&&yr(e,t,js)}function xr(e,t){return e&&br(e,t,js)}function kr(e,t){return Ot(t,(function(t){return Qo(e[t])}))}function Dr(e,t){for(var n=0,r=(t=ba(t,e)).length;null!=e&&n<r;)e=e[zi(t[n++])];return n&&n==r?e:a}function Mr(e,t,n){var r=t(e);return Wo(e)?r:$t(r,n(e))}function Sr(e){return null==e?e===a?"[object Undefined]":"[object Null]":lt&&lt in Le(e)?function(e){var t=Ne.call(e,lt),n=e[lt];try{e[lt]=a;var r=!0}catch(e){}var i=Fe.call(e);r&&(t?e[lt]=n:delete e[lt]);return i}(e):function(e){return Fe.call(e)}(e)}function Cr(e,t){return e>t}function Lr(e,t){return null!=e&&Ne.call(e,t)}function Tr(e,t){return null!=e&&t in Le(e)}function Or(e,t,n){for(var i=n?At:Et,o=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=jt(p,Gt(t))),u=bn(p.length,u),c[l]=!n&&(t||o>=120&&p.length>=120)?new Zn(l&&p):a}p=e[0];var m=-1,f=c[0];e:for(;++m<o&&d.length<u;){var h=p[m],_=t?t(h):h;if(h=n||0!==h?h:0,!(f?Xt(f,_):i(d,_,n))){for(l=s;--l;){var v=c[l];if(!(v?Xt(v,_):i(e[l],_,n)))continue e}f&&f.push(_),d.push(h)}}return d}function Er(e,t,n){var r=null==(e=Li(e,t=ba(t,e)))?e:e[zi(Ji(t))];return null==r?a:Mt(r,e,n)}function Ar(e){return rs(e)&&Sr(e)==g}function jr(e,t,n,r,i){return e===t||(null==e||null==t||!rs(e)&&!rs(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var s=Wo(e),l=Wo(t),c=s?y:hi(e),u=l?y:hi(t),d=(c=c==g?C:c)==C,p=(u=u==g?C:u)==C,m=c==u;if(m&&Go(e)){if(!Go(t))return!1;s=!0,d=!1}if(m&&!d)return o||(o=new Gn),s||ds(e)?ni(e,t,n,r,i,o):function(e,t,n,r,a,i,o){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $:return!(e.byteLength!=t.byteLength||!i(new We(e),new We(t)));case b:case w:case S:return Ro(+e,+t);case x:return e.name==t.name&&e.message==t.message;case T:case E:return e==t+"";case M:var s=sn;case O:var l=1&r;if(s||(s=un),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var u=ni(s(e),s(t),r,a,i,o);return o.delete(e),u;case A:if(In)return In.call(e)==In.call(t)}return!1}(e,t,c,n,r,i,o);if(!(1&n)){var f=d&&Ne.call(e,"__wrapped__"),h=p&&Ne.call(t,"__wrapped__");if(f||h){var _=f?e.value():e,v=h?t.value():t;return o||(o=new Gn),i(_,v,n,r,o)}}if(!m)return!1;return o||(o=new Gn),function(e,t,n,r,i,o){var s=1&n,l=ai(e),c=l.length,u=ai(t).length;if(c!=u&&!s)return!1;var d=c;for(;d--;){var p=l[d];if(!(s?p in t:Ne.call(t,p)))return!1}var m=o.get(e),f=o.get(t);if(m&&f)return m==t&&f==e;var h=!0;o.set(e,t),o.set(t,e);var _=s;for(;++d<c;){var v=e[p=l[d]],g=t[p];if(r)var y=s?r(g,v,p,t,e,o):r(v,g,p,e,t,o);if(!(y===a?v===g||i(v,g,n,r,o):y)){h=!1;break}_||(_="constructor"==p)}if(h&&!_){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o)}(e,t,n,r,jr,i))}function $r(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;for(e=Le(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===a&&!(c in e))return!1}else{var p=new Gn;if(r)var m=r(u,d,c,e,t,p);if(!(m===a?jr(d,u,3,r,p):m))return!1}}return!0}function Pr(e){return!(!ns(e)||(t=e,Ie&&Ie in t))&&(Qo(e)?Be:ge).test(Ii(e));var t}function Yr(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?Wo(e)?Rr(e[0],e[1]):Hr(e):fl(e)}function Nr(e){if(!Di(e))return gn(e);var t=[];for(var n in Le(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function zr(e){if(!ns(e))return function(e){var t=[];if(null!=e)for(var n in Le(e))t.push(n);return t}(e);var t=Di(e),n=[];for(var r in e)("constructor"!=r||!t&&Ne.call(e,r))&&n.push(r);return n}function Ir(e,t){return e<t}function Fr(e,t){var n=-1,a=Ko(e)?r(e.length):[];return mr(e,(function(e,r,i){a[++n]=t(e,r,i)})),a}function Hr(e){var t=di(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(n){return n===e||$r(n,e,t)}}function Rr(e,t){return wi(e)&&Mi(t)?Si(zi(e),t):function(n){var r=Ls(n,e);return r===a&&r===t?Ts(n,e):jr(t,r,3)}}function Br(e,t,n,r,i){e!==t&&yr(t,(function(o,s){if(i||(i=new Gn),ns(o))!function(e,t,n,r,i,o,s){var l=Oi(e,n),c=Oi(t,n),u=s.get(c);if(u)return void tr(e,n,u);var d=o?o(l,c,n+"",e,t,s):a,p=d===a;if(p){var m=Wo(c),f=!m&&Go(c),h=!m&&!f&&ds(c);d=c,m||f||h?Wo(l)?d=l:Zo(l)?d=Oa(l):f?(p=!1,d=Da(c,!0)):h?(p=!1,d=Sa(c,!0)):d=[]:os(c)||Vo(c)?(d=l,Vo(l)?d=ys(l):ns(l)&&!Qo(l)||(d=vi(c))):p=!1}p&&(s.set(c,d),i(d,c,r,o,s),s.delete(c));tr(e,n,d)}(e,t,s,n,Br,r,i);else{var l=r?r(Oi(e,s),o,s+"",e,t,i):a;l===a&&(l=o),tr(e,s,l)}}),$s)}function qr(e,t){var n=e.length;if(n)return yi(t+=t<0?n:0,n)?e[t]:a}function Vr(e,t,n){t=t.length?jt(t,(function(e){return Wo(e)?function(t){return Dr(t,1===e.length?e[0]:e)}:e})):[il];var r=-1;return t=jt(t,Gt(ci())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Fr(e,(function(e,n,a){return{criteria:jt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,a=e.criteria,i=t.criteria,o=a.length,s=n.length;for(;++r<o;){var l=Ca(a[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Wr(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=Dr(e,o);n(s,o)&&ea(i,ba(o,e),s)}return i}function Ur(e,t,n,r){var a=r?Rt:Ht,i=-1,o=t.length,s=e;for(e===t&&(t=Oa(t)),n&&(s=jt(e,Gt(n)));++i<o;)for(var l=0,c=t[i],u=n?n(c):c;(l=a(s,u,l,r))>-1;)s!==e&&Je.call(s,l,1),Je.call(e,l,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==i){var i=a;yi(a)?Je.call(e,a,1):pa(e,a)}}return e}function Zr(e,t){return e+gt(kn()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Jr(e,t){return ji(Ci(e,t,il),e+"")}function Xr(e){return Xn(Rs(e))}function Qr(e,t){var n=Rs(e);return Yi(n,lr(t,0,n.length))}function ea(e,t,n,r){if(!ns(e))return e;for(var i=-1,o=(t=ba(t,e)).length,s=o-1,l=e;null!=l&&++i<o;){var c=zi(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):a)===a&&(u=ns(d)?d:yi(t[i+1])?[]:{})}nr(l,c,u),l=l[c]}return e}var ta=En?function(e,t){return En.set(e,t),e}:il,na=dt?function(e,t){return dt(e,"toString",{configurable:!0,enumerable:!1,value:nl(t),writable:!0})}:il;function ra(e){return Yi(Rs(e))}function aa(e,t,n){var a=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=r(i);++a<i;)o[a]=e[a+t];return o}function ia(e,t){var n;return mr(e,(function(e,r,a){return!(n=t(e,r,a))})),!!n}function oa(e,t,n){var r=0,a=null==e?r:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;r<a;){var i=r+a>>>1,o=e[i];null!==o&&!us(o)&&(n?o<=t:o<t)?r=i+1:a=i}return a}return sa(e,t,il,n)}function sa(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,l=null===t,c=us(t),u=t===a;i<o;){var d=gt((i+o)/2),p=n(e[d]),m=p!==a,f=null===p,h=p==p,_=us(p);if(s)var v=r||h;else v=u?h&&(r||m):l?h&&m&&(r||!f):c?h&&m&&!f&&(r||!_):!f&&!_&&(r?p<=t:p<t);v?i=d+1:o=d}return bn(o,4294967294)}function la(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Ro(s,l)){var l=s;i[a++]=0===o?0:o}}return i}function ca(e){return"number"==typeof e?e:us(e)?h:+e}function ua(e){if("string"==typeof e)return e;if(Wo(e))return jt(e,ua)+"";if(us(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function da(e,t,n){var r=-1,a=Et,i=e.length,o=!0,s=[],l=s;if(n)o=!1,a=At;else if(i>=200){var c=t?null:Ga(e);if(c)return un(c);o=!1,a=Xt,l=new Zn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,o&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else a(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function pa(e,t){return null==(e=Li(e,t=ba(t,e)))||delete e[zi(Ji(t))]}function ma(e,t,n,r){return ea(e,t,n(Dr(e,t)),r)}function fa(e,t,n,r){for(var a=e.length,i=r?a:-1;(r?i--:++i<a)&&t(e[i],i,e););return n?aa(e,r?0:i,r?i+1:a):aa(e,r?i+1:0,r?a:i)}function ha(e,t){var n=e;return n instanceof Vn&&(n=n.value()),Pt(t,(function(e,t){return t.func.apply(t.thisArg,$t([e],t.args))}),n)}function _a(e,t,n){var a=e.length;if(a<2)return a?da(e[0]):[];for(var i=-1,o=r(a);++i<a;)for(var s=e[i],l=-1;++l<a;)l!=i&&(o[i]=pr(o[i]||s,e[l],t,n));return da(gr(o,1),t,n)}function va(e,t,n){for(var r=-1,i=e.length,o=t.length,s={};++r<i;){var l=r<o?t[r]:a;n(s,e[r],l)}return s}function ga(e){return Zo(e)?e:[]}function ya(e){return"function"==typeof e?e:il}function ba(e,t){return Wo(e)?e:wi(e,t)?[e]:Ni(bs(e))}var wa=Jr;function xa(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:aa(e,t,n)}var ka=pt||function(e){return mt.clearTimeout(e)};function Da(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function Ma(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Sa(e,t){var n=t?Ma(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ca(e,t){if(e!==t){var n=e!==a,r=null===e,i=e==e,o=us(e),s=t!==a,l=null===t,c=t==t,u=us(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||l&&n&&i||!s&&i||!c)return-1}return 0}function La(e,t,n,a){for(var i=-1,o=e.length,s=n.length,l=-1,c=t.length,u=yn(o-s,0),d=r(c+u),p=!a;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<o)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function Ta(e,t,n,a){for(var i=-1,o=e.length,s=-1,l=n.length,c=-1,u=t.length,d=yn(o-l,0),p=r(d+u),m=!a;++i<d;)p[i]=e[i];for(var f=i;++c<u;)p[f+c]=t[c];for(;++s<l;)(m||i<o)&&(p[f+n[s]]=e[i++]);return p}function Oa(e,t){var n=-1,a=e.length;for(t||(t=r(a));++n<a;)t[n]=e[n];return t}function Ea(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=r?r(n[l],e[l],l,n,e):a;c===a&&(c=e[l]),i?or(n,l,c):nr(n,l,c)}return n}function Aa(e,t){return function(n,r){var a=Wo(n)?St:ar,i=t?t():{};return a(n,e,ci(r,2),i)}}function ja(e){return Jr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&bi(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=Le(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t}))}function $a(e,t){return function(n,r){if(null==n)return n;if(!Ko(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Le(n);(t?i--:++i<a)&&!1!==r(o[i],i,o););return n}}function Pa(e){return function(t,n,r){for(var a=-1,i=Le(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===n(i[l],l,i))break}return t}}function Ya(e){return function(t){var n=on(t=bs(t))?mn(t):a,r=n?n[0]:t.charAt(0),i=n?xa(n,1).join(""):t.slice(1);return r[e]()+i}}function Na(e){return function(t){return Pt(Qs(Vs(t).replace(Xe,"")),e,"")}}function za(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Rn(e.prototype),r=e.apply(n,t);return ns(r)?r:n}}function Ia(e){return function(t,n,r){var i=Le(t);if(!Ko(t)){var o=ci(n,3);t=js(t),n=function(e){return o(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:a}}function Fa(e){return ri((function(t){var n=t.length,r=n,o=qn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ee(i);if(o&&!l&&"wrapper"==si(s))var l=new qn([],!0)}for(r=l?r:n;++r<n;){var c=si(s=t[r]),u="wrapper"==c?oi(s):a;l=u&&xi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[si(u[0])].apply(l,u[3]):1==s.length&&xi(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Wo(r))return l.plant(r).value();for(var a=0,i=n?t[a].apply(this,e):r;++a<n;)i=t[a].call(this,i);return i}}))}function Ha(e,t,n,i,o,s,l,c,u,p){var m=t&d,f=1&t,h=2&t,_=24&t,v=512&t,g=h?a:za(e);return function a(){for(var d=arguments.length,y=r(d),b=d;b--;)y[b]=arguments[b];if(_)var w=li(a),x=tn(y,w);if(i&&(y=La(y,i,o,_)),s&&(y=Ta(y,s,l,_)),d-=x,_&&d<p){var k=cn(y,w);return Ka(e,t,Ha,a.placeholder,n,y,k,c,u,p-d)}var D=f?n:this,M=h?D[e]:e;return d=y.length,c?y=Ti(y,c):v&&d>1&&y.reverse(),m&&u<d&&(y.length=u),this&&this!==mt&&this instanceof a&&(M=g||za(M)),M.apply(D,y)}}function Ra(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,a,i){t(r,n(e),a,i)})),r}(n,e,t(r),{})}}function Ba(e,t){return function(n,r){var i;if(n===a&&r===a)return t;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=ua(n),r=ua(r)):(n=ca(n),r=ca(r)),i=e(n,r)}return i}}function qa(e){return ri((function(t){return t=jt(t,Gt(ci())),Jr((function(n){var r=this;return e(t,(function(e){return Mt(e,r,n)}))}))}))}function Va(e,t){var n=(t=t===a?" ":ua(t)).length;if(n<2)return n?Gr(t,e):t;var r=Gr(t,vt(e/pn(t)));return on(t)?xa(mn(r),0,e).join(""):r.slice(0,e)}function Wa(e){return function(t,n,i){return i&&"number"!=typeof i&&bi(t,n,i)&&(n=i=a),t=hs(t),n===a?(n=t,t=0):n=hs(n),function(e,t,n,a){for(var i=-1,o=yn(vt((t-e)/(n||1)),0),s=r(o);o--;)s[a?o:++i]=e,e+=n;return s}(t,n,i=i===a?t<n?1:-1:hs(i),e)}}function Ua(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function Ka(e,t,n,r,i,o,s,l,d,p){var m=8&t;t|=m?c:u,4&(t&=~(m?u:c))||(t&=-4);var f=[e,t,i,m?o:a,m?s:a,m?a:o,m?a:s,l,d,p],h=n.apply(a,f);return xi(e)&&Ei(h,f),h.placeholder=r,$i(h,e,t)}function Za(e){var t=Ce[e];return function(e,n){if(e=gs(e),(n=null==n?0:bn(_s(n),292))&&_n(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ga=Ln&&1/un(new Ln([,-0]))[1]==m?function(e){return new Ln(e)}:ul;function Ja(e){return function(t){var n=hi(t);return n==M?sn(t):n==O?dn(t):function(e,t){return jt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xa(e,t,n,o,m,f,h,_){var v=2&t;if(!v&&"function"!=typeof e)throw new Ee(i);var g=o?o.length:0;if(g||(t&=-97,o=m=a),h=h===a?h:yn(_s(h),0),_=_===a?_:_s(_),g-=m?m.length:0,t&u){var y=o,b=m;o=m=a}var w=v?a:oi(e),x=[e,t,n,o,m,y,b,f,h,_];if(w&&function(e,t){var n=e[1],r=t[1],a=n|r,i=a<131,o=r==d&&8==n||r==d&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!o)return e;1&r&&(e[2]=t[2],a|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?La(c,l,t[4]):l,e[4]=c?cn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Ta(c,l,t[6]):l,e[6]=c?cn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(x,w),e=x[0],t=x[1],n=x[2],o=x[3],m=x[4],!(_=x[9]=x[9]===a?v?0:e.length:yn(x[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||t==l?function(e,t,n){var i=za(e);return function o(){for(var s=arguments.length,l=r(s),c=s,u=li(o);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:cn(l,u);return(s-=d.length)<n?Ka(e,t,Ha,o.placeholder,a,l,d,a,a,n-s):Mt(this&&this!==mt&&this instanceof o?i:e,this,l)}}(e,t,_):t!=c&&33!=t||m.length?Ha.apply(a,x):function(e,t,n,a){var i=1&t,o=za(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=a.length,d=r(u+l),p=this&&this!==mt&&this instanceof t?o:e;++c<u;)d[c]=a[c];for(;l--;)d[c++]=arguments[++s];return Mt(p,i?n:this,d)}}(e,t,n,o);else var k=function(e,t,n){var r=1&t,a=za(e);return function t(){return(this&&this!==mt&&this instanceof t?a:e).apply(r?n:this,arguments)}}(e,t,n);return $i((w?ta:Ei)(k,x),e,t)}function Qa(e,t,n,r){return e===a||Ro(e,$e[n])&&!Ne.call(r,n)?t:e}function ei(e,t,n,r,i,o){return ns(e)&&ns(t)&&(o.set(t,e),Br(e,t,a,ei,o),o.delete(t)),e}function ti(e){return os(e)?a:e}function ni(e,t,n,r,i,o){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var p=-1,m=!0,f=2&n?new Zn:a;for(o.set(e,t),o.set(t,e);++p<l;){var h=e[p],_=t[p];if(r)var v=s?r(_,h,p,t,e,o):r(h,_,p,e,t,o);if(v!==a){if(v)continue;m=!1;break}if(f){if(!Nt(t,(function(e,t){if(!Xt(f,t)&&(h===e||i(h,e,n,r,o)))return f.push(t)}))){m=!1;break}}else if(h!==_&&!i(h,_,n,r,o)){m=!1;break}}return o.delete(e),o.delete(t),m}function ri(e){return ji(Ci(e,a,Wi),e+"")}function ai(e){return Mr(e,js,mi)}function ii(e){return Mr(e,$s,fi)}var oi=En?function(e){return En.get(e)}:ul;function si(e){for(var t=e.name+"",n=An[t],r=Ne.call(An,t)?n.length:0;r--;){var a=n[r],i=a.func;if(null==i||i==e)return a.name}return t}function li(e){return(Ne.call(Hn,"placeholder")?Hn:e).placeholder}function ci(){var e=Hn.iteratee||ol;return e=e===ol?Yr:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n,r,a=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function di(e){for(var t=js(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,Mi(a)]}return t}function pi(e,t){var n=function(e,t){return null==e?a:e[t]}(e,t);return Pr(n)?n:a}var mi=zt?function(e){return null==e?[]:(e=Le(e),Ot(zt(e),(function(t){return Ge.call(e,t)})))}:vl,fi=zt?function(e){for(var t=[];e;)$t(t,mi(e)),e=Ke(e);return t}:vl,hi=Sr;function _i(e,t,n){for(var r=-1,a=(t=ba(t,e)).length,i=!1;++r<a;){var o=zi(t[r]);if(!(i=null!=e&&n(e,o)))break;e=e[o]}return i||++r!=a?i:!!(a=null==e?0:e.length)&&ts(a)&&yi(o,a)&&(Wo(e)||Vo(e))}function vi(e){return"function"!=typeof e.constructor||Di(e)?{}:Rn(Ke(e))}function gi(e){return Wo(e)||Vo(e)||!!(et&&e&&e[et])}function yi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function bi(e,t,n){if(!ns(n))return!1;var r=typeof t;return!!("number"==r?Ko(n)&&yi(t,n.length):"string"==r&&t in n)&&Ro(n[t],e)}function wi(e,t){if(Wo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Le(t))}function xi(e){var t=si(e),n=Hn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(Mn&&hi(new Mn(new ArrayBuffer(1)))!=P||Sn&&hi(new Sn)!=M||Cn&&hi(Cn.resolve())!=L||Ln&&hi(new Ln)!=O||Tn&&hi(new Tn)!=j)&&(hi=function(e){var t=Sr(e),n=t==C?e.constructor:a,r=n?Ii(n):"";if(r)switch(r){case jn:return P;case $n:return M;case Pn:return L;case Yn:return O;case Nn:return j}return t});var ki=Pe?Qo:gl;function Di(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$e)}function Mi(e){return e==e&&!ns(e)}function Si(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in Le(n)))}}function Ci(e,t,n){return t=yn(t===a?e.length-1:t,0),function(){for(var a=arguments,i=-1,o=yn(a.length-t,0),s=r(o);++i<o;)s[i]=a[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=a[i];return l[t]=n(s),Mt(e,this,l)}}function Li(e,t){return t.length<2?e:Dr(e,aa(t,0,-1))}function Ti(e,t){for(var n=e.length,r=bn(t.length,n),i=Oa(e);r--;){var o=t[r];e[r]=yi(o,n)?i[o]:a}return e}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ei=Pi(ta),Ai=ht||function(e,t){return mt.setTimeout(e,t)},ji=Pi(na);function $i(e,t,n){var r=t+"";return ji(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ct(v,(function(n){var r="_."+n[0];t&n[1]&&!Et(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(de):[]}(r),n)))}function Pi(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Yi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n<t;){var o=Zr(n,i),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Ni=function(e){var t=Yo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,a){t.push(r?a.replace(me,"$1"):n||e)})),t}));function zi(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ii(e){if(null!=e){try{return Ye.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fi(e){if(e instanceof Vn)return e.clone();var t=new qn(e.__wrapped__,e.__chain__);return t.__actions__=Oa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Hi=Jr((function(e,t){return Zo(e)?pr(e,gr(t,1,Zo,!0)):[]})),Ri=Jr((function(e,t){var n=Ji(t);return Zo(n)&&(n=a),Zo(e)?pr(e,gr(t,1,Zo,!0),ci(n,2)):[]})),Bi=Jr((function(e,t){var n=Ji(t);return Zo(n)&&(n=a),Zo(e)?pr(e,gr(t,1,Zo,!0),a,n):[]}));function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:_s(n);return a<0&&(a=yn(r+a,0)),Ft(e,ci(t,3),a)}function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==a&&(i=_s(n),i=n<0?yn(r+i,0):bn(i,r-1)),Ft(e,ci(t,3),i,!0)}function Wi(e){return(null==e?0:e.length)?gr(e,1):[]}function Ui(e){return e&&e.length?e[0]:a}var Ki=Jr((function(e){var t=jt(e,ga);return t.length&&t[0]===e[0]?Or(t):[]})),Zi=Jr((function(e){var t=Ji(e),n=jt(e,ga);return t===Ji(n)?t=a:n.pop(),n.length&&n[0]===e[0]?Or(n,ci(t,2)):[]})),Gi=Jr((function(e){var t=Ji(e),n=jt(e,ga);return(t="function"==typeof t?t:a)&&n.pop(),n.length&&n[0]===e[0]?Or(n,a,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:a}var Xi=Jr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?Ur(e,t):e}var eo=ri((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Kr(e,jt(t,(function(e){return yi(e,n)?+e:e})).sort(Ca)),r}));function to(e){return null==e?e:Dn.call(e)}var no=Jr((function(e){return da(gr(e,1,Zo,!0))})),ro=Jr((function(e){var t=Ji(e);return Zo(t)&&(t=a),da(gr(e,1,Zo,!0),ci(t,2))})),ao=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:a,da(gr(e,1,Zo,!0),a,t)}));function io(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Zo(e))return t=yn(e.length,t),!0})),Zt(t,(function(t){return jt(e,Vt(t))}))}function oo(e,t){if(!e||!e.length)return[];var n=io(e);return null==t?n:jt(n,(function(e){return Mt(t,a,e)}))}var so=Jr((function(e,t){return Zo(e)?pr(e,t):[]})),lo=Jr((function(e){return _a(Ot(e,Zo))})),co=Jr((function(e){var t=Ji(e);return Zo(t)&&(t=a),_a(Ot(e,Zo),ci(t,2))})),uo=Jr((function(e){var t=Ji(e);return t="function"==typeof t?t:a,_a(Ot(e,Zo),a,t)})),po=Jr(io);var mo=Jr((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,oo(e,n)}));function fo(e){var t=Hn(e);return t.__chain__=!0,t}function ho(e,t){return t(e)}var _o=ri((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:a}),new qn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));var vo=Aa((function(e,t,n){Ne.call(e,n)?++e[n]:or(e,n,1)}));var go=Ia(qi),yo=Ia(Vi);function bo(e,t){return(Wo(e)?Ct:mr)(e,ci(t,3))}function wo(e,t){return(Wo(e)?Lt:fr)(e,ci(t,3))}var xo=Aa((function(e,t,n){Ne.call(e,n)?e[n].push(t):or(e,n,[t])}));var ko=Jr((function(e,t,n){var a=-1,i="function"==typeof t,o=Ko(e)?r(e.length):[];return mr(e,(function(e){o[++a]=i?Mt(t,e,n):Er(e,t,n)})),o})),Do=Aa((function(e,t,n){or(e,n,t)}));function Mo(e,t){return(Wo(e)?jt:Fr)(e,ci(t,3))}var So=Aa((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Co=Jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&bi(e,t[0],t[1])?t=[]:n>2&&bi(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,gr(t,1),[])})),Lo=ft||function(){return mt.Date.now()};function To(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Xa(e,d,a,a,a,a,t)}function Oo(e,t){var n;if("function"!=typeof t)throw new Ee(i);return e=_s(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Eo=Jr((function(e,t,n){var r=1;if(n.length){var a=cn(n,li(Eo));r|=c}return Xa(e,r,t,n,a)})),Ao=Jr((function(e,t,n){var r=3;if(n.length){var a=cn(n,li(Ao));r|=c}return Xa(t,r,e,n,a)}));function jo(e,t,n){var r,o,s,l,c,u,d=0,p=!1,m=!1,f=!0;if("function"!=typeof e)throw new Ee(i);function h(t){var n=r,i=o;return r=o=a,d=t,l=e.apply(i,n)}function _(e){return d=e,c=Ai(g,t),p?h(e):l}function v(e){var n=e-u;return u===a||n>=t||n<0||m&&e-d>=s}function g(){var e=Lo();if(v(e))return y(e);c=Ai(g,function(e){var n=t-(e-u);return m?bn(n,s-(e-d)):n}(e))}function y(e){return c=a,f&&r?h(e):(r=o=a,l)}function b(){var e=Lo(),n=v(e);if(r=arguments,o=this,u=e,n){if(c===a)return _(u);if(m)return ka(c),c=Ai(g,t),h(u)}return c===a&&(c=Ai(g,t)),l}return t=gs(t)||0,ns(n)&&(p=!!n.leading,s=(m="maxWait"in n)?yn(gs(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),b.cancel=function(){c!==a&&ka(c),d=0,r=u=o=c=a},b.flush=function(){return c===a?l:y(Lo())},b}var $o=Jr((function(e,t){return dr(e,1,t)})),Po=Jr((function(e,t,n){return dr(e,gs(t)||0,n)}));function Yo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ee(i);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Yo.Cache||Kn),n}function No(e){if("function"!=typeof e)throw new Ee(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Yo.Cache=Kn;var zo=wa((function(e,t){var n=(t=1==t.length&&Wo(t[0])?jt(t[0],Gt(ci())):jt(gr(t,1),Gt(ci()))).length;return Jr((function(r){for(var a=-1,i=bn(r.length,n);++a<i;)r[a]=t[a].call(this,r[a]);return Mt(e,this,r)}))})),Io=Jr((function(e,t){var n=cn(t,li(Io));return Xa(e,c,a,t,n)})),Fo=Jr((function(e,t){var n=cn(t,li(Fo));return Xa(e,u,a,t,n)})),Ho=ri((function(e,t){return Xa(e,p,a,a,a,t)}));function Ro(e,t){return e===t||e!=e&&t!=t}var Bo=Ua(Cr),qo=Ua((function(e,t){return e>=t})),Vo=Ar(function(){return arguments}())?Ar:function(e){return rs(e)&&Ne.call(e,"callee")&&!Ge.call(e,"callee")},Wo=r.isArray,Uo=yt?Gt(yt):function(e){return rs(e)&&Sr(e)==$};function Ko(e){return null!=e&&ts(e.length)&&!Qo(e)}function Zo(e){return rs(e)&&Ko(e)}var Go=Wt||gl,Jo=bt?Gt(bt):function(e){return rs(e)&&Sr(e)==w};function Xo(e){if(!rs(e))return!1;var t=Sr(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Qo(e){if(!ns(e))return!1;var t=Sr(e);return t==k||t==D||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==_s(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var as=wt?Gt(wt):function(e){return rs(e)&&hi(e)==M};function is(e){return"number"==typeof e||rs(e)&&Sr(e)==S}function os(e){if(!rs(e)||Sr(e)!=C)return!1;var t=Ke(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ye.call(n)==He}var ss=xt?Gt(xt):function(e){return rs(e)&&Sr(e)==T};var ls=kt?Gt(kt):function(e){return rs(e)&&hi(e)==O};function cs(e){return"string"==typeof e||!Wo(e)&&rs(e)&&Sr(e)==E}function us(e){return"symbol"==typeof e||rs(e)&&Sr(e)==A}var ds=Dt?Gt(Dt):function(e){return rs(e)&&ts(e.length)&&!!ot[Sr(e)]};var ps=Ua(Ir),ms=Ua((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ko(e))return cs(e)?mn(e):Oa(e);if(nt&&e[nt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[nt]());var t=hi(e);return(t==M?sn:t==O?un:Rs)(e)}function hs(e){return e?(e=gs(e))===m||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function _s(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function vs(e){return e?lr(_s(e),0,_):0}function gs(e){if("number"==typeof e)return e;if(us(e))return h;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(oe,"");var n=ve.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):_e.test(e)?h:+e}function ys(e){return Ea(e,$s(e))}function bs(e){return null==e?"":ua(e)}var ws=ja((function(e,t){if(Di(t)||Ko(t))Ea(t,js(t),e);else for(var n in t)Ne.call(t,n)&&nr(e,n,t[n])})),xs=ja((function(e,t){Ea(t,$s(t),e)})),ks=ja((function(e,t,n,r){Ea(t,$s(t),e,r)})),Ds=ja((function(e,t,n,r){Ea(t,js(t),e,r)})),Ms=ri(sr);var Ss=Jr((function(e,t){e=Le(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&bi(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],s=$s(o),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===a||Ro(d,$e[u])&&!Ne.call(e,u))&&(e[u]=o[u])}return e})),Cs=Jr((function(e){return e.push(a,ei),Mt(Ys,a,e)}));function Ls(e,t,n){var r=null==e?a:Dr(e,t);return r===a?n:r}function Ts(e,t){return null!=e&&_i(e,t,Tr)}var Os=Ra((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),nl(il)),Es=Ra((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]}),ci),As=Jr(Er);function js(e){return Ko(e)?Jn(e):Nr(e)}function $s(e){return Ko(e)?Jn(e,!0):zr(e)}var Ps=ja((function(e,t,n){Br(e,t,n)})),Ys=ja((function(e,t,n,r){Br(e,t,n,r)})),Ns=ri((function(e,t){var n={};if(null==e)return n;var r=!1;t=jt(t,(function(t){return t=ba(t,e),r||(r=t.length>1),t})),Ea(e,ii(e),n),r&&(n=cr(n,7,ti));for(var a=t.length;a--;)pa(n,t[a]);return n}));var zs=ri((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Ts(e,n)}))}(e,t)}));function Is(e,t){if(null==e)return{};var n=jt(ii(e),(function(e){return[e]}));return t=ci(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Fs=Ja(js),Hs=Ja($s);function Rs(e){return null==e?[]:Jt(e,js(e))}var Bs=Na((function(e,t,n){return t=t.toLowerCase(),e+(n?qs(t):t)}));function qs(e){return Xs(bs(e).toLowerCase())}function Vs(e){return(e=bs(e))&&e.replace(we,nn).replace(Qe,"")}var Ws=Na((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Us=Na((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ks=Ya("toLowerCase");var Zs=Na((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Gs=Na((function(e,t,n){return e+(n?" ":"")+Xs(t)}));var Js=Na((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=Ya("toUpperCase");function Qs(e,t,n){return e=bs(e),(t=n?a:t)===a?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(pe)||[]}(e):e.match(t)||[]}var el=Jr((function(e,t){try{return Mt(e,a,t)}catch(e){return Xo(e)?e:new Me(e)}})),tl=ri((function(e,t){return Ct(t,(function(t){t=zi(t),or(e,t,Eo(e[t],e))})),e}));function nl(e){return function(){return e}}var rl=Fa(),al=Fa(!0);function il(e){return e}function ol(e){return Yr("function"==typeof e?e:cr(e,1))}var sl=Jr((function(e,t){return function(n){return Er(n,e,t)}})),ll=Jr((function(e,t){return function(n){return Er(e,n,t)}}));function cl(e,t,n){var r=js(t),a=kr(t,r);null!=n||ns(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=kr(t,js(t)));var i=!(ns(n)&&"chain"in n&&!n.chain),o=Qo(e);return Ct(a,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),a=n.__actions__=Oa(this.__actions__);return a.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,$t([this.value()],arguments))})})),e}function ul(){}var dl=qa(jt),pl=qa(Tt),ml=qa(Nt);function fl(e){return wi(e)?Vt(zi(e)):function(e){return function(t){return Dr(t,e)}}(e)}var hl=Wa(),_l=Wa(!0);function vl(){return[]}function gl(){return!1}var yl=Ba((function(e,t){return e+t}),0),bl=Za("ceil"),wl=Ba((function(e,t){return e/t}),1),xl=Za("floor");var kl,Dl=Ba((function(e,t){return e*t}),1),Ml=Za("round"),Sl=Ba((function(e,t){return e-t}),0);return Hn.after=function(e,t){if("function"!=typeof t)throw new Ee(i);return e=_s(e),function(){if(--e<1)return t.apply(this,arguments)}},Hn.ary=To,Hn.assign=ws,Hn.assignIn=xs,Hn.assignInWith=ks,Hn.assignWith=Ds,Hn.at=Ms,Hn.before=Oo,Hn.bind=Eo,Hn.bindAll=tl,Hn.bindKey=Ao,Hn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wo(e)?e:[e]},Hn.chain=fo,Hn.chunk=function(e,t,n){t=(n?bi(e,t,n):t===a)?1:yn(_s(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,l=r(vt(i/t));o<i;)l[s++]=aa(e,o,o+=t);return l},Hn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var i=e[t];i&&(a[r++]=i)}return a},Hn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],a=e;a--;)t[a-1]=arguments[a];return $t(Wo(n)?Oa(n):[n],gr(t,1))},Hn.cond=function(e){var t=null==e?0:e.length,n=ci();return e=t?jt(e,(function(e){if("function"!=typeof e[1])throw new Ee(i);return[n(e[0]),e[1]]})):[],Jr((function(n){for(var r=-1;++r<t;){var a=e[r];if(Mt(a[0],this,n))return Mt(a[1],this,n)}}))},Hn.conforms=function(e){return function(e){var t=js(e);return function(n){return ur(n,e,t)}}(cr(e,1))},Hn.constant=nl,Hn.countBy=vo,Hn.create=function(e,t){var n=Rn(e);return null==t?n:ir(n,t)},Hn.curry=function e(t,n,r){var i=Xa(t,8,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},Hn.curryRight=function e(t,n,r){var i=Xa(t,l,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},Hn.debounce=jo,Hn.defaults=Ss,Hn.defaultsDeep=Cs,Hn.defer=$o,Hn.delay=Po,Hn.difference=Hi,Hn.differenceBy=Ri,Hn.differenceWith=Bi,Hn.drop=function(e,t,n){var r=null==e?0:e.length;return r?aa(e,(t=n||t===a?1:_s(t))<0?0:t,r):[]},Hn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?aa(e,0,(t=r-(t=n||t===a?1:_s(t)))<0?0:t):[]},Hn.dropRightWhile=function(e,t){return e&&e.length?fa(e,ci(t,3),!0,!0):[]},Hn.dropWhile=function(e,t){return e&&e.length?fa(e,ci(t,3),!0):[]},Hn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&bi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=_s(n))<0&&(n=-n>i?0:i+n),(r=r===a||r>i?i:_s(r))<0&&(r+=i),r=n>r?0:vs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Hn.filter=function(e,t){return(Wo(e)?Ot:vr)(e,ci(t,3))},Hn.flatMap=function(e,t){return gr(Mo(e,t),1)},Hn.flatMapDeep=function(e,t){return gr(Mo(e,t),m)},Hn.flatMapDepth=function(e,t,n){return n=n===a?1:_s(n),gr(Mo(e,t),n)},Hn.flatten=Wi,Hn.flattenDeep=function(e){return(null==e?0:e.length)?gr(e,m):[]},Hn.flattenDepth=function(e,t){return(null==e?0:e.length)?gr(e,t=t===a?1:_s(t)):[]},Hn.flip=function(e){return Xa(e,512)},Hn.flow=rl,Hn.flowRight=al,Hn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r},Hn.functions=function(e){return null==e?[]:kr(e,js(e))},Hn.functionsIn=function(e){return null==e?[]:kr(e,$s(e))},Hn.groupBy=xo,Hn.initial=function(e){return(null==e?0:e.length)?aa(e,0,-1):[]},Hn.intersection=Ki,Hn.intersectionBy=Zi,Hn.intersectionWith=Gi,Hn.invert=Os,Hn.invertBy=Es,Hn.invokeMap=ko,Hn.iteratee=ol,Hn.keyBy=Do,Hn.keys=js,Hn.keysIn=$s,Hn.map=Mo,Hn.mapKeys=function(e,t){var n={};return t=ci(t,3),wr(e,(function(e,r,a){or(n,t(e,r,a),e)})),n},Hn.mapValues=function(e,t){var n={};return t=ci(t,3),wr(e,(function(e,r,a){or(n,r,t(e,r,a))})),n},Hn.matches=function(e){return Hr(cr(e,1))},Hn.matchesProperty=function(e,t){return Rr(e,cr(t,1))},Hn.memoize=Yo,Hn.merge=Ps,Hn.mergeWith=Ys,Hn.method=sl,Hn.methodOf=ll,Hn.mixin=cl,Hn.negate=No,Hn.nthArg=function(e){return e=_s(e),Jr((function(t){return qr(t,e)}))},Hn.omit=Ns,Hn.omitBy=function(e,t){return Is(e,No(ci(t)))},Hn.once=function(e){return Oo(2,e)},Hn.orderBy=function(e,t,n,r){return null==e?[]:(Wo(t)||(t=null==t?[]:[t]),Wo(n=r?a:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Hn.over=dl,Hn.overArgs=zo,Hn.overEvery=pl,Hn.overSome=ml,Hn.partial=Io,Hn.partialRight=Fo,Hn.partition=So,Hn.pick=zs,Hn.pickBy=Is,Hn.property=fl,Hn.propertyOf=function(e){return function(t){return null==e?a:Dr(e,t)}},Hn.pull=Xi,Hn.pullAll=Qi,Hn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Ur(e,t,ci(n,2)):e},Hn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Ur(e,t,a,n):e},Hn.pullAt=eo,Hn.range=hl,Hn.rangeRight=_l,Hn.rearg=Ho,Hn.reject=function(e,t){return(Wo(e)?Ot:vr)(e,No(ci(t,3)))},Hn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,a=[],i=e.length;for(t=ci(t,3);++r<i;){var o=e[r];t(o,r,e)&&(n.push(o),a.push(r))}return Kr(e,a),n},Hn.rest=function(e,t){if("function"!=typeof e)throw new Ee(i);return Jr(e,t=t===a?t:_s(t))},Hn.reverse=to,Hn.sampleSize=function(e,t,n){return t=(n?bi(e,t,n):t===a)?1:_s(t),(Wo(e)?Qn:Qr)(e,t)},Hn.set=function(e,t,n){return null==e?e:ea(e,t,n)},Hn.setWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:ea(e,t,n,r)},Hn.shuffle=function(e){return(Wo(e)?er:ra)(e)},Hn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&bi(e,t,n)?(t=0,n=r):(t=null==t?0:_s(t),n=n===a?r:_s(n)),aa(e,t,n)):[]},Hn.sortBy=Co,Hn.sortedUniq=function(e){return e&&e.length?la(e):[]},Hn.sortedUniqBy=function(e,t){return e&&e.length?la(e,ci(t,2)):[]},Hn.split=function(e,t,n){return n&&"number"!=typeof n&&bi(e,t,n)&&(t=n=a),(n=n===a?_:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=ua(t))&&on(e)?xa(mn(e),0,n):e.split(t,n):[]},Hn.spread=function(e,t){if("function"!=typeof e)throw new Ee(i);return t=null==t?0:yn(_s(t),0),Jr((function(n){var r=n[t],a=xa(n,0,t);return r&&$t(a,r),Mt(e,this,a)}))},Hn.tail=function(e){var t=null==e?0:e.length;return t?aa(e,1,t):[]},Hn.take=function(e,t,n){return e&&e.length?aa(e,0,(t=n||t===a?1:_s(t))<0?0:t):[]},Hn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?aa(e,(t=r-(t=n||t===a?1:_s(t)))<0?0:t,r):[]},Hn.takeRightWhile=function(e,t){return e&&e.length?fa(e,ci(t,3),!1,!0):[]},Hn.takeWhile=function(e,t){return e&&e.length?fa(e,ci(t,3)):[]},Hn.tap=function(e,t){return t(e),e},Hn.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new Ee(i);return ns(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),jo(e,t,{leading:r,maxWait:t,trailing:a})},Hn.thru=ho,Hn.toArray=fs,Hn.toPairs=Fs,Hn.toPairsIn=Hs,Hn.toPath=function(e){return Wo(e)?jt(e,zi):us(e)?[e]:Oa(Ni(bs(e)))},Hn.toPlainObject=ys,Hn.transform=function(e,t,n){var r=Wo(e),a=r||Go(e)||ds(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=a?r?new i:[]:ns(e)&&Qo(i)?Rn(Ke(e)):{}}return(a?Ct:wr)(e,(function(e,r,a){return t(n,e,r,a)})),n},Hn.unary=function(e){return To(e,1)},Hn.union=no,Hn.unionBy=ro,Hn.unionWith=ao,Hn.uniq=function(e){return e&&e.length?da(e):[]},Hn.uniqBy=function(e,t){return e&&e.length?da(e,ci(t,2)):[]},Hn.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?da(e,a,t):[]},Hn.unset=function(e,t){return null==e||pa(e,t)},Hn.unzip=io,Hn.unzipWith=oo,Hn.update=function(e,t,n){return null==e?e:ma(e,t,ya(n))},Hn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:ma(e,t,ya(n),r)},Hn.values=Rs,Hn.valuesIn=function(e){return null==e?[]:Jt(e,$s(e))},Hn.without=so,Hn.words=Qs,Hn.wrap=function(e,t){return Io(ya(t),e)},Hn.xor=lo,Hn.xorBy=co,Hn.xorWith=uo,Hn.zip=po,Hn.zipObject=function(e,t){return va(e||[],t||[],nr)},Hn.zipObjectDeep=function(e,t){return va(e||[],t||[],ea)},Hn.zipWith=mo,Hn.entries=Fs,Hn.entriesIn=Hs,Hn.extend=xs,Hn.extendWith=ks,cl(Hn,Hn),Hn.add=yl,Hn.attempt=el,Hn.camelCase=Bs,Hn.capitalize=qs,Hn.ceil=bl,Hn.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=gs(n))==n?n:0),t!==a&&(t=(t=gs(t))==t?t:0),lr(gs(e),t,n)},Hn.clone=function(e){return cr(e,4)},Hn.cloneDeep=function(e){return cr(e,5)},Hn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:a)},Hn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:a)},Hn.conformsTo=function(e,t){return null==t||ur(e,t,js(t))},Hn.deburr=Vs,Hn.defaultTo=function(e,t){return null==e||e!=e?t:e},Hn.divide=wl,Hn.endsWith=function(e,t,n){e=bs(e),t=ua(t);var r=e.length,i=n=n===a?r:lr(_s(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Hn.eq=Ro,Hn.escape=function(e){return(e=bs(e))&&J.test(e)?e.replace(Z,rn):e},Hn.escapeRegExp=function(e){return(e=bs(e))&&ie.test(e)?e.replace(ae,"\\$&"):e},Hn.every=function(e,t,n){var r=Wo(e)?Tt:hr;return n&&bi(e,t,n)&&(t=a),r(e,ci(t,3))},Hn.find=go,Hn.findIndex=qi,Hn.findKey=function(e,t){return It(e,ci(t,3),wr)},Hn.findLast=yo,Hn.findLastIndex=Vi,Hn.findLastKey=function(e,t){return It(e,ci(t,3),xr)},Hn.floor=xl,Hn.forEach=bo,Hn.forEachRight=wo,Hn.forIn=function(e,t){return null==e?e:yr(e,ci(t,3),$s)},Hn.forInRight=function(e,t){return null==e?e:br(e,ci(t,3),$s)},Hn.forOwn=function(e,t){return e&&wr(e,ci(t,3))},Hn.forOwnRight=function(e,t){return e&&xr(e,ci(t,3))},Hn.get=Ls,Hn.gt=Bo,Hn.gte=qo,Hn.has=function(e,t){return null!=e&&_i(e,t,Lr)},Hn.hasIn=Ts,Hn.head=Ui,Hn.identity=il,Hn.includes=function(e,t,n,r){e=Ko(e)?e:Rs(e),n=n&&!r?_s(n):0;var a=e.length;return n<0&&(n=yn(a+n,0)),cs(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Ht(e,t,n)>-1},Hn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:_s(n);return a<0&&(a=yn(r+a,0)),Ht(e,t,a)},Hn.inRange=function(e,t,n){return t=hs(t),n===a?(n=t,t=0):n=hs(n),function(e,t,n){return e>=bn(t,n)&&e<yn(t,n)}(e=gs(e),t,n)},Hn.invoke=As,Hn.isArguments=Vo,Hn.isArray=Wo,Hn.isArrayBuffer=Uo,Hn.isArrayLike=Ko,Hn.isArrayLikeObject=Zo,Hn.isBoolean=function(e){return!0===e||!1===e||rs(e)&&Sr(e)==b},Hn.isBuffer=Go,Hn.isDate=Jo,Hn.isElement=function(e){return rs(e)&&1===e.nodeType&&!os(e)},Hn.isEmpty=function(e){if(null==e)return!0;if(Ko(e)&&(Wo(e)||"string"==typeof e||"function"==typeof e.splice||Go(e)||ds(e)||Vo(e)))return!e.length;var t=hi(e);if(t==M||t==O)return!e.size;if(Di(e))return!Nr(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},Hn.isEqual=function(e,t){return jr(e,t)},Hn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?jr(e,t,a,n):!!r},Hn.isError=Xo,Hn.isFinite=function(e){return"number"==typeof e&&_n(e)},Hn.isFunction=Qo,Hn.isInteger=es,Hn.isLength=ts,Hn.isMap=as,Hn.isMatch=function(e,t){return e===t||$r(e,t,di(t))},Hn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,$r(e,t,di(t),n)},Hn.isNaN=function(e){return is(e)&&e!=+e},Hn.isNative=function(e){if(ki(e))throw new Me("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Hn.isNil=function(e){return null==e},Hn.isNull=function(e){return null===e},Hn.isNumber=is,Hn.isObject=ns,Hn.isObjectLike=rs,Hn.isPlainObject=os,Hn.isRegExp=ss,Hn.isSafeInteger=function(e){return es(e)&&e>=-9007199254740991&&e<=f},Hn.isSet=ls,Hn.isString=cs,Hn.isSymbol=us,Hn.isTypedArray=ds,Hn.isUndefined=function(e){return e===a},Hn.isWeakMap=function(e){return rs(e)&&hi(e)==j},Hn.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==Sr(e)},Hn.join=function(e,t){return null==e?"":vn.call(e,t)},Hn.kebabCase=Ws,Hn.last=Ji,Hn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=_s(n))<0?yn(r+i,0):bn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ft(e,Bt,i,!0)},Hn.lowerCase=Us,Hn.lowerFirst=Ks,Hn.lt=ps,Hn.lte=ms,Hn.max=function(e){return e&&e.length?_r(e,il,Cr):a},Hn.maxBy=function(e,t){return e&&e.length?_r(e,ci(t,2),Cr):a},Hn.mean=function(e){return qt(e,il)},Hn.meanBy=function(e,t){return qt(e,ci(t,2))},Hn.min=function(e){return e&&e.length?_r(e,il,Ir):a},Hn.minBy=function(e,t){return e&&e.length?_r(e,ci(t,2),Ir):a},Hn.stubArray=vl,Hn.stubFalse=gl,Hn.stubObject=function(){return{}},Hn.stubString=function(){return""},Hn.stubTrue=function(){return!0},Hn.multiply=Dl,Hn.nth=function(e,t){return e&&e.length?qr(e,_s(t)):a},Hn.noConflict=function(){return mt._===this&&(mt._=Re),this},Hn.noop=ul,Hn.now=Lo,Hn.pad=function(e,t,n){e=bs(e);var r=(t=_s(t))?pn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Va(gt(a),n)+e+Va(vt(a),n)},Hn.padEnd=function(e,t,n){e=bs(e);var r=(t=_s(t))?pn(e):0;return t&&r<t?e+Va(t-r,n):e},Hn.padStart=function(e,t,n){e=bs(e);var r=(t=_s(t))?pn(e):0;return t&&r<t?Va(t-r,n)+e:e},Hn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(bs(e).replace(se,""),t||0)},Hn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&bi(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=hs(e),t===a?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=kn();return bn(e+i*(t-e+ct("1e-"+((i+"").length-1))),t)}return Zr(e,t)},Hn.reduce=function(e,t,n){var r=Wo(e)?Pt:Ut,a=arguments.length<3;return r(e,ci(t,4),n,a,mr)},Hn.reduceRight=function(e,t,n){var r=Wo(e)?Yt:Ut,a=arguments.length<3;return r(e,ci(t,4),n,a,fr)},Hn.repeat=function(e,t,n){return t=(n?bi(e,t,n):t===a)?1:_s(t),Gr(bs(e),t)},Hn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Hn.result=function(e,t,n){var r=-1,i=(t=ba(t,e)).length;for(i||(i=1,e=a);++r<i;){var o=null==e?a:e[zi(t[r])];o===a&&(r=i,o=n),e=Qo(o)?o.call(e):o}return e},Hn.round=Ml,Hn.runInContext=e,Hn.sample=function(e){return(Wo(e)?Xn:Xr)(e)},Hn.size=function(e){if(null==e)return 0;if(Ko(e))return cs(e)?pn(e):e.length;var t=hi(e);return t==M||t==O?e.size:Nr(e).length},Hn.snakeCase=Zs,Hn.some=function(e,t,n){var r=Wo(e)?Nt:ia;return n&&bi(e,t,n)&&(t=a),r(e,ci(t,3))},Hn.sortedIndex=function(e,t){return oa(e,t)},Hn.sortedIndexBy=function(e,t,n){return sa(e,t,ci(n,2))},Hn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=oa(e,t);if(r<n&&Ro(e[r],t))return r}return-1},Hn.sortedLastIndex=function(e,t){return oa(e,t,!0)},Hn.sortedLastIndexBy=function(e,t,n){return sa(e,t,ci(n,2),!0)},Hn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=oa(e,t,!0)-1;if(Ro(e[n],t))return n}return-1},Hn.startCase=Gs,Hn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:lr(_s(n),0,e.length),t=ua(t),e.slice(n,n+t.length)==t},Hn.subtract=Sl,Hn.sum=function(e){return e&&e.length?Kt(e,il):0},Hn.sumBy=function(e,t){return e&&e.length?Kt(e,ci(t,2)):0},Hn.template=function(e,t,n){var r=Hn.templateSettings;n&&bi(e,t,n)&&(t=a),e=bs(e),t=ks({},t,r,Qa);var i,o,s=ks({},t.imports,r.imports,Qa),l=js(s),c=Jt(s,l),u=0,d=t.interpolate||xe,p="__p += '",m=Te((t.escape||xe).source+"|"+d.source+"|"+(d===ee?fe:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),f="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(m,(function(t,n,r,a,s,l){return r||(r=a),p+=e.slice(u,l).replace(ke,an),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(o=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var h=Ne.call(t,"variable")&&t.variable;h||(p="with (obj) {\n"+p+"\n}\n"),p=(o?p.replace(V,""):p).replace(W,"$1").replace(U,"$1;"),p="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var _=el((function(){return Se(l,f+"return "+p).apply(a,c)}));if(_.source=p,Xo(_))throw _;return _},Hn.times=function(e,t){if((e=_s(e))<1||e>f)return[];var n=_,r=bn(e,_);t=ci(t),e-=_;for(var a=Zt(r,t);++n<e;)t(n);return a},Hn.toFinite=hs,Hn.toInteger=_s,Hn.toLength=vs,Hn.toLower=function(e){return bs(e).toLowerCase()},Hn.toNumber=gs,Hn.toSafeInteger=function(e){return e?lr(_s(e),-9007199254740991,f):0===e?e:0},Hn.toString=bs,Hn.toUpper=function(e){return bs(e).toUpperCase()},Hn.trim=function(e,t,n){if((e=bs(e))&&(n||t===a))return e.replace(oe,"");if(!e||!(t=ua(t)))return e;var r=mn(e),i=mn(t);return xa(r,Qt(r,i),en(r,i)+1).join("")},Hn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===a))return e.replace(le,"");if(!e||!(t=ua(t)))return e;var r=mn(e);return xa(r,0,en(r,mn(t))+1).join("")},Hn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===a))return e.replace(se,"");if(!e||!(t=ua(t)))return e;var r=mn(e);return xa(r,Qt(r,mn(t))).join("")},Hn.truncate=function(e,t){var n=30,r="...";if(ns(t)){var i="separator"in t?t.separator:i;n="length"in t?_s(t.length):n,r="omission"in t?ua(t.omission):r}var o=(e=bs(e)).length;if(on(e)){var s=mn(e);o=s.length}if(n>=o)return e;var l=n-pn(r);if(l<1)return r;var c=s?xa(s,0,l).join(""):e.slice(0,l);if(i===a)return c+r;if(s&&(l+=c.length-l),ss(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Te(i.source,bs(he.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===a?l:p)}}else if(e.indexOf(ua(i),l)!=l){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+r},Hn.unescape=function(e){return(e=bs(e))&&G.test(e)?e.replace(K,fn):e},Hn.uniqueId=function(e){var t=++ze;return bs(e)+t},Hn.upperCase=Js,Hn.upperFirst=Xs,Hn.each=bo,Hn.eachRight=wo,Hn.first=Ui,cl(Hn,(kl={},wr(Hn,(function(e,t){Ne.call(Hn.prototype,t)||(kl[t]=e)})),kl),{chain:!1}),Hn.VERSION="4.17.20",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Hn[e].placeholder=Hn})),Ct(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===a?1:yn(_s(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,_),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(il)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Er(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(No(ci(e)))},Vn.prototype.slice=function(e,t){e=_s(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=_s(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(_)},wr(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Hn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Hn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Vn,c=s[0],u=l||Wo(t),d=function(e){var t=i.apply(Hn,$t([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,m=!!this.__actions__.length,f=o&&!p,h=l&&!m;if(!o&&u){t=h?t:new Vn(this);var _=e.apply(t,s);return _.__actions__.push({func:ho,args:[d],thisArg:a}),new qn(_,p)}return f&&h?e.apply(this,s):(_=this.thru(d),f?r?_.value()[0]:_.value():_)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Hn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(Wo(a)?a:[],e)}return this[n]((function(n){return t.apply(Wo(n)?n:[],e)}))}})),wr(Vn.prototype,(function(e,t){var n=Hn[t];if(n){var r=n.name+"";Ne.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Ha(a,2).name]=[{name:"wrapper",func:a}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Oa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oa(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wo(e),r=t<0,a=n?e.length:0,i=function(e,t,n){var r=-1,a=n.length;for(;++r<a;){var i=n[r],o=i.size;switch(i.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=bn(t,e+o);break;case"takeRight":e=yn(e,t-o)}}return{start:e,end:t}}(0,a,this.__views__),o=i.start,s=i.end,l=s-o,c=r?s:o-1,u=this.__iteratees__,d=u.length,p=0,m=bn(l,this.__takeCount__);if(!n||!r&&a==l&&m==l)return ha(e,this.__actions__);var f=[];e:for(;l--&&p<m;){for(var h=-1,_=e[c+=t];++h<d;){var v=u[h],g=v.iteratee,y=v.type,b=g(_);if(2==y)_=b;else if(!b){if(1==y)continue e;break e}}f[p++]=_}return f},Hn.prototype.at=_o,Hn.prototype.chain=function(){return fo(this)},Hn.prototype.commit=function(){return new qn(this.value(),this.__chain__)},Hn.prototype.next=function(){this.__values__===a&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},Hn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=Fi(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:ho,args:[to],thisArg:a}),new qn(t,this.__chain__)}return this.thru(to)},Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=function(){return ha(this.__wrapped__,this.__actions__)},Hn.prototype.first=Hn.prototype.head,nt&&(Hn.prototype[nt]=function(){return this}),Hn}();mt._=hn,(r=function(){return hn}.call(t,n,t,e))===a||(e.exports=r)}.call(this)},3857:(e,t,n)=>{var r=n(2980),a=n(1463)((function(e,t,n){r(e,t,n)}));e.exports=a},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9881:(e,t,n)=>{var r=n(8363),a=n(1704);e.exports=function(e){return r(e,a(e))}},284:()=>{},2786:function(e,t,n){!function(e){"use strict";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,n){return e<12?n?"vm":"VM":n?"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}})}(n(381))},4130:function(e,t,n){!function(e){"use strict";var t=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 عام"]},r=function(e){return function(r,a,i,o){var s=t(r),l=n[e][t(r)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,r)}},a=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{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,n){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")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(381))},6135:function(e,t,n){!function(e){"use strict";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}})}(n(381))},6440:function(e,t,n){!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"},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},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,a,i,o){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:i,monthsShort:i,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,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("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}})}(n(381))},7702:function(e,t,n){!function(e){"use strict";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:1,doy:4}})}(n(381))},6040:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};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,n){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 n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(381))},7100:function(e,t,n){!function(e){"use strict";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}})}(n(381))},867:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,n,i,o){var s=r(t),l=a[e][r(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:o,monthsShort:o,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,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(381))},1083:function(e,t,n){!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ı"};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:"bir neçə 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,n){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 n=e%10,r=e%100-n,a=e>=100?100:null;return e+(t[n]||t[r]||t[a])},week:{dow:1,doy:7}})}(n(381))},9808:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[r],+e)}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:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){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}})}(n(381))},8338:function(e,t,n){!function(e){"use strict";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 дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(381))},7438:function(e,t,n){!function(e){"use strict";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}})}(n(381))},6225:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},n={"১":"1","২":"2","৩":"3","":"4","৫":"5","৬":"6","":"7","৮":"8","৯":"9","":"0"};e.defineLocale("bn-bd",{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 n[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||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(381))},8905:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},n={"১":"1","২":"2","৩":"3","":"4","৫":"5","৬":"6","":"7","৮":"8","৯":"9","":"0"};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 n[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,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(381))},1560:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,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:"[བདུན་ཕྲག་རྗེས་མ], 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 n[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,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(381))},1278:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+a({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function r(e){return e>9?r(e%10):e}function a(e,t){return 2===t?i(e):e}function i(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var o=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,c=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],p=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];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("_"),weekdaysParse:p,fullWeekdaysParse:u,shortWeekdaysParse:d,minWeekdaysParse:p,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:l,monthsShortStrictRegex:c,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},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:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(381))},622:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}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}})}(n(381))},2468:function(e,t,n){!function(e){"use strict";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 n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(381))},5822:function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="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;function i(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?a+(i(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?a+(i(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(i(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?a+(i(e)?"dny":"dní"):a+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?a+(i(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?a+(i(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,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:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},877:function(e,t,n){!function(e){"use strict";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}})}(n(381))},7373:function(e,t,n){!function(e){"use strict";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="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(381))},4780:function(e,t,n){!function(e){"use strict";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}})}(n(381))},217:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}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,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},894:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}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,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},9740:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}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,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},5300:function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,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,n){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}})}(n(381))},837:function(e,t,n){!function(e){"use strict";function t(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}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,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},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,n){var r=this._calendarEl[e],a=n&&n.hours();return t(r)&&(r=r.apply(n)),r.replace("{}",a%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}})}(n(381))},8348:function(e,t,n){!function(e){"use strict";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:0,doy:4}})}(n(381))},7925:function(e,t,n){!function(e){"use strict";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")}})}(n(381))},2243:function(e,t,n){!function(e){"use strict";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}})}(n(381))},6436:function(e,t,n){!function(e){"use strict";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}})}(n(381))},7207:function(e,t,n){!function(e){"use strict";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",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")}})}(n(381))},4175:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{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:0,doy:6}})}(n(381))},6319:function(e,t,n){!function(e){"use strict";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}})}(n(381))},1662:function(e,t,n){!function(e){"use strict";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}})}(n(381))},2915:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_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:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(381))},5251:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(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;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,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:r,longMonthsParse:r,shortMonthsParse:r,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",w:"una semana",ww:"%d semanas",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}})}(n(381))},6112:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(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;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,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:r,longMonthsParse:r,shortMonthsParse:r,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",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(381))},1146:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(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;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,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:r,longMonthsParse:r,shortMonthsParse:r,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",w:"una semana",ww:"%d semanas",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}})}(n(381))},5655:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(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;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,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:r,longMonthsParse:r,shortMonthsParse:r,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",w:"una semana",ww:"%d semanas",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},invalidDate:"Fecha inválida"})}(n(381))},5603:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={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?a[n][2]?a[n][2]:a[n][1]:r?a[n][0]:a[n][1]}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}})}(n(381))},7763:function(e,t,n){!function(e){"use strict";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}})}(n(381))},6959:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};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,n){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 n[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}})}(n(381))},1897:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,t,n,r){var i="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":i=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":i=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":i=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":i=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":i=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":i=r?"vuoden":"vuotta"}return i=a(e,r)+" "+i}function a(e,r){return e<10?r?n[e]:t[e]:e}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:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},2549:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{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}})}(n(381))},4694:function(e,t,n){!function(e){"use strict";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}})}(n(381))},3049:function(e,t,n){!function(e){"use strict";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:"[Aujourdhui à] 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")}}})}(n(381))},2330:function(e,t,n){!function(e){"use strict";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:"[Aujourdhui à] 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}})}(n(381))},4470:function(e,t,n){!function(e){"use strict";var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,a=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];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("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,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:"[Aujourdhui à] 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",w:"une semaine",ww:"%d semaines",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}})}(n(381))},5044:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[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}})}(n(381))},9295:function(e,t,n){!function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],a=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],i=["Do","Lu","Má","Cé","Dé","A","Sa"];e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:a,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"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] 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íonna",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}})}(n(381))},2101:function(e,t,n){!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"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],r=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],a=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],i=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:a,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"},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}})}(n(381))},8794:function(e,t,n){!function(e){"use strict";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}})}(n(381))},4980:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?a[n][0]:a[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},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, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM 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},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(381))},3168:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?a[n][0]:a[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_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 Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] 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:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(381))},5349:function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:""},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","":"0"};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 n[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,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(381))},4206:function(e,t,n){!function(e){"use strict";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,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(381))},94:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],a=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".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 बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:a,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,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 n[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,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(381))},316:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}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:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do 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:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [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}})}(n(381))},2138:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var a=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return a+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return a+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return a+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return a+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return a+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return a+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}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("_"),monthsParseExact:!0,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,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},1423:function(e,t,n){!function(e){"use strict";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}})}(n(381))},9218:function(e,t,n){!function(e){"use strict";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,n){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:0,doy:6}})}(n(381))},135:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,a){var i=e+" ";switch(r){case"s":return n||a?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(n||a?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?i+(n||a?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(n||a?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":a?"dag":"degi";case"dd":return t(e)?n?i+"dagar":i+(a?"daga":"dögum"):n?i+"dagur":i+(a?"dag":"degi");case"M":return n?"mánuður":a?"mánuð":"mánuði";case"MM":return t(e)?n?i+"mánuðir":i+(a?"mánuði":"mánuðum"):n?i+"mánuður":i+(a?"mánuð":"mánuði");case"y":return n||a?"ár":"ári";case"yy":return t(e)?i+(n||a?"ár":"árum"):i+(n||a?"ár":"ári")}}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:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},150:function(e,t,n){!function(e){"use strict";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}})}(n(381))},626:function(e,t,n){!function(e){"use strict";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:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",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",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},9183:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},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:"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,n){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"y":return 1===e?"元年":e+"年";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年"}})}(n(381))},4286:function(e,t,n){!function(e){"use strict";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,n){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}})}(n(381))},2105:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},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:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},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}})}(n(381))},7772:function(e,t,n){!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:"-ші"};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 n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(381))},8758:function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};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,n){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 n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(381))},9282:function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:""},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","":"0"};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 n[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,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(381))},3730:function(e,t,n){!function(e){"use strict";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,n){return e<12?"오전":"오후"}})}(n(381))},1408:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,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,n){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 n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(381))},3291:function(e,t,n){!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:"-чү"};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 n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(381))},6841:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={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?a[n][0]:a[n][1]}function n(e){return a(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function r(e){return a(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function a(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;return a(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return a(e)}return a(e/=1e3)}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:n,past:r,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}})}(n(381))},5466:function(e,t,n){!function(e){"use strict";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,n){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}})}(n(381))},7010:function(e,t,n){!function(e){"use strict";var t={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"};function n(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function a(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function o(e,t,n,o){var s=e+" ";return 1===e?s+r(e,t,n[0],o):t?s+(a(e)?i(n)[1]:i(n)[0]):o?s+i(n)[1]:s+(a(e)?i(n)[1]:i(n)[2])}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:n,ss:o,m:r,mm:o,h:r,hh:o,d:r,dd:o,M:r,MM:o,y:r,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(381))},7595:function(e,t,n){!function(e){"use strict";var t={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("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,a){return e+" "+n(t[a],e,r)}function a(e,r,a){return n(t[a],e,r)}function i(e,t){return t?"dažas sekundes":"dažām sekundēm"}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:i,ss:r,m:a,mm:r,h:a,hh:r,d:a,dd:r,M:a,MM:r,y:a,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},9861:function(e,t,n){!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,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};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}})}(n(381))},5493:function(e,t,n){!function(e){"use strict";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}})}(n(381))},5966:function(e,t,n){!function(e){"use strict";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,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(381))},7341:function(e,t,n){!function(e){"use strict";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,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(381))},5115:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){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}}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,n){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}}})}(n(381))},370:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};function r(e,t,n,r){var a="";if(t)switch(n){case"s":a="काही सेकंद";break;case"ss":a="%d सेकंद";break;case"m":a="एक मिनिट";break;case"mm":a="%d मिनिटे";break;case"h":a="एक तास";break;case"hh":a="%d तास";break;case"d":a="एक दिवस";break;case"dd":a="%d दिवस";break;case"M":a="एक महिना";break;case"MM":a="%d महिने";break;case"y":a="एक वर्ष";break;case"yy":a="%d वर्षे"}else switch(n){case"s":a="काही सेकंदां";break;case"ss":a="%d सेकंदां";break;case"m":a="एका मिनिटा";break;case"mm":a="%d मिनिटां";break;case"h":a="एका तासा";break;case"hh":a="%d तासां";break;case"d":a="एका दिवसा";break;case"dd":a="%d दिवसां";break;case"M":a="एका महिन्या";break;case"MM":a="%d महिन्यां";break;case"y":a="एका वर्षा";break;case"yy":a="%d वर्षां"}return a.replace(/%d/i,e)}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:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[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||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(381))},1237:function(e,t,n){!function(e){"use strict";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,n){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}})}(n(381))},9847:function(e,t,n){!function(e){"use strict";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,n){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}})}(n(381))},2126:function(e,t,n){!function(e){"use strict";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}})}(n(381))},6165:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:""},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","":"0"};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 n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(381))},4924:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._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",w:"en uke",ww:"%d uker",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}})}(n(381))},6744:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};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 n[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,n){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}})}(n(381))},9814:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^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],a=/^(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;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,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:r,longMonthsParse:r,shortMonthsParse:r,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}})}(n(381))},3901:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^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],a=/^(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;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,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:r,longMonthsParse:r,shortMonthsParse:r,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",w:"één week",ww:"%d weken",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}})}(n(381))},3877:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,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",w:"ei veke",ww:"%d veker",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}})}(n(381))},2135:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_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] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(381))},5858:function(e,t,n){!function(e){"use strict";var t={1:"",2:"੨",3:"੩",4:"",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:""},n={"":"1","੨":"2","੩":"3","":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","":"0"};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 n[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,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(381))},4495:function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var r=e+" ";switch(n){case"ss":return r+(a(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(a(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(a(e)?"godziny":"godzin");case"ww":return r+(a(e)?"tygodnie":"tygodni");case"MM":return r+(a(e)?"miesiące":"miesięcy");case"yy":return r+(a(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,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",w:"tydzień",ww:i,M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},7971:function(e,t,n){!function(e){"use strict";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º",invalidDate:"Data inválida"})}(n(381))},9520:function(e,t,n){!function(e){"use strict";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",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},6459:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._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,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(381))},1793:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"минута":"минуту":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"часасаасов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяцаесяцев",yy:"год_годает"}[r],+e)}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];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:r,longMonthsParse:r,shortMonthsParse:r,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:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){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}})}(n(381))},950:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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,n){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}})}(n(381))},490:function(e,t,n){!function(e){"use strict";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}})}(n(381))},124:function(e,t,n){!function(e){"use strict";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,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(381))},4249:function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function a(e,t,n,a){var i=e+" ";switch(n){case"s":return t||a?"pár sekúnd":"pár sekundami";case"ss":return t||a?i+(r(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":a?"minútu":"minútou";case"mm":return t||a?i+(r(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?i+(r(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||a?"deň":"dňom";case"dd":return t||a?i+(r(e)?"dni":"dní"):i+"dňami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?i+(r(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?i+(r(e)?"roky":"rokov"):i+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,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:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},4985:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return a+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return a+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return a+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return a+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return a+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return a+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}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}})}(n(381))},1104:function(e,t,n){!function(e){"use strict";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,n){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}})}(n(381))},9915:function(e,t,n){!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,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};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:"D. M. 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}})}(n(381))},9131:function(e,t,n){!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,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};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:"D. M. 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}})}(n(381))},5893:function(e,t,n){!function(e){"use strict";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,n){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}})}(n(381))},8760:function(e,t,n){!function(e){"use strict";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||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(381))},1172:function(e,t,n){!function(e){"use strict";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 A",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:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(381))},7333:function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:""},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","":"0"};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 n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){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||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(381))},3110:function(e,t,n){!function(e){"use strict";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,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(381))},2095:function(e,t,n){!function(e){"use strict";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:"segundu balun",ss:"segundu %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}})}(n(381))},7321:function(e,t,n){!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:"-ум"};e.defineLocale("tg",{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:"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,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(381))},9041:function(e,t,n){!function(e){"use strict";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,n){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 วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(381))},9005:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".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 sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10,a=e%100-r,i=e>=100?100:null;return e+(t[r]||t[a]||t[i])}},week:{dow:1,doy:7}})}(n(381))},5768:function(e,t,n){!function(e){"use strict";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}})}(n(381))},9444:function(e,t,n){!function(e){"use strict";var t="pagh_wa_cha_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(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 r(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 a(e,t,n,r){var a=i(e);switch(n){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}function i(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),a=e%10,i="";return n>0&&(i+=t[n]+"vatlh"),r>0&&(i+=(""!==i?" ":"")+t[r]+"maH"),a>0&&(i+=(""!==i?" ":"")+t[a]),""===i?"pagh":i}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 wamaH_tera jar wamaH wa_tera jar wamaH cha".split("_"),monthsShort:"jar wa_jar cha_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wamaH_jar wamaH wa_jar wamaH 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:"[waleS] LT",nextWeek:"LLL",lastDay:"[waHu] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:r,s:"puS lup",ss:a,m:"wa tup",mm:a,h:"wa rep",hh:a,d:"wa jaj",dd:a,M:"wa jar",MM:a,y:"wa DIS",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},2397:function(e,t,n){!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ı"};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("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},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",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10,a=e%100-r,i=e>=100?100:null;return e+(t[r]||t[a]||t[i])}},week:{dow:1,doy:7}})}(n(381))},8254:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={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 r||t?a[n][0]:a[n][1]}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,n){return e>11?n?"d'o":"D'O":n?"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}})}(n(381))},699:function(e,t,n){!function(e){"use strict";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}})}(n(381))},1106:function(e,t,n){!function(e){"use strict";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}})}(n(381))},9288:function(e,t,n){!function(e){"use strict";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,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<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}})}(n(381))},7691:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":e+" "+t({ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяціісяців",yy:"рік_роки_років"}[r],+e)}function r(e,t){var n={nominative:"неділя_понеділок_вівторок_середаетвер_пятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середуетвер_пятницю_суботу".split("_"),genitive:"неділі_понеділкаівторка_середи_четверга_пятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative}function a(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_веровт_лист_груд".split("_"),weekdays:r,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:a("[Сьогодні "),nextDay:a("[Завтра "),lastDay:a("[Вчора "),nextWeek:a("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return a("[Минулої] dddd [").call(this);case 1:case 2:case 4:return a("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){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}})}(n(381))},3795:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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,n){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}})}(n(381))},588:function(e,t,n){!function(e){"use strict";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}})}(n(381))},6791:function(e,t,n){!function(e){"use strict";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}})}(n(381))},9822:function(e,t,n){!function(e){"use strict";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:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".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,n){return e<12?n?"sa":"SA":n?"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 trước 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",w:"một tuần",ww:"%d tuần",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}})}(n(381))},4378:function(e,t,n){!function(e){"use strict";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}})}(n(381))},5805:function(e,t,n){!function(e){"use strict";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}})}(n(381))},3839:function(e,t,n){!function(e){"use strict";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,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},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 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(381))},5726:function(e,t,n){!function(e){"use strict";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,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<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 年"}})}(n(381))},9807:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{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:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",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,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<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 年"}})}(n(381))},4152:function(e,t,n){!function(e){"use strict";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,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<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 年"}})}(n(381))},6700:(e,t,n)=>{var r={"./af":2786,"./af.js":2786,"./ar":867,"./ar-dz":4130,"./ar-dz.js":4130,"./ar-kw":6135,"./ar-kw.js":6135,"./ar-ly":6440,"./ar-ly.js":6440,"./ar-ma":7702,"./ar-ma.js":7702,"./ar-sa":6040,"./ar-sa.js":6040,"./ar-tn":7100,"./ar-tn.js":7100,"./ar.js":867,"./az":1083,"./az.js":1083,"./be":9808,"./be.js":9808,"./bg":8338,"./bg.js":8338,"./bm":7438,"./bm.js":7438,"./bn":8905,"./bn-bd":6225,"./bn-bd.js":6225,"./bn.js":8905,"./bo":1560,"./bo.js":1560,"./br":1278,"./br.js":1278,"./bs":622,"./bs.js":622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":877,"./cv.js":877,"./cy":7373,"./cy.js":7373,"./da":4780,"./da.js":4780,"./de":9740,"./de-at":217,"./de-at.js":217,"./de-ch":894,"./de-ch.js":894,"./de.js":9740,"./dv":5300,"./dv.js":5300,"./el":837,"./el.js":837,"./en-au":8348,"./en-au.js":8348,"./en-ca":7925,"./en-ca.js":7925,"./en-gb":2243,"./en-gb.js":2243,"./en-ie":6436,"./en-ie.js":6436,"./en-il":7207,"./en-il.js":7207,"./en-in":4175,"./en-in.js":4175,"./en-nz":6319,"./en-nz.js":6319,"./en-sg":1662,"./en-sg.js":1662,"./eo":2915,"./eo.js":2915,"./es":5655,"./es-do":5251,"./es-do.js":5251,"./es-mx":6112,"./es-mx.js":6112,"./es-us":1146,"./es-us.js":1146,"./es.js":5655,"./et":5603,"./et.js":5603,"./eu":7763,"./eu.js":7763,"./fa":6959,"./fa.js":6959,"./fi":1897,"./fi.js":1897,"./fil":2549,"./fil.js":2549,"./fo":4694,"./fo.js":4694,"./fr":4470,"./fr-ca":3049,"./fr-ca.js":3049,"./fr-ch":2330,"./fr-ch.js":2330,"./fr.js":4470,"./fy":5044,"./fy.js":5044,"./ga":9295,"./ga.js":9295,"./gd":2101,"./gd.js":2101,"./gl":8794,"./gl.js":8794,"./gom-deva":4980,"./gom-deva.js":4980,"./gom-latn":3168,"./gom-latn.js":3168,"./gu":5349,"./gu.js":5349,"./he":4206,"./he.js":4206,"./hi":94,"./hi.js":94,"./hr":316,"./hr.js":316,"./hu":2138,"./hu.js":2138,"./hy-am":1423,"./hy-am.js":1423,"./id":9218,"./id.js":9218,"./is":135,"./is.js":135,"./it":626,"./it-ch":150,"./it-ch.js":150,"./it.js":626,"./ja":9183,"./ja.js":9183,"./jv":4286,"./jv.js":4286,"./ka":2105,"./ka.js":2105,"./kk":7772,"./kk.js":7772,"./km":8758,"./km.js":8758,"./kn":9282,"./kn.js":9282,"./ko":3730,"./ko.js":3730,"./ku":1408,"./ku.js":1408,"./ky":3291,"./ky.js":3291,"./lb":6841,"./lb.js":6841,"./lo":5466,"./lo.js":5466,"./lt":7010,"./lt.js":7010,"./lv":7595,"./lv.js":7595,"./me":9861,"./me.js":9861,"./mi":5493,"./mi.js":5493,"./mk":5966,"./mk.js":5966,"./ml":7341,"./ml.js":7341,"./mn":5115,"./mn.js":5115,"./mr":370,"./mr.js":370,"./ms":9847,"./ms-my":1237,"./ms-my.js":1237,"./ms.js":9847,"./mt":2126,"./mt.js":2126,"./my":6165,"./my.js":6165,"./nb":4924,"./nb.js":4924,"./ne":6744,"./ne.js":6744,"./nl":3901,"./nl-be":9814,"./nl-be.js":9814,"./nl.js":3901,"./nn":3877,"./nn.js":3877,"./oc-lnc":2135,"./oc-lnc.js":2135,"./pa-in":5858,"./pa-in.js":5858,"./pl":4495,"./pl.js":4495,"./pt":9520,"./pt-br":7971,"./pt-br.js":7971,"./pt.js":9520,"./ro":6459,"./ro.js":6459,"./ru":1793,"./ru.js":1793,"./sd":950,"./sd.js":950,"./se":490,"./se.js":490,"./si":124,"./si.js":124,"./sk":4249,"./sk.js":4249,"./sl":4985,"./sl.js":4985,"./sq":1104,"./sq.js":1104,"./sr":9131,"./sr-cyrl":9915,"./sr-cyrl.js":9915,"./sr.js":9131,"./ss":5893,"./ss.js":5893,"./sv":8760,"./sv.js":8760,"./sw":1172,"./sw.js":1172,"./ta":7333,"./ta.js":7333,"./te":3110,"./te.js":3110,"./tet":2095,"./tet.js":2095,"./tg":7321,"./tg.js":7321,"./th":9041,"./th.js":9041,"./tk":9005,"./tk.js":9005,"./tl-ph":5768,"./tl-ph.js":5768,"./tlh":9444,"./tlh.js":9444,"./tr":2397,"./tr.js":2397,"./tzl":8254,"./tzl.js":8254,"./tzm":1106,"./tzm-latn":699,"./tzm-latn.js":699,"./tzm.js":1106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":7691,"./uk.js":7691,"./ur":3795,"./ur.js":3795,"./uz":6791,"./uz-latn":588,"./uz-latn.js":588,"./uz.js":6791,"./vi":9822,"./vi.js":9822,"./x-pseudo":4378,"./x-pseudo.js":4378,"./yo":5805,"./yo.js":5805,"./zh-cn":3839,"./zh-cn.js":3839,"./zh-hk":5726,"./zh-hk.js":5726,"./zh-mo":9807,"./zh-mo.js":9807,"./zh-tw":4152,"./zh-tw.js":4152};function a(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=i,e.exports=a,a.id=6700},381:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function a(){return t.apply(null,arguments)}function i(e){t=e}function o(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 l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function u(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function p(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function f(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Kn(e,t,n,r,!0).utc()}function _(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(e){return null==e._pf&&(e._pf=_()),e._pf}function g(e){if(null==e._isValid){var t=v(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function y(e){var t=h(NaN);return null!=e?f(v(t),e):v(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=a.momentProperties=[],w=!1;function x(e,t){var n,r,a;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=v(t)),u(t._locale)||(e._locale=t._locale),b.length>0)for(n=0;n<b.length;n++)u(a=t[r=b[n]])||(e[r]=a);return e}function k(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,a.updateOffset(this),w=!1)}function D(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function M(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return f((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var r,i,o,s=[];for(i=0;i<arguments.length;i++){if(r="","object"==typeof arguments[i]){for(o in r+="\n["+i+"] ",arguments[0])l(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[i];s.push(r)}M(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var C,L={};function T(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),L[e]||(M(t),L[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e){var t,n;for(n in e)l(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(e,t){var n,r=f({},e);for(n in t)l(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&s(e[n])&&(r[n]=f({},r[n]));return r}function j(e){null!=e&&this.set(e)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var $={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function P(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}function Y(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},F={};function H(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(F[e]=a),t&&(F[t[0]]=function(){return Y(a.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function R(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,r=e.match(N);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=R(r[t]);return function(t){var a,i="";for(a=0;a<n;a++)i+=O(r[a])?r[a].call(t,e):r[a];return i}}function q(e,t){return e.isValid()?(t=V(t,e.localeData()),I[t]=I[t]||B(t),I[t](e)):e.localeData().invalidDate()}function V(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(z.lastIndex=0;n>=0&&z.test(e);)e=e.replace(z,r),z.lastIndex=0,n-=1;return e}var W={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"};function U(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var K="Invalid date";function Z(){return this._invalidDate}var G="%d",J=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var Q={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var a=this._relativeTime[n];return O(a)?a(e,t,n,r):a.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}var ne={};function re(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function ae(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)l(e,n)&&(t=ae(n))&&(r[t]=e[n]);return r}var oe={};function se(e,t){oe[e]=t}function le(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ce(e){return e%4==0&&e%100!=0||e%400==0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}function pe(e,t){return function(n){return null!=n?(fe(this,e,n),a.updateOffset(this,t),this):me(this,e)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(n=de(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function he(e){return O(this[e=ae(e)])?this[e]():this}function _e(e,t){if("object"==typeof e){var n,r=le(e=ie(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(O(this[e=ae(e)]))return this[e](t);return this}var ve,ge=/\d/,ye=/\d\d/,be=/\d{3}/,we=/\d{4}/,xe=/[+-]?\d{6}/,ke=/\d\d?/,De=/\d\d\d\d?/,Me=/\d\d\d\d\d\d?/,Se=/\d{1,3}/,Ce=/\d{1,4}/,Le=/[+-]?\d{1,6}/,Te=/\d+/,Oe=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,je=/[+-]?\d+(\.\d{1,3})?/,$e=/[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;function Pe(e,t,n){ve[e]=O(t)?t:function(e,r){return e&&n?n:t}}function Ye(e,t){return l(ve,e)?ve[e](t._strict,t._locale):new RegExp(Ne(e))}function Ne(e){return ze(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a})))}function ze(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Ie={};function Fe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),d(t)&&(r=function(e,n){n[t]=de(e)}),n=0;n<e.length;n++)Ie[e[n]]=r}function He(e,t){Fe(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function Re(e,t,n){null!=t&&l(Ie,e)&&Ie[e](t,n._a,n,e)}var Be,qe=0,Ve=1,We=2,Ue=3,Ke=4,Ze=5,Ge=6,Je=7,Xe=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?ce(e)?29:28:31-n%7%2}Be=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},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),H("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),re("month","M"),se("month",8),Pe("M",ke),Pe("MM",ke,ye),Pe("MMM",(function(e,t){return t.monthsShortRegex(e)})),Pe("MMMM",(function(e,t){return t.monthsRegex(e)})),Fe(["M","MM"],(function(e,t){t[Ve]=de(e)-1})),Fe(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[Ve]=a:v(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=$e,it=$e;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function st(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Be.call(this._shortMonthsParse,o))?a:null:-1!==(a=Be.call(this._longMonthsParse,o))?a:null:"MMM"===t?-1!==(a=Be.call(this._shortMonthsParse,o))||-1!==(a=Be.call(this._longMonthsParse,o))?a:null:-1!==(a=Be.call(this._longMonthsParse,o))||-1!==(a=Be.call(this._shortMonthsParse,o))?a:null}function ct(e,t,n){var r,a,i;if(this._monthsParseExact)return lt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ut(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function dt(e){return null!=e?(ut(this,e),a.updateOffset(this,!0),this):me(this,"Month")}function pt(){return et(this.year(),this.month())}function mt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ht.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ht.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ht(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],i=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),i.sort(e),t=0;t<12;t++)r[t]=ze(r[t]),a[t]=ze(a[t]);for(t=0;t<24;t++)i[t]=ze(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function _t(e){return ce(e)?366:365}H("Y",0,0,(function(){var e=this.year();return e<=9999?Y(e,4):"+"+e})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),re("year","y"),se("year",1),Pe("Y",Oe),Pe("YY",ke,ye),Pe("YYYY",Ce,we),Pe("YYYYY",Le,xe),Pe("YYYYYY",Le,xe),Fe(["YYYYY","YYYYYY"],qe),Fe("YYYY",(function(e,t){t[qe]=2===e.length?a.parseTwoDigitYear(e):de(e)})),Fe("YY",(function(e,t){t[qe]=a.parseTwoDigitYear(e)})),Fe("Y",(function(e,t){t[qe]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var vt=pe("FullYear",!0);function gt(){return ce(this.year())}function yt(e,t,n,r,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,i,o),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,a){var i,o,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,a);return s<=0?o=_t(i=e-1)+s:s>_t(e)?(i=e+1,o=s-_t(e)):(i=e,o=s),{year:i,dayOfYear:o}}function kt(e,t,n){var r,a,i=wt(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+Dt(a=e.year()-1,t,n):o>Dt(e.year(),t,n)?(r=o-Dt(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function Dt(e,t,n){var r=wt(e,t,n),a=wt(e+1,t,n);return(_t(e)-r+a)/7}function Mt(e){return kt(e,this._week.dow,this._week.doy).week}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),se("week",5),se("isoWeek",5),Pe("w",ke),Pe("ww",ke,ye),Pe("W",ke),Pe("WW",ke,ye),He(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=de(e)}));var St={dow:0,doy:6};function Ct(){return this._week.dow}function Lt(){return this._week.doy}function Tt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ot(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Et(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function At(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function jt(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),Pe("d",ke),Pe("e",ke),Pe("E",ke),Pe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Pe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Pe("dddd",(function(e,t){return t.weekdaysRegex(e)})),He(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:v(n).invalidWeekday=e})),He(["d","e","E"],(function(e,t,n,r){t[r]=de(e)}));var $t="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nt=$e,zt=$e,It=$e;function Ft(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?jt(n,this._week.dow):e?n[e.day()]:n}function Ht(e){return!0===e?jt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Rt(e){return!0===e?jt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Bt(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Be.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Be.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=Be.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=Be.call(this._weekdaysParse,o))||-1!==(a=Be.call(this._shortWeekdaysParse,o))||-1!==(a=Be.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Be.call(this._shortWeekdaysParse,o))||-1!==(a=Be.call(this._weekdaysParse,o))||-1!==(a=Be.call(this._minWeekdaysParse,o))?a:null:-1!==(a=Be.call(this._minWeekdaysParse,o))||-1!==(a=Be.call(this._weekdaysParse,o))||-1!==(a=Be.call(this._shortWeekdaysParse,o))?a:null}function qt(e,t,n){var r,a,i;if(this._weekdaysParseExact)return Bt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Et(e,this.localeData()),this.add(e-t,"d")):t}function Wt(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 Ut(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=At(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Nt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=zt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Gt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=It),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=ze(this.weekdaysMin(n,"")),a=ze(this.weekdaysShort(n,"")),i=ze(this.weekdays(n,"")),o.push(r),s.push(a),l.push(i),c.push(r),c.push(a),c.push(i);o.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Xt),H("k",["kk",2],0,Qt),H("hmm",0,0,(function(){return""+Xt.apply(this)+Y(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+Xt.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)})),en("a",!0),en("A",!1),re("hour","h"),se("hour",13),Pe("a",tn),Pe("A",tn),Pe("H",ke),Pe("h",ke),Pe("k",ke),Pe("HH",ke,ye),Pe("hh",ke,ye),Pe("kk",ke,ye),Pe("hmm",De),Pe("hmmss",Me),Pe("Hmm",De),Pe("Hmmss",Me),Fe(["H","HH"],Ue),Fe(["k","kk"],(function(e,t,n){var r=de(e);t[Ue]=24===r?0:r})),Fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Fe(["h","hh"],(function(e,t,n){t[Ue]=de(e),v(n).bigHour=!0})),Fe("hmm",(function(e,t,n){var r=e.length-2;t[Ue]=de(e.substr(0,r)),t[Ke]=de(e.substr(r)),v(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Ue]=de(e.substr(0,r)),t[Ke]=de(e.substr(r,2)),t[Ze]=de(e.substr(a)),v(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var r=e.length-2;t[Ue]=de(e.substr(0,r)),t[Ke]=de(e.substr(r))})),Fe("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[Ue]=de(e.substr(0,r)),t[Ke]=de(e.substr(r,2)),t[Ze]=de(e.substr(a))}));var rn=/[ap]\.?m?\.?/i,an=pe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:$,longDateFormat:W,invalidDate:K,ordinal:G,dayOfMonthOrdinalParse:J,relativeTime:Q,months:tt,monthsShort:nt,week:St,weekdays:$t,weekdaysMin:Yt,weekdaysShort:Pt,meridiemParse:rn},cn={},un={};function dn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function pn(e){return e?e.toLowerCase().replace("_","-"):e}function mn(e){for(var t,n,r,a,i=0;i<e.length;){for(t=(a=pn(e[i]).split("-")).length,n=(n=pn(e[i+1]))?n.split("-"):null;t>0;){if(r=fn(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dn(a,n)>=t-1)break;t--}i++}return sn}function fn(t){var r=null;if(void 0===cn[t]&&e&&e.exports)try{r=sn._abbr,n(6700)("./"+t),hn(r)}catch(e){cn[t]=null}return cn[t]}function hn(e,t){var n;return e&&((n=u(t)?gn(e):_n(e,t))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function _n(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=cn[e])T("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."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=fn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new j(A(r,t)),un[e]&&un[e].forEach((function(e){_n(e.name,e.config)})),hn(e),cn[e]}return delete cn[e],null}function vn(e,t){if(null!=t){var n,r,a=ln;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(A(cn[e]._config,t)):(null!=(r=fn(e))&&(a=r._config),t=A(a,t),null==r&&(t.abbr=e),(n=new j(t)).parentLocale=cn[e],cn[e]=n),hn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===hn()&&hn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function gn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!o(e)){if(t=fn(e))return t;e=[e]}return mn(e)}function yn(){return C(cn)}function bn(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[Ve]<0||n[Ve]>11?Ve:n[We]<1||n[We]>et(n[qe],n[Ve])?We:n[Ue]<0||n[Ue]>24||24===n[Ue]&&(0!==n[Ke]||0!==n[Ze]||0!==n[Ge])?Ue:n[Ke]<0||n[Ke]>59?Ke:n[Ze]<0||n[Ze]>59?Ze:n[Ge]<0||n[Ge]>999?Ge:-1,v(e)._overflowDayOfYear&&(t<qe||t>We)&&(t=We),v(e)._overflowWeeks&&-1===t&&(t=Je),v(e)._overflowWeekday&&-1===t&&(t=Xe),v(e).overflow=t),e}var wn=/^\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)?)?$/,xn=/^\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)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Dn=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Mn=[["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/]],Sn=/^\/?Date\((-?\d+)/i,Cn=/^(?:(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}))$/,Ln={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tn(e){var t,n,r,a,i,o,s=e._i,l=wn.exec(s)||xn.exec(s);if(l){for(v(e).iso=!0,t=0,n=Dn.length;t<n;t++)if(Dn[t][1].exec(l[1])){a=Dn[t][0],r=!1!==Dn[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=Mn.length;t<n;t++)if(Mn[t][1].exec(l[3])){i=(l[2]||" ")+Mn[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!kn.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=a+(i||"")+(o||""),Hn(e)}else e._isValid=!1}function On(e,t,n,r,a,i){var o=[En(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function En(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function An(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jn(e,t,n){return!e||Pt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function $n(e,t,n){if(e)return Ln[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}function Pn(e){var t,n=Cn.exec(An(e._i));if(n){if(t=On(n[4],n[3],n[2],n[5],n[6],n[7]),!jn(n[1],t,e))return;e._a=t,e._tzm=$n(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Yn(e){var t=Sn.exec(e._i);null===t?(Tn(e),!1===e._isValid&&(delete e._isValid,Pn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Nn(e,t,n){return null!=e?e:null!=t?t:n}function zn(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function In(e){var t,n,r,a,i,o=[];if(!e._d){for(r=zn(e),e._w&&null==e._a[We]&&null==e._a[Ve]&&Fn(e),null!=e._dayOfYear&&(i=Nn(e._a[qe],r[qe]),(e._dayOfYear>_t(i)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=bt(i,0,e._dayOfYear),e._a[Ve]=n.getUTCMonth(),e._a[We]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ue]&&0===e._a[Ke]&&0===e._a[Ze]&&0===e._a[Ge]&&(e._nextDay=!0,e._a[Ue]=0),e._d=(e._useUTC?bt:yt).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ue]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(v(e).weekdayMismatch=!0)}}function Fn(e){var t,n,r,a,i,o,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=Nn(t.GG,e._a[qe],kt(Zn(),1,4).year),r=Nn(t.W,1),((a=Nn(t.E,1))<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,c=kt(Zn(),i,o),n=Nn(t.gg,e._a[qe],c.year),r=Nn(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),r<1||r>Dt(n,i,o)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(s=xt(n,r,a,i,o),e._a[qe]=s.year,e._dayOfYear=s.dayOfYear)}function Hn(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],v(e).empty=!0;var t,n,r,i,o,s,l=""+e._i,c=l.length,u=0;for(r=V(e._f,e._locale).match(N)||[],t=0;t<r.length;t++)i=r[t],(n=(l.match(Ye(i,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&v(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),u+=n.length),F[i]?(n?v(e).empty=!1:v(e).unusedTokens.push(i),Re(i,n,e)):e._strict&&!n&&v(e).unusedTokens.push(i);v(e).charsLeftOver=c-u,l.length>0&&v(e).unusedInput.push(l),e._a[Ue]<=12&&!0===v(e).bigHour&&e._a[Ue]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ue]=Rn(e._locale,e._a[Ue],e._meridiem),null!==(s=v(e).era)&&(e._a[qe]=e._locale.erasConvertYear(s,e._a[qe])),In(e),bn(e)}else Pn(e);else Tn(e)}function Rn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Bn(e){var t,n,r,a,i,o,s=!1;if(0===e._f.length)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)i=0,o=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Hn(t),g(t)&&(o=!0),i+=v(t).charsLeftOver,i+=10*v(t).unusedTokens.length,v(t).score=i,s?i<r&&(r=i,n=t):(null==r||i<r||o)&&(r=i,n=t,o&&(s=!0));f(e,n||t)}function qn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=m([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),In(e)}}function Vn(e){var t=new k(bn(Wn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Wn(e){var t=e._i,n=e._f;return e._locale=e._locale||gn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),D(t)?new k(bn(t)):(p(t)?e._d=t:o(n)?Bn(e):n?Hn(e):Un(e),g(e)||(e._d=null),e))}function Un(e){var t=e._i;u(t)?e._d=new Date(a.now()):p(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Yn(e):o(t)?(e._a=m(t.slice(0),(function(e){return parseInt(e,10)})),In(e)):s(t)?qn(e):d(t)?e._d=new Date(t):a.createFromInputFallback(e)}function Kn(e,t,n,r,a){var i={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&c(e)||o(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=n,i._i=e,i._f=t,i._strict=r,Vn(i)}function Zn(e,t,n,r){return Kn(e,t,n,r,!1)}a.createFromInputFallback=S("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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Gn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Jn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Xn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Zn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Qn(){return Xn("isBefore",[].slice.call(arguments,0))}function er(){return Xn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1;for(t in e)if(l(e,t)&&(-1===Be.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<nr.length;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==de(e[nr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function ir(){return Lr(NaN)}function or(e){var t=ie(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*i,this._months=+a+3*r+12*n,this._data={},this._locale=gn(),this._bubble()}function sr(e){return e instanceof or}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&de(e[r])!==de(t[r]))&&o++;return o+i}function ur(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Y(~~(e/60),2)+t+Y(~~e%60,2)}))}ur("Z",":"),ur("ZZ",""),Pe("Z",Ae),Pe("ZZ",Ae),Fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=pr(Ae,e)}));var dr=/([\+\-]|\d\d)/gi;function pr(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(dr)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?r:-r}function mr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(D(e)||p(e)?e.valueOf():Zn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Zn(e).local()}function fr(e){return-Math.round(e._d.getTimezoneOffset())}function hr(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=pr(Ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=fr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?jr(this,Lr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:fr(this)}function _r(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vr(e){return this.utcOffset(0,e)}function gr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fr(this),"m")),this}function yr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=pr(Ee,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function br(e){return!!this.isValid()&&(e=e?Zn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Wn(t))._a?(e=t._isUTC?h(t._a):Zn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function Dr(){return!!this.isValid()&&this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Sr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Cr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Lr(e,t){var n,r,a,i=e,o=null;return sr(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Sr.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:de(o[We])*n,h:de(o[Ue])*n,m:de(o[Ke])*n,s:de(o[Ze])*n,ms:de(lr(1e3*o[Ge]))*n}):(o=Cr.exec(e))?(n="-"===o[1]?-1:1,i={y:Tr(o[2],n),M:Tr(o[3],n),w:Tr(o[4],n),d:Tr(o[5],n),h:Tr(o[6],n),m:Tr(o[7],n),s:Tr(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(a=Er(Zn(i.from),Zn(i.to)),(i={}).ms=a.milliseconds,i.M=a.months),r=new or(i),sr(e)&&l(e,"_locale")&&(r._locale=e._locale),sr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Tr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Or(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Er(e,t){var n;return e.isValid()&&t.isValid()?(t=mr(t,e),e.isBefore(t)?n=Or(e,t):((n=Or(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ar(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(T(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."),a=n,n=r,r=a),jr(this,Lr(n,r),e),this}}function jr(e,t,n,r){var i=t._milliseconds,o=lr(t._days),s=lr(t._months);e.isValid()&&(r=null==r||r,s&&ut(e,me(e,"Month")+s*n),o&&fe(e,"Date",me(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&a.updateOffset(e,o||s))}Lr.fn=or.prototype,Lr.invalid=ir;var $r=Ar(1,"add"),Pr=Ar(-1,"subtract");function Yr(e){return"string"==typeof e||e instanceof String}function Nr(e){return D(e)||p(e)||Yr(e)||d(e)||Ir(e)||zr(e)||null==e}function zr(e){var t,n,r=s(e)&&!c(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<i.length;t+=1)n=i[t],a=a||l(e,n);return r&&a}function Ir(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Yr(e)})).length),t&&n}function Fr(e){var t,n,r=s(e)&&!c(e),a=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=i[t],a=a||l(e,n);return r&&a}function Hr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Rr(e,t){1===arguments.length&&(arguments[0]?Nr(arguments[0])?(e=arguments[0],t=void 0):Fr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Zn(),r=mr(n,this).startOf("day"),i=a.calendarFormat(this,r)||"sameElse",o=t&&(O(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,Zn(n)))}function Br(){return new k(this)}function qr(e,t){var n=D(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ae(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Vr(e,t){var n=D(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ae(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Wr(e,t,n,r){var a=D(e)?e:Zn(e),i=D(t)?t:Zn(t);return!!(this.isValid()&&a.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))}function Ur(e,t){var n,r=D(e)?e:Zn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ae(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Kr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Zr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Gr(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(!(r=mr(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=ae(t)){case"year":i=Jr(this,r)/12;break;case"month":i=Jr(this,r);break;case"quarter":i=Jr(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:ue(i)}function Jr(e,t){if(e.date()<t.date())return-Jr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Xr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?q(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",q(n,"Z")):q(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ea(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,a="moment",i="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function ta(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=q(this,e);return this.localeData().postformat(t)}function na(e,t){return this.isValid()&&(D(e)&&e.isValid()||Zn(e).isValid())?Lr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ra(e){return this.from(Zn(),e)}function aa(e,t){return this.isValid()&&(D(e)&&e.isValid()||Zn(e).isValid())?Lr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ia(e){return this.to(Zn(),e)}function oa(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gn(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sa=S("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)}));function la(){return this._locale}var ca=1e3,ua=60*ca,da=60*ua,pa=3506328*da;function ma(e,t){return(e%t+t)%t}function fa(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-pa:new Date(e,t,n).valueOf()}function ha(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-pa:Date.UTC(e,t,n)}function _a(e){var t,n;if(void 0===(e=ae(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ha:fa,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ma(t+(this._isUTC?0:this.utcOffset()*ua),da);break;case"minute":t=this._d.valueOf(),t-=ma(t,ua);break;case"second":t=this._d.valueOf(),t-=ma(t,ca)}return this._d.setTime(t),a.updateOffset(this,!0),this}function va(e){var t,n;if(void 0===(e=ae(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ha:fa,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=da-ma(t+(this._isUTC?0:this.utcOffset()*ua),da)-1;break;case"minute":t=this._d.valueOf(),t+=ua-ma(t,ua)-1;break;case"second":t=this._d.valueOf(),t+=ca-ma(t,ca)-1}return this._d.setTime(t),a.updateOffset(this,!0),this}function ga(){return this._d.valueOf()-6e4*(this._offset||0)}function ya(){return Math.floor(this.valueOf()/1e3)}function ba(){return new Date(this.valueOf())}function wa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xa(){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 ka(){return this.isValid()?this.toISOString():null}function Da(){return g(this)}function Ma(){return f({},v(this))}function Sa(){return v(this).overflow}function Ca(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function La(e,t){var n,r,i,o=this._eras||gn("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=a(o[n].since).startOf("day"),o[n].since=i.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=a(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}}return o}function Ta(e,t,n){var r,a,i,o,s,l=this.eras();for(e=e.toUpperCase(),r=0,a=l.length;r<a;++r)if(i=l[r].name.toUpperCase(),o=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([i,o,s].indexOf(e)>=0)return l[r]}function Oa(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n}function Ea(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Aa(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function ja(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function $a(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-a(i[e].since).year())*n+i[e].offset;return this.year()}function Pa(e){return l(this,"_erasNameRegex")||Ra.call(this),e?this._erasNameRegex:this._erasRegex}function Ya(e){return l(this,"_erasAbbrRegex")||Ra.call(this),e?this._erasAbbrRegex:this._erasRegex}function Na(e){return l(this,"_erasNarrowRegex")||Ra.call(this),e?this._erasNarrowRegex:this._erasRegex}function za(e,t){return t.erasAbbrRegex(e)}function Ia(e,t){return t.erasNameRegex(e)}function Fa(e,t){return t.erasNarrowRegex(e)}function Ha(e,t){return t._eraYearOrdinalRegex||Te}function Ra(){var e,t,n=[],r=[],a=[],i=[],o=this.eras();for(e=0,t=o.length;e<t;++e)r.push(ze(o[e].name)),n.push(ze(o[e].abbr)),a.push(ze(o[e].narrow)),i.push(ze(o[e].name)),i.push(ze(o[e].abbr)),i.push(ze(o[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Ba(e,t){H(0,[e,e.length],0,t)}function qa(e){return Ga.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Va(e){return Ga.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wa(){return Dt(this.year(),1,4)}function Ua(){return Dt(this.isoWeekYear(),1,4)}function Ka(){var e=this.localeData()._week;return Dt(this.year(),e.dow,e.doy)}function Za(){var e=this.localeData()._week;return Dt(this.weekYear(),e.dow,e.doy)}function Ga(e,t,n,r,a){var i;return null==e?kt(this,r,a).year:(t>(i=Dt(e,r,a))&&(t=i),Ja.call(this,e,t,n,r,a))}function Ja(e,t,n,r,a){var i=xt(e,t,n,r,a),o=bt(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Xa(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Pe("N",za),Pe("NN",za),Pe("NNN",za),Pe("NNNN",Ia),Pe("NNNNN",Fa),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?v(n).era=a:v(n).invalidEra=e})),Pe("y",Te),Pe("yy",Te),Pe("yyy",Te),Pe("yyyy",Te),Pe("yo",Ha),Fe(["y","yy","yyy","yyyy"],qe),Fe(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[qe]=n._locale.eraYearOrdinalParse(e,a):t[qe]=parseInt(e,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ba("gggg","weekYear"),Ba("ggggg","weekYear"),Ba("GGGG","isoWeekYear"),Ba("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),Pe("G",Oe),Pe("g",Oe),Pe("GG",ke,ye),Pe("gg",ke,ye),Pe("GGGG",Ce,we),Pe("gggg",Ce,we),Pe("GGGGG",Le,xe),Pe("ggggg",Le,xe),He(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=de(e)})),He(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),re("quarter","Q"),se("quarter",7),Pe("Q",ge),Fe("Q",(function(e,t){t[Ve]=3*(de(e)-1)})),H("D",["DD",2],"Do","date"),re("date","D"),se("date",9),Pe("D",ke),Pe("DD",ke,ye),Pe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Fe(["D","DD"],We),Fe("Do",(function(e,t){t[We]=de(e.match(ke)[0])}));var Qa=pe("Date",!0);function ei(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}H("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),se("dayOfYear",4),Pe("DDD",Se),Pe("DDDD",be),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=de(e)})),H("m",["mm",2],0,"minute"),re("minute","m"),se("minute",14),Pe("m",ke),Pe("mm",ke,ye),Fe(["m","mm"],Ke);var ti=pe("Minutes",!1);H("s",["ss",2],0,"second"),re("second","s"),se("second",15),Pe("s",ke),Pe("ss",ke,ye),Fe(["s","ss"],Ze);var ni,ri,ai=pe("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),re("millisecond","ms"),se("millisecond",16),Pe("S",Se,ge),Pe("SS",Se,ye),Pe("SSS",Se,be),ni="SSSS";ni.length<=9;ni+="S")Pe(ni,Te);function ii(e,t){t[Ge]=de(1e3*("0."+e))}for(ni="S";ni.length<=9;ni+="S")Fe(ni,ii);function oi(){return this._isUTC?"UTC":""}function si(){return this._isUTC?"Coordinated Universal Time":""}ri=pe("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var li=k.prototype;function ci(e){return Zn(1e3*e)}function ui(){return Zn.apply(null,arguments).parseZone()}function di(e){return e}li.add=$r,li.calendar=Rr,li.clone=Br,li.diff=Gr,li.endOf=va,li.format=ta,li.from=na,li.fromNow=ra,li.to=aa,li.toNow=ia,li.get=he,li.invalidAt=Sa,li.isAfter=qr,li.isBefore=Vr,li.isBetween=Wr,li.isSame=Ur,li.isSameOrAfter=Kr,li.isSameOrBefore=Zr,li.isValid=Da,li.lang=sa,li.locale=oa,li.localeData=la,li.max=Jn,li.min=Gn,li.parsingFlags=Ma,li.set=_e,li.startOf=_a,li.subtract=Pr,li.toArray=wa,li.toObject=xa,li.toDate=ba,li.toISOString=Qr,li.inspect=ea,"undefined"!=typeof Symbol&&null!=Symbol.for&&(li[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),li.toJSON=ka,li.toString=Xr,li.unix=ya,li.valueOf=ga,li.creationData=Ca,li.eraName=Ea,li.eraNarrow=Aa,li.eraAbbr=ja,li.eraYear=$a,li.year=vt,li.isLeapYear=gt,li.weekYear=qa,li.isoWeekYear=Va,li.quarter=li.quarters=Xa,li.month=dt,li.daysInMonth=pt,li.week=li.weeks=Tt,li.isoWeek=li.isoWeeks=Ot,li.weeksInYear=Ka,li.weeksInWeekYear=Za,li.isoWeeksInYear=Wa,li.isoWeeksInISOWeekYear=Ua,li.date=Qa,li.day=li.days=Vt,li.weekday=Wt,li.isoWeekday=Ut,li.dayOfYear=ei,li.hour=li.hours=an,li.minute=li.minutes=ti,li.second=li.seconds=ai,li.millisecond=li.milliseconds=ri,li.utcOffset=hr,li.utc=vr,li.local=gr,li.parseZone=yr,li.hasAlignedHourOffset=br,li.isDST=wr,li.isLocal=kr,li.isUtcOffset=Dr,li.isUtc=Mr,li.isUTC=Mr,li.zoneAbbr=oi,li.zoneName=si,li.dates=S("dates accessor is deprecated. Use date instead.",Qa),li.months=S("months accessor is deprecated. Use month instead",dt),li.years=S("years accessor is deprecated. Use year instead",vt),li.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",_r),li.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var pi=j.prototype;function mi(e,t,n,r){var a=gn(),i=h().set(r,t);return a[n](i,e)}function fi(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return mi(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=mi(e,r,n,"month");return a}function hi(e,t,n,r){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var a,i=gn(),o=e?i._week.dow:0,s=[];if(null!=n)return mi(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=mi(t,(a+o)%7,r,"day");return s}function _i(e,t){return fi(e,t,"months")}function vi(e,t){return fi(e,t,"monthsShort")}function gi(e,t,n){return hi(e,t,n,"weekdays")}function yi(e,t,n){return hi(e,t,n,"weekdaysShort")}function bi(e,t,n){return hi(e,t,n,"weekdaysMin")}pi.calendar=P,pi.longDateFormat=U,pi.invalidDate=Z,pi.ordinal=X,pi.preparse=di,pi.postformat=di,pi.relativeTime=ee,pi.pastFuture=te,pi.set=E,pi.eras=La,pi.erasParse=Ta,pi.erasConvertYear=Oa,pi.erasAbbrRegex=Ya,pi.erasNameRegex=Pa,pi.erasNarrowRegex=Na,pi.months=ot,pi.monthsShort=st,pi.monthsParse=ct,pi.monthsRegex=ft,pi.monthsShortRegex=mt,pi.week=Mt,pi.firstDayOfYear=Lt,pi.firstDayOfWeek=Ct,pi.weekdays=Ft,pi.weekdaysMin=Rt,pi.weekdaysShort=Ht,pi.weekdaysParse=qt,pi.weekdaysRegex=Kt,pi.weekdaysShortRegex=Zt,pi.weekdaysMinRegex=Gt,pi.isPM=nn,pi.meridiem=on,hn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=S("moment.lang is deprecated. Use moment.locale instead.",hn),a.langData=S("moment.langData is deprecated. Use moment.localeData instead.",gn);var wi=Math.abs;function xi(){var e=this._data;return this._milliseconds=wi(this._milliseconds),this._days=wi(this._days),this._months=wi(this._months),e.milliseconds=wi(e.milliseconds),e.seconds=wi(e.seconds),e.minutes=wi(e.minutes),e.hours=wi(e.hours),e.months=wi(e.months),e.years=wi(e.years),this}function ki(e,t,n,r){var a=Lr(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Di(e,t){return ki(this,e,t,1)}function Mi(e,t){return ki(this,e,t,-1)}function Si(e){return e<0?Math.floor(e):Math.ceil(e)}function Ci(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,l=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*Si(Ti(s)+o),o=0,s=0),l.milliseconds=i%1e3,e=ue(i/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,n=ue(t/60),l.hours=n%24,o+=ue(n/24),s+=a=ue(Li(o)),o-=Si(Ti(a)),r=ue(s/12),s%=12,l.days=o,l.months=s,l.years=r,this}function Li(e){return 4800*e/146097}function Ti(e){return 146097*e/4800}function Oi(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ae(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Li(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ti(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ei(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN}function Ai(e){return function(){return this.as(e)}}var ji=Ai("ms"),$i=Ai("s"),Pi=Ai("m"),Yi=Ai("h"),Ni=Ai("d"),zi=Ai("w"),Ii=Ai("M"),Fi=Ai("Q"),Hi=Ai("y");function Ri(){return Lr(this)}function Bi(e){return e=ae(e),this.isValid()?this[e+"s"]():NaN}function qi(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vi=qi("milliseconds"),Wi=qi("seconds"),Ui=qi("minutes"),Ki=qi("hours"),Zi=qi("days"),Gi=qi("months"),Ji=qi("years");function Xi(){return ue(this.days()/7)}var Qi=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function to(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function no(e,t,n,r){var a=Lr(e).abs(),i=Qi(a.as("s")),o=Qi(a.as("m")),s=Qi(a.as("h")),l=Qi(a.as("d")),c=Qi(a.as("M")),u=Qi(a.as("w")),d=Qi(a.as("y")),p=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),(p=p||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+e>0,p[4]=r,to.apply(null,p)}function ro(e){return void 0===e?Qi:"function"==typeof e&&(Qi=e,!0)}function ao(e,t){return void 0!==eo[e]&&(void 0===t?eo[e]:(eo[e]=t,"s"===e&&(eo.ss=t-1),!0))}function io(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,i=eo;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(i=Object.assign({},eo,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=no(this,!a,i,n=this.localeData()),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var oo=Math.abs;function so(e){return(e>0)-(e<0)||+e}function lo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,i,o,s,l=oo(this._milliseconds)/1e3,c=oo(this._days),u=oo(this._months),d=this.asSeconds();return d?(e=ue(l/60),t=ue(e/60),l%=60,e%=60,n=ue(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",i=so(this._months)!==so(d)?"-":"",o=so(this._days)!==so(d)?"-":"",s=so(this._milliseconds)!==so(d)?"-":"",a+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var co=or.prototype;return co.isValid=ar,co.abs=xi,co.add=Di,co.subtract=Mi,co.as=Oi,co.asMilliseconds=ji,co.asSeconds=$i,co.asMinutes=Pi,co.asHours=Yi,co.asDays=Ni,co.asWeeks=zi,co.asMonths=Ii,co.asQuarters=Fi,co.asYears=Hi,co.valueOf=Ei,co._bubble=Ci,co.clone=Ri,co.get=Bi,co.milliseconds=Vi,co.seconds=Wi,co.minutes=Ui,co.hours=Ki,co.days=Zi,co.weeks=Xi,co.months=Gi,co.years=Ji,co.humanize=io,co.toISOString=lo,co.toString=lo,co.toJSON=lo,co.locale=oa,co.localeData=la,co.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),co.lang=sa,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Pe("x",Oe),Pe("X",je),Fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Fe("x",(function(e,t,n){n._d=new Date(de(e))})),a.version="2.29.1",i(Zn),a.fn=li,a.min=Qn,a.max=er,a.now=tr,a.utc=h,a.unix=ci,a.months=_i,a.isDate=p,a.locale=hn,a.invalid=y,a.duration=Lr,a.isMoment=D,a.weekdays=gi,a.parseZone=ui,a.localeData=gn,a.isDuration=sr,a.monthsShort=vi,a.weekdaysMin=bi,a.defineLocale=_n,a.updateLocale=vn,a.locales=yn,a.weekdaysShort=yi,a.normalizeUnits=ae,a.relativeTimeRounding=ro,a.relativeTimeThreshold=ao,a.calendarFormat=Hr,a.prototype=li,a.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"},a}()},4155:e=>{var t,n,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=o(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),1!==l.length||c||o(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},8486:(e,t,n)=>{var r=n(4155);!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch(t){e=!!t.stack}var t,n=k(),a=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,a=void 0,o=!1,s=[];function l(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),c(t,r);for(;s.length;)c(t=s.pop());n=!1}function c(e,t){try{e()}catch(e){if(o)throw t&&t.exit(),setTimeout(l,0),t&&t.enter(),e;setTimeout((function(){throw e}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:o&&r.domain,next:null},n||(n=!0,a())},"object"==typeof r&&"[object process]"===r.toString()&&r.nextTick)o=!0,a=function(){r.nextTick(l)};else if("function"==typeof setImmediate)a="undefined"!=typeof window?setImmediate.bind(window,l):function(){setImmediate(l)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){a=d,u.port1.onmessage=l,l()};var d=function(){u.port2.postMessage(0)};a=function(){setTimeout(l,0),d()}}else a=function(){setTimeout(l,0)};return i.runAfter=function(e){s.push(e),n||(n=!0,a())},i}(),o=Function.call;function s(e){return function(){return o.apply(e,arguments)}}var l,c=s(Array.prototype.slice),u=s(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;n<r;n++)n in this&&(t=e(t,this[n],n));return t}),d=s(Array.prototype.indexOf||function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1}),p=s(Array.prototype.map||function(e,t){var n=this,r=[];return u(n,(function(a,i,o){r.push(e.call(t,i,o,n))}),void 0),r}),m=Object.create||function(e){function t(){}return t.prototype=e,new t},f=Object.defineProperty||function(e,t,n){return e[t]=n.value,e},h=s(Object.prototype.hasOwnProperty),_=Object.keys||function(e){var t=[];for(var n in e)h(e,n)&&t.push(n);return t},v=s(Object.prototype.toString);function g(e){return"[object StopIteration]"===v(e)||e instanceof l}l="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e};function y(t,n){if(e&&n.stack&&"object"==typeof t&&null!==t&&t.stack){for(var r=[],a=n;a;a=a.source)a.stack&&(!t.__minimumStackCounter__||t.__minimumStackCounter__>a.stackCounter)&&(f(t,"__minimumStackCounter__",{value:a.stackCounter,configurable:!0}),r.unshift(a.stack));r.unshift(t.stack);var i=function(e){for(var t=e.split("\n"),n=[],r=0;r<t.length;++r){var a=t[r];x(a)||b(a)||!a||n.push(a)}return n.join("\n")}(r.join("\nFrom previous event:\n"));f(t,"stack",{value:i,configurable:!0})}}function b(e){return-1!==e.indexOf("(module.js:")||-1!==e.indexOf("(node.js:")}function w(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(e);return r?[r[1],Number(r[2])]:void 0}function x(e){var r=w(e);if(!r)return!1;var a=r[0],i=r[1];return a===t&&i>=n&&i<=Z}function k(){if(e)try{throw new Error}catch(e){var n=e.stack.split("\n"),r=w(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function D(e){return e instanceof T?e:j(e)?function(e){var t=S();return D.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}})),t.promise}(e):B(e)}D.resolve=D,D.nextTick=i,D.longStackSupport=!1;var M=1;function S(){var t,n=[],r=[],a=m(S.prototype),i=m(T.prototype);if(i.promiseDispatch=function(e,a,i){var o=c(arguments);n?(n.push(o),"when"===a&&i[1]&&r.push(i[1])):D.nextTick((function(){t.promiseDispatch.apply(t,o)}))},i.valueOf=function(){if(n)return i;var e=E(t);return A(e)&&(t=e),e},i.inspect=function(){return t?t.inspect():{state:"pending"}},D.longStackSupport&&e)try{throw new Error}catch(e){i.stack=e.stack.substring(e.stack.indexOf("\n")+1),i.stackCounter=M++}function o(a){t=a,D.longStackSupport&&e&&(i.source=a),u(n,(function(e,t){D.nextTick((function(){a.promiseDispatch.apply(a,t)}))}),void 0),n=void 0,r=void 0}return a.promise=i,a.resolve=function(e){t||o(D(e))},a.fulfill=function(e){t||o(B(e))},a.reject=function(e){t||o(R(e))},a.notify=function(e){t||u(r,(function(t,n){D.nextTick((function(){n(e)}))}),void 0)},a}function C(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=S();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function L(e){return C((function(t,n){for(var r=0,a=e.length;r<a;r++)D(e[r]).then(t,n)}))}function T(e,t,n){void 0===t&&(t=function(e){return R(new Error("Promise does not support operation: "+e))}),void 0===n&&(n=function(){return{state:"unknown"}});var r=m(T.prototype);if(r.promiseDispatch=function(n,a,i){var o;try{o=e[a]?e[a].apply(r,i):t.call(r,a,i)}catch(e){o=R(e)}n&&n(o)},r.inspect=n,n){var a=n();"rejected"===a.state&&(r.exception=a.reason),r.valueOf=function(){var e=n();return"pending"===e.state||"rejected"===e.state?r:e.value}}return r}function O(e,t,n,r){return D(e).then(t,n,r)}function E(e){if(A(e)){var t=e.inspect();if("fulfilled"===t.state)return t.value}return e}function A(e){return e instanceof T}function j(e){return(t=e)===Object(t)&&"function"==typeof e.then;var t}"object"==typeof r&&r&&r.env&&r.env.Q_DEBUG&&(D.longStackSupport=!0),D.defer=S,S.prototype.makeNodeResolver=function(){var e=this;return function(t,n){t?e.reject(t):arguments.length>2?e.resolve(c(arguments,1)):e.resolve(n)}},D.Promise=C,D.promise=C,C.race=L,C.all=W,C.reject=R,C.resolve=D,D.passByCopy=function(e){return e},T.prototype.passByCopy=function(){return this},D.join=function(e,t){return D(e).join(t)},T.prototype.join=function(e){return D([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},D.race=L,T.prototype.race=function(){return this.then(D.race)},D.makePromise=T,T.prototype.toString=function(){return"[object Promise]"},T.prototype.then=function(e,t,n){var r=this,a=S(),i=!1;return D.nextTick((function(){r.promiseDispatch((function(t){i||(i=!0,a.resolve(function(t){try{return"function"==typeof e?e(t):t}catch(e){return R(e)}}(t)))}),"when",[function(e){i||(i=!0,a.resolve(function(e){if("function"==typeof t){y(e,r);try{return t(e)}catch(e){return R(e)}}return R(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"==typeof n?n(e):e}(e)}catch(e){if(r=!0,!D.onerror)throw e;D.onerror(e)}r||a.notify(t)}]),a.promise},D.tap=function(e,t){return D(e).tap(t)},T.prototype.tap=function(e){return e=D(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},D.when=O,T.prototype.thenResolve=function(e){return this.then((function(){return e}))},D.thenResolve=function(e,t){return D(e).thenResolve(t)},T.prototype.thenReject=function(e){return this.then((function(){throw e}))},D.thenReject=function(e,t){return D(e).thenReject(t)},D.nearer=E,D.isPromise=A,D.isPromiseAlike=j,D.isPending=function(e){return A(e)&&"pending"===e.inspect().state},T.prototype.isPending=function(){return"pending"===this.inspect().state},D.isFulfilled=function(e){return!A(e)||"fulfilled"===e.inspect().state},T.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},D.isRejected=function(e){return A(e)&&"rejected"===e.inspect().state},T.prototype.isRejected=function(){return"rejected"===this.inspect().state};var $,P,Y,N=[],z=[],I=[],F=!0;function H(){N.length=0,z.length=0,F||(F=!0)}function R(e){var t=T({when:function(t){return t&&function(e){if(F){var t=d(z,e);-1!==t&&("object"==typeof r&&"function"==typeof r.emit&&D.nextTick.runAfter((function(){var n=d(I,e);-1!==n&&(r.emit("rejectionHandled",N[t],e),I.splice(n,1))})),z.splice(t,1),N.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){F&&("object"==typeof r&&"function"==typeof r.emit&&D.nextTick.runAfter((function(){-1!==d(z,e)&&(r.emit("unhandledRejection",t,e),I.push(e))})),z.push(e),t&&void 0!==t.stack?N.push(t.stack):N.push("(no stack) "+t))}(t,e),t}function B(e){return T({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return _(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function q(e,t,n){return D(e).spread(t,n)}function V(e,t,n){return D(e).dispatch(t,n)}function W(e){return O(e,(function(e){var t=0,n=S();return u(e,(function(r,a,i){var o;A(a)&&"fulfilled"===(o=a.inspect()).state?e[i]=o.value:(++t,O(a,(function(r){e[i]=r,0==--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:i,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function U(e){if(0===e.length)return D.resolve();var t=D.defer(),n=0;return u(e,(function(r,a,i){var o=e[i];n++,O(o,(function(e){t.resolve(e)}),(function(e){if(0===--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:i,value:e})}))}),void 0),t.promise}function K(e){return O(e,(function(e){return e=p(e,D),O(W(p(e,(function(e){return O(e,a,a)}))),(function(){return e}))}))}D.resetUnhandledRejections=H,D.getUnhandledReasons=function(){return N.slice()},D.stopUnhandledRejectionTracking=function(){H(),F=!1},H(),D.reject=R,D.fulfill=B,D.master=function(e){return T({isDef:function(){}},(function(t,n){return V(e,t,n)}),(function(){return D(e).inspect()}))},D.spread=q,T.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},D.async=function(e){return function(){function t(e,t){var i;if("undefined"==typeof StopIteration){try{i=n[e](t)}catch(e){return R(e)}return i.done?D(i.value):O(i.value,r,a)}try{i=n[e](t)}catch(e){return g(e)?D(e.value):R(e)}return O(i,r,a)}var n=e.apply(this,arguments),r=t.bind(t,"next"),a=t.bind(t,"throw");return r()}},D.spawn=function(e){D.done(D.async(e)())},D.return=function(e){throw new l(e)},D.promised=function(e){return function(){return q([this,W(arguments)],(function(t,n){return e.apply(t,n)}))}},D.dispatch=V,T.prototype.dispatch=function(e,t){var n=this,r=S();return D.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},D.get=function(e,t){return D(e).dispatch("get",[t])},T.prototype.get=function(e){return this.dispatch("get",[e])},D.set=function(e,t,n){return D(e).dispatch("set",[t,n])},T.prototype.set=function(e,t){return this.dispatch("set",[e,t])},D.del=D.delete=function(e,t){return D(e).dispatch("delete",[t])},T.prototype.del=T.prototype.delete=function(e){return this.dispatch("delete",[e])},D.mapply=D.post=function(e,t,n){return D(e).dispatch("post",[t,n])},T.prototype.mapply=T.prototype.post=function(e,t){return this.dispatch("post",[e,t])},D.send=D.mcall=D.invoke=function(e,t){return D(e).dispatch("post",[t,c(arguments,2)])},T.prototype.send=T.prototype.mcall=T.prototype.invoke=function(e){return this.dispatch("post",[e,c(arguments,1)])},D.fapply=function(e,t){return D(e).dispatch("apply",[void 0,t])},T.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},D.try=D.fcall=function(e){return D(e).dispatch("apply",[void 0,c(arguments,1)])},T.prototype.fcall=function(){return this.dispatch("apply",[void 0,c(arguments)])},D.fbind=function(e){var t=D(e),n=c(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(c(arguments))])}},T.prototype.fbind=function(){var e=this,t=c(arguments);return function(){return e.dispatch("apply",[this,t.concat(c(arguments))])}},D.keys=function(e){return D(e).dispatch("keys",[])},T.prototype.keys=function(){return this.dispatch("keys",[])},D.all=W,T.prototype.all=function(){return W(this)},D.any=U,T.prototype.any=function(){return U(this)},D.allResolved=($=K,P="allResolved",Y="allSettled",function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(P+" is deprecated, use "+Y+" instead.",new Error("").stack),$.apply($,arguments)}),T.prototype.allResolved=function(){return K(this)},D.allSettled=function(e){return D(e).allSettled()},T.prototype.allSettled=function(){return this.then((function(e){return W(p(e,(function(e){function t(){return e.inspect()}return(e=D(e)).then(t,t)})))}))},D.fail=D.catch=function(e,t){return D(e).then(void 0,t)},T.prototype.fail=T.prototype.catch=function(e){return this.then(void 0,e)},D.progress=function(e,t){return D(e).then(void 0,void 0,t)},T.prototype.progress=function(e){return this.then(void 0,void 0,e)},D.fin=D.finally=function(e,t){return D(e).finally(t)},T.prototype.fin=T.prototype.finally=function(e){if(!e||"function"!=typeof e.apply)throw new Error("Q can't apply finally callback");return e=D(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},D.done=function(e,t,n,r){return D(e).done(t,n,r)},T.prototype.done=function(e,t,n){var a=function(e){D.nextTick((function(){if(y(e,i),!D.onerror)throw e;D.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"==typeof r&&r&&r.domain&&(a=r.domain.bind(a)),i.then(void 0,a)},D.timeout=function(e,t,n){return D(e).timeout(t,n)},T.prototype.timeout=function(e,t){var n=S(),r=setTimeout((function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},D.delay=function(e,t){return void 0===t&&(t=e,e=void 0),D(e).delay(t)},T.prototype.delay=function(e){return this.then((function(t){var n=S();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},D.nfapply=function(e,t){return D(e).nfapply(t)},T.prototype.nfapply=function(e){var t=S(),n=c(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},D.nfcall=function(e){var t=c(arguments,1);return D(e).nfapply(t)},T.prototype.nfcall=function(){var e=c(arguments),t=S();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},D.nfbind=D.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=c(arguments,1);return function(){var n=t.concat(c(arguments)),r=S();return n.push(r.makeNodeResolver()),D(e).fapply(n).fail(r.reject),r.promise}},T.prototype.nfbind=T.prototype.denodeify=function(){var e=c(arguments);return e.unshift(this),D.denodeify.apply(void 0,e)},D.nbind=function(e,t){var n=c(arguments,2);return function(){var r=n.concat(c(arguments)),a=S();function i(){return e.apply(t,arguments)}return r.push(a.makeNodeResolver()),D(i).fapply(r).fail(a.reject),a.promise}},T.prototype.nbind=function(){var e=c(arguments,0);return e.unshift(this),D.nbind.apply(void 0,e)},D.nmapply=D.npost=function(e,t,n){return D(e).npost(t,n)},T.prototype.nmapply=T.prototype.npost=function(e,t){var n=c(t||[]),r=S();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},D.nsend=D.nmcall=D.ninvoke=function(e,t){var n=c(arguments,2),r=S();return n.push(r.makeNodeResolver()),D(e).dispatch("post",[t,n]).fail(r.reject),r.promise},T.prototype.nsend=T.prototype.nmcall=T.prototype.ninvoke=function(e){var t=c(arguments,1),n=S();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},D.nodeify=function(e,t){return D(e).nodeify(t)},T.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){D.nextTick((function(){e(null,t)}))}),(function(t){D.nextTick((function(){e(t)}))}))},D.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var Z=k();return D}))},5666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var a=t&&t.prototype instanceof _?t:_,i=Object.create(a.prototype),o=new L(r||[]);return i._invoke=function(e,t,n){var r=d;return function(a,i){if(r===m)throw new Error("Generator is already running");if(r===f){if("throw"===a)throw i;return O()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var s=M(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?f:p,l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}(e,n,o),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",p="suspendedYield",m="executing",f="completed",h={};function _(){}function v(){}function g(){}var y={};y[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==n&&r.call(w,i)&&(y=w);var x=g.prototype=_.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function n(a,i,o,s){var l=u(e[a],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var a;this._invoke=function(e,r){function i(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(i,i):i()}}function M(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var a=u(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,h;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:O}}function O(){return{value:t,done:!0}}return v.prototype=x.constructor=g,g.constructor=v,v.displayName=l(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},k(D.prototype),D.prototype[o]=function(){return this},e.AsyncIterator=D,e.async=function(t,n,r,a,i){void 0===i&&(i=Promise);var o=new D(c(t,n,r,a),i);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},k(x),l(x,s,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=T,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(r,a){return s.type="throw",s.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;C(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},1474:(e,t,n)=>{"use strict";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)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.r(t),n.d(t,{default:()=>xt,MultiDrag:()=>yt,Sortable:()=>Fe,Swap:()=>lt});function c(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),p=c(/firefox/i),m=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),f=c(/iP(ad|od|hone)/i),h=c(/chrome/i)&&c(/android/i),_={capture:!1,passive:!1};function v(e,t,n){e.addEventListener(t,n,!u&&_)}function g(e,t,n){e.removeEventListener(t,n,!u&&_)}function y(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function b(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&y(e,t):y(e,t))||r&&e===n)return e;if(e===n)break}while(e=b(e))}return null}var x,k=/\s+/g;function D(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(k," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(k," ")}}function M(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function S(e,t){var n="";if("string"==typeof e)n=e;else do{var r=M(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function C(e,t,n){if(e){var r=e.getElementsByTagName(t),a=0,i=r.length;if(n)for(;a<i;a++)n(r[a],a);return r}return[]}function L(){var e=document.scrollingElement;return e||document.documentElement}function T(e,t,n,r,a){if(e.getBoundingClientRect||e===window){var i,o,s,l,c,d,p;if(e!==window&&e!==L()?(o=(i=e.getBoundingClientRect()).top,s=i.left,l=i.bottom,c=i.right,d=i.height,p=i.width):(o=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,p=window.innerWidth),(t||n)&&e!==window&&(a=a||e.parentNode,!u))do{if(a&&a.getBoundingClientRect&&("none"!==M(a,"transform")||n&&"static"!==M(a,"position"))){var m=a.getBoundingClientRect();o-=m.top+parseInt(M(a,"border-top-width")),s-=m.left+parseInt(M(a,"border-left-width")),l=o+i.height,c=s+i.width;break}}while(a=a.parentNode);if(r&&e!==window){var f=S(a||e),h=f&&f.a,_=f&&f.d;f&&(l=(o/=_)+(d/=_),c=(s/=h)+(p/=h))}return{top:o,left:s,bottom:l,right:c,width:p,height:d}}}function O(e,t,n){for(var r=P(e,!0),a=T(e)[t];r;){var i=T(r)[n];if(!("top"===n||"left"===n?a>=i:a<=i))return r;if(r===L())break;r=P(r,!1)}return!1}function E(e,t,n){for(var r=0,a=0,i=e.children;a<i.length;){if("none"!==i[a].style.display&&i[a]!==Fe.ghost&&i[a]!==Fe.dragged&&w(i[a],n.draggable,e,!1)){if(r===t)return i[a];r++}a++}return null}function A(e,t){for(var n=e.lastElementChild;n&&(n===Fe.ghost||"none"===M(n,"display")||t&&!y(n,t));)n=n.previousElementSibling;return n||null}function j(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Fe.clone||t&&!y(e,t)||n++;return n}function $(e){var t=0,n=0,r=L();if(e)do{var a=S(e),i=a.a,o=a.d;t+=e.scrollLeft*i,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function P(e,t){if(!e||!e.getBoundingClientRect)return L();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=M(n);if(n.clientWidth<n.scrollWidth&&("auto"==a.overflowX||"scroll"==a.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==a.overflowY||"scroll"==a.overflowY)){if(!n.getBoundingClientRect||n===document.body)return L();if(r||t)return n;r=!0}}}while(n=n.parentNode);return L()}function Y(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function N(e,t){return function(){if(!x){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),x=setTimeout((function(){x=void 0}),t)}}}function z(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function I(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function F(e,t){M(e,"position","absolute"),M(e,"top",t.top),M(e,"left",t.left),M(e,"width",t.width),M(e,"height",t.height)}function H(e){M(e,"position",""),M(e,"top",""),M(e,"left",""),M(e,"width",""),M(e,"height","")}var R="Sortable"+(new Date).getTime();function B(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==M(e,"display")&&e!==Fe.ghost){t.push({target:e,rect:T(e)});var n=o({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=S(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var a=!1,i=0;t.forEach((function(e){var t=0,n=e.target,o=n.fromRect,s=T(n),l=n.prevFromRect,c=n.prevToRect,u=e.rect,d=S(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&Y(l,s)&&!Y(o,s)&&(u.top-s.top)/(u.left-s.left)==(o.top-s.top)/(o.left-s.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,l,c,r.options)),Y(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,u,s,t)),t&&(a=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),a?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){M(e,"transition",""),M(e,"transform","");var a=S(this.el),i=a&&a.a,o=a&&a.d,s=(t.left-n.left)/(i||1),l=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!l,M(e,"transform","translate3d("+s+"px,"+l+"px,0)"),function(e){e.offsetWidth}(e),M(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),M(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){M(e,"transition",""),M(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var q=[],V={initializeByDefault:!0},W={mount:function(e){for(var t in V)V.hasOwnProperty(t)&&!(t in e)&&(e[t]=V[t]);q.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=e+"Global";q.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][a]&&t[r.pluginName][a](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var a in q.forEach((function(r){var a=r.pluginName;if(e.options[a]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[a]=o,i(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(a)){var o=this.modifyOption(e,a,e.options[a]);void 0!==o&&(e.options[a]=o)}},getEventProperties:function(e,t){var n={};return q.forEach((function(r){"function"==typeof r.eventProperties&&i(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return q.forEach((function(a){e[a.pluginName]&&a.optionListeners&&"function"==typeof a.optionListeners[t]&&(r=a.optionListeners[t].call(e[a.pluginName],n))})),r}};function U(e){var t=e.sortable,n=e.rootEl,r=e.name,a=e.targetEl,i=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,p=e.newIndex,m=e.oldDraggableIndex,f=e.newDraggableIndex,h=e.originalEvent,_=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[R]){var g,y=t.options,b="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||u||d?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=s||n,g.from=l||n,g.item=a||n,g.clone=i,g.oldIndex=c,g.newIndex=p,g.oldDraggableIndex=m,g.newDraggableIndex=f,g.originalEvent=h,g.pullMode=_?_.lastPutMode:void 0;var w=o({},v,W.getEventProperties(r,t));for(var x in w)g[x]=w[x];n&&n.dispatchEvent(g),y[b]&&y[b].call(t,g)}}var K=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,a=s(n,["evt"]);W.pluginEvent.bind(Fe)(e,t,o({dragEl:G,parentEl:J,ghostEl:X,rootEl:Q,nextEl:ee,lastDownEl:te,cloneEl:ne,cloneHidden:re,dragStarted:_e,putSortable:ce,activeSortable:Fe.active,originalEvent:r,oldIndex:ae,oldDraggableIndex:oe,newIndex:ie,newDraggableIndex:se,hideGhostForTarget:Ye,unhideGhostForTarget:Ne,cloneNowHidden:function(){re=!0},cloneNowShown:function(){re=!1},dispatchSortableEvent:function(e){Z({sortable:t,name:e,originalEvent:r})}},a))};function Z(e){U(o({putSortable:ce,cloneEl:ne,targetEl:G,rootEl:Q,oldIndex:ae,oldDraggableIndex:oe,newIndex:ie,newDraggableIndex:se},e))}var G,J,X,Q,ee,te,ne,re,ae,ie,oe,se,le,ce,ue,de,pe,me,fe,he,_e,ve,ge,ye,be,we=!1,xe=!1,ke=[],De=!1,Me=!1,Se=[],Ce=!1,Le=[],Te="undefined"!=typeof document,Oe=f,Ee=d||u?"cssFloat":"float",Ae=Te&&!h&&!f&&"draggable"in document.createElement("div"),je=function(){if(Te){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),$e=function(e,t){var n=M(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=E(e,0,t),i=E(e,1,t),o=a&&M(a),s=i&&M(i),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+T(a).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+T(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&o.float&&"none"!==o.float){var u="left"===o.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return a&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=r&&"none"===n[Ee]||i&&"none"===n[Ee]&&l+c>r)?"vertical":"horizontal"},Pe=function(e){function t(e,n){return function(r,a,i,o){var s=r.options.group.name&&a.options.group.name&&r.options.group.name===a.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,a,i,o),n)(r,a,i,o);var l=(n?r:a).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},a=e.group;a&&"object"==r(a)||(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},Ye=function(){!je&&X&&M(X,"display","none")},Ne=function(){!je&&X&&M(X,"display","")};Te&&document.addEventListener("click",(function(e){if(xe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),xe=!1,!1}),!0);var ze=function(e){if(G){e=e.touches?e.touches[0]:e;var t=(a=e.clientX,i=e.clientY,ke.some((function(e){if(!A(e)){var t=T(e),n=e[R].options.emptyInsertThreshold,r=a>=t.left-n&&a<=t.right+n,s=i>=t.top-n&&i<=t.bottom+n;return n&&r&&s?o=e:void 0}})),o);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[R]._onDragOver(n)}}var a,i,o},Ie=function(e){G&&G.parentNode[R]._isOutsideThisEl(e.target)};function Fe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=i({},t),e[R]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $e(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Fe.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in W.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var a in Pe(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&Ae,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?v(e,"pointerdown",this._onTapStart):(v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),ke.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),i(this,B())}function He(e,t,n,r,a,i,o,s){var l,c,p=e[R],m=p.options.onMove;return!window.CustomEvent||u||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=a||t,l.relatedRect=i||T(t),l.willInsertAfter=s,l.originalEvent=o,e.dispatchEvent(l),m&&(c=m.call(p,l,o)),c}function Re(e){e.draggable=!1}function Be(){Ce=!1}function qe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Ve(e){return setTimeout(e,0)}function We(e){return clearTimeout(e)}Fe.prototype={constructor:Fe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,G):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,a=r.preventOnFilter,i=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(function(e){Le.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Le.push(r)}}(n),!G&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled||l.isContentEditable||(s=w(s,r.draggable,n,!1))&&s.animated||te===s)){if(ae=j(s),oe=j(s,r.draggable),"function"==typeof c){if(c.call(this,e,s,this))return Z({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),K("filter",t,{evt:e}),void(a&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=w(l,r.trim(),n,!1))return Z({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),K("filter",t,{evt:e}),!0}))))return void(a&&e.cancelable&&e.preventDefault());r.handle&&!w(l,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r,a=this,i=a.el,o=a.options,s=i.ownerDocument;if(n&&!G&&n.parentNode===i){var l=T(n);if(Q=i,J=(G=n).parentNode,ee=G.nextSibling,te=n,le=o.group,Fe.dragged=G,ue={target:G,clientX:(t||e).clientX,clientY:(t||e).clientY},fe=ue.clientX-l.left,he=ue.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,G.style["will-change"]="all",r=function(){K("delayEnded",a,{evt:e}),Fe.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!p&&a.nativeDraggable&&(G.draggable=!0),a._triggerDragStart(e,t),Z({sortable:a,name:"choose",originalEvent:e}),D(G,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){C(G,e.trim(),Re)})),v(s,"dragover",ze),v(s,"mousemove",ze),v(s,"touchmove",ze),v(s,"mouseup",a._onDrop),v(s,"touchend",a._onDrop),v(s,"touchcancel",a._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,G.draggable=!0),K("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))r();else{if(Fe.eventCanceled)return void this._onDrop();v(s,"mouseup",a._disableDelayedDrag),v(s,"touchend",a._disableDelayedDrag),v(s,"touchcancel",a._disableDelayedDrag),v(s,"mousemove",a._delayedDragTouchMoveHandler),v(s,"touchmove",a._delayedDragTouchMoveHandler),o.supportPointer&&v(s,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(r,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){G&&Re(G),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._disableDelayedDrag),g(e,"touchend",this._disableDelayedDrag),g(e,"touchcancel",this._disableDelayedDrag),g(e,"mousemove",this._delayedDragTouchMoveHandler),g(e,"touchmove",this._delayedDragTouchMoveHandler),g(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,t?"touchmove":"mousemove",this._onTouchMove):(v(G,"dragend",this),v(Q,"dragstart",this._onDragStart));try{document.selection?Ve((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(we=!1,Q&&G){K("dragStarted",this,{evt:t}),this.nativeDraggable&&v(document,"dragover",Ie);var n=this.options;!e&&D(G,n.dragClass,!1),D(G,n.ghostClass,!0),Fe.active=this,e&&this._appendGhost(),Z({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,Ye();for(var e=document.elementFromPoint(de.clientX,de.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY))!==t;)t=e;if(G.parentNode[R]._isOutsideThisEl(e),t)do{if(t[R]){if(t[R]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ne()}},_onTouchMove:function(e){if(ue){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,a=e.touches?e.touches[0]:e,i=X&&S(X,!0),o=X&&i&&i.a,s=X&&i&&i.d,l=Oe&&be&&$(be),c=(a.clientX-ue.clientX+r.x)/(o||1)+(l?l[0]-Se[0]:0)/(o||1),u=(a.clientY-ue.clientY+r.y)/(s||1)+(l?l[1]-Se[1]:0)/(s||1);if(!Fe.active&&!we){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(X){i?(i.e+=c-(pe||0),i.f+=u-(me||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");M(X,"webkitTransform",d),M(X,"mozTransform",d),M(X,"msTransform",d),M(X,"transform",d),pe=c,me=u,de=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!X){var e=this.options.fallbackOnBody?document.body:Q,t=T(G,!0,Oe,!0,e),n=this.options;if(Oe){for(be=e;"static"===M(be,"position")&&"none"===M(be,"transform")&&be!==document;)be=be.parentNode;be!==document.body&&be!==document.documentElement?(be===document&&(be=L()),t.top+=be.scrollTop,t.left+=be.scrollLeft):be=L(),Se=$(be)}D(X=G.cloneNode(!0),n.ghostClass,!1),D(X,n.fallbackClass,!0),D(X,n.dragClass,!0),M(X,"transition",""),M(X,"transform",""),M(X,"box-sizing","border-box"),M(X,"margin",0),M(X,"top",t.top),M(X,"left",t.left),M(X,"width",t.width),M(X,"height",t.height),M(X,"opacity","0.8"),M(X,"position",Oe?"absolute":"fixed"),M(X,"zIndex","100000"),M(X,"pointerEvents","none"),Fe.ghost=X,e.appendChild(X),M(X,"transform-origin",fe/parseInt(X.style.width)*100+"% "+he/parseInt(X.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,a=n.options;K("dragStart",this,{evt:e}),Fe.eventCanceled?this._onDrop():(K("setupClone",this),Fe.eventCanceled||((ne=I(G)).draggable=!1,ne.style["will-change"]="",this._hideClone(),D(ne,this.options.chosenClass,!1),Fe.clone=ne),n.cloneId=Ve((function(){K("clone",n),Fe.eventCanceled||(n.options.removeCloneOnHide||Q.insertBefore(ne,G),n._hideClone(),Z({sortable:n,name:"clone"}))})),!t&&D(G,a.dragClass,!0),t?(xe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(g(document,"mouseup",n._onDrop),g(document,"touchend",n._onDrop),g(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",a.setData&&a.setData.call(n,r,G)),v(document,"drop",n),M(G,"transform","translateZ(0)")),we=!0,n._dragStartId=Ve(n._dragStarted.bind(n,t,e)),v(document,"selectstart",n),_e=!0,m&&M(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,a,i=this.el,s=e.target,l=this.options,c=l.group,u=Fe.active,d=le===c,p=l.sort,m=ce||u,f=this,h=!1;if(!Ce){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=w(s,l.draggable,i,!0),Y("dragOver"),Fe.eventCanceled)return h;if(G.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||f._ignoreWhileAnimating===s)return I(!1);if(xe=!1,u&&!l.disabled&&(d?p||(r=!Q.contains(G)):ce===this||(this.lastPutMode=le.checkPull(this,u,G,e))&&c.checkPut(this,u,G,e))){if(a="vertical"===this._getDirection(e,s),t=T(G),Y("dragOverValid"),Fe.eventCanceled)return h;if(r)return J=Q,N(),this._hideClone(),Y("revert"),Fe.eventCanceled||(ee?Q.insertBefore(G,ee):Q.appendChild(G)),I(!0);var _=A(i,l.draggable);if(!_||function(e,t,n){var r=T(A(n.el,n.options.draggable)),a=10;return t?e.clientX>r.right+a||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+a}(e,a,this)&&!_.animated){if(_===G)return I(!1);if(_&&i===e.target&&(s=_),s&&(n=T(s)),!1!==He(Q,i,G,t,s,n,e,!!s))return N(),i.appendChild(G),J=i,F(),I(!0)}else if(s.parentNode===i){n=T(s);var v,g,y,b=G.parentNode!==i,x=!function(e,t,n){var r=n?e.left:e.top,a=n?e.right:e.bottom,i=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===o||a===s||r+i/2===o+l/2}(G.animated&&G.toRect||t,s.animated&&s.toRect||n,a),k=a?"top":"left",S=O(s,"top","top")||O(G,"top","top"),C=S?S.scrollTop:void 0;if(ve!==s&&(g=n[k],De=!1,Me=!x&&l.invertSwap||b),0!==(v=function(e,t,n,r,a,i,o,s){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!o)if(s&&ye<c*a){if(!De&&(1===ge?l>u+c*i/2:l<d-c*i/2)&&(De=!0),De)p=!0;else if(1===ge?l<u+ye:l>d-ye)return-ge}else if(l>u+c*(1-a)/2&&l<d-c*(1-a)/2)return function(e){return j(G)<j(e)?1:-1}(t);if((p=p||o)&&(l<u+c*i/2||l>d-c*i/2))return l>u+c/2?1:-1;return 0}(e,s,n,a,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Me,ve===s))){var L=j(G);do{L-=v,y=J.children[L]}while(y&&("none"===M(y,"display")||y===X))}if(0===v||y===s)return I(!1);ve=s,ge=v;var E=s.nextElementSibling,$=!1,P=He(Q,i,G,t,s,n,e,$=1===v);if(!1!==P)return 1!==P&&-1!==P||($=1===P),Ce=!0,setTimeout(Be,30),N(),$&&!E?i.appendChild(G):s.parentNode.insertBefore(G,$?E:s),S&&z(S,0,C-S.scrollTop),J=G.parentNode,void 0===g||Me||(ye=Math.abs(g-T(s)[k])),F(),I(!0)}if(i.contains(G))return I(!1)}return!1}function Y(l,c){K(l,f,o({evt:e,isOwner:d,axis:a?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:p,fromSortable:m,target:s,completed:I,onMove:function(n,r){return He(Q,i,G,t,n,T(n),e,r)},changed:F},c))}function N(){Y("dragOverAnimationCapture"),f.captureAnimationState(),f!==m&&m.captureAnimationState()}function I(t){return Y("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(f),f!==m&&(D(G,ce?ce.options.ghostClass:u.options.ghostClass,!1),D(G,l.ghostClass,!0)),ce!==f&&f!==Fe.active?ce=f:f===Fe.active&&ce&&(ce=null),m===f&&(f._ignoreWhileAnimating=s),f.animateAll((function(){Y("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(s===G&&!G.animated||s===i&&!s.animated)&&(ve=null),l.dragoverBubble||e.rootEl||s===document||(G.parentNode[R]._isOutsideThisEl(e.target),!t&&ze(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function F(){ie=j(G),se=j(G,l.draggable),Z({sortable:f,name:"change",toEl:i,newIndex:ie,newDraggableIndex:se,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){g(document,"mousemove",this._onTouchMove),g(document,"touchmove",this._onTouchMove),g(document,"pointermove",this._onTouchMove),g(document,"dragover",ze),g(document,"mousemove",ze),g(document,"touchmove",ze)},_offUpEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._onDrop),g(e,"touchend",this._onDrop),g(e,"pointerup",this._onDrop),g(e,"touchcancel",this._onDrop),g(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ie=j(G),se=j(G,n.draggable),K("drop",this,{evt:e}),J=G&&G.parentNode,ie=j(G),se=j(G,n.draggable),Fe.eventCanceled||(we=!1,Me=!1,De=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),We(this.cloneId),We(this._dragStartId),this.nativeDraggable&&(g(document,"drop",this),g(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&M(document.body,"user-select",""),M(G,"transform",""),e&&(_e&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),X&&X.parentNode&&X.parentNode.removeChild(X),(Q===J||ce&&"clone"!==ce.lastPutMode)&&ne&&ne.parentNode&&ne.parentNode.removeChild(ne),G&&(this.nativeDraggable&&g(G,"dragend",this),Re(G),G.style["will-change"]="",_e&&!we&&D(G,ce?ce.options.ghostClass:this.options.ghostClass,!1),D(G,this.options.chosenClass,!1),Z({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:e}),Q!==J?(ie>=0&&(Z({rootEl:J,name:"add",toEl:J,fromEl:Q,originalEvent:e}),Z({sortable:this,name:"remove",toEl:J,originalEvent:e}),Z({rootEl:J,name:"sort",toEl:J,fromEl:Q,originalEvent:e}),Z({sortable:this,name:"sort",toEl:J,originalEvent:e})),ce&&ce.save()):ie!==ae&&ie>=0&&(Z({sortable:this,name:"update",toEl:J,originalEvent:e}),Z({sortable:this,name:"sort",toEl:J,originalEvent:e})),Fe.active&&(null!=ie&&-1!==ie||(ie=ae,se=oe),Z({sortable:this,name:"end",toEl:J,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){K("nulling",this),Q=G=J=X=ee=ne=te=re=ue=de=_e=ie=se=ae=oe=ve=ge=ce=le=Fe.dragged=Fe.ghost=Fe.clone=Fe.active=null,Le.forEach((function(e){e.checked=!0})),Le.length=pe=me=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":G&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,a=n.length,i=this.options;r<a;r++)w(e=n[r],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||qe(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var a=n.children[r];w(a,this.options.draggable,n,!1)&&(t[e]=a)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=W.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Pe(n)},destroy:function(){K("destroy",this);var e=this.el;e[R]=null,g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart),g(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ke.splice(ke.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!re){if(K("hideClone",this),Fe.eventCanceled)return;M(ne,"display","none"),this.options.removeCloneOnHide&&ne.parentNode&&ne.parentNode.removeChild(ne),re=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(re){if(K("showClone",this),Fe.eventCanceled)return;Q.contains(G)&&!this.options.group.revertClone?Q.insertBefore(ne,G):ee?Q.insertBefore(ne,ee):Q.appendChild(ne),this.options.group.revertClone&&this.animate(G,ne),M(ne,"display",""),re=!1}}else this._hideClone()}},Te&&v(document,"touchmove",(function(e){(Fe.active||we)&&e.cancelable&&e.preventDefault()})),Fe.utils={on:v,off:g,css:M,find:C,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:N,closest:w,toggleClass:D,clone:I,index:j,nextTick:Ve,cancelNextTick:We,detectDirection:$e,getChild:E},Fe.get=function(e){return e[R]},Fe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Fe.utils=o({},Fe.utils,e.utils)),W.mount(e)}))},Fe.create=function(e,t){return new Fe(e,t)},Fe.version="1.10.2";var Ue,Ke,Ze,Ge,Je,Xe,Qe=[],et=!1;function tt(){Qe.forEach((function(e){clearInterval(e.pid)})),Qe=[]}function nt(){clearInterval(Xe)}var rt,at=N((function(e,t,n,r){if(t.scroll){var a,i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=L(),u=!1;Ke!==n&&(Ke=n,tt(),Ue=t.scroll,a=t.scrollFn,!0===Ue&&(Ue=P(n,!0)));var d=0,p=Ue;do{var m=p,f=T(m),h=f.top,_=f.bottom,v=f.left,g=f.right,y=f.width,b=f.height,w=void 0,x=void 0,k=m.scrollWidth,D=m.scrollHeight,S=M(m),C=m.scrollLeft,O=m.scrollTop;m===c?(w=y<k&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),x=b<D&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(w=y<k&&("auto"===S.overflowX||"scroll"===S.overflowX),x=b<D&&("auto"===S.overflowY||"scroll"===S.overflowY));var E=w&&(Math.abs(g-i)<=s&&C+y<k)-(Math.abs(v-i)<=s&&!!C),A=x&&(Math.abs(_-o)<=s&&O+b<D)-(Math.abs(h-o)<=s&&!!O);if(!Qe[d])for(var j=0;j<=d;j++)Qe[j]||(Qe[j]={});Qe[d].vx==E&&Qe[d].vy==A&&Qe[d].el===m||(Qe[d].el=m,Qe[d].vx=E,Qe[d].vy=A,clearInterval(Qe[d].pid),0==E&&0==A||(u=!0,Qe[d].pid=setInterval(function(){r&&0===this.layer&&Fe.active._onTouchMove(Je);var t=Qe[this.layer].vy?Qe[this.layer].vy*l:0,n=Qe[this.layer].vx?Qe[this.layer].vx*l:0;"function"==typeof a&&"continue"!==a.call(Fe.dragged.parentNode[R],n,t,e,Je,Qe[this.layer].el)||z(Qe[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==c&&(p=P(p,!1)));et=u}}),30),it=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,a=e.activeSortable,i=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||a;o();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function ot(){}function st(){}function lt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;rt=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,a=e.activeSortable,i=e.changed,o=e.cancel;if(a.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=rt;!1!==r(n)?(D(n,l.swapClass,!0),rt=n):rt=null,c&&c!==rt&&D(c,l.swapClass,!1)}i(),t(!0),o()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,a=n||this.sortable,i=this.options;rt&&D(rt,i.swapClass,!1),rt&&(i.swap||n&&n.options.swap)&&r!==rt&&(a.captureAnimationState(),a!==t&&t.captureAnimationState(),function(e,t){var n,r,a=e.parentNode,i=t.parentNode;if(!a||!i||a.isEqualNode(t)||i.isEqualNode(e))return;n=j(e),r=j(t),a.isEqualNode(i)&&n<r&&r++;a.insertBefore(t,a.children[n]),i.insertBefore(e,i.children[r])}(r,rt),a.animateAll(),a!==t&&t.animateAll())},nulling:function(){rt=null}},i(e,{pluginName:"swap",eventProperties:function(){return{swapItem:rt}}})}ot.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=E(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:it},i(ot,{pluginName:"revertOnSpill"}),st.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:it},i(st,{pluginName:"removeOnSpill"});var ct,ut,dt,pt,mt,ft=[],ht=[],_t=!1,vt=!1,gt=!1;function yt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?v(document,"pointerup",this._deselectMultiDrag):(v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag)),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";ft.length&&ut===e?ft.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;dt=t},delayEnded:function(){this.isMultiDrag=~ft.indexOf(dt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<ft.length;r++)ht.push(I(ft[r])),ht[r].sortableIndex=ft[r].sortableIndex,ht[r].draggable=!1,ht[r].style["will-change"]="",D(ht[r],this.options.selectedClass,!1),ft[r]===dt&&D(ht[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,a=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ft.length&&ut===t&&(bt(!0,n),r("clone"),a()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(bt(!1,n),ht.forEach((function(e){M(e,"display","")})),t(),mt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(ht.forEach((function(e){M(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),mt=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&ut&&ut.multiDrag._deselectMultiDrag(),ft.forEach((function(e){e.sortableIndex=j(e)})),ft=ft.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),gt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){ft.forEach((function(e){e!==dt&&M(e,"position","absolute")}));var r=T(dt,!1,!0,!0);ft.forEach((function(e){e!==dt&&F(e,r)})),vt=!0,_t=!0}n.animateAll((function(){vt=!1,_t=!1,t.options.animation&&ft.forEach((function(e){H(e)})),t.options.sort&&wt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;vt&&~ft.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,a=e.dragRect;ft.length>1&&(ft.forEach((function(e){r.addAnimationState({target:e,rect:vt?T(e):a}),H(e),e.fromRect=a,t.removeAnimationState(e)})),vt=!1,function(e,t){ft.forEach((function(n,r){var a=t.children[n.sortableIndex+(e?Number(r):0)];a?t.insertBefore(n,a):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,a=e.activeSortable,i=e.parentEl,o=e.putSortable,s=this.options;if(r){if(n&&a._hideClone(),_t=!1,s.animation&&ft.length>1&&(vt||!n&&!a.options.sort&&!o)){var l=T(dt,!1,!0,!0);ft.forEach((function(e){e!==dt&&(F(e,l),i.appendChild(e))})),vt=!0}if(!n)if(vt||wt(),ft.length>1){var c=mt;a._showClone(t),a.options.animation&&!mt&&c&&ht.forEach((function(e){a.addAnimationState({target:e,rect:pt}),e.fromRect=pt,e.thisAnimationDuration=null}))}else a._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(ft.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){pt=i({},t);var a=S(dt,!0);pt.top-=a.f,pt.left-=a.e}},dragOverAnimationComplete:function(){vt&&(vt=!1,wt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,a=e.sortable,i=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=r.children;if(!gt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),D(dt,c.selectedClass,!~ft.indexOf(dt)),~ft.indexOf(dt))ft.splice(ft.indexOf(dt),1),ct=null,U({sortable:a,rootEl:n,name:"deselect",targetEl:dt,originalEvt:t});else{if(ft.push(dt),U({sortable:a,rootEl:n,name:"select",targetEl:dt,originalEvt:t}),t.shiftKey&&ct&&a.el.contains(ct)){var d,p,m=j(ct),f=j(dt);if(~m&&~f&&m!==f)for(f>m?(p=m,d=f):(p=f,d=m+1);p<d;p++)~ft.indexOf(u[p])||(D(u[p],c.selectedClass,!0),ft.push(u[p]),U({sortable:a,rootEl:n,name:"select",targetEl:u[p],originalEvt:t}))}else ct=dt;ut=l}if(gt&&this.isMultiDrag){if((r[R].options.sort||r!==n)&&ft.length>1){var h=T(dt),_=j(dt,":not(."+this.options.selectedClass+")");if(!_t&&c.animation&&(dt.thisAnimationDuration=null),l.captureAnimationState(),!_t&&(c.animation&&(dt.fromRect=h,ft.forEach((function(e){if(e.thisAnimationDuration=null,e!==dt){var t=vt?T(e):h;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),wt(),ft.forEach((function(e){u[_]?r.insertBefore(e,u[_]):r.appendChild(e),_++})),o===j(dt))){var v=!1;ft.forEach((function(e){e.sortableIndex===j(e)||(v=!0)})),v&&i("update")}ft.forEach((function(e){H(e)})),l.animateAll()}ut=l}(n===r||s&&"clone"!==s.lastPutMode)&&ht.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=gt=!1,ht.length=0},destroyGlobal:function(){this._deselectMultiDrag(),g(document,"pointerup",this._deselectMultiDrag),g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==gt&&gt||ut!==this.sortable||e&&w(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;ft.length;){var t=ft[0];D(t,this.options.selectedClass,!1),ft.shift(),U({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},i(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[R];t&&t.options.multiDrag&&!~ft.indexOf(e)&&(ut&&ut!==t&&(ut.multiDrag._deselectMultiDrag(),ut=t),D(e,t.options.selectedClass,!0),ft.push(e))},deselect:function(e){var t=e.parentNode[R],n=ft.indexOf(e);t&&t.options.multiDrag&&~n&&(D(e,t.options.selectedClass,!1),ft.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return ft.forEach((function(r){var a;t.push({multiDragElement:r,index:r.sortableIndex}),a=vt&&r!==dt?-1:vt?j(r,":not(."+e.options.selectedClass+")"):j(r),n.push({multiDragElement:r,index:a})})),{items:l(ft),clones:[].concat(ht),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function bt(e,t){ht.forEach((function(n,r){var a=t.children[n.sortableIndex+(e?Number(r):0)];a?t.insertBefore(n,a):t.appendChild(n)}))}function wt(){ft.forEach((function(e){e!==dt&&e.parentNode&&e.parentNode.removeChild(e)}))}Fe.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):t.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):(g(document,"pointermove",this._handleFallbackAutoScroll),g(document,"touchmove",this._handleFallbackAutoScroll),g(document,"mousemove",this._handleFallbackAutoScroll)),nt(),tt(),clearTimeout(x),x=void 0},nulling:function(){Je=Ke=Ue=et=Xe=Ze=Ge=null,Qe.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,a);if(Je=e,t||d||u||m){at(e,this.options,i,t);var o=P(i,!0);!et||Xe&&r===Ze&&a===Ge||(Xe&&nt(),Xe=setInterval((function(){var i=P(document.elementFromPoint(r,a),!0);i!==o&&(o=i,tt()),at(e,n.options,i,t)}),10),Ze=r,Ge=a)}else{if(!this.options.bubbleScroll||P(i,!0)===L())return void tt();at(e,this.options,P(i,!1),!1)}}},i(e,{pluginName:"scroll",initializeByDefault:!0})}),Fe.mount(st,ot);const xt=Fe},3379:(e,t,n)=>{"use strict";var r,a=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],a=0;a<e.length;a++){var i=e[a],l=t.base?i[0]+t.base:i[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(o[d].references++,o[d].updater(p)):o.push({identifier:u,updater:_(p,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var a=n.nc;a&&(r.nonce=a)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var o=i(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function p(e,t,n,r){var a=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function m(e,t,n){var r=n.css,a=n.media,i=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var f=null,h=0;function _(e,t){var n,r,a;if(t.singleton){var i=h++;n=f||(f=c(t)),r=p.bind(null,n,i,!1),a=p.bind(null,n,i,!0)}else n=c(t),r=m.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var a=s(n[r]);o[a].references--}for(var i=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=i}}}},6737:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="swal-button";t.CLASS_NAMES={MODAL:"swal-modal",OVERLAY:"swal-overlay",SHOW_MODAL:"swal-overlay--show-modal",MODAL_TITLE:"swal-title",MODAL_TEXT:"swal-text",ICON:"swal-icon",ICON_CUSTOM:"swal-icon--custom",CONTENT:"swal-content",FOOTER:"swal-footer",BUTTON_CONTAINER:"swal-button-container",BUTTON:r,CONFIRM_BUTTON:r+"--confirm",CANCEL_BUTTON:r+"--cancel",DANGER_BUTTON:r+"--danger",BUTTON_LOADING:r+"--loading",BUTTON_LOADER:r+"__loader"},t.default=t.CLASS_NAMES},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNode=function(e){var t="."+e;return document.querySelector(t)},t.stringToNode=function(e){var t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild},t.insertAfter=function(e,t){var n=t.nextSibling;t.parentNode.insertBefore(e,n)},t.removeNode=function(e){e.parentElement.removeChild(e)},t.throwErr=function(e){throw"SweetAlert: "+(e=e.replace(/ +(?= )/g,"")).trim()},t.isPlainObject=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype},t.ordinalSuffixOf=function(e){var t=e%10,n=e%100;return 1===t&&11!==n?e+"st":2===t&&12!==n?e+"nd":3===t&&13!==n?e+"rd":e+"th"}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(25));var a=n(26);t.overlayMarkup=a.default,r(n(27)),r(n(28)),r(n(29));var i=n(0),o=i.default.MODAL_TITLE,s=i.default.MODAL_TEXT,l=i.default.ICON,c=i.default.FOOTER;t.iconMarkup='\n <div class="'+l+'"></div>',t.titleMarkup='\n <div class="'+o+'"></div>\n',t.textMarkup='\n <div class="'+s+'"></div>',t.footerMarkup='\n <div class="'+c+'"></div>\n'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.CONFIRM_KEY="confirm",t.CANCEL_KEY="cancel";var a={visible:!0,text:null,value:null,className:"",closeModal:!0},i=Object.assign({},a,{visible:!1,text:"Cancel",value:null}),o=Object.assign({},a,{text:"OK",value:!0});t.defaultButtonList={cancel:i,confirm:o};var s=function(e){switch(e){case t.CONFIRM_KEY:return o;case t.CANCEL_KEY:return i;default:var n=e.charAt(0).toUpperCase()+e.slice(1);return Object.assign({},a,{text:n,value:e})}},l=function(e,t){var n=s(e);return!0===t?Object.assign({},n,{visible:!0}):"string"==typeof t?Object.assign({},n,{visible:!0,text:t}):r.isPlainObject(t)?Object.assign({visible:!0},n,t):Object.assign({},n,{visible:!1})},c=function(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],o=e[a],s=l(a,o);t[a]=s}return t.cancel||(t.cancel=i),t},u=function(e){var n={};switch(e.length){case 1:n[t.CANCEL_KEY]=Object.assign({},i,{visible:!1});break;case 2:n[t.CANCEL_KEY]=l(t.CANCEL_KEY,e[0]),n[t.CONFIRM_KEY]=l(t.CONFIRM_KEY,e[1]);break;default:r.throwErr("Invalid number of 'buttons' in array ("+e.length+").\n If you want more than 2 buttons, you need to use an object!")}return n};t.getButtonListOpts=function(e){var n=t.defaultButtonList;return"string"==typeof e?n[t.CONFIRM_KEY]=l(t.CONFIRM_KEY,e):Array.isArray(e)?n=u(e):r.isPlainObject(e)?n=c(e):!0===e?n=u([!0,!0]):!1===e?n=u([!1,!1]):void 0===e&&(n=t.defaultButtonList),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(2),i=n(0),o=i.default.MODAL,s=i.default.OVERLAY,l=n(30),c=n(31),u=n(32),d=n(33);t.injectElIntoModal=function(e){var t=r.getNode(o),n=r.stringToNode(e);return t.appendChild(n),n};var p=function(e){e.className=o,e.textContent=""},m=function(e,t){p(e);var n=t.className;n&&e.classList.add(n)};t.initModalContent=function(e){var t=r.getNode(o);m(t,e),l.default(e.icon),c.initTitle(e.title),c.initText(e.text),d.default(e.content),u.default(e.buttons,e.dangerMode)};var f=function(){var e=r.getNode(s),t=r.stringToNode(a.modalMarkup);e.appendChild(t)};t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a={isOpen:!1,promise:null,actions:{},timer:null},i=Object.assign({},a);t.resetState=function(){i=Object.assign({},a)},t.setActionValue=function(e){if("string"==typeof e)return o(r.CONFIRM_KEY,e);for(var t in e)o(t,e[t])};var o=function(e,t){i.actions[e]||(i.actions[e]={}),Object.assign(i.actions[e],{value:t})};t.setActionOptionsFor=function(e,t){var n=(void 0===t?{}:t).closeModal,r=void 0===n||n;Object.assign(i.actions[e],{closeModal:r})},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(3),i=n(0),o=i.default.OVERLAY,s=i.default.SHOW_MODAL,l=i.default.BUTTON,c=i.default.BUTTON_LOADING,u=n(5);t.openModal=function(){r.getNode(o).classList.add(s),u.default.isOpen=!0};var d=function(){r.getNode(o).classList.remove(s),u.default.isOpen=!1};t.onAction=function(e){void 0===e&&(e=a.CANCEL_KEY);var t=u.default.actions[e],n=t.value;if(!1===t.closeModal){var i=l+"--"+e;r.getNode(i).classList.add(c)}else d();u.default.promise.resolve(n)},t.getState=function(){var e=Object.assign({},u.default);return delete e.promise,delete e.timer,e},t.stopLoading=function(){for(var e=document.querySelectorAll("."+l),t=0;t<e.length;t++)e[t].classList.remove(c)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){e.exports=t.sweetAlert=n(9)}).call(t,n(7))},function(e,t,n){(function(t){e.exports=t.swal=n(10)}).call(t,n(7))},function(e,t,n){"undefined"!=typeof window&&n(11),n(16);var r=n(23).default;e.exports=r},function(e,t,n){var r=n(12);"string"==typeof r&&(r=[[e.i,r,""]]);var a={insertAt:"top",transform:void 0};n(14)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(13)(void 0)).push([e.i,'.swal-icon--error{border-color:#f27474;-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}.swal-icon--error__x-mark{position:relative;display:block;-webkit-animation:animateXMark .5s;animation:animateXMark .5s}.swal-icon--error__line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal-icon--error__line--left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal-icon--error__line--right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.swal-icon--warning{border-color:#f8bb86;-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}.swal-icon--warning__body{width:5px;height:47px;top:10px;border-radius:2px;margin-left:-2px}.swal-icon--warning__body,.swal-icon--warning__dot{position:absolute;left:50%;background-color:#f8bb86}.swal-icon--warning__dot{width:7px;height:7px;border-radius:50%;margin-left:-4px;bottom:-11px}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.swal-icon--success{border-color:#a5dc86}.swal-icon--success:after,.swal-icon--success:before{content:"";border-radius:50%;position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal-icon--success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal-icon--success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px;-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}.swal-icon--success__ring{width:80px;height:80px;border:4px solid hsla(98,55%,69%,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal-icon--success__hide-corners{width:5px;height:90px;background-color:#fff;padding:1px;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal-icon--success__line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal-icon--success__line--tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.swal-icon--success__line--long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}.swal-icon--info{border-color:#c9dae1}.swal-icon--info:before{width:5px;height:29px;bottom:17px;border-radius:2px;margin-left:-2px}.swal-icon--info:after,.swal-icon--info:before{content:"";position:absolute;left:50%;background-color:#c9dae1}.swal-icon--info:after{width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px}.swal-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.swal-icon:first-child{margin-top:32px}.swal-icon--custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.swal-icon img{max-width:100%;max-height:100%}.swal-title{color:rgba(0,0,0,.65);font-weight:600;text-transform:none;position:relative;display:block;padding:13px 16px;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.swal-title:first-child{margin-top:26px}.swal-title:not(:first-child){padding-bottom:0}.swal-title:not(:last-child){margin-bottom:13px}.swal-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:left;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:rgba(0,0,0,.64);max-width:calc(100% - 20px);overflow-wrap:break-word;box-sizing:border-box}.swal-text:first-child{margin-top:45px}.swal-text:last-child{margin-bottom:45px}.swal-footer{text-align:right;padding-top:13px;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.swal-button-container{margin:5px;display:inline-block;position:relative}.swal-button{background-color:#7cd1f9;color:#fff;border:none;box-shadow:none;border-radius:5px;font-weight:600;font-size:14px;padding:10px 24px;margin:0;cursor:pointer}.swal-button:not([disabled]):hover{background-color:#78cbf2}.swal-button:active{background-color:#70bce0}.swal-button:focus{outline:none;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(43,114,165,.29)}.swal-button[disabled]{opacity:.5;cursor:default}.swal-button::-moz-focus-inner{border:0}.swal-button--cancel{color:#555;background-color:#efefef}.swal-button--cancel:not([disabled]):hover{background-color:#e8e8e8}.swal-button--cancel:active{background-color:#d7d7d7}.swal-button--cancel:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(116,136,150,.29)}.swal-button--danger{background-color:#e64942}.swal-button--danger:not([disabled]):hover{background-color:#df4740}.swal-button--danger:active{background-color:#cf423b}.swal-button--danger:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(165,43,43,.29)}.swal-content{padding:0 20px;margin-top:20px;font-size:medium}.swal-content:last-child{margin-bottom:20px}.swal-content__input,.swal-content__textarea{-webkit-appearance:none;background-color:#fff;border:none;font-size:14px;display:block;box-sizing:border-box;width:100%;border:1px solid rgba(0,0,0,.14);padding:10px 13px;border-radius:2px;transition:border-color .2s}.swal-content__input:focus,.swal-content__textarea:focus{outline:none;border-color:#6db8ff}.swal-content__textarea{resize:vertical}.swal-button--loading{color:transparent}.swal-button--loading~.swal-button__loader{opacity:1}.swal-button__loader{position:absolute;height:auto;width:43px;z-index:2;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);text-align:center;pointer-events:none;opacity:0}.swal-button__loader div{display:inline-block;float:none;vertical-align:baseline;width:9px;height:9px;padding:0;border:none;margin:2px;opacity:.4;border-radius:7px;background-color:hsla(0,0%,100%,.9);transition:background .2s;-webkit-animation:swal-loading-anim 1s infinite;animation:swal-loading-anim 1s infinite}.swal-button__loader div:nth-child(3n+2){-webkit-animation-delay:.15s;animation-delay:.15s}.swal-button__loader div:nth-child(3n+3){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}.swal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center;font-size:0;overflow-y:auto;background-color:rgba(0,0,0,.4);z-index:10000;pointer-events:none;opacity:0;transition:opacity .3s}.swal-overlay:before{content:" ";display:inline-block;vertical-align:middle;height:100%}.swal-overlay--show-modal{opacity:1;pointer-events:auto}.swal-overlay--show-modal .swal-modal{opacity:1;pointer-events:auto;box-sizing:border-box;-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s;will-change:transform}.swal-modal{width:478px;opacity:0;pointer-events:none;background-color:#fff;text-align:center;border-radius:5px;position:static;margin:20px auto;display:inline-block;vertical-align:middle;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;z-index:10001;transition:opacity .2s,-webkit-transform .3s;transition:transform .3s,opacity .2s;transition:transform .3s,opacity .2s,-webkit-transform .3s}@media (max-width:500px){.swal-modal{width:calc(100% - 20px)}}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}',""])},function(e,t){function n(e,t){var n=e[1]||"",a=e[3];if(!a)return n;if(t&&"function"==typeof btoa){var i=r(a);return[n].concat(a.sources.map((function(e){return"/*# sourceURL="+a.sourceRoot+e+" */"}))).concat([i]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a<this.length;a++){var i=this[a][0];"number"==typeof i&&(r[i]=!0)}for(a=0;a<e.length;a++){var o=e[a];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=f[r.id];if(a){a.refs++;for(var i=0;i<a.parts.length;i++)a.parts[i](r.parts[i]);for(;i<r.parts.length;i++)a.parts.push(u(r.parts[i],t))}else{var o=[];for(i=0;i<r.parts.length;i++)o.push(u(r.parts[i],t));f[r.id]={id:r.id,refs:1,parts:o}}}}function a(e,t){for(var n=[],r={},a=0;a<e.length;a++){var i=e[a],o=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[o]?r[o].parts.push(s):n.push(r[o]={id:o,parts:[s]})}return n}function i(e,t){var n=_(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=y[y.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function o(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",c(t,e.attrs),i(e,t),t}function l(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",c(t,e.attrs),i(e,t),t}function c(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function u(e,t){var n,r,a,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var c=g++;n=v||(v=s(t)),r=d.bind(null,n,c,!1),a=d.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=m.bind(null,n,t),a=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=p.bind(null,n),a=function(){o(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}function d(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,a);else{var i=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i)}}function p(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function m(e,t,n){var r=n.css,a=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||i)&&(r=b(r)),a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var o=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}var f={},h=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}((function(){return window&&document&&document.all&&!window.atob})),_=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}((function(e){return document.querySelector(e)})),v=null,g=0,y=[],b=n(15);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=h()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=a(e,t);return r(n,t),function(e){for(var i=[],o=0;o<n.length;o++){var s=n[o];(l=f[s.id]).refs--,i.push(l)}for(e&&r(a(e,t),t),o=0;o<i.length;o++){var l;if(0===(l=i[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete f[l.id]}}}};var w=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var a,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i)?e:(a=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")}))}},function(e,t,n){var r=n(17);"undefined"==typeof window||window.Promise||(window.Promise=r),n(21),String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;for(var a=0|t,i=Math.max(a>=0?a:r-Math.abs(a),0);i<r;){if(function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}(n[i],e))return!0;i++}return!1}}),"undefined"!=typeof window&&[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}))},function(e,t,n){(function(t){!function(n){function r(){}function a(e,t){return function(){e.apply(t,arguments)}}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function o(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void l(t.promise,e)}s(t.promise,r)}else(1===e._state?s:l)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void c(e);if("function"==typeof n)return void d(a(n,t),e)}e._state=1,e._value=t,c(e)}catch(t){l(e,t)}}function l(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function u(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(e){if(n)return;n=!0,l(t,e)}}var p=setTimeout;i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return o(this,new u(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i((function(e,n){function r(i,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,(function(e){r(i,e)}),n)}t[i]=o,0==--a&&e(t)}catch(e){n(e)}}if(0===t.length)return e([]);for(var a=t.length,i=0;i<t.length;i++)r(i,t[i])}))},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){for(var r=0,a=e.length;r<a;r++)e[r].then(t,n)}))},i._immediateFn="function"==typeof t&&function(e){t(e)}||function(e){p(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==e&&e.exports?e.exports=i:n.Promise||(n.Promise=i)}(this)}).call(t,n(18).setImmediate)},function(e,t,n){function r(e,t){this._id=e,this._clearFn=t}var a=Function.prototype.apply;t.setTimeout=function(){return new r(a.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(a.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,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))},n(19),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return c[l]=r,s(l),l++}function a(e){delete c[e]}function i(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function o(e){if(u)setTimeout(o,0,e);else{var t=c[e];if(t){u=!0;try{i(t)}finally{a(e),u=!1}}}}if(!e.setImmediate){var s,l=1,c={},u=!1,d=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?s=function(e){t.nextTick((function(){o(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&o(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),s=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){o(e.data)},s=function(t){e.port2.postMessage(t)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var e=d.documentElement;s=function(t){var n=d.createElement("script");n.onreadystatechange=function(){o(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():s=function(e){setTimeout(o,0,e)},p.setImmediate=r,p.clearImmediate=a}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,n(7),n(20))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function o(){h&&m&&(h=!1,m.length?f=m.concat(f):_=-1,f.length&&s())}function s(){if(!h){var e=a(o);h=!0;for(var t=f.length;t;){for(m=f,f=[];++_<t;)m&&m[_].run();_=-1,t=f.length}m=null,h=!1,i(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var u,d,p=e.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(e){u=n}try{d="function"==typeof clearTimeout?clearTimeout:r}catch(e){d=r}}();var m,f=[],h=!1,_=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new l(e,t)),1!==f.length||h||a(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){"use strict";n(22).polyfill()},function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var a=arguments[r];if(null!=a)for(var i=Object.keys(Object(a)),o=0,s=i.length;o<s;o++){var l=i[o],c=Object.getOwnPropertyDescriptor(a,l);void 0!==c&&c.enumerable&&(n[l]=a[l])}}return n}function a(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:r})}e.exports={assign:r,polyfill:a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(24),a=n(6),i=n(5),o=n(36),s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if("undefined"!=typeof window){var n=o.getOpts.apply(void 0,e);return new Promise((function(e,t){i.default.promise={resolve:e,reject:t},r.default(n),setTimeout((function(){a.openModal()}))}))}};s.close=a.onAction,s.getState=a.getState,s.setActionValue=i.setActionValue,s.stopLoading=a.stopLoading,s.setDefaults=o.setDefaults,t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(0).default.MODAL,i=n(4),o=n(34),s=n(35),l=n(1);t.init=function(e){r.getNode(a)||(document.body||l.throwErr("You can only use SweetAlert AFTER the DOM has loaded!"),o.default(),i.default()),i.initModalContent(e),s.default(e)},t.default=t.init},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).default.MODAL;t.modalMarkup='\n <div class="'+r+'" role="dialog" aria-modal="true"></div>',t.default=t.modalMarkup},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r='<div \n class="'+n(0).default.OVERLAY+'"\n tabIndex="-1">\n </div>';t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).default.ICON;t.errorIconMarkup=function(){var e=r+"--error",t=e+"__line";return'\n <div class="'+e+'__x-mark">\n <span class="'+t+" "+t+'--left"></span>\n <span class="'+t+" "+t+'--right"></span>\n </div>\n '},t.warningIconMarkup=function(){var e=r+"--warning";return'\n <span class="'+e+'__body">\n <span class="'+e+'__dot"></span>\n </span>\n '},t.successIconMarkup=function(){var e=r+"--success";return'\n <span class="'+e+"__line "+e+'__line--long"></span>\n <span class="'+e+"__line "+e+'__line--tip"></span>\n\n <div class="'+e+'__ring"></div>\n <div class="'+e+'__hide-corners"></div>\n '}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).default.CONTENT;t.contentMarkup='\n <div class="'+r+'">\n\n </div>\n'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=r.default.BUTTON_CONTAINER,i=r.default.BUTTON,o=r.default.BUTTON_LOADER;t.buttonMarkup='\n <div class="'+a+'">\n\n <button\n class="'+i+'"\n ></button>\n\n <div class="'+o+'">\n <div></div>\n <div></div>\n <div></div>\n </div>\n\n </div>\n'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),a=n(2),i=n(0),o=i.default.ICON,s=i.default.ICON_CUSTOM,l=["error","warning","success","info"],c={error:a.errorIconMarkup(),warning:a.warningIconMarkup(),success:a.successIconMarkup()},u=function(e,t){var n=o+"--"+e;t.classList.add(n);var r=c[e];r&&(t.innerHTML=r)},d=function(e,t){t.classList.add(s);var n=document.createElement("img");n.src=e,t.appendChild(n)},p=function(e){if(e){var t=r.injectElIntoModal(a.iconMarkup);l.includes(e)?u(e,t):d(e,t)}};t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),a=n(4),i=function(e){navigator.userAgent.includes("AppleWebKit")&&(e.style.display="none",e.offsetHeight,e.style.display="")};t.initTitle=function(e){if(e){var t=a.injectElIntoModal(r.titleMarkup);t.textContent=e,i(t)}},t.initText=function(e){if(e){var t=document.createDocumentFragment();e.split("\n").forEach((function(e,n,r){t.appendChild(document.createTextNode(e)),n<r.length-1&&t.appendChild(document.createElement("br"))}));var n=a.injectElIntoModal(r.textMarkup);n.appendChild(t),i(n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(4),i=n(0),o=i.default.BUTTON,s=i.default.DANGER_BUTTON,l=n(3),c=n(2),u=n(6),d=n(5),p=function(e,t,n){var a=t.text,i=t.value,p=t.className,m=t.closeModal,f=r.stringToNode(c.buttonMarkup),h=f.querySelector("."+o),_=o+"--"+e;h.classList.add(_),p&&(Array.isArray(p)?p:p.split(" ")).filter((function(e){return e.length>0})).forEach((function(e){h.classList.add(e)})),n&&e===l.CONFIRM_KEY&&h.classList.add(s),h.textContent=a;var v={};return v[e]=i,d.setActionValue(v),d.setActionOptionsFor(e,{closeModal:m}),h.addEventListener("click",(function(){return u.onAction(e)})),f},m=function(e,t){var n=a.injectElIntoModal(c.footerMarkup);for(var r in e){var i=e[r],o=p(r,i,t);i.visible&&n.appendChild(o)}0===n.children.length&&n.remove()};t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=n(4),i=n(2),o=n(5),s=n(6),l=n(0).default.CONTENT,c=function(e){e.addEventListener("input",(function(e){var t=e.target.value;o.setActionValue(t)})),e.addEventListener("keyup",(function(e){if("Enter"===e.key)return s.onAction(r.CONFIRM_KEY)})),setTimeout((function(){e.focus(),o.setActionValue("")}),0)},u=function(e,t,n){var r=document.createElement(t),a=l+"__"+t;for(var i in r.classList.add(a),n){var o=n[i];r[i]=o}"input"===t&&c(r),e.appendChild(r)},d=function(e){if(e){var t=a.injectElIntoModal(i.contentMarkup),n=e.element,r=e.attributes;"string"==typeof n?u(t,n,r):t.appendChild(n)}};t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(2),i=function(){var e=r.stringToNode(a.overlayMarkup);document.body.appendChild(e)};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),a=n(6),i=n(1),o=n(3),s=n(0),l=s.default.MODAL,c=s.default.BUTTON,u=s.default.OVERLAY,d=function(e){e.preventDefault(),_()},p=function(e){e.preventDefault(),v()},m=function(e){if(r.default.isOpen)switch(e.key){case"Escape":return a.onAction(o.CANCEL_KEY)}},f=function(e){if(r.default.isOpen)switch(e.key){case"Tab":return d(e)}},h=function(e){if(r.default.isOpen)return"Tab"===e.key&&e.shiftKey?p(e):void 0},_=function(){var e=i.getNode(c);e&&(e.tabIndex=0,e.focus())},v=function(){var e=i.getNode(l).querySelectorAll("."+c),t=e[e.length-1];t&&t.focus()},g=function(e){e[e.length-1].addEventListener("keydown",f)},y=function(e){e[0].addEventListener("keydown",h)},b=function(){var e=i.getNode(l).querySelectorAll("."+c);e.length&&(g(e),y(e))},w=function(e){if(i.getNode(u)===e.target)return a.onAction(o.CANCEL_KEY)},x=function(e){var t=i.getNode(u);t.removeEventListener("click",w),e&&t.addEventListener("click",w)},k=function(e){r.default.timer&&clearTimeout(r.default.timer),e&&(r.default.timer=window.setTimeout((function(){return a.onAction(o.CANCEL_KEY)}),e))},D=function(e){e.closeOnEsc?document.addEventListener("keyup",m):document.removeEventListener("keyup",m),e.dangerMode?_():v(),b(),x(e.closeOnClickOutside),k(e.timer)};t.default=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(3),i=n(37),o=n(38),s={title:null,text:null,icon:null,buttons:a.defaultButtonList,content:null,className:null,closeOnClickOutside:!0,closeOnEsc:!0,dangerMode:!1,timer:null},l=Object.assign({},s);t.setDefaults=function(e){l=Object.assign({},s,e)};var c=function(e){var t=e&&e.button,n=e&&e.buttons;return void 0!==t&&void 0!==n&&r.throwErr("Cannot set both 'button' and 'buttons' options!"),void 0!==t?{confirm:t}:n},u=function(e){return r.ordinalSuffixOf(e+1)},d=function(e,t){r.throwErr(u(t)+" argument ('"+e+"') is invalid")},p=function(e,t){var n=e+1,a=t[n];r.isPlainObject(a)||void 0===a||r.throwErr("Expected "+u(n)+" argument ('"+a+"') to be a plain object")},m=function(e,t){var n=e+1,a=t[n];void 0!==a&&r.throwErr("Unexpected "+u(n)+" argument ("+a+")")},f=function(e,t,n,a){var i=t instanceof Element;if("string"==typeof t){if(0===n)return{text:t};if(1===n)return{text:t,title:a[0]};if(2===n)return p(n,a),{icon:t};d(t,n)}else{if(i&&0===n)return p(n,a),{content:t};if(r.isPlainObject(t))return m(n,a),t;d(t,n)}};t.getOpts=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={};e.forEach((function(t,r){var a=f(0,t,r,e);Object.assign(n,a)}));var r=c(n);n.buttons=a.getButtonListOpts(r),delete n.button,n.content=i.getContentOpts(n.content);var u=Object.assign({},s,l,n);return Object.keys(u).forEach((function(e){o.DEPRECATED_OPTS[e]&&o.logDeprecation(e)})),u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a={element:"input",attributes:{placeholder:""}};t.getContentOpts=function(e){var t={};return r.isPlainObject(e)?Object.assign(t,e):e instanceof Element?{element:e}:"input"===e?a:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logDeprecation=function(e){var n=t.DEPRECATED_OPTS[e],r=n.onlyRename,a=n.replacement,i=n.subOption,o=n.link,s='SweetAlert warning: "'+e+'" option has been '+(r?"renamed":"deprecated")+".";a&&(s+=" Please use"+(i?' "'+i+'" in ':" ")+'"'+a+'" instead.');var l="https://sweetalert.js.org";s+=o?" More details: "+l+o:" More details: "+l+"/guides/#upgrading-from-1x",console.warn(s)},t.DEPRECATED_OPTS={type:{replacement:"icon",link:"/docs/#icon"},imageUrl:{replacement:"icon",link:"/docs/#icon"},customClass:{replacement:"className",onlyRename:!0,link:"/docs/#classname"},imageSize:{},showCancelButton:{replacement:"buttons",link:"/docs/#buttons"},showConfirmButton:{replacement:"button",link:"/docs/#button"},confirmButtonText:{replacement:"button",link:"/docs/#button"},confirmButtonColor:{},cancelButtonText:{replacement:"buttons",link:"/docs/#buttons"},closeOnConfirm:{replacement:"button",subOption:"closeModal",link:"/docs/#button"},closeOnCancel:{replacement:"buttons",subOption:"closeModal",link:"/docs/#buttons"},showLoaderOnConfirm:{replacement:"buttons"},animation:{},inputType:{replacement:"content",link:"/docs/#content"},inputValue:{replacement:"content",link:"/docs/#content"},inputPlaceholder:{replacement:"content",link:"/docs/#content"},html:{replacement:"content",link:"/docs/#content"},allowEscapeKey:{replacement:"closeOnEsc",onlyRename:!0,link:"/docs/#closeonesc"},allowClickOutside:{replacement:"closeOnClickOutside",onlyRename:!0,link:"/docs/#closeonclickoutside"}}}])},8901:(e,t,n)=>{var r,a;n.amdD,r=[n(9755)],void 0===(a=function(e){return function(){var t,n,r,a=0,i="error",o="info",s="success",l="warning",c={clear:function(n,r){var a=f();t||u(a),d(n,a,r)||function(n){for(var r=t.children(),a=r.length-1;a>=0;a--)d(e(r[a]),n)}(a)},remove:function(n){var r=f();t||u(r),n&&0===e(":focus",n).length?h(n):t.children().length&&t.remove()},error:function(e,t,n){return m({type:i,iconClass:f().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:u,info:function(e,t,n){return m({type:o,iconClass:f().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){n=e},success:function(e,t,n){return m({type:s,iconClass:f().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return m({type:l,iconClass:f().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return c;function u(n,r){return n||(n=f()),(t=e("#"+n.containerId)).length||r&&(t=function(n){return(t=e("<div/>").attr("id",n.containerId).addClass(n.positionClass)).appendTo(e(n.target)),t}(n)),t}function d(t,n,r){var a=!(!r||!r.force)&&r.force;return!(!t||!a&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){h(t)}}),0))}function p(e){n&&n(e)}function m(n){var i=f(),o=n.iconClass||i.iconClass;if(void 0!==n.optionsOverride&&(i=e.extend(i,n.optionsOverride),o=n.optionsOverride.iconClass||o),!function(e,t){if(e.preventDuplicates){if(t.message===r)return!0;r=t.message}return!1}(i,n)){a++,t=u(i,!0);var s=null,l=e("<div/>"),c=e("<div/>"),d=e("<div/>"),m=e("<div/>"),_=e(i.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},g={toastId:a,state:"visible",startTime:new Date,options:i,map:n};return n.iconClass&&l.addClass(i.toastClass).addClass(o),function(){if(n.title){var e=n.title;i.escapeHtml&&(e=y(n.title)),c.append(e).addClass(i.titleClass),l.append(c)}}(),function(){if(n.message){var e=n.message;i.escapeHtml&&(e=y(n.message)),d.append(e).addClass(i.messageClass),l.append(d)}}(),i.closeButton&&(_.addClass(i.closeClass).attr("role","button"),l.prepend(_)),i.progressBar&&(m.addClass(i.progressClass),l.prepend(m)),i.rtl&&l.addClass("rtl"),i.newestOnTop?t.prepend(l):t.append(l),function(){var e="";switch(n.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}l.attr("aria-live",e)}(),l.hide(),l[i.showMethod]({duration:i.showDuration,easing:i.showEasing,complete:i.onShown}),i.timeOut>0&&(s=setTimeout(b,i.timeOut),v.maxHideTime=parseFloat(i.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,i.progressBar&&(v.intervalId=setInterval(k,10))),i.closeOnHover&&l.hover(x,w),!i.onclick&&i.tapToDismiss&&l.click(b),i.closeButton&&_&&_.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),i.onCloseClick&&i.onCloseClick(e),b(!0)})),i.onclick&&l.click((function(e){i.onclick(e),b()})),p(g),i.debug&&console&&console.log(g),l}function y(e){return null==e&&(e=""),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function b(t){var n=t&&!1!==i.closeMethod?i.closeMethod:i.hideMethod,r=t&&!1!==i.closeDuration?i.closeDuration:i.hideDuration,a=t&&!1!==i.closeEasing?i.closeEasing:i.hideEasing;if(!e(":focus",l).length||t)return clearTimeout(v.intervalId),l[n]({duration:r,easing:a,complete:function(){h(l),clearTimeout(s),i.onHidden&&"hidden"!==g.state&&i.onHidden(),g.state="hidden",g.endTime=new Date,p(g)}})}function w(){(i.timeOut>0||i.extendedTimeOut>0)&&(s=setTimeout(b,i.extendedTimeOut),v.maxHideTime=parseFloat(i.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function x(){clearTimeout(s),v.hideEta=0,l.stop(!0,!0)[i.showMethod]({duration:i.showDuration,easing:i.showEasing})}function k(){var e=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;m.width(e+"%")}}function f(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},c.options)}function h(e){t||(t=u()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),r=void 0))}}()}.apply(t,r))||(e.exports=a)},9178:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=".",t(t.s=9)}([function(e,t,n){"use strict";t.a={prefix:"",suffix:"",thousands:",",decimal:".",precision:2}},function(e,t,n){"use strict";var r=n(2),a=n(5),i=n(0);t.a=function(e,t){if(t.value){var o=n.i(a.a)(i.a,t.value);if("INPUT"!==e.tagName.toLocaleUpperCase()){var s=e.getElementsByTagName("input");1!==s.length||(e=s[0])}e.oninput=function(){var t=e.value.length-e.selectionEnd;e.value=n.i(r.a)(e.value,o),t=Math.max(t,o.suffix.length),t=e.value.length-t,t=Math.max(t,o.prefix.length+1),n.i(r.b)(e,t),e.dispatchEvent(n.i(r.c)("change"))},e.onfocus=function(){n.i(r.b)(e,e.value.length-o.suffix.length)},e.oninput(),e.dispatchEvent(n.i(r.c)("input"))}}},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.a;"number"==typeof e&&(e=e.toFixed(o(t.precision)));var n=e.indexOf("-")>=0?"-":"",r=d(l(i(e),t.precision)).split("."),a=r[0],s=r[1];return a=c(a,t.thousands),t.prefix+n+u(a,s,t.decimal)+t.suffix}function a(e,t){var n=e.indexOf("-")>=0?-1:1,r=l(i(e),t);return parseFloat(r)*n}function i(e){return d(e).replace(/\D+/g,"")||"0"}function o(e){return s(0,e,20)}function s(e,t,n){return Math.max(e,Math.min(t,n))}function l(e,t){var n=Math.pow(10,t);return(parseFloat(e)/n).toFixed(o(t))}function c(e,t){return e.replace(/(\d)(?=(?:\d{3})+\b)/gm,"$1"+t)}function u(e,t,n){return t?e+n+t:e}function d(e){return e?e.toString():""}function p(e,t){var n=function(){e.setSelectionRange(t,t)};e===document.activeElement&&(n(),setTimeout(n,1))}function m(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var f=n(0);n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return m}))},function(e,t,n){"use strict";function r(e,t){t&&Object.keys(t).map((function(e){s.a[e]=t[e]})),e.directive("money",o.a),e.component("money",i.a)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),i=n.n(a),o=n(1),s=n(0);n.d(t,"Money",(function(){return i.a})),n.d(t,"VMoney",(function(){return o.a})),n.d(t,"options",(function(){return s.a})),n.d(t,"VERSION",(function(){return l}));var l="0.8.1";t.default=r,"undefined"!=typeof window&&window.Vue&&window.Vue.use(r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n(0),i=n(2);t.default={name:"Money",props:{value:{required:!0,type:[Number,String],default:0},masked:{type:Boolean,default:!1},precision:{type:Number,default:function(){return a.a.precision}},decimal:{type:String,default:function(){return a.a.decimal}},thousands:{type:String,default:function(){return a.a.thousands}},prefix:{type:String,default:function(){return a.a.prefix}},suffix:{type:String,default:function(){return a.a.suffix}}},directives:{money:r.a},data:function(){return{formattedValue:""}},watch:{value:{immediate:!0,handler:function(e,t){var r=n.i(i.a)(e,this.$props);r!==this.formattedValue&&(this.formattedValue=r)}}},methods:{change:function(e){this.$emit("input",this.masked?e.target.value:n.i(i.d)(e.target.value,this.precision))}}}},function(e,t,n){"use strict";t.a=function(e,t){return e=e||{},t=t||{},Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return n[r]=void 0===t[r]?e[r]:t[r],n}),{})}},function(e,t,n){var r=n(7)(n(4),n(8),null,null);e.exports=r.exports},function(e,t){e.exports=function(e,t,n,r){var a,i=e=e||{},o=typeof e.default;"object"!==o&&"function"!==o||(a=e,i=e.default);var s="function"==typeof i?i.options:i;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var l=s.computed||(s.computed={});Object.keys(r).forEach((function(e){var t=r[e];l[e]=function(){return t}}))}return{esModule:a,exports:i,options:s}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{directives:[{name:"money",rawName:"v-money",value:{precision:e.precision,decimal:e.decimal,thousands:e.thousands,prefix:e.prefix,suffix:e.suffix},expression:"{precision, decimal, thousands, prefix, suffix}"}],staticClass:"v-money",attrs:{type:"tel"},domProps:{value:e.formattedValue},on:{change:e.change}})},staticRenderFns:[]}},function(e,t,n){e.exports=n(3)}])},4790:function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(8527),function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return 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 a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));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=1)}([function(e,t){e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"Component",(function(){return d})),n.d(t,"Plugin",(function(){return p}));var r=n(0),a=n.n(r),i=["onChange","onClose","onDestroy","onMonthChange","onOpen","onYearChange"];function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s=function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},l=function(e){return o({},e)},c=i.concat(["onValueUpdate","onDayCreate","onParseConfig","onReady","onPreCalendarPosition","onKeyDown"]),u=["locale","showMonths"],d={name:"flat-pickr",render:function(e){return e("input",{attrs:{type:"text","data-input":!0},props:{disabled:this.disabled},on:{input:this.onInput}})},props:{value:{default:null,required:!0,validator:function(e){return null===e||e instanceof Date||"string"==typeof e||e instanceof String||e instanceof Array||"number"==typeof e}},config:{type:Object,default:function(){return{wrap:!1,defaultDate:null}}},events:{type:Array,default:function(){return i}},disabled:{type:Boolean,default:!1}},data:function(){return{fp:null}},mounted:function(){var e=this;if(!this.fp){var t=l(this.config);this.events.forEach((function(n){var r,i=a.a.defaultConfig[n]||[];t[n]=(r=t[n]||[],r instanceof Array?r:[r]).concat(i,(function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];e.$emit.apply(e,[s(n)].concat(r))}))})),t.defaultDate=this.value||t.defaultDate,this.fp=new a.a(this.getElem(),t),this.fpInput().addEventListener("blur",this.onBlur),this.$on("on-close",this.onClose),this.$watch("disabled",this.watchDisabled,{immediate:!0})}},methods:{getElem:function(){return this.config.wrap?this.$el.parentNode:this.$el},onInput:function(e){var t=this,n=e.target;this.$nextTick((function(){t.$emit("input",n.value)}))},fpInput:function(){return this.fp.altInput||this.fp.input},onBlur:function(e){this.$emit("blur",e.target.value)},onClose:function(e,t){this.$emit("input",t)},watchDisabled:function(e){e?this.fpInput().setAttribute("disabled",e):this.fpInput().removeAttribute("disabled")}},watch:{config:{deep:!0,handler:function(e){var t=this,n=l(e);c.forEach((function(e){delete n[e]})),this.fp.set(n),u.forEach((function(e){void 0!==n[e]&&t.fp.set(e,n[e])}))}},value:function(e){e!==this.$el.value&&this.fp&&this.fp.setDate(e,!0)}},beforeDestroy:function(){this.fp&&(this.fpInput().removeEventListener("blur",this.onBlur),this.fp.destroy(),this.fp=null)}},p=function(e,t){var n="flat-pickr";"string"==typeof t&&(n=t),e.component(n,d)};d.install=p,t.default=d}]).default)},3236:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});const r={props:{showBgOverlay:{default:!1,type:Boolean}}};var a=n(3379),i=n.n(a),o=n(9),s={insert:"head",singleton:!1};i()(o.Z,s);o.Z.locals;const l=(0,n(1900).Z)(r,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"absolute top-0 left-0 z-20 flex items-center justify-center w-full h-full bg-opacity-25 base-loader",class:{"bg-gray-400":e.showBgOverlay}},[e._m(0)])}),[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"absolute top-0 left-0 w-full h-full overlay"},[n("div",{staticClass:"absolute flex items-center justify-center ball-scale-ripple-multiple"},[n("div"),e._v(" "),n("div"),e._v(" "),n("div")])])}],!1,null,null,null).exports},7557:(e,t,n)=>{"use strict";n.d(t,{Z:()=>jr});var r=n(3032),a=n(629),i=n(7757),o=n.n(i);function s(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){s(i,r,a,o,l,"next",e)}function l(e){s(i,r,a,o,l,"throw",e)}o(void 0)}))}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=n(379),m=p.required,f=p.minLength,h=p.between,_=p.maxLength;const v={data:function(){return{isEdit:!1,isLoading:!1,formData:{id:null,name:null,percent:0,description:null,compound_tax:!1,collective_tax:0},defaultInput:{decimal:".",thousands:",",prefix:"% ",precision:2,masked:!1}}},computed:u(u({},(0,a.Se)("modal",["modalDataID","modalData","modalActive","refreshData"])),{},{descriptionError:function(){return this.$v.formData.description.$error?this.$v.formData.description.maxLength?void 0:this.$t("validation.description_maxlength"):""},nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?this.$tc("validation.name_min_length",this.$v.formData.name.$params.minLength.min,{count:this.$v.formData.name.$params.minLength.min}):this.$tc("validation.required"):""},percentError:function(){return this.$v.formData.percent.$error?this.$v.formData.percent.required?this.$t("validation.enter_valid_tax_rate"):this.$t("validation.required"):""}}),validations:{formData:{name:{required:m,minLength:f(3)},percent:{required:m,between:h(0,100)},description:{maxLength:_(255)}}},mounted:function(){var e=this;return l(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.name.focus=!0,e.modalDataID&&(e.isEdit=!0,e.setData());case 2:case"end":return t.stop()}}),t)})))()},methods:u(u(u({},(0,a.nv)("modal",["closeModal","resetModalData"])),(0,a.nv)("taxType",["addTaxType","updateTaxType","fetchTaxType"])),{},{resetFormData:function(){this.formData={id:null,name:null,percent:0,description:null,collective_tax:0},this.$v.formData.$reset()},submitTaxTypeData:function(){var e=this;return l(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:if(e.isLoading=!0,e.isEdit){t.next=10;break}return t.next=7,e.addTaxType(e.formData);case 7:n=t.sent,t.next=13;break;case 10:return t.next=12,e.updateTaxType(e.formData);case 12:n=t.sent;case 13:if(!n.data){t.next=20;break}return e.isEdit?window.toastr.success(e.$t("settings.tax_types.updated_message")):window.toastr.success(e.$t("settings.tax_types.created_message")),window.hub.$emit("newTax",n.data.taxType),e.refreshData&&e.refreshData(),e.closeTaxModal(),e.isLoading=!1,t.abrupt("return",!0);case 20:window.toastr.error(n.data.error);case 21:case"end":return t.stop()}}),t)})))()},setData:function(){var e=this;return l(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.formData={id:e.modalData.id,name:e.modalData.name,percent:e.modalData.percent,description:e.modalData.description,compound_tax:!!e.modalData.compound_tax};case 1:case"end":return t.stop()}}),t)})))()},closeTaxModal:function(){this.resetModalData(),this.resetFormData(),this.closeModal()}})};var g=n(1900);const y=(0,g.Z)(v,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tax-type-modal"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitTaxTypeData(t)}}},[n("div",{staticClass:"p-8 sm:p-6"},[n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("tax_types.name"),error:e.nameError,variant:"horizontal",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.name.$error,type:"text"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("tax_types.percent"),error:e.percentError,variant:"horizontal",required:""}},[n("sw-money",{staticClass:"relative w-full focus:border focus:border-solid focus:border-primary",attrs:{currency:e.defaultInput,invalid:e.$v.formData.percent.$error},on:{input:function(t){return e.$v.formData.percent.$touch()}},model:{value:e.formData.percent,callback:function(t){e.$set(e.formData,"percent",t)},expression:"formData.percent"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("tax_types.description"),error:e.descriptionError,variant:"horizontal"}},[n("sw-textarea",{attrs:{rows:"4",cols:"50"},on:{input:function(t){return e.$v.formData.description.$touch()}},model:{value:e.formData.description,callback:function(t){e.$set(e.formData,"description",t)},expression:"formData.description"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("tax_types.compound_tax"),variant:"horizontal"}},[n("sw-switch",{staticClass:"flex items-center mt-1",model:{value:e.formData.compound_tax,callback:function(t){e.$set(e.formData,"compound_tax",t)},expression:"formData.compound_tax"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-solid border--200 border-modal-bg"},[n("sw-button",{staticClass:"mr-3 text-sm",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeTaxModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.save"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function b(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=n(379),M=D.required,S=D.minLength,C=(D.numeric,D.maxLength),L=D.minValue;const T={components:{ShoppingCartIcon:r.Q1y},data:function(){return{isEdit:!1,isLoading:!1,tempData:null,taxes:[],formData:{name:null,price:null,description:null,unit:null,taxes:[]}}},validations:{formData:{name:{required:M,minLength:S(3)},price:{required:M,minValue:L(.1),maxLength:C(20)},description:{maxLength:C(255)}}},computed:x(x(x(x(x({},(0,a.Se)("company",["defaultCurrencyForInput"])),{},{price:{get:function(){return this.formData.price/100},set:function(e){this.formData.price=Math.round(100*e)}}},(0,a.Se)("modal",["modalDataID","modalData"])),(0,a.Se)("item",["getItemById","itemUnits"])),(0,a.Se)("taxType",["taxTypes"])),{},{isTexPerItem:function(){return"YES"===this.modalData.taxPerItem},getTaxTypes:function(){return this.taxTypes.map((function(e){return x(x({},e),{},{tax_name:e.name+" ("+e.percent+"%)"})}))},nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?this.$v.formData.name.minLength?void 0:this.$tc("validation.name_min_length",this.$v.formData.name.$params.minLength.min,{count:this.$v.formData.name.$params.minLength.min}):this.$tc("validation.required"):""},priceError:function(){return this.$v.formData.price.$error?this.$v.formData.price.required?this.$v.formData.price.maxLength?this.$v.formData.price.minValue?void 0:this.$t("validation.price_minvalue"):this.$t("validation.price_maxlength"):this.$tc("validation.required"):""},descriptionError:function(){return this.$v.formData.description.$error?this.$v.formData.description.maxLength?void 0:this.$t("validation.description_maxlength"):""}}),watch:{modalDataID:function(){this.isEdit=!0,this.fetchEditData()}},created:function(){this.modalDataID&&(this.isEdit=!0,this.fetchEditData()),this.isEdit&&this.loadEditData()},mounted:function(){this.$v.formData.$reset(),this.$refs.name.focus=!0,this.fetchItemUnits({limit:"all"})},methods:x(x(x(x({},(0,a.nv)("modal",["closeModal","resetModalData"])),(0,a.nv)("item",["addItem","updateItem","fetchItemUnits"])),(0,a.nv)("invoice",["setItem"])),{},{resetFormData:function(){this.formData={name:null,price:null,description:null,unit:null,id:null},this.$v.$reset()},fetchEditData:function(){this.tempData=this.getItemById(this.modalDataID),this.tempData&&(this.formData.name=this.tempData.name,this.formData.price=this.tempData.price,this.formData.description=this.tempData.description,this.formData.unit=this.tempData.unit,this.formData.id=this.tempData.id)},submitItemData:function(){var e,t=this;return(e=o().mark((function e(){var n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.$v.formData.$touch(),!t.$v.$invalid){e.next=3;break}return e.abrupt("return",!0);case 3:if(t.formData.unit&&(t.formData.unit_id=t.formData.unit.id),t.isLoading=!0,!t.isEdit){e.next=11;break}return e.next=8,t.updateItem(t.formData);case 8:n=e.sent,e.next=15;break;case 11:return r=x(x({},t.formData),{},{taxes:t.formData.taxes.map((function(e){return{tax_type_id:e.id,amount:t.formData.price*e.percent/100,percent:e.percent,name:e.name,collective_tax:0}}))}),e.next=14,t.addItem(r);case 14:n=e.sent;case 15:if(!n.data){e.next=24;break}return window.toastr.success(t.$tc("items.created_message")),t.setItem(n.data.item),window.hub.$emit("newItem",n.data.item),t.isLoading=!1,t.resetModalData(),t.resetFormData(),t.closeModal(),e.abrupt("return",!0);case 24:window.toastr.error(n.data.error);case 25:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){b(i,r,a,o,s,"next",e)}function s(e){b(i,r,a,o,s,"throw",e)}o(void 0)}))})()},closeItemModal:function(){this.resetFormData(),this.closeModal(),this.resetModalData()}})};const O=(0,g.Z)(T,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"item-modal"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitItemData(t)}}},[n("div",{staticClass:"px-8 py-8 sm:p-6"},[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("items.name"),error:e.nameError,variant:"horizontal",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.name.$error,type:"text"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("items.price"),error:e.priceError,variant:"horizontal",required:""}},[n("sw-money",{staticClass:"relative w-full focus:border focus:border-solid focus:border-primary",attrs:{currency:e.defaultCurrencyForInput,invalid:e.$v.formData.price.$error},on:{input:function(t){return e.$v.formData.price.$touch()}},model:{value:e.price,callback:function(t){e.price=t},expression:"price"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("items.unit"),variant:"horizontal"}},[n("sw-select",{attrs:{options:e.itemUnits,searchable:!0,"show-labels":!1,"max-height":200,label:"name"},model:{value:e.formData.unit,callback:function(t){e.$set(e.formData,"unit",t)},expression:"formData.unit"}})],1),e._v(" "),e.isTexPerItem?n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("items.taxes"),variant:"horizontal"}},[n("sw-select",{attrs:{options:e.getTaxTypes,searchable:!0,"show-labels":!1,"allow-empty":!0,multiple:!0,label:"tax_name"},model:{value:e.formData.taxes,callback:function(t){e.$set(e.formData,"taxes",t)},expression:"formData.taxes"}})],1):e._e(),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("items.description"),error:e.descriptionError,variant:"horizontal"}},[n("sw-textarea",{attrs:{rows:"4",cols:"50"},on:{input:function(t){return e.$v.formData.description.$touch()}},model:{value:e.formData.description,callback:function(t){e.$set(e.formData,"description",t)},expression:"formData.description"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeItemModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.save"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function E(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const P={data:function(){return{selectedTemplate:1,isLoading:!1}},computed:j(j({},(0,a.Se)("modal",["modalData"])),(0,a.Se)("estimate",["getTemplateId"])),mounted:function(){this.selectedTemplate=this.getTemplateId},methods:j(j(j({},(0,a.nv)("estimate",["setTemplate"])),(0,a.nv)("modal",["closeModal","resetModalData"])),{},{chooseTemplate:function(){var e,t=this;return(e=o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.next=3,t.setTemplate(t.selectedTemplate);case 3:e.sent&&(t.isLoading=!1,t.resetModalData(),t.closeModal());case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){E(i,r,a,o,s,"next",e)}function s(e){E(i,r,a,o,s,"throw",e)}o(void 0)}))})()},closeEstimateModal:function(){this.selectedTemplate=this.getTemplateId,this.closeModal(),this.resetModalData()}})};const Y=(0,g.Z)(P,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template-modal"},[n("div",{staticClass:"px-8 py-8 sm:p-6"},[n("div",{staticClass:"grid grid-cols-3 gap-2 p-1 overflow-x-auto sw-scroll"},e._l(e.modalData,(function(t,r){return n("div",{key:r,staticClass:"relative flex flex-col m-2 border border-gray-200 border-solid cursor-pointer hover:border-primary-300",class:{"border border-solid border-primary-500":e.selectedTemplate===t.id},on:{click:function(n){e.selectedTemplate=t.id}}},[n("img",{attrs:{src:t.path,alt:"template-image"}}),e._v(" "),e.selectedTemplate===t.id?n("img",{staticClass:"absolute z-10 w-5 h-5 text-primary-500",staticStyle:{top:"-6px",right:"-5px"},attrs:{src:"/assets/img/tick.png"}}):e._e(),e._v(" "),n("span",{class:["w-full p-1 bg-gray-200 text-sm text-center absolute bottom-0 left-0",{"text-primary-500 bg-primary-100":e.selectedTemplate===t.id,"text-gray-600":e.selectedTemplate!=t.id}]},[e._v("\n "+e._s(t.name)+"\n ")])])})),0)]),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline"},on:{click:e.closeEstimateModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{variant:"primary"},on:{click:function(t){return e.chooseTemplate()}}},[e._v("\n "+e._s(e.$t("general.choose"))+"\n ")])],1)])}),[],!1,null,null,null).exports;function N(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const H={data:function(){return{selectedTemplate:1,isLoading:!1}},computed:I(I({},(0,a.Se)("modal",["modalData"])),(0,a.Se)("invoice",["getTemplateId"])),mounted:function(){this.selectedTemplate=this.getTemplateId},methods:I(I(I({},(0,a.nv)("invoice",["setTemplate"])),(0,a.nv)("modal",["closeModal","resetModalData"])),{},{chooseTemplate:function(){var e,t=this;return(e=o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.isLoading=!0,e.next=3,t.setTemplate(t.selectedTemplate);case 3:e.sent&&(t.isLoading=!1,t.resetModalData(),t.closeModal());case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){N(i,r,a,o,s,"next",e)}function s(e){N(i,r,a,o,s,"throw",e)}o(void 0)}))})()},closeInvoiceModal:function(){this.selectedTemplate=this.getTemplateId,this.closeModal(),this.resetModalData()}})};const R=(0,g.Z)(H,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template-modal"},[n("div",{staticClass:"px-8 py-8 sm:p-6"},[n("div",{staticClass:"grid grid-cols-3 gap-2 p-1 overflow-x-auto sw-scroll"},e._l(e.modalData,(function(t,r){return n("div",{key:r,staticClass:"relative flex flex-col m-2 border border-gray-200 border-solid cursor-pointer hover:border-primary-300",class:{"border border-solid border-primary-500":e.selectedTemplate===t.id},on:{click:function(n){e.selectedTemplate=t.id}}},[n("img",{attrs:{src:t.path,alt:"template-image"}}),e._v(" "),e.selectedTemplate===t.id?n("img",{staticClass:"absolute z-10 w-5 h-5 text-primary-500",staticStyle:{top:"-6px",right:"-5px"},attrs:{src:"/assets/img/tick.png"}}):e._e(),e._v(" "),n("span",{class:["w-full p-1 bg-gray-200 text-sm text-center absolute bottom-0 left-0",{"text-primary-500 bg-primary-100":e.selectedTemplate===t.id,"text-gray-600":e.selectedTemplate!=t.id}]},[e._v("\n "+e._s(t.name)+"\n ")])])})),0)]),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline"},on:{click:e.closeInvoiceModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{variant:"primary"},on:{click:function(t){return e.chooseTemplate()}}},[e._v("\n "+e._s(e.$t("general.choose"))+"\n ")])],1)])}),[],!1,null,null,null).exports;var B=n(7113);function q(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function V(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){q(i,r,a,o,s,"next",e)}function s(e){q(i,r,a,o,s,"throw",e)}o(void 0)}))}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z=n(379),G=Z.required,J=Z.minLength,X=Z.email,Q=(Z.numeric,Z.url),ee=Z.maxLength;const te={data:function(){return{isEdit:!1,isLoading:!1,billingCountry:null,shippingCountry:null,isCopyFromBilling:!1,currency:"",isDisabledBillingState:!0,isDisabledBillingCity:!0,isDisabledShippingState:!0,isDisabledShippingCity:!0,formData:{id:null,name:null,currency_id:null,phone:null,website:null,contact_name:null,addresses:[]},billing:{name:null,country_id:null,state:null,city:null,phone:null,zip:null,address_street_1:null,address_street_2:null,type:"billing"},shipping:{name:null,country_id:null,state:null,city:null,phone:null,zip:null,address_street_1:null,address_street_2:null,type:"shipping"}}},validations:{formData:{name:{required:G,minLength:J(3)},email:{email:X},website:{url:Q}},billing:{address_street_1:{maxLength:ee(255)},address_street_2:{maxLength:ee(255)}},shipping:{address_street_1:{maxLength:ee(255)},address_street_2:{maxLength:ee(255)}}},computed:U(U(U(U({},(0,a.Se)(["currencies","countries"])),(0,a.Se)("company",["defaultCurrency"])),(0,a.Se)("modal",["modalDataID","modalData","modalActive"])),{},{nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?this.$v.formData.name.minLength?this.$v.formData.name.alpha?void 0:this.$tc("validation.characters_only"):this.$tc("validation.name_min_length",this.$v.formData.name.$params.minLength.min,{count:this.$v.formData.name.$params.minLength.min}):this.$tc("validation.required"):""},emailError:function(){return this.$v.formData.email.$error?this.$v.formData.email.email?void 0:this.$t("validation.email_incorrect"):""},websiteError:function(){return this.$v.formData.website.$error?this.$v.formData.website.url?void 0:this.$tc("validation.invalid_url"):""},bill1Error:function(){return this.$v.billing.address_street_1.$error?this.$v.billing.address_street_1.maxLength?void 0:this.$t("validation.address_maxlength"):""},bill2Error:function(){return this.$v.billing.address_street_2.$error?this.$v.billing.address_street_2.maxLength?void 0:this.$t("validation.address_maxlength"):""},ship1Error:function(){return this.$v.shipping.address_street_1.$error?this.$v.shipping.address_street_1.maxLength?void 0:this.$t("validation.address_maxlength"):""},ship2Error:function(){return this.$v.shipping.address_street_2.$error?this.$v.shipping.address_street_2.maxLength?void 0:this.$t("validation.address_maxlength"):""},hasBillingAdd:function(){var e=this.billing;return!!(e.name||e.country_id||e.state||e.city||e.phone||e.zip||e.address_street_1||e.address_street_2)},hasShippingAdd:function(){var e=this.shipping;return!!(e.name||e.country_id||e.state||e.city||e.phone||e.zip||e.address_street_1||e.address_street_2)}}),watch:{modalDataID:function(e){e?(this.isEdit=!0,this.setData()):this.isEdit=!1},billingCountry:function(){if(this.billingCountry)return this.billing.country_id=this.billingCountry.id,!0},shippingCountry:function(){if(this.shippingCountry)return this.shipping.country_id=this.shippingCountry.id,!0}},mounted:function(){this.$refs.name.focus=!0,this.currency=this.defaultCurrency,this.modalDataID&&this.setData()},methods:U(U(U(U(U({},(0,a.nv)("invoice",{setInvoiceCustomer:"selectCustomer"})),(0,a.nv)("estimate",{setEstimateCustomer:"selectCustomer"})),(0,a.nv)("customer",["fetchCustomer","addCustomer","updateCustomer"])),(0,a.nv)("modal",["closeModal"])),{},{resetData:function(){this.formData={name:null,currency_id:null,phone:null,website:null,contact_name:null,addresses:[]},this.billingCountry=null,this.shippingCountry=null,this.billing=U({},B.Z),this.shipping=U({},B.Z),this.$v.formData.$reset()},cancelCustomer:function(){this.resetData(),this.closeModal()},copyAddress:function(e){!0===e?(this.isCopyFromBilling=!0,this.shipping=U(U({},this.billing),{},{type:"shipping"}),this.shippingCountry=this.billingCountry):(this.shipping=U(U({},B.Z),{},{type:"shipping"}),this.shippingCountry=null)},loadData:function(){var e=this;return V(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchCustomer();case 2:return n=t.sent,e.formData.currency_id=n.data.currency.id,t.abrupt("return",!0);case 5:case"end":return t.stop()}}),t)})))()},checkAddress:function(){var e=Object.values(this.billing).every((function(e){return null===e||""===e})),t=Object.values(this.shipping).every((function(e){return null===e||""===e}));return!0===e&&!0===e?(this.formData.addresses=[],!0):!1===e&&!1===t?(this.formData.addresses=[U(U({},this.billing),{},{type:"billing"}),U(U({},this.shipping),{},{type:"shipping"})],!0):!1===e?(this.formData.addresses.push(U(U({},this.billing),{},{type:"billing"})),!0):(this.formData.addresses=[U(U({},this.shipping),{},{type:"shipping"})],!0)},setData:function(){var e=this;return V(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.formData.id=e.modalData.id,e.formData.name=e.modalData.name,e.formData.email=e.modalData.email,e.formData.contact_name=e.modalData.contact_name,e.formData.phone=e.modalData.phone,e.formData.website=e.modalData.website,e.currency=e.modalData.currency,e.modalData.billing_address&&(e.billing=e.modalData.billing_address,e.billingCountry=e.modalData.billing_address.country),e.modalData.shipping_address&&(e.shipping=e.modalData.shipping_address,e.shippingCountry=e.modalData.shipping_address.country);case 9:case"end":return t.stop()}}),t)})))()},submitCustomerData:function(){var e=this;return V(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:if(e.hasBillingAdd&&e.hasShippingAdd?e.formData.addresses=[U({},e.billing),U({},e.shipping)]:e.hasBillingAdd?e.formData.addresses=[U({},e.billing)]:e.hasShippingAdd&&(e.formData.addresses=[U({},e.shipping)]),e.isLoading=!0,e.currency?e.formData.currency_id=e.currency.id:e.formData.currency_id=e.defaultCurrency.id,t.prev=6,n=null,!e.modalDataID){t.next=14;break}return t.next=11,e.updateCustomer(e.formData);case 11:n=t.sent,t.next=17;break;case 14:return t.next=16,e.addCustomer(e.formData);case 16:n=t.sent;case 17:if(!n.data){t.next=25;break}return e.modalDataID?window.toastr.success(e.$tc("customers.updated_message")):window.toastr.success(e.$tc("customers.created_message")),e.isLoading=!1,"invoices.create"!==e.$route.name&&"invoices.edit"!==e.$route.name||e.setInvoiceCustomer(n.data.customer.id),"estimates.create"!==e.$route.name&&"estimates.edit"!==e.$route.name||e.setEstimateCustomer(n.data.customer.id),e.resetData(),e.closeModal(),t.abrupt("return",!0);case 25:t.next=30;break;case 27:t.prev=27,t.t0=t.catch(6),e.isLoading=!1;case 30:case"end":return t.stop()}}),t,null,[[6,27]])})))()}})};const ne=(0,g.Z)(te,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"customer-modal"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitCustomerData(t)}}},[n("div",{staticClass:"flex-1 p-5 sm:p-6"},[n("sw-tabs",[n("sw-tab-item",{staticClass:"mt-5",attrs:{title:"Basic Info"}},[n("sw-input-group",{attrs:{label:e.$t("customers.display_name"),error:e.nameError,variant:"horizontal",required:""}},[n("sw-input",{ref:"name",staticClass:"mt-1 md:mt-0",attrs:{invalid:e.$v.formData.name.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name","string"==typeof t?t.trim():t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.primary_display_name"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text"},model:{value:e.formData.contact_name,callback:function(t){e.$set(e.formData,"contact_name",t)},expression:"formData.contact_name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("login.email"),error:e.emailError,variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{invalid:e.$v.formData.email.$error,type:"text",name:"email"},on:{input:function(t){return e.$v.formData.email.$touch()}},model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email","string"==typeof t?t.trim():t)},expression:"formData.email"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$tc("settings.currencies.currency"),variant:"horizontal"}},[n("sw-select",{staticClass:"mt-1 md:mt-0",attrs:{options:e.currencies,searchable:!0,"allow-empty":!1,"show-labels":!1,placeholder:e.$t("customers.select_currency"),maxHeight:200,label:"name","track-by":"id"},model:{value:e.currency,callback:function(t){e.currency=t},expression:"currency"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.phone"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"phone"},model:{value:e.formData.phone,callback:function(t){e.$set(e.formData,"phone","string"==typeof t?t.trim():t)},expression:"formData.phone"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.website"),error:e.websiteError,variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{invalid:e.$v.formData.website.$error,type:"url"},on:{input:function(t){return e.$v.formData.website.$touch()}},model:{value:e.formData.website,callback:function(t){e.$set(e.formData,"website",t)},expression:"formData.website"}})],1)],1),e._v(" "),n("sw-tab-item",{staticClass:"mt-5",attrs:{title:"Billing Address"}},[n("sw-input-group",{attrs:{label:e.$t("customers.name"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text"},model:{value:e.billing.name,callback:function(t){e.$set(e.billing,"name",t)},expression:"billing.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.phone"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"phone"},model:{value:e.billing.phone,callback:function(t){e.$set(e.billing,"phone","string"==typeof t?t.trim():t)},expression:"billing.phone"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.address"),error:e.bill1Error,variant:"horizontal"}},[n("sw-textarea",{staticClass:"mt-1 md:mt-0",attrs:{placeholder:e.$t("general.street_1"),rows:"2",cols:"50"},on:{input:function(t){return e.$v.billing.address_street_1.$touch()}},model:{value:e.billing.address_street_1,callback:function(t){e.$set(e.billing,"address_street_1",t)},expression:"billing.address_street_1"}}),e._v(" "),n("br")],1),e._v(" "),n("sw-input-group",{attrs:{error:e.bill2Error,variant:"horizontal"}},[n("sw-textarea",{attrs:{placeholder:e.$t("general.street_2"),rows:"2",cols:"50"},on:{input:function(t){return e.$v.billing.address_street_2.$touch()}},model:{value:e.billing.address_street_2,callback:function(t){e.$set(e.billing,"address_street_2",t)},expression:"billing.address_street_2"}}),e._v(" "),n("br")],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.country"),variant:"horizontal"}},[n("sw-select",{staticClass:"mt-1 md:mt-0",attrs:{options:e.countries,searchable:!0,"show-labels":!1,placeholder:e.$t("general.select_country"),"allow-empty":!1,"track-by":"id",label:"name"},model:{value:e.billingCountry,callback:function(t){e.billingCountry=t},expression:"billingCountry"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.state"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"billingState"},model:{value:e.billing.state,callback:function(t){e.$set(e.billing,"state",t)},expression:"billing.state"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.city"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"billingCity"},model:{value:e.billing.city,callback:function(t){e.$set(e.billing,"city",t)},expression:"billing.city"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.zip_code"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text"},model:{value:e.billing.zip,callback:function(t){e.$set(e.billing,"zip",t)},expression:"billing.zip"}})],1)],1),e._v(" "),n("sw-tab-item",{staticClass:"mt-5",attrs:{title:"Shipping Address"}},[n("div",{staticClass:"grid md:grid-cols-12"},[n("div",{staticClass:"flex justify-end col-span-12"},[n("sw-button",{ref:"sameAddress",attrs:{variant:"primary",type:"button"},on:{click:function(t){return e.copyAddress(!0)}}},[e._v("\n "+e._s(e.$t("customers.copy_billing_address"))+"\n ")])],1)]),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.name"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text"},model:{value:e.shipping.name,callback:function(t){e.$set(e.shipping,"name",t)},expression:"shipping.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.phone"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"phone"},model:{value:e.shipping.phone,callback:function(t){e.$set(e.shipping,"phone","string"==typeof t?t.trim():t)},expression:"shipping.phone"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.address"),error:e.ship1Error,variant:"horizontal"}},[n("sw-textarea",{staticClass:"mt-1 md:mt-0",attrs:{placeholder:e.$t("general.street_1"),rows:"2",cols:"50"},on:{input:function(t){return e.$v.shipping.address_street_1.$touch()}},model:{value:e.shipping.address_street_1,callback:function(t){e.$set(e.shipping,"address_street_1",t)},expression:"shipping.address_street_1"}}),e._v(" "),n("br")],1),e._v(" "),n("sw-input-group",{attrs:{error:e.ship2Error,variant:"horizontal"}},[n("sw-textarea",{attrs:{placeholder:e.$t("general.street_2"),rows:"2",cols:"50"},on:{input:function(t){return e.$v.shipping.address_street_2.$touch()}},model:{value:e.shipping.address_street_2,callback:function(t){e.$set(e.shipping,"address_street_2",t)},expression:"shipping.address_street_2"}}),e._v(" "),n("br")],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.country"),variant:"horizontal"}},[n("sw-select",{staticClass:"mt-1 md:mt-0",attrs:{options:e.countries,searchable:!0,"show-labels":!1,"allow-empty":!1,placeholder:e.$t("general.select_country"),"track-by":"id",label:"name"},model:{value:e.shippingCountry,callback:function(t){e.shippingCountry=t},expression:"shippingCountry"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.state"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"shippingState"},model:{value:e.shipping.state,callback:function(t){e.$set(e.shipping,"state",t)},expression:"shipping.state"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.city"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text",name:"shippingCity"},model:{value:e.shipping.city,callback:function(t){e.$set(e.shipping,"city",t)},expression:"shipping.city"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-4",attrs:{label:e.$t("customers.zip_code"),variant:"horizontal"}},[n("sw-input",{staticClass:"mt-1 md:mt-0",attrs:{type:"text"},model:{value:e.shipping.zip,callback:function(t){e.$set(e.shipping,"zip",t)},expression:"shipping.zip"}})],1)],1)],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3 text-sm",attrs:{type:"button",variant:"primary-outline"},on:{click:e.cancelCustomer}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{variant:"primary",type:"submit",loading:e.isLoading}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function re(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ae(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){re(i,r,a,o,s,"next",e)}function s(e){re(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le=n(379),ce=le.required,ue=le.minLength,de=le.maxLength;const pe={data:function(){return{isEdit:!1,isLoading:!1,formData:{id:null,name:null,description:null}}},computed:oe(oe({},(0,a.Se)("modal",["modalDataID","modalData","modalActive","refreshData"])),{},{nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?this.$v.formData.name.minLength?void 0:this.$tc("validation.name_min_length",this.$v.formData.name.$params.minLength.min,{count:this.$v.formData.name.$params.minLength.min}):this.$tc("validation.required"):""},descriptionError:function(){return this.$v.formData.description.$error?this.$v.formData.name.maxLength?void 0:this.$tc("validation.description_maxlength"):""}}),validations:{formData:{name:{required:ce,minLength:ue(3)},description:{maxLength:de(255)}}},watch:{modalDataID:function(e){e?(this.isEdit=!0,this.setData()):this.isEdit=!1},modalActive:function(e){this.modalActive||this.resetFormData()}},mounted:function(){this.$refs.name.focus=!0,this.modalDataID&&(this.isEdit=!0,this.setData())},methods:oe(oe(oe({},(0,a.nv)("modal",["closeModal"])),(0,a.nv)("category",["addCategory","updateCategory"])),{},{resetFormData:function(){this.formData={id:null,name:null,description:null},this.$v.formData.$reset()},submitCategoryData:function(){var e=this;return ae(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:if(e.isLoading=!0,e.isEdit){t.next=10;break}return t.next=7,e.addCategory(e.formData);case 7:n=t.sent,t.next=13;break;case 10:return t.next=12,e.updateCategory(e.formData);case 12:n=t.sent;case 13:if(!n.data){t.next=20;break}return e.isEdit?window.toastr.success(e.$t("settings.expense_category.updated_message")):window.toastr.success(e.$t("settings.expense_category.created_message")),window.hub.$emit("newCategory",n.data.category),e.refreshData&&e.refreshData(),e.closeCategoryModal(),e.isLoading=!1,t.abrupt("return",!0);case 20:window.toastr.error(n.data.error);case 21:case"end":return t.stop()}}),t)})))()},setData:function(){var e=this;return ae(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.formData={id:e.modalData.id,name:e.modalData.name,description:e.modalData.description};case 1:case"end":return t.stop()}}),t)})))()},closeCategoryModal:function(){this.resetFormData(),this.closeModal()}})};const me=(0,g.Z)(pe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitCategoryData(t)}}},[n("div",{staticClass:"p-8 sm:p-6"},[n("sw-input-group",{attrs:{label:e.$t("expenses.category"),error:e.nameError,variant:"horizontal",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.name.$error,type:"text"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("expenses.description"),error:e.descriptionError,variant:"horizontal"}},[n("sw-textarea",{attrs:{rows:"4",cols:"50"},on:{input:function(t){return e.$v.formData.description.$touch()}},model:{value:e.formData.description,callback:function(t){e.$set(e.formData,"description",t)},expression:"formData.description"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid border-modal-bg"},[n("sw-button",{staticClass:"mr-3 text-sm",attrs:{type:"button",variant:"primary-outline"},on:{click:e.closeCategoryModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{variant:"primary",type:"submit",loading:e.isLoading}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.save"))+"\n ")],1)],1)])}),[],!1,null,null,null).exports;n(6486);function fe(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function he(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){fe(i,r,a,o,s,"next",e)}function s(e){fe(i,r,a,o,s,"throw",e)}o(void 0)}))}}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye=n(379).required;const be={data:function(){return{isLoading:!1,isCreateLoading:!1,isRequestOngoing:!1,formData:{option:"full",selected_disk:{driver:"local"}},options:["full","only-db","only-files"]}},validations:{formData:{option:{required:ye},selected_disk:{required:ye}}},computed:ve(ve(ve({},(0,a.Se)("disks",["getDisks"])),(0,a.Se)("modal",["refreshData"])),{},{optionError:function(){return this.$v.formData.option.$error?this.$v.formData.option?void 0:this.$tc("validation.required"):""},selectDiskError:function(){return this.$v.formData.selected_disk.$error?this.$v.formData.selected_disk?void 0:this.$tc("validation.required"):""}}),created:function(){this.loadData()},methods:ve(ve(ve(ve({},(0,a.nv)("backup",["createBackup"])),(0,a.nv)("disks",["fetchDisks"])),(0,a.nv)("modal",["closeModal"])),{},{getCustomLabel:function(e){var t=e.driver,n=e.name;return"".concat(n," — [").concat(t,"]")},createNewBackup:function(){var e=this;return he(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={option:e.formData.option,file_disk_id:e.formData.selected_disk.id},t.prev=1,e.isCreateLoading=!0,t.next=5,e.createBackup(n);case 5:e.isCreateLoading=!1,window.toastr.success(e.$t("settings.backup.created_message")),e.refreshData&&e.refreshData(),e.cancelBackup(),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(1),e.isCreateLoading=!1,window.toastr.error(t.t0.response.data.message);case 15:case"end":return t.stop()}}),t,null,[[1,11]])})))()},loadData:function(){var e=this;return he(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isRequestOngoing=!0,t.next=3,e.fetchDisks({limit:"all"});case 3:n=t.sent,e.formData.selected_disk=n.data.disks.data[0],e.isRequestOngoing=!1;case 6:case"end":return t.stop()}}),t)})))()},cancelBackup:function(){this.closeModal()}})};const we=(0,g.Z)(be,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"relative customer-modal"},[e.isRequestOngoing?n("base-loader",{staticClass:"h-130",attrs:{"show-bg-overlay":!0}}):e._e(),e._v(" "),n("form",{on:{submit:function(t){return t.preventDefault(),e.createNewBackup(t)}}},[n("div",{staticClass:"p-6"},[n("sw-input-group",{staticClass:"py-2",attrs:{label:e.$t("settings.backup.select_backup_type"),error:e.optionError,horizontal:"",required:""}},[n("sw-select",{attrs:{options:e.options,searchable:!0,"show-labels":!1,placeholder:e.$t("settings.backup.select_backup_type"),"allow-empty":!1,maxHeight:100},model:{value:e.formData.option,callback:function(t){e.$set(e.formData,"option",t)},expression:"formData.option"}})],1),e._v(" "),n("sw-input-group",{staticClass:"py-2",attrs:{label:e.$t("settings.disk.select_disk"),error:e.selectDiskError,horizontal:"",required:""}},[n("sw-select",{attrs:{options:e.getDisks,searchable:!0,"show-labels":!1,placeholder:e.$t("settings.disk.select_disk"),"allow-empty":!1,"track-by":"id","preselect-first":!0,"custom-label":e.getCustomLabel,maxHeight:100,loading:e.isLoading},model:{value:e.formData.selected_disk,callback:function(t){e.$set(e.formData,"selected_disk",t)},expression:"formData.selected_disk"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline",type:"button"},on:{click:e.cancelBackup}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isCreateLoading,variant:"primary",type:"submit",disabled:e.isCreateLoading}},[e.isCreateLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.create"))+"\n ")],1)],1)])],1)}),[],!1,null,null,null).exports;function xe(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ke(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){xe(i,r,a,o,s,"next",e)}function s(e){xe(i,r,a,o,s,"throw",e)}o(void 0)}))}}function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce=n(379),Le=Ce.required,Te=Ce.minLength;const Oe={data:function(){return{isEdit:!1,isLoading:!1,formData:{id:null,name:null}}},computed:Me(Me({},(0,a.Se)("modal",["modalDataID","modalData","modalActive","refreshData"])),{},{nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?void 0:this.$tc("validation.required"):""}}),validations:{formData:{name:{required:Le,minLength:Te(2)}}},mounted:function(){var e=this;return ke(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.name.focus=!0,e.modalDataID&&(e.isEdit=!0,e.setData());case 2:case"end":return t.stop()}}),t)})))()},methods:Me(Me(Me({},(0,a.nv)("modal",["closeModal","resetModalData"])),(0,a.nv)("payment",["addPaymentMode","updatePaymentMode"])),{},{resetFormData:function(){this.formData={id:null,name:null},this.$v.formData.$reset()},submitPaymentMode:function(){var e=this;return ke(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:if(e.isLoading=!0,!e.isEdit){t.next=16;break}return t.next=7,e.updatePaymentMode(e.formData);case 7:if(!(n=t.sent).data){t.next=13;break}return window.toastr.success(e.$t("settings.customization.payments.payment_mode_updated")),e.refreshData&&e.refreshData(),e.closePaymentModeModal(),t.abrupt("return",!0);case 13:window.toastr.error(n.data.error),t.next=32;break;case 16:return t.prev=16,t.next=19,e.addPaymentMode(e.formData);case 19:if(!(n=t.sent).data){t.next=26;break}return e.isLoading=!1,window.toastr.success(e.$t("settings.customization.payments.payment_mode_added")),e.refreshData&&e.refreshData(),e.closePaymentModeModal(),t.abrupt("return",!0);case 26:window.toastr.error(n.data.error),t.next=32;break;case 29:t.prev=29,t.t0=t.catch(16),e.isLoading=!1;case 32:case"end":return t.stop()}}),t,null,[[16,29]])})))()},setData:function(){var e=this;return ke(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.formData={id:e.modalData.id,name:e.modalData.name};case 1:case"end":return t.stop()}}),t)})))()},closePaymentModeModal:function(){this.resetModalData(),this.resetFormData(),this.closeModal()}})};const Ee=(0,g.Z)(Oe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitPaymentMode(t)}}},[n("div",{staticClass:"p-8 sm:p-6"},[n("sw-input-group",{attrs:{label:e.$t("settings.customization.payments.mode_name"),error:e.nameError,variant:"horizontal",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.name.$error,type:"text"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closePaymentModeModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.save"))+"\n ")],1)],1)])}),[],!1,null,null,null).exports;function Ae(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function je(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ae(i,r,a,o,s,"next",e)}function s(e){Ae(i,r,a,o,s,"throw",e)}o(void 0)}))}}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){Ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ne=n(379),ze=Ne.required,Ie=Ne.minLength;const Fe={data:function(){return{isEdit:!1,isLoading:!1,formData:{id:null,name:null}}},computed:Pe(Pe({},(0,a.Se)("modal",["modalDataID","modalData","modalActive","refreshData"])),{},{nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?void 0:this.$tc("validation.required"):""}}),validations:{formData:{name:{required:ze,minLength:Ie(2)}}},mounted:function(){var e=this;return je(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.name.focus=!0,e.modalDataID&&(e.isEdit=!0,e.setData());case 2:case"end":return t.stop()}}),t)})))()},methods:Pe(Pe(Pe({},(0,a.nv)("modal",["closeModal","resetModalData"])),(0,a.nv)("item",["addItemUnit","updateItemUnit","fatchItemUnit"])),{},{resetFormData:function(){this.formData={id:null,name:null},this.$v.formData.$reset()},submitItemUnit:function(){var e=this;return je(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:if(e.isLoading=!0,t.prev=4,e.isEdit){t.next=11;break}return t.next=8,e.addItemUnit(e.formData);case 8:n=t.sent,t.next=14;break;case 11:return t.next=13,e.updateItemUnit(e.formData);case 13:n=t.sent;case 14:if(!n.data){t.next=20;break}return e.isLoading=!1,e.isEdit?window.toastr.success(e.$t("settings.customization.items.item_unit_updated")):window.toastr.success(e.$t("settings.customization.items.item_unit_added")),e.refreshData&&e.refreshData(),e.closeItemUnitModal(),t.abrupt("return",!0);case 20:t.next=26;break;case 22:t.prev=22,t.t0=t.catch(4),e.isLoading=!1,window.toastr.error(n.data.error);case 26:case"end":return t.stop()}}),t,null,[[4,22]])})))()},setData:function(){var e=this;return je(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.formData={id:e.modalData.id,name:e.modalData.name};case 1:case"end":return t.stop()}}),t)})))()},closeItemUnitModal:function(){this.resetModalData(),this.resetFormData(),this.closeModal()}})};const He=(0,g.Z)(Fe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitItemUnit(t)}}},[n("div",{staticClass:"p-8 sm:p-6"},[n("sw-input-group",{attrs:{label:e.$t("settings.customization.items.unit_name"),error:e.nameError,variant:"horizontal",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.name.$error,type:"text"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeItemUnitModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,variant:"primary",icon:"save",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.save"))+"\n ")],1)],1)])}),[],!1,null,null,null).exports;var Re=n(7751);function Be(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function qe(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Be(i,r,a,o,s,"next",e)}function s(e){Be(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){Ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ke=n(379),Ze=Ke.required,Ge=(Ke.minLength,Ke.email),Je=Ke.maxLength;const Xe={components:{PaperAirplaneIcon:Re.Rdq},data:function(){return{isEdit:!1,isLoading:!1,formData:{to:null,subject:null,message:null}}},computed:We(We({},(0,a.Se)("modal",["modalDataID","modalData","modalActive"])),{},{emailError:function(){return this.$v.formData.to.$error?this.$v.formData.to.required?this.$v.formData.to.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},subjectError:function(){return this.$v.formData.subject.$error?this.$v.formData.subject.required?this.$v.formData.subject.maxLength?void 0:this.$tc("validation.subject_maxlength"):this.$tc("validation.required"):""},messageError:function(){return this.$v.formData.message.$error?this.$v.formData.message.required?this.$v.formData.message.maxLength?void 0:this.$tc("validation.message_maxlength"):this.$tc("validation.required"):""}}),validations:{formData:{to:{required:Ze,email:Ge},subject:{required:Ze,maxLength:Je(100)},message:{required:Ze,maxLength:Je(255)}}},mounted:function(){var e=this;return qe(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$refs.to.focus=!0;case 1:case"end":return t.stop()}}),t)})))()},methods:We(We(We({},(0,a.nv)("modal",["closeModal","resetModalData"])),(0,a.nv)("company",["sendTestMail"])),{},{resetFormData:function(){this.formData={to:null,subject:null,message:null},this.$v.formData.$reset()},onTestMailSend:function(){var e=this;return qe(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:return e.isLoading=!0,t.next=6,e.sendTestMail(e.formData);case 6:if(!(n=t.sent).data){t.next=17;break}if(!n.data.success){t.next=13;break}return window.toastr.success(e.$tc("general.send_mail_successfully")),e.closeTaxModal(),e.isLoading=!1,t.abrupt("return",!0);case 13:return window.toastr.error(e.$tc("validation.something_went_wrong")),e.closeTaxModal(),e.isLoading=!1,t.abrupt("return",!0);case 17:window.toastr.error(n.data.error);case 18:case"end":return t.stop()}}),t)})))()},closeTaxModal:function(){this.resetModalData(),this.resetFormData(),this.closeModal()}})};const Qe=(0,g.Z)(Xe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mail-config-modal"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.onTestMailSend(t)}}},[n("div",{staticClass:"p-4 md:p-8"},[n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("general.to"),error:e.emailError,variant:"horizontal",required:""}},[n("sw-input",{ref:"to",attrs:{invalid:e.$v.formData.to.$error,type:"text"},on:{input:function(t){return e.$v.formData.to.$touch()}},model:{value:e.formData.to,callback:function(t){e.$set(e.formData,"to",t)},expression:"formData.to"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("general.subject"),error:e.subjectError,variant:"horizontal",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.subject.$error,type:"text"},on:{input:function(t){return e.$v.formData.subject.$touch()}},model:{value:e.formData.subject,callback:function(t){e.$set(e.formData,"subject",t)},expression:"formData.subject"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-3",attrs:{label:e.$t("general.message"),error:e.messageError,variant:"horizontal",required:""}},[n("sw-textarea",{attrs:{invalid:e.$v.formData.message.$error,rows:"4",cols:"50"},on:{input:function(t){return e.$v.formData.message.$touch()}},model:{value:e.formData.message,callback:function(t){e.$set(e.formData,"message",t)},expression:"formData.message"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline"},on:{click:e.closeTaxModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{variant:"primary",type:"submit",loading:e.isLoading}},[e.isLoading?e._e():n("paper-airplane-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.send"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function et(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function tt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){et(i,r,a,o,s,"next",e)}function s(e){et(i,r,a,o,s,"throw",e)}o(void 0)}))}}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var it=n(379),ot=it.required,st=it.email;n(6486);const lt={components:{PaperAirplaneIcon:r.Rdq},data:function(){return{isLoading:!1,InvoiceMailFields:["customer","customerCustom","invoice","invoiceCustom","company"],formData:{from:null,to:null,subject:"New Invoice",body:null}}},validations:{formData:{from:{required:ot,email:st},to:{required:ot,email:st},subject:{required:ot},body:{required:ot}}},computed:rt(rt(rt({},(0,a.Se)("modal",["modalDataID","modalData","modalActive"])),(0,a.Se)("user",["currentUser"])),{},{fromError:function(){return this.$v.formData.from.$error?this.$v.formData.from.required?this.$v.formData.from.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},toError:function(){return this.$v.formData.to.$error?this.$v.formData.to.required?this.$v.formData.from.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},subjectError:function(){return this.$v.formData.subject.$error?this.$v.formData.subject.required?void 0:this.$tc("validation.required"):""},bodyError:function(){return this.$v.formData.body.$error?this.$v.formData.body.required?void 0:this.$tc("validation.required"):""}}),mounted:function(){this.setInitialData()},methods:rt(rt(rt(rt({},(0,a.nv)("modal",["closeModal"])),(0,a.nv)("invoice",["sendEmail"])),(0,a.nv)("company",["fetchCompanySettings","fetchMailConfig"])),{},{setInitialData:function(){var e=this;return tt(o().mark((function t(){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchMailConfig();case 2:return n=t.sent,e.modalData&&(e.formData.from=n.data.from_mail,e.formData.to=e.modalData.user.email),t.next=6,e.fetchCompanySettings(["invoice_mail_body"]);case 6:r=t.sent,e.formData.body=r.data.invoice_mail_body;case 8:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.formData={from:null,to:null,subject:null,body:null}},sendInvoiceData:function(){var e=this;return tt(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:swal({title:e.$t("general.are_you_sure"),text:e.$t("invoices.confirm_send_invoice"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=tt(o().mark((function t(n){var r,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n){t.next=15;break}return r=rt(rt({},e.formData),{},{id:e.modalDataID,status:"SENT"}),e.isLoading=!0,t.next=6,e.sendEmail(r);case 6:if(a=t.sent,e.closeModal(),!a.data.success){t.next=12;break}return e.isLoading=!1,window.toastr.success(e.$tc("invoices.send_invoice_successfully")),t.abrupt("return",!0);case 12:if("invoices.user_email_does_not_exist"!==a.data.error){t.next=15;break}return window.toastr.error(e.$tc("invoices.user_email_does_not_exist")),t.abrupt("return",!1);case 15:t.next=21;break;case 17:t.prev=17,t.t0=t.catch(0),e.isLoading=!1,window.toastr.error(e.$tc("invoices.something_went_wrong"));case 21:case"end":return t.stop()}}),t,null,[[0,17]])})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)})))()},closeSendInvoiceModal:function(){this.resetFormData(),this.closeModal()}})};const ct=(0,g.Z)(lt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.sendInvoiceData(t)}}},[n("div",{staticClass:"gap-4 px-8 py-8 sm:p-6"},[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.from"),error:e.fromError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.from.$error,type:"text"},on:{input:function(t){return e.$v.formData.from.$touch()}},model:{value:e.formData.from,callback:function(t){e.$set(e.formData,"from",t)},expression:"formData.from"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.to"),error:e.toError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.to.$error,type:"text"},on:{input:function(t){return e.$v.formData.to.$touch()}},model:{value:e.formData.to,callback:function(t){e.$set(e.formData,"to",t)},expression:"formData.to"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.subject"),error:e.subjectError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.subject.$error,type:"text"},on:{input:function(t){return e.$v.formData.subject.$touch()}},model:{value:e.formData.subject,callback:function(t){e.$set(e.formData,"subject",t)},expression:"formData.subject"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.body"),error:e.bodyError,variant:"vertical",required:""}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.InvoiceMailFields,invalid:e.$v.formData.body.$error},on:{input:function(t){return e.$v.formData.body.$touch()}},model:{value:e.formData.body,callback:function(t){e.$set(e.formData,"body",t)},expression:"formData.body"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeSendInvoiceModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("paper-airplane-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("general.send"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function ut(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function dt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){ut(i,r,a,o,s,"next",e)}function s(e){ut(i,r,a,o,s,"throw",e)}o(void 0)}))}}function pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(n),!0).forEach((function(t){ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ht=n(379),_t=ht.required,vt=ht.email;n(6486);const gt={components:{PaperAirplaneIcon:r.Rdq},data:function(){return{isLoading:!1,estimateMailFields:["customer","customerCustom","estimate","estimateCustom","company"],formData:{from:null,to:null,subject:"New Estimate",body:null}}},validations:{formData:{from:{required:_t,email:vt},to:{required:_t,email:vt},subject:{required:_t},body:{required:_t}}},computed:mt(mt(mt({},(0,a.Se)("modal",["modalDataID","modalData","modalActive"])),(0,a.Se)("user",["currentUser"])),{},{getEmailUrl:function(){return this.url},fromError:function(){return this.$v.formData.from.$error?this.$v.formData.from.required?this.$v.formData.from.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},toError:function(){return this.$v.formData.to.$error?this.$v.formData.to.required?this.$v.formData.to.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},subjectError:function(){return this.$v.formData.subject.$error?this.$v.formData.subject.required?void 0:this.$tc("validation.required"):""},bodyError:function(){return this.$v.formData.body.$error?this.$v.formData.body.required?void 0:this.$tc("validation.required"):""}}),mounted:function(){this.setInitialData()},methods:mt(mt(mt(mt({},(0,a.nv)("modal",["closeModal"])),(0,a.nv)("estimate",["sendEmail"])),(0,a.nv)("company",["fetchCompanySettings","fetchMailConfig"])),{},{setInitialData:function(){var e=this;return dt(o().mark((function t(){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchMailConfig();case 2:return n=t.sent,e.modalData&&(e.formData.from=n.data.from_mail,e.formData.to=e.modalData.user.email),t.next=6,e.fetchCompanySettings(["estimate_mail_body"]);case 6:r=t.sent,e.formData.body=r.data.estimate_mail_body;case 8:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.formData={from:null,to:null,subject:null,body:null}},sendEstimateData:function(){var e=this;return dt(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:swal({title:e.$t("general.are_you_sure"),text:e.$t("estimates.confirm_send_estimate"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=dt(o().mark((function t(n){var r,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n){t.next=15;break}return r=mt(mt({},e.formData),{},{id:e.modalDataID,status:"SENT"}),e.isLoading=!0,t.next=6,e.sendEmail(r);case 6:if(a=t.sent,e.closeModal(),!a.data.success){t.next=12;break}return e.isLoading=!1,window.toastr.success(e.$tc("estimates.send_estimate_successfully")),t.abrupt("return",!0);case 12:if("estimates.user_email_does_not_exist"!==a.data.error){t.next=15;break}return window.toastr.error(e.$tc("estimates.user_email_does_not_exist")),t.abrupt("return",!1);case 15:t.next=21;break;case 17:t.prev=17,t.t0=t.catch(0),e.isLoading=!1,window.toastr.error(e.$tc("estimates.something_went_wrong"));case 21:case"end":return t.stop()}}),t,null,[[0,17]])})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)})))()},closeSendEstimateModal:function(){this.resetFormData(),this.closeModal()}})};const yt=(0,g.Z)(gt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.sendEstimateData(t)}}},[n("div",{staticClass:"px-8 py-8 sm:p-6"},[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.from"),error:e.fromError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.from.$error,type:"text"},on:{input:function(t){return e.$v.formData.from.$touch()}},model:{value:e.formData.from,callback:function(t){e.$set(e.formData,"from",t)},expression:"formData.from"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.to"),error:e.toError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.to.$error,type:"text"},on:{input:function(t){return e.$v.formData.to.$touch()}},model:{value:e.formData.to,callback:function(t){e.$set(e.formData,"to",t)},expression:"formData.to"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.subject"),error:e.subjectError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.subject.$error,type:"text"},on:{input:function(t){return e.$v.formData.subject.$touch()}},model:{value:e.formData.subject,callback:function(t){e.$set(e.formData,"subject",t)},expression:"formData.subject"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.body"),error:e.bodyError,variant:"vertical",required:""}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.estimateMailFields,invalid:e.$v.formData.body.$error},on:{input:function(t){return e.$v.formData.body.$touch()}},model:{value:e.formData.body,callback:function(t){e.$set(e.formData,"body",t)},expression:"formData.body"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeSendEstimateModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("paper-airplane-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("general.send"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function bt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function wt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){bt(i,r,a,o,s,"next",e)}function s(e){bt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){Dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mt=n(379),St=Mt.required,Ct=Mt.email;n(6486);const Lt={components:{PaperAirplaneIcon:r.Rdq},data:function(){return{isLoading:!1,formData:{from:null,to:null,subject:null,body:null}}},validations:{formData:{from:{required:St,email:Ct},to:{required:St,email:Ct},subject:{required:St},body:{required:St}}},computed:kt(kt({},(0,a.Se)("modal",["modalDataID","modalData","modalActive"])),{},{fromError:function(){return this.$v.formData.from.$error?this.$v.formData.from.required?this.$v.formData.from.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},toError:function(){return this.$v.formData.to.$error?this.$v.formData.to.required?this.$v.formData.to.email?void 0:this.$tc("validation.email_incorrect"):this.$tc("validation.required"):""},subjectError:function(){return this.$v.formData.subject.$error?this.$v.formData.subject.required?void 0:this.$tc("validation.required"):""},bodyError:function(){return this.$v.formData.body.$error?this.$v.formData.body.required?void 0:this.$tc("validation.required"):""}}),mounted:function(){this.setInitialData()},methods:kt(kt(kt(kt({},(0,a.nv)("modal",["closeModal"])),(0,a.nv)("payment",["sendEmail"])),(0,a.nv)("company",["fetchCompanySettings","fetchMailConfig"])),{},{setInitialData:function(){var e=this;return wt(o().mark((function t(){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchMailConfig();case 2:return n=t.sent,e.modalData&&(e.formData.from=n.data.from_mail,e.formData.to=e.modalData.user.email),t.next=6,e.fetchCompanySettings(["payment_mail_body"]);case 6:r=t.sent,e.formData.body=r.data.payment_mail_body;case 8:case"end":return t.stop()}}),t)})))()},resetFormData:function(){this.formData={from:null,to:null,subject:null,body:null}},sendPaymentData:function(){var e=this;return wt(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return",!0);case 3:swal({title:e.$t("general.are_you_sure"),text:e.$t("payments.confirm_send_payment"),icon:"/assets/icon/check-circle-solid.svg",buttons:!0,dangerMode:!0}).then(function(){var t=wt(o().mark((function t(n){var r,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n){t.next=15;break}return r=kt(kt({},e.formData),{},{id:e.modalDataID,status:"SENT"}),e.isLoading=!0,t.next=6,e.sendEmail(r);case 6:if(a=t.sent,e.closeModal(),!a.data.success){t.next=12;break}return e.isLoading=!1,window.toastr.success(e.$tc("payments.send_payment_successfully")),t.abrupt("return",!0);case 12:if("payments.user_email_does_not_exist"!==a.data.error){t.next=15;break}return window.toastr.error(e.$tc("payments.user_email_does_not_exist")),t.abrupt("return",!1);case 15:t.next=21;break;case 17:t.prev=17,t.t0=t.catch(0),e.isLoading=!1,window.toastr.error(e.$tc("payments.something_went_wrong"));case 21:case"end":return t.stop()}}),t,null,[[0,17]])})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)})))()},closeSendPaymentModal:function(){this.resetFormData(),this.closeModal()}})};const Tt=(0,g.Z)(Lt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.sendPaymentData(t)}}},[n("div",{staticClass:"px-8 py-8 sm:p-6"},[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.from"),variant:"vertical",error:e.fromError,required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.from.$error,type:"text"},on:{input:function(t){return e.$v.formData.from.$touch()}},model:{value:e.formData.from,callback:function(t){e.$set(e.formData,"from",t)},expression:"formData.from"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.to"),error:e.toError,variant:"vertical",required:""}},[n("sw-input",{attrs:{type:"text",invalid:e.$v.formData.to.$error},on:{input:function(t){return e.$v.formData.to.$touch()}},model:{value:e.formData.to,callback:function(t){e.$set(e.formData,"to",t)},expression:"formData.to"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.subject"),error:e.subjectError,variant:"vertical",required:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.subject.$error,type:"text"},on:{input:function(t){return e.$v.formData.subject.$touch()}},model:{value:e.formData.subject,callback:function(t){e.$set(e.formData,"subject",t)},expression:"formData.subject"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("general.body"),error:e.bodyError,variant:"vertical",required:""}},[n("sw-editor",{attrs:{"set-editor":e.formData.body,invalid:e.$v.formData.body.$error},on:{input:function(t){return e.$v.formData.body.$touch()}},model:{value:e.formData.body,callback:function(t){e.$set(e.formData,"body",t)},expression:"formData.body"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-gray-200 border-solid"},[n("sw-button",{staticClass:"mr-3",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeSendPaymentModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("paper-airplane-icon",{staticClass:"h-5 mr-2"}),e._v("\n "+e._s(e.$t("general.send"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function Ot(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Et(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Ot(i,r,a,o,s,"next",e)}function s(e){Ot(i,r,a,o,s,"throw",e)}o(void 0)}))}}function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){$t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pt=n(379),Yt=Pt.required;Pt.edisk;const Nt={props:{isEdit:{type:Boolean,require:!0,default:!1},loading:{type:Boolean,require:!0,default:!1},disks:{type:Array,require:!0,default:Array}},data:function(){return{diskConfigData:{selected_driver:"dropbox",token:"",key:"",secret:"",app:""},name:"",set_as_default:!1,isLoading:!1,is_current_disk:null,selected_disk:"dropbox"}},validations:{diskConfigData:{token:{required:Yt},key:{required:Yt},secret:{required:Yt},app:{required:Yt},root:{required:Yt}},name:{required:Yt},selected_disk:{required:Yt}},computed:jt(jt({},(0,a.Se)("modal",["modalData"])),{},{nameError:function(){return this.$v.name.$error?this.$v.name.required?void 0:this.$tc("validation.required"):""},typeError:function(){return this.$v.diskConfigData.type.$error?this.$v.diskConfigData.type.required?void 0:this.$tc("validation.required"):""},tokenError:function(){return this.$v.diskConfigData.token.$error?this.$v.diskConfigData.token.required?void 0:this.$tc("validation.required"):""},keyError:function(){return this.$v.diskConfigData.key.$error?this.$v.diskConfigData.key.required?void 0:this.$tc("validation.required"):""},secretError:function(){return this.$v.diskConfigData.secret.$error?this.$v.diskConfigData.secret.required?void 0:this.$tc("validation.required"):""},appError:function(){return this.$v.diskConfigData.app.$error?this.$v.diskConfigData.app.required?void 0:this.$tc("validation.required"):""},rootError:function(){return this.$v.diskConfigData.root.$error?this.$v.diskConfigData.root.required?void 0:this.$tc("validation.required"):""},isDisabled:function(){return!!(this.isEdit&&this.set_as_default&&this.is_current_disk)}}),created:function(){this.loadData()},methods:jt(jt({},(0,a.nv)("disks",["fetchDiskEnv","updateDisk"])),{},{loadData:function(){var e=this;return Et(o().mark((function t(){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isLoading=!0,n={disk:e.selected_disk},!e.isEdit){t.next=9;break}e.diskConfigData=JSON.parse(e.modalData.credentials),e.set_as_default=e.modalData.set_as_default,e.set_as_default&&(e.is_current_disk=!0),e.name=e.modalData.name,t.next=13;break;case 9:return t.next=11,e.fetchDiskEnv(n);case 11:r=t.sent,e.diskConfigData=r.data;case 13:e.selected_disk=e.disks.find((function(e){return"dropbox"==e.value})),e.isLoading=!1;case 15:case"end":return t.stop()}}),t)})))()},submitData:function(){var e=this;return Et(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return");case 3:return n={credentials:e.diskConfigData,name:e.name,driver:e.selected_disk.value,set_as_default:e.set_as_default},e.$emit("submit",n),t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})))()},onChangeDriver:function(){this.$emit("on-change-disk",this.selected_disk)}})};const zt=(0,g.Z)(Nt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.submitData(t)}}},[n("div",{staticClass:"px-8 py-6"},[n("div",{staticClass:"grid gap-6 grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("settings.disk.name"),error:e.nameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",invalid:e.$v.name.$error},on:{input:function(t){return e.$v.name.$touch()}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.driver"),required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.selected_disk.$error,options:e.disks,searchable:!0,"allow-empty":!1,"show-labels":!1,"track-by":"value",label:"name"},on:{input:e.onChangeDriver},model:{value:e.selected_disk,callback:function(t){e.selected_disk=t},expression:"selected_disk"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.dropbox_root"),error:e.rootError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.root.$error,type:"text",name:"name",placeholder:"Ex. /user/root/"},on:{input:function(t){return e.$v.diskConfigData.root.$touch()}},model:{value:e.diskConfigData.root,callback:function(t){e.$set(e.diskConfigData,"root","string"==typeof t?t.trim():t)},expression:"diskConfigData.root"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.dropbox_token"),error:e.tokenError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.token.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.diskConfigData.token.$touch()}},model:{value:e.diskConfigData.token,callback:function(t){e.$set(e.diskConfigData,"token","string"==typeof t?t.trim():t)},expression:"diskConfigData.token"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.dropbox_key"),error:e.keyError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.key.$error,type:"text",name:"name",placeholder:"Ex. KEIS4S39SERSDS"},on:{input:function(t){return e.$v.diskConfigData.key.$touch()}},model:{value:e.diskConfigData.key,callback:function(t){e.$set(e.diskConfigData,"key","string"==typeof t?t.trim():t)},expression:"diskConfigData.key"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.dropbox_secret"),error:e.secretError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.secret.$error,type:"text",name:"name",placeholder:"Ex. ********"},on:{input:function(t){return e.$v.diskConfigData.secret.$touch()}},model:{value:e.diskConfigData.secret,callback:function(t){e.$set(e.diskConfigData,"secret","string"==typeof t?t.trim():t)},expression:"diskConfigData.secret"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.dropbox_app"),error:e.appError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.app.$error,type:"text",name:"name"},on:{input:function(t){return e.$v.diskConfigData.app.$touch()}},model:{value:e.diskConfigData.app,callback:function(t){e.$set(e.diskConfigData,"app","string"==typeof t?t.trim():t)},expression:"diskConfigData.app"}})],1)],1),e._v(" "),e.isDisabled?e._e():n("div",{staticClass:"flex items-center mt-6"},[n("div",{staticClass:"relative flex items-center w-12"},[n("sw-switch",{staticClass:"flex",model:{value:e.set_as_default,callback:function(t){e.set_as_default=t},expression:"set_as_default"}})],1),e._v(" "),n("div",{staticClass:"ml-4 right"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black box-title"},[e._v("\n "+e._s(e.$t("settings.disk.is_default"))+"\n ")])])])]),e._v(" "),e._t("default",null,{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],2)}),[],!1,null,null,null).exports;function It(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Ft(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){It(i,r,a,o,s,"next",e)}function s(e){It(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){Bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qt=n(379),Vt=qt.required;qt.edisk;const Wt={props:{isEdit:{type:Boolean,require:!0,default:!1},loading:{type:Boolean,require:!0,default:!1},disks:{type:Array,require:!0,default:Array}},data:function(){return Bt({diskConfigData:{selected_driver:"local",root:""},name:"",isLoading:!1,set_as_default:!1,selected_disk:null,is_current_disk:null},"is_current_disk",null)},validations:{diskConfigData:{root:{required:Vt}},name:{required:Vt},selected_disk:{required:Vt}},computed:Rt(Rt({},(0,a.Se)("modal",["modalData"])),{},{nameError:function(){return this.$v.name.$error?this.$v.name.required?void 0:this.$tc("validation.required"):""},isDisabled:function(){return!!(this.isEdit&&this.set_as_default&&this.is_current_disk)}}),created:function(){this.loadData()},methods:Rt(Rt({},(0,a.nv)("disks",["fetchDiskEnv","updateDisk"])),{},{loadData:function(){var e=this;return Ft(o().mark((function t(){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isLoading=!0,n={disk:"local"},!e.isEdit){t.next=9;break}e.diskConfigData=JSON.parse(e.modalData.credentials),e.set_as_default=e.modalData.set_as_default,e.set_as_default&&(e.is_current_disk=!0),e.name=e.modalData.name,t.next=13;break;case 9:return t.next=11,e.fetchDiskEnv(n);case 11:r=t.sent,e.diskConfigData=r.data;case 13:e.selected_disk=e.disks.find((function(e){return"local"==e.value})),e.isLoading=!1;case 15:case"end":return t.stop()}}),t)})))()},submitData:function(){var e=this;return Ft(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return");case 3:return n={credentials:e.diskConfigData,name:e.name,driver:e.selected_disk.value,set_as_default:e.set_as_default},e.$emit("submit",n),t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})))()},onChangeDriver:function(){this.$emit("on-change-disk",this.selected_disk)}})};const Ut=(0,g.Z)(Wt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.submitData(t)}}},[n("div",{staticClass:"px-8 py-6"},[n("div",{staticClass:"grid gap-6 grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("settings.disk.name"),error:e.nameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",invalid:e.$v.name.$error},on:{input:function(t){return e.$v.name.$touch()}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.disk.driver"),required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.selected_disk.$error,options:e.disks,searchable:!0,"allow-empty":!1,"show-labels":!1,"track-by":"value",label:"name"},on:{input:e.onChangeDriver},model:{value:e.selected_disk,callback:function(t){e.selected_disk=t},expression:"selected_disk"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.local_root"),required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",placeholder:"Ex. /user/root/"},model:{value:e.diskConfigData.root,callback:function(t){e.$set(e.diskConfigData,"root","string"==typeof t?t.trim():t)},expression:"diskConfigData.root"}})],1)],1),e._v(" "),e.isDisabled?e._e():n("div",{staticClass:"flex items-center mt-6"},[n("div",{staticClass:"relative flex items-center w-12"},[n("sw-switch",{staticClass:"flex",model:{value:e.set_as_default,callback:function(t){e.set_as_default=t},expression:"set_as_default"}})],1),e._v(" "),n("div",{staticClass:"ml-4 right"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black box-title"},[e._v("\n "+e._s(e.$t("settings.disk.is_default"))+"\n ")])])])]),e._v(" "),e._t("default",null,{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],2)}),[],!1,null,null,null).exports;function Kt(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function Zt(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){Kt(i,r,a,o,s,"next",e)}function s(e){Kt(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){Xt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qt=n(379),en=Qt.required;Qt.edisk;const tn={props:{isEdit:{type:Boolean,require:!0,default:!1},loading:{type:Boolean,require:!0,default:!1},disks:{type:Array,require:!0,default:Array}},data:function(){return{diskConfigData:{selected_driver:"s3",key:"",secret:"",region:"",bucket:"",root:""},name:"",set_as_default:!1,isLoading:!1,selected_disk:null,is_current_disk:null}},validations:{diskConfigData:{key:{required:en},secret:{required:en},region:{required:en},bucket:{required:en},root:{required:en}},name:{required:en},selected_disk:{required:en}},computed:Jt(Jt({},(0,a.Se)("modal",["modalData"])),{},{nameError:function(){return this.$v.name.$error?this.$v.name.required?void 0:this.$tc("validation.required"):""},driverError:function(){return this.$v.diskConfigData.driver.$error?this.$v.diskConfigData.driver.required?void 0:this.$tc("validation.required"):""},keyError:function(){return this.$v.diskConfigData.key.$error?this.$v.diskConfigData.key.required?void 0:this.$tc("validation.required"):""},secretError:function(){return this.$v.diskConfigData.secret.$error?this.$v.diskConfigData.secret.required?void 0:this.$tc("validation.required"):""},regionError:function(){return this.$v.diskConfigData.region.$error?this.$v.diskConfigData.region.required?void 0:this.$tc("validation.required"):""},bucketError:function(){return this.$v.diskConfigData.bucket.$error?this.$v.diskConfigData.bucket.required?void 0:this.$tc("validation.required"):""},rootError:function(){return this.$v.diskConfigData.root.$error?this.$v.diskConfigData.root.required?void 0:this.$tc("validation.required"):""},isDisabled:function(){return!!(this.isEdit&&this.set_as_default&&this.is_current_disk)}}),created:function(){this.loadData()},methods:Jt(Jt({},(0,a.nv)("disks",["fetchDiskEnv","updateDisk"])),{},{loadData:function(){var e=this;return Zt(o().mark((function t(){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isLoading=!0,n={disk:"s3"},!e.isEdit){t.next=9;break}e.diskConfigData=JSON.parse(e.modalData.credentials),e.set_as_default=e.modalData.set_as_default,e.set_as_default&&(e.is_current_disk=!0),e.name=e.modalData.name,t.next=13;break;case 9:return t.next=11,e.fetchDiskEnv(n);case 11:r=t.sent,e.diskConfigData=r.data;case 13:e.selected_disk=e.disks.find((function(e){return"s3"==e.value})),e.isLoading=!1;case 15:case"end":return t.stop()}}),t)})))()},submitData:function(){var e=this;return Zt(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return");case 3:return n={credentials:e.diskConfigData,name:e.name,driver:e.selected_disk.value,set_as_default:e.set_as_default},e.$emit("submit",n),t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})))()},onChangeDriver:function(){this.$emit("on-change-disk",this.selected_disk)}})};const nn=(0,g.Z)(tn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.submitData(t)}}},[n("div",{staticClass:"px-8 py-6"},[n("div",{staticClass:"grid gap-6 grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("settings.disk.name"),error:e.nameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",invalid:e.$v.name.$error},on:{input:function(t){return e.$v.name.$touch()}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$tc("settings.disk.driver"),required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.selected_disk.$error,options:e.disks,searchable:!0,"allow-empty":!1,"show-labels":!1,"track-by":"value",label:"name"},on:{input:e.onChangeDriver},model:{value:e.selected_disk,callback:function(t){e.selected_disk=t},expression:"selected_disk"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.aws_root"),error:e.rootError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.root.$error,type:"text",name:"name",placeholder:"Ex. /user/root/"},on:{input:function(t){return e.$v.diskConfigData.root.$touch()}},model:{value:e.diskConfigData.root,callback:function(t){e.$set(e.diskConfigData,"root","string"==typeof t?t.trim():t)},expression:"diskConfigData.root"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.aws_key"),error:e.keyError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.key.$error,type:"text",name:"name",placeholder:"Ex. KEIS4S39SERSDS"},on:{input:function(t){return e.$v.diskConfigData.key.$touch()}},model:{value:e.diskConfigData.key,callback:function(t){e.$set(e.diskConfigData,"key","string"==typeof t?t.trim():t)},expression:"diskConfigData.key"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.aws_secret"),error:e.secretError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.secret.$error,type:"text",name:"name",placeholder:"Ex. ********"},on:{input:function(t){return e.$v.diskConfigData.secret.$touch()}},model:{value:e.diskConfigData.secret,callback:function(t){e.$set(e.diskConfigData,"secret","string"==typeof t?t.trim():t)},expression:"diskConfigData.secret"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.aws_region"),error:e.regionError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.region.$error,type:"text",name:"name",placeholder:"Ex. us-west"},on:{input:function(t){return e.$v.diskConfigData.region.$touch()}},model:{value:e.diskConfigData.region,callback:function(t){e.$set(e.diskConfigData,"region","string"==typeof t?t.trim():t)},expression:"diskConfigData.region"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.aws_bucket"),error:e.bucketError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.bucket.$error,type:"text",name:"name",placeholder:"Ex. AppName"},on:{input:function(t){return e.$v.diskConfigData.bucket.$touch()}},model:{value:e.diskConfigData.bucket,callback:function(t){e.$set(e.diskConfigData,"bucket","string"==typeof t?t.trim():t)},expression:"diskConfigData.bucket"}})],1)],1),e._v(" "),e.isDisabled?e._e():n("div",{staticClass:"flex items-center mt-6"},[n("div",{staticClass:"relative flex items-center w-12"},[n("sw-switch",{staticClass:"flex",model:{value:e.set_as_default,callback:function(t){e.set_as_default=t},expression:"set_as_default"}})],1),e._v(" "),n("div",{staticClass:"ml-4 right"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black box-title"},[e._v("\n "+e._s(e.$t("settings.disk.is_default"))+"\n ")])])])]),e._v(" "),e._t("default",null,{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],2)}),[],!1,null,null,null).exports;function rn(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function an(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){rn(i,r,a,o,s,"next",e)}function s(e){rn(i,r,a,o,s,"throw",e)}o(void 0)}))}}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cn=n(379),un=cn.required,dn=cn.url;const pn={props:{isEdit:{type:Boolean,require:!0,default:!1},loading:{type:Boolean,require:!0,default:!1},disks:{type:Array,require:!0,default:Array}},data:function(){return{diskConfigData:{selected_driver:"doSpaces",key:"",secret:"",region:"",bucket:"",endpoint:"",root:""},name:"",isLoading:!1,set_as_default:!1,selected_disk:null,is_current_disk:null}},validations:{diskConfigData:{key:{required:un},secret:{required:un},region:{required:un},bucket:{required:un},root:{required:un},endpoint:{required:un,url:dn}},name:{required:un},selected_disk:{required:un}},computed:sn(sn({},(0,a.Se)("modal",["modalData"])),{},{nameError:function(){return this.$v.name.$error?this.$v.name.required?void 0:this.$tc("validation.required"):""},typeError:function(){return this.$v.diskConfigData.type.$error?this.$v.diskConfigData.type.required?void 0:this.$tc("validation.required"):""},keyError:function(){return this.$v.diskConfigData.key.$error?this.$v.diskConfigData.key.required?void 0:this.$tc("validation.required"):""},secretError:function(){return this.$v.diskConfigData.secret.$error?this.$v.diskConfigData.secret.required?void 0:this.$tc("validation.required"):""},regionError:function(){return this.$v.diskConfigData.region.$error?this.$v.diskConfigData.region.required?void 0:this.$tc("validation.required"):""},bucketError:function(){return this.$v.diskConfigData.bucket.$error?this.$v.diskConfigData.bucket.required?void 0:this.$tc("validation.required"):""},rootError:function(){return this.$v.diskConfigData.root.$error?this.$v.diskConfigData.root.required?void 0:this.$tc("validation.required"):""},endpointError:function(){return this.$v.diskConfigData.endpoint.$error?this.$v.diskConfigData.endpoint.required?this.$v.diskConfigData.endpoint.url?void 0:this.$tc("validation.invalid_url"):this.$tc("validation.required"):""},isDisabled:function(){return!!(this.isEdit&&this.set_as_default&&this.is_current_disk)}}),created:function(){this.loadData()},methods:sn(sn({},(0,a.nv)("disks",["fetchDiskEnv","updateDisk"])),{},{loadData:function(){var e=this;return an(o().mark((function t(){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isLoading=!0,n={disk:"doSpaces"},!e.isEdit){t.next=9;break}e.diskConfigData=JSON.parse(e.modalData.credentials),e.set_as_default=e.modalData.set_as_default,e.set_as_default&&(e.is_current_disk=!0),e.name=e.modalData.name,t.next=13;break;case 9:return t.next=11,e.fetchDiskEnv(n);case 11:r=t.sent,e.diskConfigData=r.data;case 13:e.selected_disk=e.disks.find((function(e){return"doSpaces"==e.value})),e.isLoading=!1;case 15:case"end":return t.stop()}}),t)})))()},submitData:function(){var e=this;return an(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.$touch(),!e.$v.$invalid){t.next=3;break}return t.abrupt("return");case 3:return n={credentials:e.diskConfigData,name:e.name,driver:e.selected_disk.value,set_as_default:e.set_as_default},e.$emit("submit",n),t.abrupt("return",!1);case 6:case"end":return t.stop()}}),t)})))()},onChangeDriver:function(){this.$emit("on-change-disk",this.selected_disk)}})};const mn=(0,g.Z)(pn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.submitData(t)}}},[n("div",{staticClass:"px-8 py-6"},[n("div",{staticClass:"grid gap-6 grid-col-1 md:grid-cols-2"},[n("sw-input-group",{attrs:{label:e.$t("settings.disk.name"),error:e.nameError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"name",invalid:e.$v.name.$error},on:{input:function(t){return e.$v.name.$touch()}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.driver"),required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{invalid:e.$v.selected_disk.$error,options:e.disks,searchable:!0,"allow-empty":!1,"show-labels":!1,"track-by":"value",label:"name"},on:{input:e.onChangeDriver},model:{value:e.selected_disk,callback:function(t){e.selected_disk=t},expression:"selected_disk"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.do_spaces_root"),error:e.rootError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.root.$error,type:"text",name:"name",placeholder:"Ex. /user/root/"},on:{input:function(t){return e.$v.diskConfigData.root.$touch()}},model:{value:e.diskConfigData.root,callback:function(t){e.$set(e.diskConfigData,"root","string"==typeof t?t.trim():t)},expression:"diskConfigData.root"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.do_spaces_key"),error:e.keyError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.key.$error,type:"text",name:"name",placeholder:"Ex. KEIS4S39SERSDS"},on:{input:function(t){return e.$v.diskConfigData.key.$touch()}},model:{value:e.diskConfigData.key,callback:function(t){e.$set(e.diskConfigData,"key","string"==typeof t?t.trim():t)},expression:"diskConfigData.key"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.do_spaces_secret"),error:e.secretError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.secret.$error,type:"text",name:"name",placeholder:"Ex. ********"},on:{input:function(t){return e.$v.diskConfigData.secret.$touch()}},model:{value:e.diskConfigData.secret,callback:function(t){e.$set(e.diskConfigData,"secret","string"==typeof t?t.trim():t)},expression:"diskConfigData.secret"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.do_spaces_region"),error:e.regionError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.region.$error,type:"text",name:"name",placeholder:"Ex. nyc3"},on:{input:function(t){return e.$v.diskConfigData.region.$touch()}},model:{value:e.diskConfigData.region,callback:function(t){e.$set(e.diskConfigData,"region","string"==typeof t?t.trim():t)},expression:"diskConfigData.region"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.do_spaces_endpoint"),error:e.endpointError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.endpoint.$error,type:"text",name:"name",placeholder:"Ex. https://nyc3.digitaloceanspaces.com"},on:{input:function(t){return e.$v.diskConfigData.endpoint.$touch()}},model:{value:e.diskConfigData.endpoint,callback:function(t){e.$set(e.diskConfigData,"endpoint","string"==typeof t?t.trim():t)},expression:"diskConfigData.endpoint"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.disk.do_spaces_bucket"),error:e.bucketError,required:""}},[n("sw-input",{staticClass:"mt-2",attrs:{invalid:e.$v.diskConfigData.bucket.$error,type:"text",name:"name",placeholder:"Ex. my-new-space"},on:{input:function(t){return e.$v.diskConfigData.bucket.$touch()}},model:{value:e.diskConfigData.bucket,callback:function(t){e.$set(e.diskConfigData,"bucket","string"==typeof t?t.trim():t)},expression:"diskConfigData.bucket"}})],1)],1),e._v(" "),e.isDisabled?e._e():n("div",{staticClass:"flex items-center mt-6"},[n("div",{staticClass:"relative flex items-center w-12"},[n("sw-switch",{staticClass:"flex",model:{value:e.set_as_default,callback:function(t){e.set_as_default=t},expression:"set_as_default"}})],1),e._v(" "),n("div",{staticClass:"ml-4 right"},[n("p",{staticClass:"p-0 mb-1 text-base leading-snug text-black box-title"},[e._v("\n "+e._s(e.$t("settings.disk.is_default"))+"\n ")])])])]),e._v(" "),e._t("default",null,{diskData:{isLoading:e.isLoading,submitData:e.submitData}})],2)}),[],!1,null,null,null).exports;function fn(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function hn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){fn(i,r,a,o,s,"next",e)}function s(e){fn(i,r,a,o,s,"throw",e)}o(void 0)}))}}function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(n),!0).forEach((function(t){gn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yn=n(379);yn.required,yn.minLength,yn.email,yn.numeric,yn.url,yn.maxLength;const bn={components:{Dropbox:zt,Local:Ut,S3:nn,DoSpaces:mn},data:function(){return{isLoading:!1,isEdit:!1,set_as_default:!1,name:"local",formData:{},selected_disk:"local",diskConfigData:{}}},computed:vn(vn({},(0,a.Se)("modal",["modalDataID","modalData","modalActive","refreshData"])),(0,a.Se)("disks",["getDiskDrivers"])),created:function(){this.modalDataID&&(this.isEdit=!0),this.loadData()},methods:vn(vn(vn({},(0,a.nv)("disks",["fetchDiskDrivers","createDisk","updateDisk"])),(0,a.nv)("modal",["closeModal"])),{},{isRequestFire:function(e){return e&&(e.diskData.isLoading||this.isLoading)},loadData:function(){var e=this;return hn(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.fetchDiskDrivers();case 3:n=t.sent,e.isEdit?e.selected_disk=e.modalData.driver:e.selected_disk=n.data.drivers[0].value,e.isLoading=!1;case 6:case"end":return t.stop()}}),t)})))()},createNewDisk:function(e){var t=this;return hn(o().mark((function n(){var r,a;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.isLoading=!0,r=vn({id:t.modalDataID},e),!t.isEdit){n.next=8;break}return n.next=5,t.updateDisk(r);case 5:a=n.sent,n.next=11;break;case 8:return n.next=10,t.createDisk(r);case 10:a=n.sent;case 11:a.data.success?(t.refreshData(),t.closeDisk(),t.isEdit?window.toastr.success(t.$t("settings.disk.success_update")):window.toastr.success(t.$t("settings.disk.success_create"))):window.toastr.error(t.$t("settings.disk.invalid_disk_credentials")),t.isLoading=!1;case 13:case"end":return n.stop()}}),n)})))()},closeDisk:function(){this.closeModal()}})};const wn=(0,g.Z)(bn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"file-disk-modal"},[e.getDiskDrivers.length?n("div",[n(e.selected_disk,{tag:"component",attrs:{loading:e.isLoading,disks:e.getDiskDrivers,"is-edit":e.isEdit},on:{"on-change-disk":function(t){return e.selected_disk=t.value},submit:e.createNewDisk},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-solid border-gray-light"},[n("sw-button",{staticClass:"mr-3 text-sm",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeDisk}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isRequestFire(t),variant:"primary",disabled:e.isRequestFire(t),type:"submit"}},[e.isRequestFire(t)?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.$t("general.save"))+"\n ")],1)],1)]}}],null,!1,100721560)})],1):e._e()])}),[],!1,null,null,null).exports;function xn(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function kn(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){xn(i,r,a,o,s,"next",e)}function s(e){xn(i,r,a,o,s,"throw",e)}o(void 0)}))}}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach((function(t){Sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cn=n(379);Cn.required,Cn.minLength,Cn.email,Cn.numeric,Cn.url,Cn.maxLength;const Ln={components:{Dropbox:zt,Local:Ut,S3:nn,DoSpaces:mn},data:function(){return{isLoading:!1,set_as_default:!1,name:"local",formData:null,selected_disk:null,diskConfigData:{}}},computed:Mn(Mn({},(0,a.Se)("modal",["modalData","refreshData"])),(0,a.Se)("disks",["getDisks"])),created:function(){this.loadData()},methods:Mn(Mn(Mn({},(0,a.nv)("disks",["fetchDisks","setDefaultDisk"])),(0,a.nv)("modal",["closeModal"])),{},{loadData:function(){var e=this;return kn(o().mark((function t(){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.fetchDisks();case 3:n=t.sent,e.selected_disk=n.data.disks.find((function(e){return 1==e.set_as_default})),e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},submitData:function(){var e=this;return kn(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.setDefaultDisk(e.selected_disk);case 3:t.sent.data.success&&(e.refreshData(),e.closeDisk(),window.toastr.success(e.$t("settings.disk.success"))),e.isLoading=!0;case 6:case"end":return t.stop()}}),t)})))()},closeDisk:function(){this.closeModal()},getCustomLabel:function(e){var t=e.driver,n=e.name;return"".concat(n," — [").concat(t,"]")}})};const Tn=(0,g.Z)(Ln,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"file-disk-modal"},[n("form",{on:{submit:function(t){return t.preventDefault(),e.submitData(t)}}},[n("div",{staticClass:"px-8 py-6"},[n("sw-input-group",{attrs:{label:e.$t("settings.disk.driver"),required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.getDisks,searchable:!0,"allow-empty":!1,"show-labels":!1,"track-by":"id","custom-label":e.getCustomLabel},model:{value:e.selected_disk,callback:function(t){e.selected_disk=t},expression:"selected_disk"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-solid border-gray-light"},[n("sw-button",{staticClass:"mr-3 text-sm",attrs:{type:"button",variant:"primary-outline"},on:{click:e.closeDisk}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{staticClass:"text-sm",attrs:{loading:e.isLoading,icon:"save",type:"submit",variant:"primary"}},[e._v("\n "+e._s(e.$t("general.save"))+"\n ")])],1)])])}),[],!1,null,null,null).exports;const On={props:{value:{type:String,default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}};const En=(0,g.Z)(On,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("sw-input",{attrs:{type:"text"},on:{input:function(t){return e.$emit("input",e.inputValue)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})}),[],!1,null,null,null).exports;const An={props:{value:{type:[String,Number],default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}};const jn=(0,g.Z)(An,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("sw-input",{attrs:{type:"number"},on:{input:function(t){return e.$emit("input",e.inputValue)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})}),[],!1,null,null,null).exports;const $n={props:{value:{type:[Boolean,Number],default:!1}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}};const Pn=(0,g.Z)($n,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("sw-switch",{staticClass:"-mt-3",on:{input:function(t){return e.$emit("input",e.inputValue)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})}),[],!1,null,null,null).exports;const Yn={props:{value:{type:String,default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}};const Nn=(0,g.Z)(Yn,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("sw-textarea",{attrs:{rows:"2",name:"description"},on:{input:function(t){return e.$emit("input",e.inputValue)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})}),[],!1,null,null,null).exports;const zn={props:{value:{type:[String,Object],default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}};const In=(0,g.Z)(zn,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("base-time-picker",{attrs:{value:e.inputValue,"hide-clear-button":""},on:{input:function(t){return e.$emit("input",e.inputValue)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})}),[],!1,null,null,null).exports;const Fn={props:{value:{type:String,default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}};const Hn=(0,g.Z)(Fn,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("sw-input",{attrs:{type:"url"},on:{input:function(t){return e.$emit("input",e.inputValue)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})}),[],!1,null,null,null).exports;const Rn={props:{value:{type:[String,Number],default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}};const Bn=(0,g.Z)(Rn,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("sw-input",{attrs:{type:"text"},on:{input:function(t){return e.$emit("input",e.inputValue)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})}),[],!1,null,null,null).exports;var qn=n(381),Vn=n.n(qn);const Wn={props:{value:{type:String,default:null},defaultDateTime:{type:String,default:null}},data:function(){return{inputValue:this.value?this.value:Vn()().format("YYYY-MM-DD hh:mm")}},watch:{value:function(e){this.inputValue=e},defaultDateTime:function(e){this.dateTimeValue=e}}};const Un=(0,g.Z)(Wn,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("base-date-picker",{attrs:{"enable-time":!0},on:{input:function(t){return e.$emit("input",e.inputValue)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})}),[],!1,null,null,null).exports;const Kn={props:{value:{type:[String,Date],default:null}},data:function(){return{inputValue:Vn()().format("YYYY-MM-DD")}},watch:{value:function(e){this.inputValue=e}}};const Zn=(0,g.Z)(Kn,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("base-date-picker",{attrs:{"calendar-button":!0,"calendar-button-icon":"calendar"},on:{input:function(t){return e.$emit("input",e.inputValue)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})}),[],!1,null,null,null).exports;const Gn={props:{value:{type:[String,Object],default:null},options:{type:Array,default:function(){return[]}}},data:function(){return{inputValue:this.value,inputOptions:this.options}},watch:{options:function(e){this.inputOptions=e,this.inputValue=null}}};const Jn=(0,g.Z)(Gn,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("sw-select",{attrs:{options:e.inputOptions,taggable:!0,"show-labels":!1,label:"name","track-by":"name"},on:{input:function(t){return e.$emit("input",e.inputValue)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})}),[],!1,null,null,null).exports;const Xn={components:{PlusCircleIcon:r.wl8},data:function(){return{option:null}},methods:{onAddOption:function(){if(null==this.option||""==this.option||null==this.option)return!0;this.$emit("onAdd",this.option),this.option=null}}};const Qn=(0,g.Z)(Xn,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex items-center",staticStyle:{"margin-top":"5px"}},[n("sw-input",{staticStyle:{width:"90%"},attrs:{type:"text"},on:{handleEnter:function(t){return t.stopPropagation(),e.onAddOption(t)}},model:{value:e.option,callback:function(t){e.option=t},expression:"option"}}),e._v(" "),n("plus-circle-icon",{staticClass:"ml-1 cursor-pointer text-danger",on:{click:e.onAddOption}})],1)}),[],!1,null,null,null).exports;function er(e){return function(e){if(Array.isArray(e))return tr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tr(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 tr(e,t)}(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 tr(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 nr(e){return(nr="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)}function rr(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function ar(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){rr(i,r,a,o,s,"next",e)}function s(e){rr(i,r,a,o,s,"throw",e)}o(void 0)}))}}function ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ir(Object(n),!0).forEach((function(t){sr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lr=n(379),cr=lr.required,ur=lr.requiredIf,dr=lr.numeric,pr=lr.minLength;const mr={components:{MinusCircleIcon:r.$_5,OptionCreate:Qn,InputType:En,NumberType:jn,SwitchType:Pn,TextAreaType:Nn,TimeType:In,UrlType:Hn,PhoneType:Bn,DateTimeType:Un,DateType:Zn,DropdownType:Jn},data:function(){return{isEdit:!1,dateType:"custom",isLoading:!1,relativeDateTypes:["Today","Tomorrow","Yesterday","Starting Date of Week","Ending Date of Week","Starting Date of Next Week","Ending Date of Next Week","Starting Date of Previous Week","Ending Date of Previous Week","Starting Date of Month","Ending Date of Month","Starting Date of Next Month","Ending Date of Next Month","Starting Date of Previous Month","Ending Date of Previous Month","Starting Date of Fiscal Month","Ending Date of Fiscal Month"],dataTypes:[{label:"Text",value:"Input"},{label:"Textarea",value:"TextArea"},{label:"Phone",value:"Phone"},{label:"URL",value:"Url"},{label:"Number",value:"Number"},{label:"Select Field",value:"Dropdown"},{label:"Switch Toggle",value:"Switch"},{label:"Date",value:"Date"},{label:"Time",value:"Time"},{label:"Date & Time",value:"DateTime"}],modelTypes:["Customer","Invoice","Estimate","Expense","Payment"],selectType:null,formData:{label:null,type:null,name:null,default_answer:null,is_required:!1,placeholder:null,model_type:null,order:1,options:[]}}},validations:{selectType:{required:cr},formData:{name:{required:cr},label:{required:cr},model_type:{required:cr},order:{required:cr,numeric:dr},options:{required:ur("isDropdownSelected"),minLength:pr(1),$each:{name:{required:ur("isDropdownSelected"),minLength:pr(1)}}}}},computed:or(or({},(0,a.Se)("modal",["modalData","modalDataID","refreshData"])),{},{isDropdownSelected:function(){return!(!this.selectType||"Select Field"!==this.selectType.label)},isSwitchTypeSelected:function(){return!(!this.selectType||"Switch Toggle"!==this.selectType.label)},nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?void 0:this.$tc("validation.required"):""},labelError:function(){return this.$v.formData.label.$error?this.$v.formData.label.required?void 0:this.$tc("validation.required"):""},modalTypeError:function(){return this.$v.formData.model_type.$error?this.$v.formData.model_type.required?void 0:this.$tc("validation.required"):""},dataTypeError:function(){return this.$v.selectType.$error?this.$v.selectType.required?void 0:this.$tc("validation.required"):""},hasPlaceHolder:function(){return"Switch Toggle"!=this.selectType.label},orderError:function(){return this.$v.formData.order.$error?this.$v.formData.order.required?this.$v.formData.order.numeric?void 0:this.$tc("validation.numbers_only"):this.$tc("validation.required"):""}}),watch:{"formData.type":function(e,t){null==t&&null==t||this.onChangeReset()},dateType:function(e,t){null==t&&null==t||this.onChangeReset()}},mounted:function(){if(this.modalDataID)return this.setData(),!0;this.formData.model_type=this.modelTypes[0],this.selectType=this.dataTypes[0],this.formData.type=this.dataTypes[0].value},methods:or(or(or({},(0,a.nv)("customFields",["addCustomField","updateCustomField","fetchCustomField"])),(0,a.nv)("modal",["closeModal"])),{},{resetFormData:function(){var e;this.formData=(sr(e={label:null},"label",null),sr(e,"type",null),sr(e,"dateTimeValue",null),sr(e,"default_answer",null),sr(e,"is_required",!1),sr(e,"placeholder",null),sr(e,"model_type",null),sr(e,"options",[{name:""}]),e),this.$v.$reset()},submitCustomFieldData:function(){var e=this;return ar(o().mark((function t(){var n,r,a,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.selectType.$touch(),e.$v.formData.$touch(),!e.$v.$invalid){t.next=4;break}return t.abrupt("return",!1);case 4:if(n=or(or({},e.formData),{},{options:e.formData.options.map((function(e){return e.name})),default_answer:e.isDropdownSelected&&e.formData.default_answer?e.formData.default_answer.name:e.formData.default_answer}),e.isSwitchTypeSelected&&null==e.formData.default_answer&&(n.default_answer=!1),"Date"==n.type&&(n.default_answer=n.default_answer?Vn()(n.default_answer).format("YYYY-MM-DD"):null),"Time"==n.type&&"object"==nr(n.default_answer)&&(r=n&&n.default_answer&&n.default_answer.HH?n.default_answer.HH:null,a=n&&n.default_answer&&n.default_answer.mm?n.default_answer.mm:null,i=n&&n.default_answer&&n.default_answer.ss?n.default_answer.ss:null,n.default_answer="".concat(r,":").concat(a,":").concat(i)),null,!e.isEdit){t.next=18;break}return e.isLoading=!0,t.next=13,e.updateCustomField(n);case 13:return t.sent,window.toastr.success(e.$tc("settings.custom_fields.updated_message")),e.refreshData(),e.closeCategoryModal(),t.abrupt("return",!0);case 18:return e.isLoading=!0,t.next=21,e.addCustomField(n);case 21:return t.sent,window.toastr.success(e.$tc("settings.custom_fields.added_message")),e.refreshData(),e.closeCategoryModal(),t.abrupt("return",!0);case 26:case"end":return t.stop()}}),t)})))()},addNewOptions:function(e){this.formData.options=[{name:e}].concat(er(this.formData.options))},removeOption:function(e){this.formData.options.splice(e,1)},setData:function(){var e=this;return ar(o().mark((function t(){var n,r,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.fetchCustomField(e.modalDataID);case 2:n=t.sent,r=n.data.customField,e.isEdit=!0,a=or(or({},r),{},sr({options:[],dateTimeValue:r.defaultAnswer,default_answer:r.defaultAnswer},"options",r.options?r.options.map((function(e){return{name:e||""}})):[])),e.selectType=e.dataTypes.find((function(e){return e.value==r.type})),"Dropdown"==a.type&&(a.default_answer={name:r.defaultAnswer}),e.formData=or({},a);case 9:case"end":return t.stop()}}),t)})))()},onChangeReset:function(){this.formData=or(or({},this.formData),{},{default_answer:null,is_required:!1,placeholder:null,options:[]})},onSelectTypeChange:function(e){this.formData.type=e.value,this.$v.selectType.$touch()},closeCategoryModal:function(){this.resetFormData(),this.closeModal()}})};const fr=(0,g.Z)(mr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"custom-field-modal"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitCustomFieldData(t)}}},[n("div",{staticClass:"px-8 py-8 overflow-y-auto sw-scroll sm:p-6",staticStyle:{"max-height":"600px"}},[n("sw-input-group",{attrs:{label:e.$t("settings.custom_fields.name"),error:e.nameError,horizontal:"",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.name.$error,type:"text"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.model"),error:e.modalTypeError,horizontal:"",required:""}},[n("sw-select",{attrs:{options:e.modelTypes,invalid:e.$v.formData.model_type.$error,searchable:!0,"show-labels":!1,"allow-empty":!1},on:{input:function(t){return e.$v.formData.model_type.$touch()}},model:{value:e.formData.model_type,callback:function(t){e.$set(e.formData,"model_type",t)},expression:"formData.model_type"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.required"),horizontal:""}},[n("sw-switch",{staticStyle:{"margin-top":"-20px"},model:{value:e.formData.is_required,callback:function(t){e.$set(e.formData,"is_required",t)},expression:"formData.is_required"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.type"),error:e.dataTypeError,horizontal:"",required:""}},[n("sw-select",{attrs:{options:e.dataTypes,invalid:e.$v.selectType.$error,searchable:!0,"show-labels":!1,"allow-empty":!1,"track-by":"label",label:"label"},on:{input:e.onSelectTypeChange},model:{value:e.selectType,callback:function(t){e.selectType=t},expression:"selectType"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.label"),error:e.labelError,horizontal:"",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.label.$error,type:"text"},on:{input:function(t){return e.$v.formData.label.$touch()}},model:{value:e.formData.label,callback:function(t){e.$set(e.formData,"label",t)},expression:"formData.label"}})],1),e._v(" "),e.isDropdownSelected?n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.options"),horizontal:""}},[n("option-create",{on:{onAdd:e.addNewOptions}}),e._v(" "),e._l(e.formData.options,(function(t,r){return n("div",{key:r,staticClass:"flex items-center",staticStyle:{"margin-top":"5px"}},[n("sw-input",{staticStyle:{width:"90%"},attrs:{type:"text"},model:{value:t.name,callback:function(n){e.$set(t,"name",n)},expression:"option.name"}}),e._v(" "),n("minus-circle-icon",{staticClass:"ml-1 cursor-pointer icon text-danger",on:{click:function(t){return e.removeOption(r)}}})],1)}))],2):e._e(),e._v(" "),e.formData.type?n("sw-input-group",{staticClass:"relative mt-5",attrs:{label:e.$t("settings.custom_fields.default_value"),horizontal:""}},[n(e.formData.type+"Type",{tag:"component",attrs:{value:e.formData.default_answer,options:e.formData.options,defaultDateTime:e.formData.dateTimeValue},model:{value:e.formData.default_answer,callback:function(t){e.$set(e.formData,"default_answer",t)},expression:"formData.default_answer"}})],1):e._e(),e._v(" "),e.isSwitchTypeSelected?e._e():n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.placeholder"),horizontal:""}},[n("sw-input",{attrs:{type:"text"},model:{value:e.formData.placeholder,callback:function(t){e.$set(e.formData,"placeholder",t)},expression:"formData.placeholder"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mt-5",attrs:{label:e.$t("settings.custom_fields.order"),error:e.orderError,horizontal:""}},[n("sw-input",{attrs:{invalid:e.$v.formData.order.$error,type:"number"},on:{input:function(t){return e.$v.formData.order.$touch()}},model:{value:e.formData.order,callback:function(t){e.$set(e.formData,"order",t)},expression:"formData.order"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end p-4 border-t border-solid border-gray-light border-modal-bg"},[n("sw-button",{staticClass:"mr-3",attrs:{type:"button",variant:"primary-outline"},on:{click:e.closeCategoryModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,disabled:e.isLoading,variant:"primary",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.save"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function hr(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function _r(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var i=e.apply(t,n);function o(e){hr(i,r,a,o,s,"next",e)}function s(e){hr(i,r,a,o,s,"throw",e)}o(void 0)}))}}function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var br=n(379),wr=br.required,xr=br.minLength;const kr={data:function(){return{isEdit:!1,isLoading:!1,types:["Invoice","Estimate","Payment"],selectType:null,formData:{type:"",name:"",notes:""},noteType:null,fields:[]}},computed:gr(gr({},(0,a.Se)("modal",["modalDataID","modalData","modalActive","refreshData"])),{},{nameError:function(){return this.$v.formData.name.$error?this.$v.formData.name.required?void 0:this.$tc("validation.required"):""},noteError:function(){return this.$v.formData.notes.$error?this.$v.formData.notes.required?void 0:this.$tc("validation.required"):""},typeError:function(){return this.$v.noteType.$error?this.$v.noteType.required?void 0:this.$tc("validation.required"):""}}),validations:{formData:{name:{required:wr,minLength:xr(2)},notes:{required:wr}},noteType:{required:wr}},mounted:function(){var e=this;return _r(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.setFields(),e.modalDataID?(e.isEdit=!0,e.setData()):e.modalData?e.noteType=e.modalData:e.noteType="Invoice";case 2:case"end":return t.stop()}}),t)})))()},watch:{noteType:function(){this.setFields()}},methods:gr(gr(gr(gr(gr(gr({},(0,a.nv)("modal",["closeModal","resetModalData"])),(0,a.nv)("notes",["addNote","updateNote"])),(0,a.nv)("invoice",{setInvoiceNote:"selectNote"})),(0,a.nv)("estimate",{setEstimateNote:"selectNote"})),(0,a.nv)("payment",{setPaymentNote:"selectNote"})),{},{setFields:function(){return this.fields=["customer","customerCustom"],"Invoice"===this.noteType&&this.fields.push("invoice","invoiceCustom"),"Estimate"===this.noteType&&this.fields.push("estimate","estimateCustom"),"Payment"===this.noteType&&this.fields.push("payment","paymentCustom"),!0},resetFormData:function(){this.formData={name:null,notes:null},this.notetype=null,this.$v.formData.$reset()},submitNote:function(){var e=this;return _r(o().mark((function t(){var n,r,a,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.formData.$touch(),e.$v.noteType.$touch(),!e.$v.$invalid){t.next=4;break}return t.abrupt("return",!0);case 4:if(e.isLoading=!0,!e.isEdit){t.next=18;break}return n={id:e.modalDataID,type:e.noteType,name:e.formData.name,notes:e.formData.notes},t.next=9,e.updateNote(n);case 9:if(!(r=t.sent).data){t.next=15;break}return window.toastr.success(e.$t("settings.customization.notes.note_updated")),e.refreshData&&e.refreshData(),e.closeNoteModal(),t.abrupt("return",!0);case 15:window.toastr.error(r.data.error),t.next=38;break;case 18:return t.prev=18,a={type:e.noteType,name:e.formData.name,notes:e.formData.notes},t.next=22,e.addNote(a);case 22:if(!(i=t.sent).data||!i.data.note){t.next=32;break}return e.isLoading=!1,window.toastr.success(e.$t("settings.customization.notes.note_added")),("invoices.create"===e.$route.name&&"Invoice"===i.data.note.type||"invoices.edit"===e.$route.name&&"Invoice"===i.data.note.type)&&e.setInvoiceNote(i.data.note),("estimates.create"===e.$route.name&&"Estimate"===i.data.note.type||"estimates.edit"===e.$route.name&&"Estimate"===i.data.note.type)&&e.setEstimateNote(i.data.note),("payments.create"===e.$route.name&&"Payment"===i.data.note.type||"payments.edit"===e.$route.name&&"Payment"===i.data.note.type)&&e.setPaymentNote(i.data.note),e.refreshData&&e.refreshData(),e.closeNoteModal(),t.abrupt("return",!0);case 32:window.toastr.error(i.data.error),t.next=38;break;case 35:t.prev=35,t.t0=t.catch(18),t.t0.response.data.errors.name&&(e.isLoading=!0);case 38:case"end":return t.stop()}}),t,null,[[18,35]])})))()},setData:function(){var e=this;return _r(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.noteType=e.modalData.type,e.formData.name=e.modalData.name,e.formData.notes=e.modalData.notes;case 3:case"end":return t.stop()}}),t)})))()},closeNoteModal:function(){this.closeModal(),this.resetFormData()}})};var Dr=n(3379),Mr=n.n(Dr),Sr=n(2222),Cr={insert:"head",singleton:!1};Mr()(Sr.Z,Cr);Sr.Z.locals;const Lr=(0,g.Z)(kr,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"note-modal"},[n("form",{attrs:{action:""},on:{submit:function(t){return t.preventDefault(),e.submitNote(t)}}},[n("div",{staticClass:"px-8 py-8 sm:p-6"},[n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("settings.customization.notes.name"),error:e.nameError,variant:"vertical",required:""}},[n("sw-input",{ref:"name",attrs:{invalid:e.$v.formData.name.$error,type:"text"},on:{input:function(t){return e.$v.formData.name.$touch()}},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),n("sw-input-group",{staticClass:"mb-4",attrs:{label:e.$t("settings.customization.notes.type"),error:e.typeError,variant:"vertical",required:""}},[n("sw-select",{staticClass:"mt-2",attrs:{options:e.types,"allow-empty":!1,"show-labels":!1},model:{value:e.noteType,callback:function(t){e.noteType=t},expression:"noteType"}})],1),e._v(" "),n("sw-input-group",{attrs:{label:e.$t("settings.customization.notes.notes"),error:e.noteError,variant:"vertical",required:""}},[n("base-custom-input",{staticClass:"mt-2",attrs:{fields:e.fields},model:{value:e.formData.notes,callback:function(t){e.$set(e.formData,"notes",t)},expression:"formData.notes"}})],1)],1),e._v(" "),n("div",{staticClass:"z-0 flex justify-end px-4 py-4 border-t border-solid border-gray-light"},[n("sw-button",{staticClass:"mr-2",attrs:{variant:"primary-outline",type:"button"},on:{click:e.closeNoteModal}},[e._v("\n "+e._s(e.$t("general.cancel"))+"\n ")]),e._v(" "),n("sw-button",{attrs:{loading:e.isLoading,variant:"primary",icon:"save",type:"submit"}},[e.isLoading?e._e():n("save-icon",{staticClass:"mr-2"}),e._v("\n "+e._s(e.isEdit?e.$t("general.update"):e.$t("general.save"))+"\n ")],1)],1)])])}),[],!1,null,null,null).exports;function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(n),!0).forEach((function(t){Er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ar={components:{TaxTypeModal:y,ItemModal:O,EstimateTemplate:Y,InvoiceTemplate:R,CustomerModal:ne,CategoryModal:me,BackupModal:we,PaymentMode:Ee,ItemUnit:He,MailTestModal:Qe,SendInvoiceModal:ct,SendEstimateModal:yt,SendPaymentModal:Tt,XIcon:r.b0D,FileDiskModal:wn,SetDefaultDiskModal:Tn,CustomFieldModal:fr,NoteSelectModal:Lr},data:function(){return{component:""}},computed:Or({},(0,a.Se)("modal",["modalActive","modalTitle","componentName","modalSize","modalData","variant"])),watch:{componentName:function(e){e&&(this.component=e)},modalActive:function(e){return e?(this.$refs.baseModal.open(),!0):(this.$refs.baseModal.close(),!1)}},methods:Or({},(0,a.nv)("modal",["openModal","closeModal"]))};const jr=(0,g.Z)(Ar,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("sw-modal",{ref:"baseModal",attrs:{variant:e.variant},scopedSlots:e._u([{key:"header",fn:function(){return[n("div",{staticClass:"absolute flex content-center justify-center w-5 cursor-pointer",staticStyle:{top:"20px",right:"15px"},on:{click:e.closeModal}},[n("x-icon")],1),e._v(" "),n("span",[e._v(e._s(e.modalTitle))])]},proxy:!0}])},[e._v(" "),n(e.component,{tag:"component"})],1)],1)}),[],!1,null,null,null).exports},3397:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(1900).Z)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}},[n("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),e._v(" "),n("path",{staticClass:"opacity-75",attrs:{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}})])}),[],!1,null,null,null).exports},1900:(e,t,n)=>{"use strict";function r(e,t,n,r,a,i,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,{Z:()=>r})},8345:(e,t,n)=>{"use strict";function r(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}n.d(t,{Z:()=>Ee});var a={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,a=t.parent,i=t.data;i.routerView=!0;for(var o=a.$createElement,s=n.name,l=a.$route,c=a._routerViewCache||(a._routerViewCache={}),u=0,d=!1;a&&a._routerRoot!==a;)a.$vnode&&a.$vnode.data.routerView&&u++,a._inactive&&(d=!0),a=a.$parent;if(i.routerViewDepth=u,d)return o(c[s],i,r);var p=l.matched[u];if(!p)return c[s]=null,o();var m=c[s]=p.components[s];return i.registerRouteInstance=function(e,t){var n=p.instances[s];(t&&n!==e||!t&&n===e)&&(p.instances[s]=t)},(i.hook||(i.hook={})).prepatch=function(e,t){p.instances[s]=t.componentInstance},i.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}(l,p.props&&p.props[s]),o(m,i,r)}};var i=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},s=/%2C/g,l=function(e){return encodeURIComponent(e).replace(i,o).replace(s,",")},c=decodeURIComponent;function u(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=c(n.shift()),a=n.length>0?c(n.join("=")):null;void 0===t[r]?t[r]=a:Array.isArray(t[r])?t[r].push(a):t[r]=[t[r],a]})),t):t}function d(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return l(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(l(t)):r.push(l(t)+"="+l(e)))})),r.join("&")}return l(t)+"="+l(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var p=/\/?$/;function m(e,t,n,r){var a=r&&r.options.stringifyQuery,i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:t.query||{},params:t.params||{},fullPath:_(t,a),matched:e?h(e):[]};return n&&(i.redirectedFrom=_(n,a)),Object.freeze(i)}var f=m(null,{path:"/"});function h(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function _(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var a=e.hash;return void 0===a&&(a=""),(n||"/")+(t||d)(r)+a}function v(e,t){return t===f?e===t:!!t&&(e.path&&t.path?e.path.replace(p,"")===t.path.replace(p,"")&&e.hash===t.hash&&g(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&g(e.query,t.query)&&g(e.params,t.params)))}function g(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){var r=e[n],a=t[n];return"object"==typeof r&&"object"==typeof a?g(r,a):String(r)===String(a)}))}var y,b={name:"router-link",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,a=n.resolve(this.to,r,this.append),i=a.location,o=a.route,s=a.href,l={},c=n.options.linkActiveClass,u=n.options.linkExactActiveClass,d=null==c?"router-link-active":c,f=null==u?"router-link-exact-active":u,h=null==this.activeClass?d:this.activeClass,_=null==this.exactActiveClass?f:this.exactActiveClass,g=i.path?m(null,i,null,n):o;l[_]=v(r,g),l[h]=this.exact?l[_]:function(e,t){return 0===e.path.replace(p,"/").indexOf(t.path.replace(p,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(r,g);var b=function(e){w(e)&&(t.replace?n.replace(i):n.push(i))},k={click:w};Array.isArray(this.event)?this.event.forEach((function(e){k[e]=b})):k[this.event]=b;var D={class:l};if("a"===this.tag)D.on=k,D.attrs={href:s};else{var M=x(this.$slots.default);if(M){M.isStatic=!1;var S=y.util.extend;(M.data=S({},M.data)).on=k,(M.data.attrs=S({},M.data.attrs)).href=s}else D.on=k}return e(this.tag,D,this.$slots.default)}};function w(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function x(e){if(e)for(var t,n=0;n<e.length;n++){if("a"===(t=e[n]).tag)return t;if(t.children&&(t=x(t.children)))return t}}var k="undefined"!=typeof window;function D(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var a=t.split("/");n&&a[a.length-1]||a.pop();for(var i=e.replace(/^\//,"").split("/"),o=0;o<i.length;o++){var s=i[o];".."===s?a.pop():"."!==s&&a.push(s)}return""!==a[0]&&a.unshift(""),a.join("/")}function M(e){return e.replace(/\/\//g,"/")}var S=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},C=H,L=j,T=function(e,t){return P(j(e,t))},O=P,E=F,A=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function j(e,t){for(var n,r=[],a=0,i=0,o="",s=t&&t.delimiter||"/";null!=(n=A.exec(e));){var l=n[0],c=n[1],u=n.index;if(o+=e.slice(i,u),i=u+l.length,c)o+=c[1];else{var d=e[i],p=n[2],m=n[3],f=n[4],h=n[5],_=n[6],v=n[7];o&&(r.push(o),o="");var g=null!=p&&null!=d&&d!==p,y="+"===_||"*"===_,b="?"===_||"*"===_,w=n[2]||s,x=f||h;r.push({name:m||a++,prefix:p||"",delimiter:w,optional:b,repeat:y,partial:g,asterisk:!!v,pattern:x?N(x):v?".*":"[^"+Y(w)+"]+?"})}}return i<e.length&&(o+=e.substr(i)),o&&r.push(o),r}function $(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function P(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,r){for(var a="",i=n||{},o=(r||{}).pretty?$:encodeURIComponent,s=0;s<e.length;s++){var l=e[s];if("string"!=typeof l){var c,u=i[l.name];if(null==u){if(l.optional){l.partial&&(a+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(S(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=o(u[d]),!t[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(c)+"`");a+=(0===d?l.prefix:l.delimiter)+c}}else{if(c=l.asterisk?encodeURI(u).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):o(u),!t[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+c+'"');a+=l.prefix+c}}else a+=l}return a}}function Y(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function N(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function z(e,t){return e.keys=t,e}function I(e){return e.sensitive?"":"i"}function F(e,t,n){S(t)||(n=t||n,t=[]);for(var r=(n=n||{}).strict,a=!1!==n.end,i="",o=0;o<e.length;o++){var s=e[o];if("string"==typeof s)i+=Y(s);else{var l=Y(s.prefix),c="(?:"+s.pattern+")";t.push(s),s.repeat&&(c+="(?:"+l+c+")*"),i+=c=s.optional?s.partial?l+"("+c+")?":"(?:"+l+"("+c+"))?":l+"("+c+")"}}var u=Y(n.delimiter||"/"),d=i.slice(-u.length)===u;return r||(i=(d?i.slice(0,-u.length):i)+"(?:"+u+"(?=$))?"),i+=a?"$":r&&d?"":"(?="+u+"|$)",z(new RegExp("^"+i,I(n)),t)}function H(e,t,n){return S(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return z(e,t)}(e,t):S(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(H(e[a],t,n).source);return z(new RegExp("(?:"+r.join("|")+")",I(n)),t)}(e,t,n):function(e,t,n){return F(j(e,n),t,n)}(e,t,n)}C.parse=L,C.compile=T,C.tokensToFunction=O,C.tokensToRegExp=E;var R=Object.create(null);function B(e,t,n){try{return(R[e]||(R[e]=C.compile(e)))(t||{},{pretty:!0})}catch(e){return""}}function q(e,t,n,r){var a=t||[],i=n||Object.create(null),o=r||Object.create(null);e.forEach((function(e){V(a,i,o,e)}));for(var s=0,l=a.length;s<l;s++)"*"===a[s]&&(a.push(a.splice(s,1)[0]),l--,s--);return{pathList:a,pathMap:i,nameMap:o}}function V(e,t,n,r,a,i){var o=r.path,s=r.name;var l=function(e,t){if("/"===(e=e.replace(/\/$/,""))[0])return e;if(null==t)return e;return M(t.path+"/"+e)}(o,a),c=r.pathToRegexpOptions||{};"boolean"==typeof r.caseSensitive&&(c.sensitive=r.caseSensitive);var u={path:l,regex:W(l,c),components:r.components||{default:r.component},instances:{},name:s,parent:a,matchAs:i,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};(r.children&&r.children.forEach((function(r){var a=i?M(i+"/"+r.path):void 0;V(e,t,n,r,u,a)})),void 0!==r.alias)&&(Array.isArray(r.alias)?r.alias:[r.alias]).forEach((function(i){var o={path:i,children:r.children};V(e,t,n,o,a,u.path||"/")}));t[u.path]||(e.push(u.path),t[u.path]=u),s&&(n[s]||(n[s]=u))}function W(e,t){return C(e,[],t)}function U(e,t,n,r){var a="string"==typeof e?{path:e}:e;if(a.name||a._normalized)return a;if(!a.path&&a.params&&t){(a=K({},a))._normalized=!0;var i=K(K({},t.params),a.params);if(t.name)a.name=t.name,a.params=i;else if(t.matched.length){var o=t.matched[t.matched.length-1].path;a.path=B(o,i,t.path)}else 0;return a}var s=function(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var a=e.indexOf("?");return a>=0&&(n=e.slice(a+1),e=e.slice(0,a)),{path:e,query:n,hash:t}}(a.path||""),l=t&&t.path||"/",c=s.path?D(s.path,l,n||a.append):l,d=function(e,t,n){void 0===t&&(t={});var r,a=n||u;try{r=a(e||"")}catch(e){r={}}for(var i in t){var o=t[i];r[i]=Array.isArray(o)?o.slice():o}return r}(s.query,a.query,r&&r.options.parseQuery),p=a.hash||s.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:c,query:d,hash:p}}function K(e,t){for(var n in t)e[n]=t[n];return e}function Z(e,t){var n=q(e),r=n.pathList,a=n.pathMap,i=n.nameMap;function o(e,n,o){var s=U(e,n,!1,t),c=s.name;if(c){var u=i[c];if(!u)return l(null,s);var d=u.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in s.params)&&d.indexOf(p)>-1&&(s.params[p]=n.params[p]);if(u)return s.path=B(u.path,s.params),l(u,s,o)}else if(s.path){s.params={};for(var m=0;m<r.length;m++){var f=r[m],h=a[f];if(G(h.regex,s.path,s.params))return l(h,s,o)}}return l(null,s)}function s(e,n){var r=e.redirect,a="function"==typeof r?r(m(e,n,null,t)):r;if("string"==typeof a&&(a={path:a}),!a||"object"!=typeof a)return l(null,n);var s=a,c=s.name,u=s.path,d=n.query,p=n.hash,f=n.params;if(d=s.hasOwnProperty("query")?s.query:d,p=s.hasOwnProperty("hash")?s.hash:p,f=s.hasOwnProperty("params")?s.params:f,c){i[c];return o({_normalized:!0,name:c,query:d,hash:p,params:f},void 0,n)}if(u){var h=function(e,t){return D(e,t.parent?t.parent.path:"/",!0)}(u,e);return o({_normalized:!0,path:B(h,f),query:d,hash:p},void 0,n)}return l(null,n)}function l(e,n,r){return e&&e.redirect?s(e,r||n):e&&e.matchAs?function(e,t,n){var r=o({_normalized:!0,path:B(n,t.params)});if(r){var a=r.matched,i=a[a.length-1];return t.params=r.params,l(i,t)}return l(null,t)}(0,n,e.matchAs):m(e,n,r,t)}return{match:o,addRoutes:function(e){q(e,r,a,i)}}}function G(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var a=1,i=r.length;a<i;++a){var o=e.keys[a-1],s="string"==typeof r[a]?decodeURIComponent(r[a]):r[a];o&&(n[o.name]=s)}return!0}var J=Object.create(null);function X(){window.addEventListener("popstate",(function(e){var t;ee(),e.state&&e.state.key&&(t=e.state.key,se=t)}))}function Q(e,t,n,r){if(e.app){var a=e.options.scrollBehavior;a&&e.app.$nextTick((function(){var e=function(){var e=ce();if(e)return J[e]}(),i=a(t,n,r?e:null);if(i){var o,s="object"==typeof i;if(s&&"string"==typeof i.selector){var l=document.querySelector(i.selector);if(l){var c=i.offset&&"object"==typeof i.offset?i.offset:{};e=function(e,t){var n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-n.left-t.x,y:r.top-n.top-t.y}}(l,c={x:re((o=c).x)?o.x:0,y:re(o.y)?o.y:0})}else te(i)&&(e=ne(i))}else s&&te(i)&&(e=ne(i));e&&window.scrollTo(e.x,e.y)}}))}}function ee(){var e=ce();e&&(J[e]={x:window.pageXOffset,y:window.pageYOffset})}function te(e){return re(e.x)||re(e.y)}function ne(e){return{x:re(e.x)?e.x:window.pageXOffset,y:re(e.y)?e.y:window.pageYOffset}}function re(e){return"number"==typeof e}var ae,ie=k&&((-1===(ae=window.navigator.userAgent).indexOf("Android 2.")&&-1===ae.indexOf("Android 4.0")||-1===ae.indexOf("Mobile Safari")||-1!==ae.indexOf("Chrome")||-1!==ae.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history),oe=k&&window.performance&&window.performance.now?window.performance:Date,se=le();function le(){return oe.now().toFixed(3)}function ce(){return se}function ue(e,t){ee();var n=window.history;try{t?n.replaceState({key:se},"",e):(se=le(),n.pushState({key:se},"",e))}catch(n){window.location[t?"replace":"assign"](e)}}function de(e){ue(e,!0)}function pe(e,t,n){var r=function(a){a>=e.length?n():e[a]?t(e[a],(function(){r(a+1)})):r(a+1)};r(0)}function me(e,t){return fe(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function fe(e){return Array.prototype.concat.apply([],e)}function he(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var _e=function(e,t){this.router=e,this.base=function(e){if(!e)if(k){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=f,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function ve(e,t,n,r){var a=me(e,(function(e,r,a,i){var o=function(e,t){"function"!=typeof e&&(e=y.extend(e));return e.options[t]}(e,t);if(o)return Array.isArray(o)?o.map((function(e){return n(e,r,a,i)})):n(o,r,a,i)}));return fe(r?a.reverse():a)}function ge(e,t){if(t)return function(){return e.apply(t,arguments)}}function ye(e,t,n,r){t[n]?e(t[n]):r()&&setTimeout((function(){ye(e,t,n,r)}),16)}_e.prototype.listen=function(e){this.cb=e},_e.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},_e.prototype.onError=function(e){this.errorCbs.push(e)},_e.prototype.transitionTo=function(e,t,n){var r=this,a=this.router.match(e,this.current);this.confirmTransition(a,(function(){r.updateRoute(a),t&&t(a),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(a)})))}),(function(e){n&&n(e),e&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)})))}))},_e.prototype.confirmTransition=function(e,t,n){var a=this,i=this.current,o=function(e){r(e)&&(a.errorCbs.length?a.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)};if(v(e,i)&&e.matched.length===i.matched.length)return this.ensureURL(),o();var s,l=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r&&e[n]===t[n];n++);return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}(this.current.matched,e.matched),c=l.updated,u=l.deactivated,d=l.activated,p=[].concat(function(e){return ve(e,"beforeRouteLeave",ge,!0)}(u),this.router.beforeHooks,function(e){return ve(e,"beforeRouteUpdate",ge)}(c),d.map((function(e){return e.beforeEnter})),(s=d,function(e,t,n){var a=!1,i=0,o=null;me(s,(function(e,t,s,l){if("function"==typeof e&&void 0===e.cid){a=!0,i++;var c,u=he((function(t){t.__esModule&&t.default&&(t=t.default),e.resolved="function"==typeof t?t:y.extend(t),s.components[l]=t,--i<=0&&n()})),d=he((function(e){var t="Failed to resolve async component "+l+": "+e;o||(o=r(e)?e:new Error(t),n(o))}));try{c=e(u,d)}catch(e){d(e)}if(c)if("function"==typeof c.then)c.then(u,d);else{var p=c.component;p&&"function"==typeof p.then&&p.then(u,d)}}})),a||n()}));this.pending=e;var m=function(t,n){if(a.pending!==e)return o();try{t(e,i,(function(e){!1===e||r(e)?(a.ensureURL(!0),o(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(o(),"object"==typeof e&&e.replace?a.replace(e):a.push(e)):n(e)}))}catch(e){o(e)}};pe(p,m,(function(){var n=[];pe(function(e,t,n){return ve(e,"beforeRouteEnter",(function(e,r,a,i){return function(e,t,n,r,a){return function(i,o,s){return e(i,o,(function(e){s(e),"function"==typeof e&&r.push((function(){ye(e,t.instances,n,a)}))}))}}(e,a,i,t,n)}))}(d,n,(function(){return a.current===e})).concat(a.router.resolveHooks),m,(function(){if(a.pending!==e)return o();a.pending=null,t(e),a.router.app&&a.router.app.$nextTick((function(){n.forEach((function(e){e()}))}))}))}))},_e.prototype.updateRoute=function(e){var t=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach((function(n){n&&n(e,t)}))};var be=function(e){function t(t,n){var r=this;e.call(this,t,n);var a=t.options.scrollBehavior;a&&X(),window.addEventListener("popstate",(function(e){var n=r.current;r.transitionTo(we(r.base),(function(e){a&&Q(t,e,n,!0)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,a=this.current;this.transitionTo(e,(function(e){ue(M(r.base+e.fullPath)),Q(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,a=this.current;this.transitionTo(e,(function(e){de(M(r.base+e.fullPath)),Q(r.router,e,a,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(we(this.base)!==this.current.fullPath){var t=M(this.base+this.current.fullPath);e?ue(t):de(t)}},t.prototype.getCurrentLocation=function(){return we(this.base)},t}(_e);function we(e){var t=window.location.pathname;return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var xe=function(e){function t(t,n,r){e.call(this,t,n),r&&function(e){var t=we(e);if(!/^\/#/.test(t))return window.location.replace(M(e+"/#"+t)),!0}(this.base)||ke()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;window.addEventListener("hashchange",(function(){ke()&&e.transitionTo(De(),(function(e){Se(e.fullPath)}))}))},t.prototype.push=function(e,t,n){this.transitionTo(e,(function(e){Me(e.fullPath),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){this.transitionTo(e,(function(e){Se(e.fullPath),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;De()!==t&&(e?Me(t):Se(t))},t.prototype.getCurrentLocation=function(){return De()},t}(_e);function ke(){var e=De();return"/"===e.charAt(0)||(Se("/"+e),!1)}function De(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.slice(t+1)}function Me(e){window.location.hash=e}function Se(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;window.location.replace(r+"#"+e)}var Ce=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){t.index=n,t.updateRoute(r)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(_e),Le=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Z(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!ie&&!1!==e.fallback,this.fallback&&(t="hash"),k||(t="abstract"),this.mode=t,t){case"history":this.history=new be(this,e.base);break;case"hash":this.history=new xe(this,e.base,this.fallback);break;case"abstract":this.history=new Ce(this,e.base);break;default:0}},Te={currentRoute:{}};function Oe(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}Le.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Te.currentRoute.get=function(){return this.history&&this.history.current},Le.prototype.init=function(e){var t=this;if(this.apps.push(e),!this.app){this.app=e;var n=this.history;if(n instanceof be)n.transitionTo(n.getCurrentLocation());else if(n instanceof xe){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},Le.prototype.beforeEach=function(e){return Oe(this.beforeHooks,e)},Le.prototype.beforeResolve=function(e){return Oe(this.resolveHooks,e)},Le.prototype.afterEach=function(e){return Oe(this.afterHooks,e)},Le.prototype.onReady=function(e,t){this.history.onReady(e,t)},Le.prototype.onError=function(e){this.history.onError(e)},Le.prototype.push=function(e,t,n){this.history.push(e,t,n)},Le.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},Le.prototype.go=function(e){this.history.go(e)},Le.prototype.back=function(){this.go(-1)},Le.prototype.forward=function(){this.go(1)},Le.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},Le.prototype.resolve=function(e,t,n){var r=U(e,t||this.history.current,n,this),a=this.match(r,t),i=a.redirectedFrom||a.fullPath;return{location:r,route:a,href:function(e,t,n){var r="hash"===n?"#"+t:t;return e?M(e+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:a}},Le.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==f&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Le.prototype,Te),Le.install=function e(t){if(!e.installed){e.installed=!0,y=t;var n=function(e){return void 0!==e},r=function(e,t){var r=e.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("router-view",a),t.component("router-link",b);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Le.version="2.7.0",k&&window.Vue&&window.Vue.use(Le);const Ee=Le},538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>gs});var r=Object.freeze({});function a(e){return null==e}function i(e){return null!=e}function o(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return null!==e&&"object"==typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function d(e){return"[object RegExp]"===c.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function m(e){return i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function _(e,t){for(var n=Object.create(null),r=e.split(","),a=0;a<r.length;a++)n[r[a]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var v=_("slot,component",!0),g=_("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(e,t){return b.call(e,t)}function x(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var k=/-(\w)/g,D=x((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),M=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),S=/\B([A-Z])/g,C=x((function(e){return e.replace(S,"-$1").toLowerCase()}));var L=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function T(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function O(e,t){for(var n in t)e[n]=t[n];return e}function E(e){for(var t={},n=0;n<e.length;n++)e[n]&&O(t,e[n]);return t}function A(e,t,n){}var j=function(e,t,n){return!1},$=function(e){return e};function P(e,t){if(e===t)return!0;var n=l(e),r=l(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var a=Array.isArray(e),i=Array.isArray(t);if(a&&i)return e.length===t.length&&e.every((function(e,n){return P(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(a||i)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return P(e[n],t[n])}))}catch(e){return!1}}function Y(e,t){for(var n=0;n<e.length;n++)if(P(e[n],t))return n;return-1}function N(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var z="data-server-rendered",I=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:j,isReservedAttr:j,isUnknownElement:j,getTagNamespace:A,parsePlatformTagName:$,mustUseProp:j,async:!0,_lifecycleHooks:F},R=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function B(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function q(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var V=new RegExp("[^"+R.source+".$_\\d]");var W,U="__proto__"in{},K="undefined"!=typeof window,Z="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,G=Z&&WXEnvironment.platform.toLowerCase(),J=K&&window.navigator.userAgent.toLowerCase(),X=J&&/msie|trident/.test(J),Q=J&&J.indexOf("msie 9.0")>0,ee=J&&J.indexOf("edge/")>0,te=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===G),ne=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),re={}.watch,ae=!1;if(K)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var oe=function(){return void 0===W&&(W=!K&&!Z&&void 0!==n.g&&(n.g.process&&"server"===n.g.process.env.VUE_ENV)),W},se=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}var ce,ue="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);ce="undefined"!=typeof Set&&le(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=A,pe=0,me=function(){this.id=pe++,this.subs=[]};me.prototype.addSub=function(e){this.subs.push(e)},me.prototype.removeSub=function(e){y(this.subs,e)},me.prototype.depend=function(){me.target&&me.target.addDep(this)},me.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},me.target=null;var fe=[];function he(e){fe.push(e),me.target=e}function _e(){fe.pop(),me.target=fe[fe.length-1]}var ve=function(e,t,n,r,a,i,o,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=a,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ge={child:{configurable:!0}};ge.child.get=function(){return this.componentInstance},Object.defineProperties(ve.prototype,ge);var ye=function(e){void 0===e&&(e="");var t=new ve;return t.text=e,t.isComment=!0,t};function be(e){return new ve(void 0,void 0,void 0,String(e))}function we(e){var t=new ve(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var xe=Array.prototype,ke=Object.create(xe);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=xe[e];q(ke,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var a,i=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":a=n;break;case"splice":a=n.slice(2)}return a&&o.observeArray(a),o.dep.notify(),i}))}));var De=Object.getOwnPropertyNames(ke),Me=!0;function Se(e){Me=e}var Ce=function(e){this.value=e,this.dep=new me,this.vmCount=0,q(e,"__ob__",this),Array.isArray(e)?(U?function(e,t){e.__proto__=t}(e,ke):function(e,t,n){for(var r=0,a=n.length;r<a;r++){var i=n[r];q(e,i,t[i])}}(e,ke,De),this.observeArray(e)):this.walk(e)};function Le(e,t){var n;if(l(e)&&!(e instanceof ve))return w(e,"__ob__")&&e.__ob__ instanceof Ce?n=e.__ob__:Me&&!oe()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ce(e)),t&&n&&n.vmCount++,n}function Te(e,t,n,r,a){var i=new me,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var s=o&&o.get,l=o&&o.set;s&&!l||2!==arguments.length||(n=e[t]);var c=!a&&Le(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return me.target&&(i.depend(),c&&(c.dep.depend(),Array.isArray(t)&&Ae(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!l||(l?l.call(e,t):n=t,c=!a&&Le(t),i.notify())}})}}function Oe(e,t,n){if(Array.isArray(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Te(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Ee(e,t){if(Array.isArray(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||w(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ae(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ae(t)}Ce.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Te(e,t[n])},Ce.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Le(e[t])};var je=H.optionMergeStrategies;function $e(e,t){if(!t)return e;for(var n,r,a,i=ue?Reflect.ownKeys(t):Object.keys(t),o=0;o<i.length;o++)"__ob__"!==(n=i[o])&&(r=e[n],a=t[n],w(e,n)?r!==a&&u(r)&&u(a)&&$e(r,a):Oe(e,n,a));return e}function Pe(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,a="function"==typeof e?e.call(n,n):e;return r?$e(r,a):a}:t?e?function(){return $e("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Ye(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ne(e,t,n,r){var a=Object.create(e||null);return t?O(a,t):a}je.data=function(e,t,n){return n?Pe(e,t,n):t&&"function"!=typeof t?e:Pe(e,t)},F.forEach((function(e){je[e]=Ye})),I.forEach((function(e){je[e+"s"]=Ne})),je.watch=function(e,t,n,r){if(e===re&&(e=void 0),t===re&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var a={};for(var i in O(a,e),t){var o=a[i],s=t[i];o&&!Array.isArray(o)&&(o=[o]),a[i]=o?o.concat(s):Array.isArray(s)?s:[s]}return a},je.props=je.methods=je.inject=je.computed=function(e,t,n,r){if(!e)return t;var a=Object.create(null);return O(a,e),t&&O(a,t),a},je.provide=Pe;var ze=function(e,t){return void 0===t?e:t};function Ie(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,a,i={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(a=n[r])&&(i[D(a)]={type:null});else if(u(n))for(var o in n)a=n[o],i[D(o)]=u(a)?a:{type:a};e.props=i}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var a=0;a<n.length;a++)r[n[a]]={from:n[a]};else if(u(n))for(var i in n){var o=n[i];r[i]=u(o)?O({from:i},o):{from:o}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Ie(e,t.extends,n)),t.mixins))for(var r=0,a=t.mixins.length;r<a;r++)e=Ie(e,t.mixins[r],n);var i,o={};for(i in e)s(i);for(i in t)w(e,i)||s(i);function s(r){var a=je[r]||ze;o[r]=a(e[r],t[r],n,r)}return o}function Fe(e,t,n,r){if("string"==typeof n){var a=e[t];if(w(a,n))return a[n];var i=D(n);if(w(a,i))return a[i];var o=M(i);return w(a,o)?a[o]:a[n]||a[i]||a[o]}}function He(e,t,n,r){var a=t[e],i=!w(n,e),o=n[e],s=qe(Boolean,a.type);if(s>-1)if(i&&!w(a,"default"))o=!1;else if(""===o||o===C(e)){var l=qe(String,a.type);(l<0||s<l)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!w(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==Re(t.type)?r.call(e):r}(r,a,e);var c=Me;Se(!0),Le(o),Se(c)}return o}function Re(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Be(e,t){return Re(e)===Re(t)}function qe(e,t){if(!Array.isArray(t))return Be(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Be(t[n],e))return n;return-1}function Ve(e,t,n){he();try{if(t)for(var r=t;r=r.$parent;){var a=r.$options.errorCaptured;if(a)for(var i=0;i<a.length;i++)try{if(!1===a[i].call(r,e,t,n))return}catch(e){Ue(e,r,"errorCaptured hook")}}Ue(e,t,n)}finally{_e()}}function We(e,t,n,r,a){var i;try{(i=n?e.apply(t,n):e.call(t))&&!i._isVue&&m(i)&&!i._handled&&(i.catch((function(e){return Ve(e,r,a+" (Promise/async)")})),i._handled=!0)}catch(e){Ve(e,r,a)}return i}function Ue(e,t,n){if(H.errorHandler)try{return H.errorHandler.call(null,e,t,n)}catch(t){t!==e&&Ke(t,null,"config.errorHandler")}Ke(e,t,n)}function Ke(e,t,n){if(!K&&!Z||"undefined"==typeof console)throw e;console.error(e)}var Ze,Ge=!1,Je=[],Xe=!1;function Qe(){Xe=!1;var e=Je.slice(0);Je.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&le(Promise)){var et=Promise.resolve();Ze=function(){et.then(Qe),te&&setTimeout(A)},Ge=!0}else if(X||"undefined"==typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ze="undefined"!=typeof setImmediate&&le(setImmediate)?function(){setImmediate(Qe)}:function(){setTimeout(Qe,0)};else{var tt=1,nt=new MutationObserver(Qe),rt=document.createTextNode(String(tt));nt.observe(rt,{characterData:!0}),Ze=function(){tt=(tt+1)%2,rt.data=String(tt)},Ge=!0}function at(e,t){var n;if(Je.push((function(){if(e)try{e.call(t)}catch(e){Ve(e,t,"nextTick")}else n&&n(t)})),Xe||(Xe=!0,Ze()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}var it=new ce;function ot(e){st(e,it),it.clear()}function st(e,t){var n,r,a=Array.isArray(e);if(!(!a&&!l(e)||Object.isFrozen(e)||e instanceof ve)){if(e.__ob__){var i=e.__ob__.dep.id;if(t.has(i))return;t.add(i)}if(a)for(n=e.length;n--;)st(e[n],t);else for(n=(r=Object.keys(e)).length;n--;)st(e[r[n]],t)}}var lt=x((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function ct(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return We(r,null,arguments,t,"v-on handler");for(var a=r.slice(),i=0;i<a.length;i++)We(a[i],null,e,t,"v-on handler")}return n.fns=e,n}function ut(e,t,n,r,i,s){var l,c,u,d;for(l in e)c=e[l],u=t[l],d=lt(l),a(c)||(a(u)?(a(c.fns)&&(c=e[l]=ct(c,s)),o(d.once)&&(c=e[l]=i(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)a(e[l])&&r((d=lt(l)).name,t[l],d.capture)}function dt(e,t,n){var r;e instanceof ve&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),y(r.fns,l)}a(s)?r=ct([l]):i(s.fns)&&o(s.merged)?(r=s).fns.push(l):r=ct([s,l]),r.merged=!0,e[t]=r}function pt(e,t,n,r,a){if(i(t)){if(w(t,n))return e[n]=t[n],a||delete t[n],!0;if(w(t,r))return e[n]=t[r],a||delete t[r],!0}return!1}function mt(e){return s(e)?[be(e)]:Array.isArray(e)?ht(e):void 0}function ft(e){return i(e)&&i(e.text)&&!1===e.isComment}function ht(e,t){var n,r,l,c,u=[];for(n=0;n<e.length;n++)a(r=e[n])||"boolean"==typeof r||(c=u[l=u.length-1],Array.isArray(r)?r.length>0&&(ft((r=ht(r,(t||"")+"_"+n))[0])&&ft(c)&&(u[l]=be(c.text+r[0].text),r.shift()),u.push.apply(u,r)):s(r)?ft(c)?u[l]=be(c.text+r):""!==r&&u.push(be(r)):ft(r)&&ft(c)?u[l]=be(c.text+r.text):(o(e._isVList)&&i(r.tag)&&a(r.key)&&i(t)&&(r.key="__vlist"+t+"_"+n+"__"),u.push(r)));return u}function _t(e,t){if(e){for(var n=Object.create(null),r=ue?Reflect.ownKeys(e):Object.keys(e),a=0;a<r.length;a++){var i=r[a];if("__ob__"!==i){for(var o=e[i].from,s=t;s;){if(s._provided&&w(s._provided,o)){n[i]=s._provided[o];break}s=s.$parent}if(!s)if("default"in e[i]){var l=e[i].default;n[i]="function"==typeof l?l.call(t):l}else 0}}return n}}function vt(e,t){if(!e||!e.length)return{};for(var n={},r=0,a=e.length;r<a;r++){var i=e[r],o=i.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,i.context!==t&&i.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(i);else{var s=o.slot,l=n[s]||(n[s]=[]);"template"===i.tag?l.push.apply(l,i.children||[]):l.push(i)}}for(var c in n)n[c].every(gt)&&delete n[c];return n}function gt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function yt(e,t,n){var a,i=Object.keys(t).length>0,o=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==r&&s===n.$key&&!i&&!n.$hasNormal)return n;for(var l in a={},e)e[l]&&"$"!==l[0]&&(a[l]=bt(t,l,e[l]))}else a={};for(var c in t)c in a||(a[c]=wt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=a),q(a,"$stable",o),q(a,"$key",s),q(a,"$hasNormal",i),a}function bt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:mt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function wt(e,t){return function(){return e[t]}}function xt(e,t){var n,r,a,o,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,a=e.length;r<a;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(l(e))if(ue&&e[Symbol.iterator]){n=[];for(var c=e[Symbol.iterator](),u=c.next();!u.done;)n.push(t(u.value,n.length)),u=c.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,a=o.length;r<a;r++)s=o[r],n[r]=t(e[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function kt(e,t,n,r){var a,i=this.$scopedSlots[e];i?(n=n||{},r&&(n=O(O({},r),n)),a=i(n)||t):a=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},a):a}function Dt(e){return Fe(this.$options,"filters",e)||$}function Mt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function St(e,t,n,r,a){var i=H.keyCodes[t]||n;return a&&r&&!H.keyCodes[t]?Mt(a,r):i?Mt(i,e):r?C(r)!==t:void 0}function Ct(e,t,n,r,a){if(n)if(l(n)){var i;Array.isArray(n)&&(n=E(n));var o=function(o){if("class"===o||"style"===o||g(o))i=e;else{var s=e.attrs&&e.attrs.type;i=r||H.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=D(o),c=C(o);l in i||c in i||(i[o]=n[o],a&&((e.on||(e.on={}))["update:"+o]=function(e){n[o]=e}))};for(var s in n)o(s)}else;return e}function Lt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||Ot(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function Tt(e,t,n){return Ot(e,"__once__"+t+(n?"_"+n:""),!0),e}function Ot(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Et(e[r],t+"_"+r,n);else Et(e,t,n)}function Et(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function At(e,t){if(t)if(u(t)){var n=e.on=e.on?O({},e.on):{};for(var r in t){var a=n[r],i=t[r];n[r]=a?[].concat(a,i):i}}else;return e}function jt(e,t,n,r){t=t||{$stable:!n};for(var a=0;a<e.length;a++){var i=e[a];Array.isArray(i)?jt(i,t,n):i&&(i.proxy&&(i.fn.proxy=!0),t[i.key]=i.fn)}return r&&(t.$key=r),t}function $t(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Pt(e,t){return"string"==typeof e?t+e:e}function Yt(e){e._o=Tt,e._n=h,e._s=f,e._l=xt,e._t=kt,e._q=P,e._i=Y,e._m=Lt,e._f=Dt,e._k=St,e._b=Ct,e._v=be,e._e=ye,e._u=jt,e._g=At,e._d=$t,e._p=Pt}function Nt(e,t,n,a,i){var s,l=this,c=i.options;w(a,"_uid")?(s=Object.create(a))._original=a:(s=a,a=a._original);var u=o(c._compiled),d=!u;this.data=e,this.props=t,this.children=n,this.parent=a,this.listeners=e.on||r,this.injections=_t(c.inject,a),this.slots=function(){return l.$slots||yt(e.scopedSlots,l.$slots=vt(n,a)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return yt(e.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=yt(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,r){var i=qt(s,e,t,n,r,d);return i&&!Array.isArray(i)&&(i.fnScopeId=c._scopeId,i.fnContext=a),i}:this._c=function(e,t,n,r){return qt(s,e,t,n,r,d)}}function zt(e,t,n,r,a){var i=we(e);return i.fnContext=n,i.fnOptions=r,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function It(e,t){for(var n in t)e[D(n)]=t[n]}Yt(Nt.prototype);var Ft={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Ft.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,tn)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,a,i){0;var o=a.data.scopedSlots,s=e.$scopedSlots,l=!!(o&&!o.$stable||s!==r&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(i||e.$options._renderChildren||l);e.$options._parentVnode=a,e.$vnode=a,e._vnode&&(e._vnode.parent=a);if(e.$options._renderChildren=i,e.$attrs=a.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){Se(!1);for(var u=e._props,d=e.$options._propKeys||[],p=0;p<d.length;p++){var m=d[p],f=e.$options.props;u[m]=He(m,f,t,e)}Se(!0),e.$options.propsData=t}n=n||r;var h=e.$options._parentListeners;e.$options._parentListeners=n,en(e,n,h),c&&(e.$slots=vt(i,a.context),e.$forceUpdate());0}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,sn(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,cn.push(t)):an(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?on(t,!0):t.$destroy())}},Ht=Object.keys(Ft);function Rt(e,t,n,s,c){if(!a(e)){var u=n.$options._base;if(l(e)&&(e=u.extend(e)),"function"==typeof e){var d;if(a(e.cid)&&void 0===(e=function(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=Ut;n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n);if(o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var r=e.owners=[n],s=!0,c=null,u=null;n.$on("hook:destroyed",(function(){return y(r,n)}));var d=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},p=N((function(n){e.resolved=Kt(n,t),s?r.length=0:d(!0)})),f=N((function(t){i(e.errorComp)&&(e.error=!0,d(!0))})),h=e(p,f);return l(h)&&(m(h)?a(e.resolved)&&h.then(p,f):m(h.component)&&(h.component.then(p,f),i(h.error)&&(e.errorComp=Kt(h.error,t)),i(h.loading)&&(e.loadingComp=Kt(h.loading,t),0===h.delay?e.loading=!0:c=setTimeout((function(){c=null,a(e.resolved)&&a(e.error)&&(e.loading=!0,d(!1))}),h.delay||200)),i(h.timeout)&&(u=setTimeout((function(){u=null,a(e.resolved)&&f(null)}),h.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}(d=e,u)))return function(e,t,n,r,a){var i=ye();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:a},i}(d,t,n,s,c);t=t||{},Tn(e),i(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var a=t.on||(t.on={}),o=a[r],s=t.model.callback;i(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(a[r]=[s].concat(o)):a[r]=s}(e.options,t);var p=function(e,t,n){var r=t.options.props;if(!a(r)){var o={},s=e.attrs,l=e.props;if(i(s)||i(l))for(var c in r){var u=C(c);pt(o,l,c,u,!0)||pt(o,s,c,u,!1)}return o}}(t,e);if(o(e.options.functional))return function(e,t,n,a,o){var s=e.options,l={},c=s.props;if(i(c))for(var u in c)l[u]=He(u,c,t||r);else i(n.attrs)&&It(l,n.attrs),i(n.props)&&It(l,n.props);var d=new Nt(n,l,o,a,e),p=s.render.call(null,d._c,d);if(p instanceof ve)return zt(p,n,d.parent,s);if(Array.isArray(p)){for(var m=mt(p)||[],f=new Array(m.length),h=0;h<m.length;h++)f[h]=zt(m[h],n,d.parent,s);return f}}(e,p,t,n,s);var f=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var h=t.slot;t={},h&&(t.slot=h)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Ht.length;n++){var r=Ht[n],a=t[r],i=Ft[r];a===i||a&&a._merged||(t[r]=a?Bt(i,a):i)}}(t);var _=e.options.name||c;return new ve("vue-component-"+e.cid+(_?"-"+_:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:p,listeners:f,tag:c,children:s},d)}}}function Bt(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function qt(e,t,n,r,a,c){return(Array.isArray(n)||s(n))&&(a=r,r=n,n=void 0),o(c)&&(a=2),function(e,t,n,r,a){if(i(n)&&i(n.__ob__))return ye();i(n)&&i(n.is)&&(t=n.is);if(!t)return ye();0;Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);2===a?r=mt(r):1===a&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var o,s;if("string"==typeof t){var c;s=e.$vnode&&e.$vnode.ns||H.getTagNamespace(t),o=H.isReservedTag(t)?new ve(H.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!i(c=Fe(e.$options,"components",t))?new ve(t,n,r,void 0,void 0,e):Rt(c,n,e,r,t)}else o=Rt(t,n,e,r);return Array.isArray(o)?o:i(o)?(i(s)&&Vt(o,s),i(n)&&function(e){l(e.style)&&ot(e.style);l(e.class)&&ot(e.class)}(n),o):ye()}(e,t,n,r,a)}function Vt(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var r=0,s=e.children.length;r<s;r++){var l=e.children[r];i(l.tag)&&(a(l.ns)||o(n)&&"svg"!==l.tag)&&Vt(l,t,n)}}var Wt,Ut=null;function Kt(e,t){return(e.__esModule||ue&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function Zt(e){return e.isComment&&e.asyncFactory}function Gt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||Zt(n)))return n}}function Jt(e,t){Wt.$on(e,t)}function Xt(e,t){Wt.$off(e,t)}function Qt(e,t){var n=Wt;return function r(){var a=t.apply(null,arguments);null!==a&&n.$off(e,r)}}function en(e,t,n){Wt=e,ut(t,n||{},Jt,Xt,Qt,e),Wt=void 0}var tn=null;function nn(e){var t=tn;return tn=e,function(){tn=t}}function rn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function an(e,t){if(t){if(e._directInactive=!1,rn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)an(e.$children[n]);sn(e,"activated")}}function on(e,t){if(!(t&&(e._directInactive=!0,rn(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)on(e.$children[n]);sn(e,"deactivated")}}function sn(e,t){he();var n=e.$options[t],r=t+" hook";if(n)for(var a=0,i=n.length;a<i;a++)We(n[a],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),_e()}var ln=[],cn=[],un={},dn=!1,pn=!1,mn=0;var fn=0,hn=Date.now;if(K&&!X){var _n=window.performance;_n&&"function"==typeof _n.now&&hn()>document.createEvent("Event").timeStamp&&(hn=function(){return _n.now()})}function vn(){var e,t;for(fn=hn(),pn=!0,ln.sort((function(e,t){return e.id-t.id})),mn=0;mn<ln.length;mn++)(e=ln[mn]).before&&e.before(),t=e.id,un[t]=null,e.run();var n=cn.slice(),r=ln.slice();mn=ln.length=cn.length=0,un={},dn=pn=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,an(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&sn(r,"updated")}}(r),se&&H.devtools&&se.emit("flush")}var gn=0,yn=function(e,t,n,r,a){this.vm=e,a&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++gn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ce,this.newDepIds=new ce,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!V.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=A)),this.value=this.lazy?void 0:this.get()};yn.prototype.get=function(){var e;he(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Ve(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ot(e),_e(),this.cleanupDeps()}return e},yn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},yn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},yn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==un[t]){if(un[t]=!0,pn){for(var n=ln.length-1;n>mn&&ln[n].id>e.id;)n--;ln.splice(n+1,0,e)}else ln.push(e);dn||(dn=!0,at(vn))}}(this)},yn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ve(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},yn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},yn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},yn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var bn={enumerable:!0,configurable:!0,get:A,set:A};function wn(e,t,n){bn.get=function(){return this[t][n]},bn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,bn)}function xn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},a=e.$options._propKeys=[];e.$parent&&Se(!1);var i=function(i){a.push(i);var o=He(i,t,n,e);Te(r,i,o),i in e||wn(e,"_props",i)};for(var o in t)i(o);Se(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?A:L(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){he();try{return e.call(t,t)}catch(e){return Ve(e,t,"data()"),{}}finally{_e()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,a=(e.$options.methods,n.length);for(;a--;){var i=n[a];0,r&&w(r,i)||B(i)||wn(e,"_data",i)}Le(t,!0)}(e):Le(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=oe();for(var a in t){var i=t[a],o="function"==typeof i?i:i.get;0,r||(n[a]=new yn(e,o||A,A,kn)),a in e||Dn(e,a,i)}}(e,t.computed),t.watch&&t.watch!==re&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var a=0;a<r.length;a++)Cn(e,n,r[a]);else Cn(e,n,r)}}(e,t.watch)}var kn={lazy:!0};function Dn(e,t,n){var r=!oe();"function"==typeof n?(bn.get=r?Mn(t):Sn(n),bn.set=A):(bn.get=n.get?r&&!1!==n.cache?Mn(t):Sn(n.get):A,bn.set=n.set||A),Object.defineProperty(e,t,bn)}function Mn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),me.target&&t.depend(),t.value}}function Sn(e){return function(){return e.call(this,this)}}function Cn(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var Ln=0;function Tn(e){var t=e.options;if(e.super){var n=Tn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var a in n)n[a]!==r[a]&&(t||(t={}),t[a]=n[a]);return t}(e);r&&O(e.extendOptions,r),(t=e.options=Ie(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function On(e){this._init(e)}function En(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,a=e._Ctor||(e._Ctor={});if(a[r])return a[r];var i=e.name||n.options.name;var o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=Ie(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)wn(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)Dn(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,I.forEach((function(e){o[e]=n[e]})),i&&(o.options.components[i]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=O({},o.options),a[r]=o,o}}function An(e){return e&&(e.Ctor.options.name||e.tag)}function jn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function $n(e,t){var n=e.cache,r=e.keys,a=e._vnode;for(var i in n){var o=n[i];if(o){var s=An(o.componentOptions);s&&!t(s)&&Pn(n,i,r,a)}}}function Pn(e,t,n,r){var a=e[t];!a||r&&a.tag===r.tag||a.componentInstance.$destroy(),e[t]=null,y(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Ln++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var a=r.componentOptions;n.propsData=a.propsData,n._parentListeners=a.listeners,n._renderChildren=a.children,n._componentTag=a.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Ie(Tn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&en(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,a=n&&n.context;e.$slots=vt(t._renderChildren,a),e.$scopedSlots=r,e._c=function(t,n,r,a){return qt(e,t,n,r,a,!1)},e.$createElement=function(t,n,r,a){return qt(e,t,n,r,a,!0)};var i=n&&n.data;Te(e,"$attrs",i&&i.attrs||r,null,!0),Te(e,"$listeners",t._parentListeners||r,null,!0)}(t),sn(t,"beforeCreate"),function(e){var t=_t(e.$options.inject,e);t&&(Se(!1),Object.keys(t).forEach((function(n){Te(e,n,t[n])})),Se(!0))}(t),xn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),sn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(On),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Oe,e.prototype.$delete=Ee,e.prototype.$watch=function(e,t,n){var r=this;if(u(t))return Cn(r,e,t,n);(n=n||{}).user=!0;var a=new yn(r,e,t,n);if(n.immediate)try{t.call(r,a.value)}catch(e){Ve(e,r,'callback for immediate watcher "'+a.expression+'"')}return function(){a.teardown()}}}(On),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var a=0,i=e.length;a<i;a++)r.$on(e[a],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,a=e.length;r<a;r++)n.$off(e[r],t);return n}var i,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;for(var s=o.length;s--;)if((i=o[s])===t||i.fn===t){o.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?T(n):n;for(var r=T(arguments,1),a='event handler for "'+e+'"',i=0,o=n.length;i<o;i++)We(n[i],t,r,t,a)}return t}}(On),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,a=n._vnode,i=nn(n);n._vnode=e,n.$el=a?n.__patch__(a,e):n.__patch__(n.$el,e,t,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){sn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),sn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(On),function(e){Yt(e.prototype),e.prototype.$nextTick=function(e){return at(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,a=n._parentVnode;a&&(t.$scopedSlots=yt(a.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=a;try{Ut=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){Ve(n,t,"render"),e=t._vnode}finally{Ut=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ve||(e=ye()),e.parent=a,e}}(On);var Yn=[String,RegExp,Array],Nn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Yn,exclude:Yn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Pn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){$n(e,(function(e){return jn(t,e)}))})),this.$watch("exclude",(function(t){$n(e,(function(e){return!jn(t,e)}))}))},render:function(){var e=this.$slots.default,t=Gt(e),n=t&&t.componentOptions;if(n){var r=An(n),a=this.include,i=this.exclude;if(a&&(!r||!jn(a,r))||i&&r&&jn(i,r))return t;var o=this.cache,s=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;o[l]?(t.componentInstance=o[l].componentInstance,y(s,l),s.push(l)):(o[l]=t,s.push(l),this.max&&s.length>parseInt(this.max)&&Pn(o,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return H}};Object.defineProperty(e,"config",t),e.util={warn:de,extend:O,mergeOptions:Ie,defineReactive:Te},e.set=Oe,e.delete=Ee,e.nextTick=at,e.observable=function(e){return Le(e),e},e.options=Object.create(null),I.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,O(e.options.components,Nn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ie(this.options,e),this}}(e),En(e),function(e){I.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(On),Object.defineProperty(On.prototype,"$isServer",{get:oe}),Object.defineProperty(On.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(On,"FunctionalRenderContext",{value:Nt}),On.version="2.6.12";var zn=_("style,class"),In=_("input,textarea,option,select,progress"),Fn=function(e,t,n){return"value"===n&&In(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Hn=_("contenteditable,draggable,spellcheck"),Rn=_("events,caret,typing,plaintext-only"),Bn=_("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qn="http://www.w3.org/1999/xlink",Vn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Wn=function(e){return Vn(e)?e.slice(6,e.length):""},Un=function(e){return null==e||!1===e};function Kn(e){for(var t=e.data,n=e,r=e;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Zn(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=Zn(t,n.data));return function(e,t){if(i(e)||i(t))return Gn(e,Jn(t));return""}(t.staticClass,t.class)}function Zn(e,t){return{staticClass:Gn(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Gn(e,t){return e?t?e+" "+t:e:t||""}function Jn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,a=e.length;r<a;r++)i(t=Jn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):l(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Xn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Qn=_("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),er=_("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),tr=function(e){return Qn(e)||er(e)};function nr(e){return er(e)?"svg":"math"===e?"math":void 0}var rr=Object.create(null);var ar=_("text,number,password,search,email,tel,url");function ir(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var or=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Xn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),sr={create:function(e,t){lr(t)},update:function(e,t){e.data.ref!==t.data.ref&&(lr(e,!0),lr(t))},destroy:function(e){lr(e,!0)}};function lr(e,t){var n=e.data.ref;if(i(n)){var r=e.context,a=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?y(o[n],a):o[n]===a&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(a)<0&&o[n].push(a):o[n]=[a]:o[n]=a}}var cr=new ve("",{},[]),ur=["create","activate","update","remove","destroy"];function dr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,a=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===a||ar(r)&&ar(a)}(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&a(t.asyncFactory.error))}function pr(e,t,n){var r,a,o={};for(r=t;r<=n;++r)i(a=e[r].key)&&(o[a]=r);return o}var mr={create:fr,update:fr,destroy:function(e){fr(e,cr)}};function fr(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,a,i=e===cr,o=t===cr,s=_r(e.data.directives,e.context),l=_r(t.data.directives,t.context),c=[],u=[];for(n in l)r=s[n],a=l[n],r?(a.oldValue=r.value,a.oldArg=r.arg,gr(a,"update",t,e),a.def&&a.def.componentUpdated&&u.push(a)):(gr(a,"bind",t,e),a.def&&a.def.inserted&&c.push(a));if(c.length){var d=function(){for(var n=0;n<c.length;n++)gr(c[n],"inserted",t,e)};i?dt(t,"insert",d):d()}u.length&&dt(t,"postpatch",(function(){for(var n=0;n<u.length;n++)gr(u[n],"componentUpdated",t,e)}));if(!i)for(n in s)l[n]||gr(s[n],"unbind",e,e,o)}(e,t)}var hr=Object.create(null);function _r(e,t){var n,r,a=Object.create(null);if(!e)return a;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=hr),a[vr(r)]=r,r.def=Fe(t.$options,"directives",r.name);return a}function vr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function gr(e,t,n,r,a){var i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,r,a)}catch(r){Ve(r,n.context,"directive "+e.name+" "+t+" hook")}}var yr=[sr,mr];function br(e,t){var n=t.componentOptions;if(!(i(n)&&!1===n.Ctor.options.inheritAttrs||a(e.data.attrs)&&a(t.data.attrs))){var r,o,s=t.elm,l=e.data.attrs||{},c=t.data.attrs||{};for(r in i(c.__ob__)&&(c=t.data.attrs=O({},c)),c)o=c[r],l[r]!==o&&wr(s,r,o);for(r in(X||ee)&&c.value!==l.value&&wr(s,"value",c.value),l)a(c[r])&&(Vn(r)?s.removeAttributeNS(qn,Wn(r)):Hn(r)||s.removeAttribute(r))}}function wr(e,t,n){e.tagName.indexOf("-")>-1?xr(e,t,n):Bn(t)?Un(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Hn(t)?e.setAttribute(t,function(e,t){return Un(t)||"false"===t?"false":"contenteditable"===e&&Rn(t)?t:"true"}(t,n)):Vn(t)?Un(n)?e.removeAttributeNS(qn,Wn(t)):e.setAttributeNS(qn,t,n):xr(e,t,n)}function xr(e,t,n){if(Un(n))e.removeAttribute(t);else{if(X&&!Q&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var kr={create:br,update:br};function Dr(e,t){var n=t.elm,r=t.data,o=e.data;if(!(a(r.staticClass)&&a(r.class)&&(a(o)||a(o.staticClass)&&a(o.class)))){var s=Kn(t),l=n._transitionClasses;i(l)&&(s=Gn(s,Jn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Mr,Sr,Cr,Lr,Tr,Or,Er={create:Dr,update:Dr},Ar=/[\w).+\-_$\]]/;function jr(e){var t,n,r,a,i,o=!1,s=!1,l=!1,c=!1,u=0,d=0,p=0,m=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),o)39===t&&92!==n&&(o=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||d||p){switch(t){case 34:s=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===t){for(var f=r-1,h=void 0;f>=0&&" "===(h=e.charAt(f));f--);h&&Ar.test(h)||(c=!0)}}else void 0===a?(m=r+1,a=e.slice(0,r).trim()):_();function _(){(i||(i=[])).push(e.slice(m,r).trim()),m=r+1}if(void 0===a?a=e.slice(0,r).trim():0!==m&&_(),i)for(r=0;r<i.length;r++)a=$r(a,i[r]);return a}function $r(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),a=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==a?","+a:a)}function Pr(e,t){console.error("[Vue compiler]: "+e)}function Yr(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function Nr(e,t,n,r,a){(e.props||(e.props=[])).push(Wr({name:t,value:n,dynamic:a},r)),e.plain=!1}function zr(e,t,n,r,a){(a?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Wr({name:t,value:n,dynamic:a},r)),e.plain=!1}function Ir(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Wr({name:t,value:n},r))}function Fr(e,t,n,r,a,i,o,s){(e.directives||(e.directives=[])).push(Wr({name:t,rawName:n,value:r,arg:a,isDynamicArg:i,modifiers:o},s)),e.plain=!1}function Hr(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Rr(e,t,n,a,i,o,s,l){var c;(a=a||r).right?l?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete a.right):a.middle&&(l?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),a.capture&&(delete a.capture,t=Hr("!",t,l)),a.once&&(delete a.once,t=Hr("~",t,l)),a.passive&&(delete a.passive,t=Hr("&",t,l)),a.native?(delete a.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});var u=Wr({value:n.trim(),dynamic:l},s);a!==r&&(u.modifiers=a);var d=c[t];Array.isArray(d)?i?d.unshift(u):d.push(u):c[t]=d?i?[u,d]:[d,u]:u,e.plain=!1}function Br(e,t,n){var r=qr(e,":"+t)||qr(e,"v-bind:"+t);if(null!=r)return jr(r);if(!1!==n){var a=qr(e,t);if(null!=a)return JSON.stringify(a)}}function qr(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var a=e.attrsList,i=0,o=a.length;i<o;i++)if(a[i].name===t){a.splice(i,1);break}return n&&delete e.attrsMap[t],r}function Vr(e,t){for(var n=e.attrsList,r=0,a=n.length;r<a;r++){var i=n[r];if(t.test(i.name))return n.splice(r,1),i}}function Wr(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Ur(e,t,n){var r=n||{},a=r.number,i="$$v",o=i;r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),a&&(o="_n("+o+")");var s=Kr(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+s+"}"}}function Kr(e,t){var n=function(e){if(e=e.trim(),Mr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<Mr-1)return(Lr=e.lastIndexOf("."))>-1?{exp:e.slice(0,Lr),key:'"'+e.slice(Lr+1)+'"'}:{exp:e,key:null};Sr=e,Lr=Tr=Or=0;for(;!Gr();)Jr(Cr=Zr())?Qr(Cr):91===Cr&&Xr(Cr);return{exp:e.slice(0,Tr),key:e.slice(Tr+1,Or)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Zr(){return Sr.charCodeAt(++Lr)}function Gr(){return Lr>=Mr}function Jr(e){return 34===e||39===e}function Xr(e){var t=1;for(Tr=Lr;!Gr();)if(Jr(e=Zr()))Qr(e);else if(91===e&&t++,93===e&&t--,0===t){Or=Lr;break}}function Qr(e){for(var t=e;!Gr()&&(e=Zr())!==t;);}var ea,ta="__r";function na(e,t,n){var r=ea;return function a(){var i=t.apply(null,arguments);null!==i&&ia(e,a,n,r)}}var ra=Ge&&!(ne&&Number(ne[1])<=53);function aa(e,t,n,r){if(ra){var a=fn,i=t;t=i._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=a||e.timeStamp<=0||e.target.ownerDocument!==document)return i.apply(this,arguments)}}ea.addEventListener(e,t,ae?{capture:n,passive:r}:n)}function ia(e,t,n,r){(r||ea).removeEventListener(e,t._wrapper||t,n)}function oa(e,t){if(!a(e.data.on)||!a(t.data.on)){var n=t.data.on||{},r=e.data.on||{};ea=t.elm,function(e){if(i(e.__r)){var t=X?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}i(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),ut(n,r,aa,ia,na,t.context),ea=void 0}}var sa,la={create:oa,update:oa};function ca(e,t){if(!a(e.data.domProps)||!a(t.data.domProps)){var n,r,o=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in i(l.__ob__)&&(l=t.data.domProps=O({},l)),s)n in l||(o[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var c=a(r)?"":String(r);ua(o,c)&&(o.value=c)}else if("innerHTML"===n&&er(o.tagName)&&a(o.innerHTML)){(sa=sa||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var u=sa.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;u.firstChild;)o.appendChild(u.firstChild)}else if(r!==s[n])try{o[n]=r}catch(e){}}}}function ua(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return h(n)!==h(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var da={create:ca,update:ca},pa=x((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function ma(e){var t=fa(e.style);return e.staticStyle?O(e.staticStyle,t):t}function fa(e){return Array.isArray(e)?E(e):"string"==typeof e?pa(e):e}var ha,_a=/^--/,va=/\s*!important$/,ga=function(e,t,n){if(_a.test(t))e.style.setProperty(t,n);else if(va.test(n))e.style.setProperty(C(t),n.replace(va,""),"important");else{var r=ba(t);if(Array.isArray(n))for(var a=0,i=n.length;a<i;a++)e.style[r]=n[a];else e.style[r]=n}},ya=["Webkit","Moz","ms"],ba=x((function(e){if(ha=ha||document.createElement("div").style,"filter"!==(e=D(e))&&e in ha)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ya.length;n++){var r=ya[n]+t;if(r in ha)return r}}));function wa(e,t){var n=t.data,r=e.data;if(!(a(n.staticStyle)&&a(n.style)&&a(r.staticStyle)&&a(r.style))){var o,s,l=t.elm,c=r.staticStyle,u=r.normalizedStyle||r.style||{},d=c||u,p=fa(t.data.style)||{};t.data.normalizedStyle=i(p.__ob__)?O({},p):p;var m=function(e,t){var n,r={};if(t)for(var a=e;a.componentInstance;)(a=a.componentInstance._vnode)&&a.data&&(n=ma(a.data))&&O(r,n);(n=ma(e.data))&&O(r,n);for(var i=e;i=i.parent;)i.data&&(n=ma(i.data))&&O(r,n);return r}(t,!0);for(s in d)a(m[s])&&ga(l,s,"");for(s in m)(o=m[s])!==d[s]&&ga(l,s,null==o?"":o)}}var xa={create:wa,update:wa},ka=/\s+/;function Da(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(ka).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ma(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(ka).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Sa(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&O(t,Ca(e.name||"v")),O(t,e),t}return"string"==typeof e?Ca(e):void 0}}var Ca=x((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),La=K&&!Q,Ta="transition",Oa="animation",Ea="transition",Aa="transitionend",ja="animation",$a="animationend";La&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ea="WebkitTransition",Aa="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ja="WebkitAnimation",$a="webkitAnimationEnd"));var Pa=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ya(e){Pa((function(){Pa(e)}))}function Na(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Da(e,t))}function za(e,t){e._transitionClasses&&y(e._transitionClasses,t),Ma(e,t)}function Ia(e,t,n){var r=Ha(e,t),a=r.type,i=r.timeout,o=r.propCount;if(!a)return n();var s=a===Ta?Aa:$a,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout((function(){l<o&&c()}),i+1),e.addEventListener(s,u)}var Fa=/\b(transform|all)(,|$)/;function Ha(e,t){var n,r=window.getComputedStyle(e),a=(r[Ea+"Delay"]||"").split(", "),i=(r[Ea+"Duration"]||"").split(", "),o=Ra(a,i),s=(r[ja+"Delay"]||"").split(", "),l=(r[ja+"Duration"]||"").split(", "),c=Ra(s,l),u=0,d=0;return t===Ta?o>0&&(n=Ta,u=o,d=i.length):t===Oa?c>0&&(n=Oa,u=c,d=l.length):d=(n=(u=Math.max(o,c))>0?o>c?Ta:Oa:null)?n===Ta?i.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===Ta&&Fa.test(r[Ea+"Property"])}}function Ra(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Ba(t)+Ba(e[n])})))}function Ba(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function qa(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Sa(e.data.transition);if(!a(r)&&!i(n._enterCb)&&1===n.nodeType){for(var o=r.css,s=r.type,c=r.enterClass,u=r.enterToClass,d=r.enterActiveClass,p=r.appearClass,m=r.appearToClass,f=r.appearActiveClass,_=r.beforeEnter,v=r.enter,g=r.afterEnter,y=r.enterCancelled,b=r.beforeAppear,w=r.appear,x=r.afterAppear,k=r.appearCancelled,D=r.duration,M=tn,S=tn.$vnode;S&&S.parent;)M=S.context,S=S.parent;var C=!M._isMounted||!e.isRootInsert;if(!C||w||""===w){var L=C&&p?p:c,T=C&&f?f:d,O=C&&m?m:u,E=C&&b||_,A=C&&"function"==typeof w?w:v,j=C&&x||g,$=C&&k||y,P=h(l(D)?D.enter:D);0;var Y=!1!==o&&!Q,z=Ua(A),I=n._enterCb=N((function(){Y&&(za(n,O),za(n,T)),I.cancelled?(Y&&za(n,L),$&&$(n)):j&&j(n),n._enterCb=null}));e.data.show||dt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),A&&A(n,I)})),E&&E(n),Y&&(Na(n,L),Na(n,T),Ya((function(){za(n,L),I.cancelled||(Na(n,O),z||(Wa(P)?setTimeout(I,P):Ia(n,s,I)))}))),e.data.show&&(t&&t(),A&&A(n,I)),Y||z||I()}}}function Va(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=Sa(e.data.transition);if(a(r)||1!==n.nodeType)return t();if(!i(n._leaveCb)){var o=r.css,s=r.type,c=r.leaveClass,u=r.leaveToClass,d=r.leaveActiveClass,p=r.beforeLeave,m=r.leave,f=r.afterLeave,_=r.leaveCancelled,v=r.delayLeave,g=r.duration,y=!1!==o&&!Q,b=Ua(m),w=h(l(g)?g.leave:g);0;var x=n._leaveCb=N((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(za(n,u),za(n,d)),x.cancelled?(y&&za(n,c),_&&_(n)):(t(),f&&f(n)),n._leaveCb=null}));v?v(k):k()}function k(){x.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),p&&p(n),y&&(Na(n,c),Na(n,d),Ya((function(){za(n,c),x.cancelled||(Na(n,u),b||(Wa(w)?setTimeout(x,w):Ia(n,s,x)))}))),m&&m(n,x),y||b||x())}}function Wa(e){return"number"==typeof e&&!isNaN(e)}function Ua(e){if(a(e))return!1;var t=e.fns;return i(t)?Ua(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ka(e,t){!0!==t.data.show&&qa(t)}var Za=function(e){var t,n,r={},l=e.modules,c=e.nodeOps;for(t=0;t<ur.length;++t)for(r[ur[t]]=[],n=0;n<l.length;++n)i(l[n][ur[t]])&&r[ur[t]].push(l[n][ur[t]]);function u(e){var t=c.parentNode(e);i(t)&&c.removeChild(t,e)}function d(e,t,n,a,s,l,u){if(i(e.elm)&&i(l)&&(e=l[u]=we(e)),e.isRootInsert=!s,!function(e,t,n,a){var s=e.data;if(i(s)){var l=i(e.componentInstance)&&s.keepAlive;if(i(s=s.hook)&&i(s=s.init)&&s(e,!1),i(e.componentInstance))return p(e,t),m(n,e.elm,a),o(l)&&function(e,t,n,a){var o,s=e;for(;s.componentInstance;)if(i(o=(s=s.componentInstance._vnode).data)&&i(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](cr,s);t.push(s);break}m(n,e.elm,a)}(e,t,n,a),!0}}(e,t,n,a)){var d=e.data,h=e.children,_=e.tag;i(_)?(e.elm=e.ns?c.createElementNS(e.ns,_):c.createElement(_,e),g(e),f(e,h,t),i(d)&&v(e,t),m(n,e.elm,a)):o(e.isComment)?(e.elm=c.createComment(e.text),m(n,e.elm,a)):(e.elm=c.createTextNode(e.text),m(n,e.elm,a))}}function p(e,t){i(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,h(e)?(v(e,t),g(e)):(lr(e),t.push(e))}function m(e,t,n){i(e)&&(i(n)?c.parentNode(n)===e&&c.insertBefore(e,t,n):c.appendChild(e,t))}function f(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)d(t[r],n,e.elm,null,!0,t,r)}else s(e.text)&&c.appendChild(e.elm,c.createTextNode(String(e.text)))}function h(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return i(e.tag)}function v(e,n){for(var a=0;a<r.create.length;++a)r.create[a](cr,e);i(t=e.data.hook)&&(i(t.create)&&t.create(cr,e),i(t.insert)&&n.push(e))}function g(e){var t;if(i(t=e.fnScopeId))c.setStyleScope(e.elm,t);else for(var n=e;n;)i(t=n.context)&&i(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t),n=n.parent;i(t=tn)&&t!==e.context&&t!==e.fnContext&&i(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t)}function y(e,t,n,r,a,i){for(;r<=a;++r)d(n[r],i,e,t,!1,n,r)}function b(e){var t,n,a=e.data;if(i(a))for(i(t=a.hook)&&i(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(i(t=e.children))for(n=0;n<e.children.length;++n)b(e.children[n])}function w(e,t,n){for(;t<=n;++t){var r=e[t];i(r)&&(i(r.tag)?(x(r),b(r)):u(r.elm))}}function x(e,t){if(i(t)||i(e.data)){var n,a=r.remove.length+1;for(i(t)?t.listeners+=a:t=function(e,t){function n(){0==--n.listeners&&u(e)}return n.listeners=t,n}(e.elm,a),i(n=e.componentInstance)&&i(n=n._vnode)&&i(n.data)&&x(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);i(n=e.data.hook)&&i(n=n.remove)?n(e,t):t()}else u(e.elm)}function k(e,t,n,r){for(var a=n;a<r;a++){var o=t[a];if(i(o)&&dr(e,o))return a}}function D(e,t,n,s,l,u){if(e!==t){i(t.elm)&&i(s)&&(t=s[l]=we(t));var p=t.elm=e.elm;if(o(e.isAsyncPlaceholder))i(t.asyncFactory.resolved)?C(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var m,f=t.data;i(f)&&i(m=f.hook)&&i(m=m.prepatch)&&m(e,t);var _=e.children,v=t.children;if(i(f)&&h(t)){for(m=0;m<r.update.length;++m)r.update[m](e,t);i(m=f.hook)&&i(m=m.update)&&m(e,t)}a(t.text)?i(_)&&i(v)?_!==v&&function(e,t,n,r,o){var s,l,u,p=0,m=0,f=t.length-1,h=t[0],_=t[f],v=n.length-1,g=n[0],b=n[v],x=!o;for(;p<=f&&m<=v;)a(h)?h=t[++p]:a(_)?_=t[--f]:dr(h,g)?(D(h,g,r,n,m),h=t[++p],g=n[++m]):dr(_,b)?(D(_,b,r,n,v),_=t[--f],b=n[--v]):dr(h,b)?(D(h,b,r,n,v),x&&c.insertBefore(e,h.elm,c.nextSibling(_.elm)),h=t[++p],b=n[--v]):dr(_,g)?(D(_,g,r,n,m),x&&c.insertBefore(e,_.elm,h.elm),_=t[--f],g=n[++m]):(a(s)&&(s=pr(t,p,f)),a(l=i(g.key)?s[g.key]:k(g,t,p,f))?d(g,r,e,h.elm,!1,n,m):dr(u=t[l],g)?(D(u,g,r,n,m),t[l]=void 0,x&&c.insertBefore(e,u.elm,h.elm)):d(g,r,e,h.elm,!1,n,m),g=n[++m]);p>f?y(e,a(n[v+1])?null:n[v+1].elm,n,m,v,r):m>v&&w(t,p,f)}(p,_,v,n,u):i(v)?(i(e.text)&&c.setTextContent(p,""),y(p,null,v,0,v.length-1,n)):i(_)?w(_,0,_.length-1):i(e.text)&&c.setTextContent(p,""):e.text!==t.text&&c.setTextContent(p,t.text),i(f)&&i(m=f.hook)&&i(m=m.postpatch)&&m(e,t)}}}function M(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var S=_("attrs,class,staticClass,staticStyle,key");function C(e,t,n,r){var a,s=t.tag,l=t.data,c=t.children;if(r=r||l&&l.pre,t.elm=e,o(t.isComment)&&i(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(i(l)&&(i(a=l.hook)&&i(a=a.init)&&a(t,!0),i(a=t.componentInstance)))return p(t,n),!0;if(i(s)){if(i(c))if(e.hasChildNodes())if(i(a=l)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,m=0;m<c.length;m++){if(!d||!C(d,c[m],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else f(t,c,n);if(i(l)){var h=!1;for(var _ in l)if(!S(_)){h=!0,v(t,n);break}!h&&l.class&&ot(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!a(t)){var l,u=!1,p=[];if(a(e))u=!0,d(t,p);else{var m=i(e.nodeType);if(!m&&dr(e,t))D(e,t,p,null,null,s);else{if(m){if(1===e.nodeType&&e.hasAttribute(z)&&(e.removeAttribute(z),n=!0),o(n)&&C(e,t,p))return M(t,p,!0),e;l=e,e=new ve(c.tagName(l).toLowerCase(),{},[],void 0,l)}var f=e.elm,_=c.parentNode(f);if(d(t,p,f._leaveCb?null:_,c.nextSibling(f)),i(t.parent))for(var v=t.parent,g=h(t);v;){for(var y=0;y<r.destroy.length;++y)r.destroy[y](v);if(v.elm=t.elm,g){for(var x=0;x<r.create.length;++x)r.create[x](cr,v);var k=v.data.hook.insert;if(k.merged)for(var S=1;S<k.fns.length;S++)k.fns[S]()}else lr(v);v=v.parent}i(_)?w([e],0,0):i(e.tag)&&b(e)}}return M(t,p,u),t.elm}i(e)&&b(e)}}({nodeOps:or,modules:[kr,Er,la,da,xa,K?{create:Ka,activate:Ka,remove:function(e,t){!0!==e.data.show?Va(e,t):t()}}:{}].concat(yr)});Q&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ri(e,"input")}));var Ga={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?dt(n,"postpatch",(function(){Ga.componentUpdated(e,t,n)})):Ja(e,t,n.context),e._vOptions=[].map.call(e.options,ei)):("textarea"===n.tag||ar(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ti),e.addEventListener("compositionend",ni),e.addEventListener("change",ni),Q&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ja(e,t,n.context);var r=e._vOptions,a=e._vOptions=[].map.call(e.options,ei);if(a.some((function(e,t){return!P(e,r[t])})))(e.multiple?t.value.some((function(e){return Qa(e,a)})):t.value!==t.oldValue&&Qa(t.value,a))&&ri(e,"change")}}};function Ja(e,t,n){Xa(e,t,n),(X||ee)&&setTimeout((function(){Xa(e,t,n)}),0)}function Xa(e,t,n){var r=t.value,a=e.multiple;if(!a||Array.isArray(r)){for(var i,o,s=0,l=e.options.length;s<l;s++)if(o=e.options[s],a)i=Y(r,ei(o))>-1,o.selected!==i&&(o.selected=i);else if(P(ei(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));a||(e.selectedIndex=-1)}}function Qa(e,t){return t.every((function(t){return!P(t,e)}))}function ei(e){return"_value"in e?e._value:e.value}function ti(e){e.target.composing=!0}function ni(e){e.target.composing&&(e.target.composing=!1,ri(e.target,"input"))}function ri(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ai(e){return!e.componentInstance||e.data&&e.data.transition?e:ai(e.componentInstance._vnode)}var ii={model:Ga,show:{bind:function(e,t,n){var r=t.value,a=(n=ai(n)).data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&a?(n.data.show=!0,qa(n,(function(){e.style.display=i}))):e.style.display=r?i:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=ai(n)).data&&n.data.transition?(n.data.show=!0,r?qa(n,(function(){e.style.display=e.__vOriginalDisplay})):Va(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,a){a||(e.style.display=e.__vOriginalDisplay)}}},oi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function si(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?si(Gt(t.children)):e}function li(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var a=n._parentListeners;for(var i in a)t[D(i)]=a[i];return t}function ci(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var ui=function(e){return e.tag||Zt(e)},di=function(e){return"show"===e.name},pi={name:"transition",props:oi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(ui)).length){0;var r=this.mode;0;var a=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return a;var i=si(a);if(!i)return a;if(this._leaving)return ci(e,a);var o="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?o+"comment":o+i.tag:s(i.key)?0===String(i.key).indexOf(o)?i.key:o+i.key:i.key;var l=(i.data||(i.data={})).transition=li(this),c=this._vnode,u=si(c);if(i.data.directives&&i.data.directives.some(di)&&(i.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(i,u)&&!Zt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=O({},l);if("out-in"===r)return this._leaving=!0,dt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ci(e,a);if("in-out"===r){if(Zt(i))return c;var p,m=function(){p()};dt(l,"afterEnter",m),dt(l,"enterCancelled",m),dt(d,"delayLeave",(function(e){p=e}))}}return a}}},mi=O({tag:String,moveClass:String},oi);function fi(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function hi(e){e.data.newPos=e.elm.getBoundingClientRect()}function _i(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,a=t.top-n.top;if(r||a){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+a+"px)",i.transitionDuration="0s"}}delete mi.mode;var vi={Transition:pi,TransitionGroup:{props:mi,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var a=nn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,a(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,a=this.$slots.default||[],i=this.children=[],o=li(this),s=0;s<a.length;s++){var l=a[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))i.push(l),n[l.key]=l,(l.data||(l.data={})).transition=o;else;}if(r){for(var c=[],u=[],d=0;d<r.length;d++){var p=r[d];p.data.transition=o,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?c.push(p):u.push(p)}this.kept=e(t,null,c),this.removed=u}return e(t,null,i)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(fi),e.forEach(hi),e.forEach(_i),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;Na(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Aa,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Aa,e),n._moveCb=null,za(n,t))})}})))},methods:{hasMove:function(e,t){if(!La)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Ma(n,e)})),Da(n,t),n.style.display="none",this.$el.appendChild(n);var r=Ha(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};On.config.mustUseProp=Fn,On.config.isReservedTag=tr,On.config.isReservedAttr=zn,On.config.getTagNamespace=nr,On.config.isUnknownElement=function(e){if(!K)return!0;if(tr(e))return!1;if(e=e.toLowerCase(),null!=rr[e])return rr[e];var t=document.createElement(e);return e.indexOf("-")>-1?rr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:rr[e]=/HTMLUnknownElement/.test(t.toString())},O(On.options.directives,ii),O(On.options.components,vi),On.prototype.__patch__=K?Za:A,On.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ye),sn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new yn(e,r,A,{before:function(){e._isMounted&&!e._isDestroyed&&sn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,sn(e,"mounted")),e}(this,e=e&&K?ir(e):void 0,t)},K&&setTimeout((function(){H.devtools&&se&&se.emit("init",On)}),0);var gi=/\{\{((?:.|\r?\n)+?)\}\}/g,yi=/[-.*+?^${}()|[\]\/\\]/g,bi=x((function(e){var t=e[0].replace(yi,"\\$&"),n=e[1].replace(yi,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var wi={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=qr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Br(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var xi,ki={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=qr(e,"style");n&&(e.staticStyle=JSON.stringify(pa(n)));var r=Br(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},Di=function(e){return(xi=xi||document.createElement("div")).innerHTML=e,xi.textContent},Mi=_("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Si=_("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Ci=_("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Li=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ti=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Oi="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+R.source+"]*",Ei="((?:"+Oi+"\\:)?"+Oi+")",Ai=new RegExp("^<"+Ei),ji=/^\s*(\/?)>/,$i=new RegExp("^<\\/"+Ei+"[^>]*>"),Pi=/^<!DOCTYPE [^>]+>/i,Yi=/^<!\--/,Ni=/^<!\[/,zi=_("script,style,textarea",!0),Ii={},Fi={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Hi=/&(?:lt|gt|quot|amp|#39);/g,Ri=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Bi=_("pre,textarea",!0),qi=function(e,t){return e&&Bi(e)&&"\n"===t[0]};function Vi(e,t){var n=t?Ri:Hi;return e.replace(n,(function(e){return Fi[e]}))}var Wi,Ui,Ki,Zi,Gi,Ji,Xi,Qi,eo=/^@|^v-on:/,to=/^v-|^@|^:|^#/,no=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ro=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ao=/^\(|\)$/g,io=/^\[.*\]$/,oo=/:(.*)$/,so=/^:|^\.|^v-bind:/,lo=/\.[^.\]]+(?=[^\]]*$)/g,co=/^v-slot(:|$)|^#/,uo=/[\r\n]/,po=/\s+/g,mo=x(Di),fo="_empty_";function ho(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:xo(t),rawAttrsMap:{},parent:n,children:[]}}function _o(e,t){Wi=t.warn||Pr,Ji=t.isPreTag||j,Xi=t.mustUseProp||j,Qi=t.getTagNamespace||j;var n=t.isReservedTag||j;(function(e){return!!e.component||!n(e.tag)}),Ki=Yr(t.modules,"transformNode"),Zi=Yr(t.modules,"preTransformNode"),Gi=Yr(t.modules,"postTransformNode"),Ui=t.delimiters;var r,a,i=[],o=!1!==t.preserveWhitespace,s=t.whitespace,l=!1,c=!1;function u(e){if(d(e),l||e.processed||(e=vo(e,t)),i.length||e===r||r.if&&(e.elseif||e.else)&&yo(r,{exp:e.elseif,block:e}),a&&!e.forbidden)if(e.elseif||e.else)o=e,(s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(a.children))&&s.if&&yo(s,{exp:o.elseif,block:o});else{if(e.slotScope){var n=e.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[n]=e}a.children.push(e),e.parent=a}var o,s;e.children=e.children.filter((function(e){return!e.slotScope})),d(e),e.pre&&(l=!1),Ji(e.tag)&&(c=!1);for(var u=0;u<Gi.length;u++)Gi[u](e,t)}function d(e){if(!c)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,r,a=[],i=t.expectHTML,o=t.isUnaryTag||j,s=t.canBeLeftOpenTag||j,l=0;e;){if(n=e,r&&zi(r)){var c=0,u=r.toLowerCase(),d=Ii[u]||(Ii[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),p=e.replace(d,(function(e,n,r){return c=r.length,zi(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),qi(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-p.length,e=p,S(u,l-c,l)}else{var m=e.indexOf("<");if(0===m){if(Yi.test(e)){var f=e.indexOf("--\x3e");if(f>=0){t.shouldKeepComment&&t.comment(e.substring(4,f),l,l+f+3),k(f+3);continue}}if(Ni.test(e)){var h=e.indexOf("]>");if(h>=0){k(h+2);continue}}var _=e.match(Pi);if(_){k(_[0].length);continue}var v=e.match($i);if(v){var g=l;k(v[0].length),S(v[1],g,l);continue}var y=D();if(y){M(y),qi(y.tagName,e)&&k(1);continue}}var b=void 0,w=void 0,x=void 0;if(m>=0){for(w=e.slice(m);!($i.test(w)||Ai.test(w)||Yi.test(w)||Ni.test(w)||(x=w.indexOf("<",1))<0);)m+=x,w=e.slice(m);b=e.substring(0,m)}m<0&&(b=e),b&&k(b.length),t.chars&&b&&t.chars(b,l-b.length,l)}if(e===n){t.chars&&t.chars(e);break}}function k(t){l+=t,e=e.substring(t)}function D(){var t=e.match(Ai);if(t){var n,r,a={tagName:t[1],attrs:[],start:l};for(k(t[0].length);!(n=e.match(ji))&&(r=e.match(Ti)||e.match(Li));)r.start=l,k(r[0].length),r.end=l,a.attrs.push(r);if(n)return a.unarySlash=n[1],k(n[0].length),a.end=l,a}}function M(e){var n=e.tagName,l=e.unarySlash;i&&("p"===r&&Ci(n)&&S(r),s(n)&&r===n&&S(n));for(var c=o(n)||!!l,u=e.attrs.length,d=new Array(u),p=0;p<u;p++){var m=e.attrs[p],f=m[3]||m[4]||m[5]||"",h="a"===n&&"href"===m[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[p]={name:m[1],value:Vi(f,h)}}c||(a.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),r=n),t.start&&t.start(n,d,c,e.start,e.end)}function S(e,n,i){var o,s;if(null==n&&(n=l),null==i&&(i=l),e)for(s=e.toLowerCase(),o=a.length-1;o>=0&&a[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=a.length-1;c>=o;c--)t.end&&t.end(a[c].tag,n,i);a.length=o,r=o&&a[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,i):"p"===s&&(t.start&&t.start(e,[],!1,n,i),t.end&&t.end(e,n,i))}S()}(e,{warn:Wi,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,o,s,d){var p=a&&a.ns||Qi(e);X&&"svg"===p&&(n=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];ko.test(r.name)||(r.name=r.name.replace(Do,""),t.push(r))}return t}(n));var m,f=ho(e,n,a);p&&(f.ns=p),"style"!==(m=f).tag&&("script"!==m.tag||m.attrsMap.type&&"text/javascript"!==m.attrsMap.type)||oe()||(f.forbidden=!0);for(var h=0;h<Zi.length;h++)f=Zi[h](f,t)||f;l||(!function(e){null!=qr(e,"v-pre")&&(e.pre=!0)}(f),f.pre&&(l=!0)),Ji(f.tag)&&(c=!0),l?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),a=0;a<n;a++)r[a]={name:t[a].name,value:JSON.stringify(t[a].value)},null!=t[a].start&&(r[a].start=t[a].start,r[a].end=t[a].end);else e.pre||(e.plain=!0)}(f):f.processed||(go(f),function(e){var t=qr(e,"v-if");if(t)e.if=t,yo(e,{exp:t,block:e});else{null!=qr(e,"v-else")&&(e.else=!0);var n=qr(e,"v-else-if");n&&(e.elseif=n)}}(f),function(e){null!=qr(e,"v-once")&&(e.once=!0)}(f)),r||(r=f),o?u(f):(a=f,i.push(f))},end:function(e,t,n){var r=i[i.length-1];i.length-=1,a=i[i.length-1],u(r)},chars:function(e,t,n){if(a&&(!X||"textarea"!==a.tag||a.attrsMap.placeholder!==e)){var r,i,u,d=a.children;if(e=c||e.trim()?"script"===(r=a).tag||"style"===r.tag?e:mo(e):d.length?s?"condense"===s&&uo.test(e)?"":" ":o?" ":"":"")c||"condense"!==s||(e=e.replace(po," ")),!l&&" "!==e&&(i=function(e,t){var n=t?bi(t):gi;if(n.test(e)){for(var r,a,i,o=[],s=[],l=n.lastIndex=0;r=n.exec(e);){(a=r.index)>l&&(s.push(i=e.slice(l,a)),o.push(JSON.stringify(i)));var c=jr(r[1].trim());o.push("_s("+c+")"),s.push({"@binding":c}),l=a+r[0].length}return l<e.length&&(s.push(i=e.slice(l)),o.push(JSON.stringify(i))),{expression:o.join("+"),tokens:s}}}(e,Ui))?u={type:2,expression:i.expression,tokens:i.tokens,text:e}:" "===e&&d.length&&" "===d[d.length-1].text||(u={type:3,text:e}),u&&d.push(u)}},comment:function(e,t,n){if(a){var r={type:3,text:e,isComment:!0};0,a.children.push(r)}}}),r}function vo(e,t){var n;!function(e){var t=Br(e,"key");if(t){e.key=t}}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Br(e,"ref");t&&(e.ref=t,e.refInFor=function(e){var t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=qr(e,"scope"),e.slotScope=t||qr(e,"slot-scope")):(t=qr(e,"slot-scope"))&&(e.slotScope=t);var n=Br(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||zr(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot")));if("template"===e.tag){var r=Vr(e,co);if(r){0;var a=bo(r),i=a.name,o=a.dynamic;e.slotTarget=i,e.slotTargetDynamic=o,e.slotScope=r.value||fo}}else{var s=Vr(e,co);if(s){0;var l=e.scopedSlots||(e.scopedSlots={}),c=bo(s),u=c.name,d=c.dynamic,p=l[u]=ho("template",[],e);p.slotTarget=u,p.slotTargetDynamic=d,p.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=p,!0})),p.slotScope=s.value||fo,e.children=[],e.plain=!1}}}(e),"slot"===(n=e).tag&&(n.slotName=Br(n,"name")),function(e){var t;(t=Br(e,"is"))&&(e.component=t);null!=qr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var r=0;r<Ki.length;r++)e=Ki[r](e,t)||e;return function(e){var t,n,r,a,i,o,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++){if(r=a=c[t].name,i=c[t].value,to.test(r))if(e.hasBindings=!0,(o=wo(r.replace(to,"")))&&(r=r.replace(lo,"")),so.test(r))r=r.replace(so,""),i=jr(i),(l=io.test(r))&&(r=r.slice(1,-1)),o&&(o.prop&&!l&&"innerHtml"===(r=D(r))&&(r="innerHTML"),o.camel&&!l&&(r=D(r)),o.sync&&(s=Kr(i,"$event"),l?Rr(e,'"update:"+('+r+")",s,null,!1,0,c[t],!0):(Rr(e,"update:"+D(r),s,null,!1,0,c[t]),C(r)!==D(r)&&Rr(e,"update:"+C(r),s,null,!1,0,c[t])))),o&&o.prop||!e.component&&Xi(e.tag,e.attrsMap.type,r)?Nr(e,r,i,c[t],l):zr(e,r,i,c[t],l);else if(eo.test(r))r=r.replace(eo,""),(l=io.test(r))&&(r=r.slice(1,-1)),Rr(e,r,i,o,!1,0,c[t],l);else{var u=(r=r.replace(to,"")).match(oo),d=u&&u[1];l=!1,d&&(r=r.slice(0,-(d.length+1)),io.test(d)&&(d=d.slice(1,-1),l=!0)),Fr(e,r,a,i,d,l,o,c[t])}else zr(e,r,JSON.stringify(i),c[t]),!e.component&&"muted"===r&&Xi(e.tag,e.attrsMap.type,r)&&Nr(e,r,"true",c[t])}}(e),e}function go(e){var t;if(t=qr(e,"v-for")){var n=function(e){var t=e.match(no);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(ao,""),a=r.match(ro);a?(n.alias=r.replace(ro,"").trim(),n.iterator1=a[1].trim(),a[2]&&(n.iterator2=a[2].trim())):n.alias=r;return n}(t);n&&O(e,n)}}function yo(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function bo(e){var t=e.name.replace(co,"");return t||"#"!==e.name[0]&&(t="default"),io.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function wo(e){var t=e.match(lo);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function xo(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}var ko=/^xmlns:NS\d+/,Do=/^NS\d+:/;function Mo(e){return ho(e.tag,e.attrsList.slice(),e.parent)}var So=[wi,ki,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Br(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var a=qr(e,"v-if",!0),i=a?"&&("+a+")":"",o=null!=qr(e,"v-else",!0),s=qr(e,"v-else-if",!0),l=Mo(e);go(l),Ir(l,"type","checkbox"),vo(l,t),l.processed=!0,l.if="("+n+")==='checkbox'"+i,yo(l,{exp:l.if,block:l});var c=Mo(e);qr(c,"v-for",!0),Ir(c,"type","radio"),vo(c,t),yo(l,{exp:"("+n+")==='radio'"+i,block:c});var u=Mo(e);return qr(u,"v-for",!0),Ir(u,":type",n),vo(u,t),yo(l,{exp:a,block:u}),o?l.else=!0:s&&(l.elseif=s),l}}}}];var Co,Lo,To={expectHTML:!0,modules:So,directives:{model:function(e,t,n){n;var r=t.value,a=t.modifiers,i=e.tag,o=e.attrsMap.type;if(e.component)return Ur(e,r,a),!1;if("select"===i)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";r=r+" "+Kr(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Rr(e,"change",r,null,!0)}(e,r,a);else if("input"===i&&"checkbox"===o)!function(e,t,n){var r=n&&n.number,a=Br(e,"value")||"null",i=Br(e,"true-value")||"true",o=Br(e,"false-value")||"false";Nr(e,"checked","Array.isArray("+t+")?_i("+t+","+a+")>-1"+("true"===i?":("+t+")":":_q("+t+","+i+")")),Rr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+a+")":a)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Kr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Kr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Kr(t,"$$c")+"}",null,!0)}(e,r,a);else if("input"===i&&"radio"===o)!function(e,t,n){var r=n&&n.number,a=Br(e,"value")||"null";Nr(e,"checked","_q("+t+","+(a=r?"_n("+a+")":a)+")"),Rr(e,"change",Kr(t,a),null,!0)}(e,r,a);else if("input"===i||"textarea"===i)!function(e,t,n){var r=e.attrsMap.type;0;var a=n||{},i=a.lazy,o=a.number,s=a.trim,l=!i&&"range"!==r,c=i?"change":"range"===r?ta:"input",u="$event.target.value";s&&(u="$event.target.value.trim()");o&&(u="_n("+u+")");var d=Kr(t,u);l&&(d="if($event.target.composing)return;"+d);Nr(e,"value","("+t+")"),Rr(e,c,d,null,!0),(s||o)&&Rr(e,"blur","$forceUpdate()")}(e,r,a);else{if(!H.isReservedTag(i))return Ur(e,r,a),!1}return!0},text:function(e,t){t.value&&Nr(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Nr(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:Mi,mustUseProp:Fn,canBeLeftOpenTag:Si,isReservedTag:tr,getTagNamespace:nr,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(So)},Oo=x((function(e){return _("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Eo(e,t){e&&(Co=Oo(t.staticKeys||""),Lo=t.isReservedTag||j,Ao(e),jo(e,!1))}function Ao(e){if(e.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!Lo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Co)))}(e),1===e.type){if(!Lo(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var r=e.children[t];Ao(r),r.static||(e.static=!1)}if(e.ifConditions)for(var a=1,i=e.ifConditions.length;a<i;a++){var o=e.ifConditions[a].block;Ao(o),o.static||(e.static=!1)}}}function jo(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)jo(e.children[n],t||!!e.for);if(e.ifConditions)for(var a=1,i=e.ifConditions.length;a<i;a++)jo(e.ifConditions[a].block,t)}}var $o=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Po=/\([^)]*?\);*$/,Yo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,No={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},zo={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Io=function(e){return"if("+e+")return null;"},Fo={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Io("$event.target !== $event.currentTarget"),ctrl:Io("!$event.ctrlKey"),shift:Io("!$event.shiftKey"),alt:Io("!$event.altKey"),meta:Io("!$event.metaKey"),left:Io("'button' in $event && $event.button !== 0"),middle:Io("'button' in $event && $event.button !== 1"),right:Io("'button' in $event && $event.button !== 2")};function Ho(e,t){var n=t?"nativeOn:":"on:",r="",a="";for(var i in e){var o=Ro(e[i]);e[i]&&e[i].dynamic?a+=i+","+o+",":r+='"'+i+'":'+o+","}return r="{"+r.slice(0,-1)+"}",a?n+"_d("+r+",["+a.slice(0,-1)+"])":n+r}function Ro(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Ro(e)})).join(",")+"]";var t=Yo.test(e.value),n=$o.test(e.value),r=Yo.test(e.value.replace(Po,""));if(e.modifiers){var a="",i="",o=[];for(var s in e.modifiers)if(Fo[s])i+=Fo[s],No[s]&&o.push(s);else if("exact"===s){var l=e.modifiers;i+=Io(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else o.push(s);return o.length&&(a+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Bo).join("&&")+")return null;"}(o)),i&&(a+=i),"function($event){"+a+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Bo(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=No[e],r=zo[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var qo={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:A},Vo=function(e){this.options=e,this.warn=e.warn||Pr,this.transforms=Yr(e.modules,"transformCode"),this.dataGenFns=Yr(e.modules,"genData"),this.directives=O(O({},qo),e.directives);var t=e.isReservedTag||j;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Wo(e,t){var n=new Vo(t);return{render:"with(this){return "+(e?Uo(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Uo(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ko(e,t);if(e.once&&!e.onceProcessed)return Zo(e,t);if(e.for&&!e.forProcessed)return Xo(e,t);if(e.if&&!e.ifProcessed)return Go(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=ns(e,t),a="_t("+n+(r?","+r:""),i=e.attrs||e.dynamicAttrs?is((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:D(e.name),value:e.value,dynamic:e.dynamic}}))):null,o=e.attrsMap["v-bind"];!i&&!o||r||(a+=",null");i&&(a+=","+i);o&&(a+=(i?"":",null")+","+o);return a+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:ns(t,n,!0);return"_c("+e+","+Qo(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Qo(e,t));var a=e.inlineTemplate?null:ns(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(a?","+a:"")+")"}for(var i=0;i<t.transforms.length;i++)n=t.transforms[i](e,n);return n}return ns(e,t)||"void 0"}function Ko(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+Uo(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function Zo(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Go(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+Uo(e,t)+","+t.onceId+++","+n+")":Uo(e,t)}return Ko(e,t)}function Go(e,t,n,r){return e.ifProcessed=!0,Jo(e.ifConditions.slice(),t,n,r)}function Jo(e,t,n,r){if(!e.length)return r||"_e()";var a=e.shift();return a.exp?"("+a.exp+")?"+i(a.block)+":"+Jo(e,t,n,r):""+i(a.block);function i(e){return n?n(e,t):e.once?Zo(e,t):Uo(e,t)}}function Xo(e,t,n,r){var a=e.for,i=e.alias,o=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+a+"),function("+i+o+s+"){return "+(n||Uo)(e,t)+"})"}function Qo(e,t){var n="{",r=function(e,t){var n=e.directives;if(!n)return;var r,a,i,o,s="directives:[",l=!1;for(r=0,a=n.length;r<a;r++){i=n[r],o=!0;var c=t.directives[i.name];c&&(o=!!c(e,i,t.warn)),o&&(l=!0,s+='{name:"'+i.name+'",rawName:"'+i.rawName+'"'+(i.value?",value:("+i.value+"),expression:"+JSON.stringify(i.value):"")+(i.arg?",arg:"+(i.isDynamicArg?i.arg:'"'+i.arg+'"'):"")+(i.modifiers?",modifiers:"+JSON.stringify(i.modifiers):"")+"},")}if(l)return s.slice(0,-1)+"]"}(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var a=0;a<t.dataGenFns.length;a++)n+=t.dataGenFns[a](e);if(e.attrs&&(n+="attrs:"+is(e.attrs)+","),e.props&&(n+="domProps:"+is(e.props)+","),e.events&&(n+=Ho(e.events,!1)+","),e.nativeEvents&&(n+=Ho(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,t,n){var r=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||es(n)})),a=!!e.if;if(!r)for(var i=e.parent;i;){if(i.slotScope&&i.slotScope!==fo||i.for){r=!0;break}i.if&&(a=!0),i=i.parent}var o=Object.keys(t).map((function(e){return ts(t[e],n)})).join(",");return"scopedSlots:_u(["+o+"]"+(r?",null,true":"")+(!r&&a?",null,false,"+function(e){var t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(o):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var i=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=Wo(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);i&&(n+=i+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+is(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function es(e){return 1===e.type&&("slot"===e.tag||e.children.some(es))}function ts(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Go(e,t,ts,"null");if(e.for&&!e.forProcessed)return Xo(e,t,ts);var r=e.slotScope===fo?"":String(e.slotScope),a="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(ns(e,t)||"undefined")+":undefined":ns(e,t)||"undefined":Uo(e,t))+"}",i=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+a+i+"}"}function ns(e,t,n,r,a){var i=e.children;if(i.length){var o=i[0];if(1===i.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return""+(r||Uo)(o,t)+s}var l=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var a=e[r];if(1===a.type){if(rs(a)||a.ifConditions&&a.ifConditions.some((function(e){return rs(e.block)}))){n=2;break}(t(a)||a.ifConditions&&a.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}(i,t.maybeComponent):0,c=a||as;return"["+i.map((function(e){return c(e,t)})).join(",")+"]"+(l?","+l:"")}}function rs(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function as(e,t){return 1===e.type?Uo(e,t):3===e.type&&e.isComment?function(e){return"_e("+JSON.stringify(e.text)+")"}(e):function(e){return"_v("+(2===e.type?e.expression:os(JSON.stringify(e.text)))+")"}(e)}function is(e){for(var t="",n="",r=0;r<e.length;r++){var a=e[r],i=os(a.value);a.dynamic?n+=a.name+","+i+",":t+='"'+a.name+'":'+i+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function os(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function ss(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),A}}function ls(e){var t=Object.create(null);return function(n,r,a){(r=O({},r)).warn;delete r.warn;var i=r.delimiters?String(r.delimiters)+n:n;if(t[i])return t[i];var o=e(n,r);var s={},l=[];return s.render=ss(o.render,l),s.staticRenderFns=o.staticRenderFns.map((function(e){return ss(e,l)})),t[i]=s}}var cs,us,ds=(cs=function(e,t){var n=_o(e.trim(),t);!1!==t.optimize&&Eo(n,t);var r=Wo(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),a=[],i=[];if(n)for(var o in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=O(Object.create(e.directives||null),n.directives)),n)"modules"!==o&&"directives"!==o&&(r[o]=n[o]);r.warn=function(e,t,n){(n?i:a).push(e)};var s=cs(t.trim(),r);return s.errors=a,s.tips=i,s}return{compile:t,compileToFunctions:ls(t)}})(To),ps=(ds.compile,ds.compileToFunctions);function ms(e){return(us=us||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',us.innerHTML.indexOf("&#10;")>0}var fs=!!K&&ms(!1),hs=!!K&&ms(!0),_s=x((function(e){var t=ir(e);return t&&t.innerHTML})),vs=On.prototype.$mount;On.prototype.$mount=function(e,t){if((e=e&&ir(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=_s(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var a=ps(r,{outputSourceRange:!1,shouldDecodeNewlines:fs,shouldDecodeNewlinesForHref:hs,delimiters:n.delimiters,comments:n.comments},this),i=a.render,o=a.staticRenderFns;n.render=i,n.staticRenderFns=o}}return vs.call(this,e,t)},On.compile=ps;const gs=On},9980:function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return 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 a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));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="fb15")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),a=n("5ca1"),i=n("2aba"),o=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),m="keys",f="values",h=function(){return this};e.exports=function(e,t,n,_,v,g,y){l(n,t,_);var b,w,x,k=function(e){if(!p&&e in C)return C[e];switch(e){case m:case f:return function(){return new n(this,e)}}return function(){return new n(this,e)}},D=t+" Iterator",M=v==f,S=!1,C=e.prototype,L=C[d]||C["@@iterator"]||v&&C[v],T=L||k(v),O=v?M?k("entries"):T:void 0,E="Array"==t&&C.entries||L;if(E&&(x=u(E.call(new e)))!==Object.prototype&&x.next&&(c(x,D,!0),r||"function"==typeof x[d]||o(x,d,h)),M&&L&&L.name!==f&&(S=!0,T=function(){return L.call(this)}),r&&!y||!p&&!S&&C[d]||o(C,d,T),s[t]=T,s[D]=h,v)if(b={values:M?T:k(f),keys:g?T:k(m),entries:O},y)for(w in b)w in C||i(C,w,b[w]);else a(a.P+a.F*(p||S),t,b);return b}},"02f4":function(e,t,n){var r=n("4588"),a=n("be13");e.exports=function(e){return function(t,n){var i,o,s=String(a(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):i:e?s.slice(l,l+2):o-56320+(i-55296<<10)+65536}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),a=n("e11e");e.exports=Object.keys||function(e){return r(e,a)}},1495:function(e,t,n){var r=n("86cc"),a=n("cb7c"),i=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){a(e);for(var n,o=i(t),s=o.length,l=0;s>l;)r.f(e,n=o[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),a=n("32e9"),i=n("79e5"),o=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var p=s(e),m=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),f=m?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[p](""),!t})):void 0;if(!m||!f||"replace"===e&&!u||"split"===e&&!d){var h=/./[p],_=n(o,p,""[e],(function(e,t,n,r,a){return t.exec===l?m&&!a?{done:!0,value:h.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=_[0],g=_[1];r(String.prototype,e,v),a(RegExp.prototype,p,2==t?function(e,t){return g.call(e,this,t)}:function(e){return g.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),a=n("7726").document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),a=n("2b4c")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:i?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),a=n("32e9"),i=n("69a8"),o=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(i(n,"name")||a(n,"name",t)),e[t]!==n&&(l&&(i(n,o)||a(n,o,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:a(e,t,n):(delete e[t],a(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),a=n("1495"),i=n("e11e"),o=n("613b")("IE_PROTO"),s=function(){},l=function(){var e,t=n("230e")("iframe"),r=i.length;for(t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:a(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),a=n("ca5a"),i=n("7726").Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),a=n("d2c8"),i="includes";r(r.P+r.F*n("5147")(i),"String",{includes:function(e){return!!~a(this,e,i).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),a=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),a=n("4bf8"),i=n("613b")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),a=n("4630"),i=n("7f20"),o={};n("32e9")(o,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:a(1,n)}),i(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),a=n("0d58");n("5eda")("keys",(function(){return function(e){return a(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},"520a":function(e,t,n){"use strict";var r,a,i=n("0bfb"),o=RegExp.prototype.exec,s=String.prototype.replace,l=o,c=(r=/a/,a=/b*/g,o.call(r,"a"),o.call(a,"a"),0!==r.lastIndex||0!==a.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(e){var t,n,r,a,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),c&&(t=l.lastIndex),r=o.call(l,e),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:t),u&&r&&r.length>1&&s.call(r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r}),e.exports=l},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),a=n("7726"),i="__core-js_shared__",o=a[i]||(a[i]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var r=n("7726"),a=n("8378"),i=n("32e9"),o=n("2aba"),s=n("9b43"),l=function(e,t,n){var c,u,d,p,m=e&l.F,f=e&l.G,h=e&l.S,_=e&l.P,v=e&l.B,g=f?r:h?r[t]||(r[t]={}):(r[t]||{}).prototype,y=f?a:a[t]||(a[t]={}),b=y.prototype||(y.prototype={});for(c in f&&(n=t),n)d=((u=!m&&g&&void 0!==g[c])?g:n)[c],p=v&&u?s(d,r):_&&"function"==typeof d?s(Function.call,d):d,g&&o(g,c,d,e&l.U),y[c]!=d&&i(y,c,p),_&&b[c]!=d&&(b[c]=d)};r.core=a,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5eda":function(e,t,n){var r=n("5ca1"),a=n("8378"),i=n("79e5");e.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",o)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),a=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},"613b":function(e,t,n){var r=n("5537")("keys"),a=n("ca5a");e.exports=function(e){return r[e]||(r[e]=a(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),a=n("c366")(!0);r(r.P,"Array",{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),a=n("be13");e.exports=function(e){return r(a(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var r=n("0d58"),a=n("2621"),i=n("52a7"),o=n("4bf8"),s=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){for(var n=o(e),l=arguments.length,c=1,u=a.f,d=i.f;l>c;)for(var p,m=s(arguments[c++]),f=u?r(m).concat(u(m)):r(m),h=f.length,_=0;h>_;)d.call(m,p=f[_++])&&(n[p]=m[p]);return n}:l},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),a=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?a(e+t,0):i(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,a=n("69a8"),i=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),a=n("c69a"),i=n("6a99"),o=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),a)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),a=Array.prototype;null==a[r]&&n("32e9")(a,r,{}),e.exports=function(e){a[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var r=n("cb7c"),a=n("4bf8"),i=n("9def"),o=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,m=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(e,t,n,f){return[function(r,a){var i=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,a):n.call(String(i),r,a)},function(e,t){var a=f(n,e,this,t);if(a.done)return a.value;var d=r(e),p=String(this),m="function"==typeof t;m||(t=String(t));var _=d.global;if(_){var v=d.unicode;d.lastIndex=0}for(var g=[];;){var y=l(d,p);if(null===y)break;if(g.push(y),!_)break;""===String(y[0])&&(d.lastIndex=s(p,i(d.lastIndex),v))}for(var b,w="",x=0,k=0;k<g.length;k++){y=g[k];for(var D=String(y[0]),M=c(u(o(y.index),p.length),0),S=[],C=1;C<y.length;C++)S.push(void 0===(b=y[C])?b:String(b));var L=y.groups;if(m){var T=[D].concat(S,M,p);void 0!==L&&T.push(L);var O=String(t.apply(void 0,T))}else O=h(D,p,M,S,L,t);M>=x&&(w+=p.slice(x,M)+O,x=M+D.length)}return w+p.slice(x)}];function h(e,t,r,i,o,s){var l=r+e.length,c=i.length,u=m;return void 0!==o&&(o=a(o),u=p),n.call(s,u,(function(n,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return n;if(u>c){var p=d(u/10);return 0===p?n:p<=c?void 0===i[p-1]?a.charAt(1):i[p-1]+a.charAt(1):n}s=i[u-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var r=n("d3f4"),a=n("2d95"),i=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==a(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),a=n("0d58"),i=n("2aba"),o=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),p=l.Array,m={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=a(m),h=0;h<f.length;h++){var _,v=f[h],g=m[v],y=o[v],b=y&&y.prototype;if(b&&(b[u]||s(b,u,p),b[d]||s(b,d,v),l[v]=p,g))for(_ in r)b[_]||i(b,_,r[_],!0)}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),a=n("9def"),i=n("77f1");e.exports=function(e){return function(t,n,o){var s,l=r(t),c=a(l.length),u=i(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return l})),n("a481");var r,a,i="undefined"!=typeof window?window.console:e.console,o=/-(\w)/g,s=(r=function(e){return e.replace(o,(function(e,t){return t?t.toUpperCase():""}))},a=Object.create(null),function(e){return a[e]||(a[e]=r(e))});function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),a=n("d53b"),i=n("84f2"),o=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):a(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var r=n("69a8"),a=n("6821"),i=n("c366")(!1),o=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=a(e),l=0,c=[];for(n in s)n!=o&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var r=n("aae3"),a=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(a(e))}},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var r=n("5ca1"),a=n("9def"),i=n("d2c8"),o="startsWith",s="".startsWith;r(r.P+r.F*n("5147")(o),"String",{startsWith:function(e){var t=i(this,e,o),n=a(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f6fd:function(e,t){!function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})}(document)},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;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}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 o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}}(e,t)||i(e,t)||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.")}()}function s(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))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.")}()}n.r(t),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var l=n("a352"),c=n.n(l),u=n("c649");function d(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function p(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),d.call(t,e,n)}}function m(e){return["transition-group","TransitionGroup"].includes(e)}function f(e,t,n){return e[n]||(t[n]?t[n]():void 0)}var h=["Start","Add","Remove","Update","End"],_=["Choose","Unchoose","Sort","Filter","Clone"],v=["Move"].concat(h,_).map((function(e){return"on"+e})),g=null,y={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=function(e){if(!e||1!==e.length)return!1;var t=o(e,1)[0].componentOptions;return!!t&&m(t.tag)}(t);var n=function(e,t,n){var r=0,a=0,i=f(t,n,"header");i&&(r=i.length,e=e?[].concat(s(i),s(e)):s(i));var o=f(t,n,"footer");return o&&(a=o.length,e=e?[].concat(s(e),s(o)):s(o)),{children:e,headerOffset:r,footerOffset:a}}(t,this.$slots,this.$scopedSlots),r=n.children,a=n.headerOffset,i=n.footerOffset;this.headerOffset=a,this.footerOffset=i;var l=function(e,t){var n=null,r=function(e,t){n=function(e,t,n){return void 0===n||((e=e||{})[t]=n),e}(n,e,t)};if(r("attrs",Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{})),!t)return n;var a=t.on,i=t.props,o=t.attrs;return r("on",a),r("props",i),Object.assign(n.attrs,o),n}(this.$attrs,this.componentData);return e(this.getTag(),l,r)},created:function(){null!==this.list&&null!==this.value&&u.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&u.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&u.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};h.forEach((function(n){t["on"+n]=p.call(e,n)})),_.forEach((function(n){t["on"+n]=d.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(u.a)(n)]=e.$attrs[n],t}),{}),r=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new c.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(u.a)(t);-1===v.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=function(e,t,n,r){if(!e)return[];var a=e.map((function(e){return e.elm})),i=t.length-r,o=s(t).map((function(e,t){return t>=i?a.length:a.indexOf(e)}));return n?o.filter((function(e){return-1!==e})):o}(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=function(e,t){return e.map((function(e){return e.elm})).indexOf(t)}(this.getChildrenNodes()||[],e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&m(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=s(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,s(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var a=r.realList,i={list:a,component:r};if(t!==n&&a&&r.getUnderlyingVm){var o=r.getUnderlyingVm(n);if(o)return Object.assign(o,i)}return i},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[e].data=null;var t=this.getComponent();t.children=[],t.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),g=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(u.d)(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(u.c)(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(u.d)(e.clone)},onDragUpdate:function(e){Object(u.d)(e.item),Object(u.c)(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=s(t.to.children).filter((function(e){return"none"!==e.style.display})),r=n.indexOf(t.related),a=e.component.getVmIndex(r);return-1===n.indexOf(g)&&t.willInsertAfter?a+1:a},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),a=this.context,i=this.computeFutureIndex(r,e);return Object.assign(a,{futureIndex:i}),n(Object.assign({},e,{relatedContext:r,draggedContext:a}),t)},onDragEnd:function(){this.computeIndexes(),g=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",y);var b=y;t.default=b}}).default},e.exports=r(n(1474))},8620:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(2584),i=n(8413),o=function(){return null},s=function(e,t,n){return e.reduce((function(e,r){return e[n?n(r):r]=t(r),e}),{})};function l(e){return"function"==typeof e}function c(e){return null!==e&&("object"==typeof e||l(e))}var u=function(e,t,n,r){if("function"==typeof n)return n.call(e,t,r);n=Array.isArray(n)?n:n.split(".");for(var a=0;a<n.length;a++){if(!t||"object"!=typeof t)return r;t=t[n[a]]}return void 0===t?r:t};var d={$invalid:function(){var e=this,t=this.proxy;return this.nestedKeys.some((function(t){return e.refProxy(t).$invalid}))||this.ruleKeys.some((function(e){return!t[e]}))},$dirty:function(){var e=this;return!!this.dirty||0!==this.nestedKeys.length&&this.nestedKeys.every((function(t){return e.refProxy(t).$dirty}))},$error:function(){return this.$dirty&&!this.$pending&&this.$invalid},$pending:function(){var e=this;return this.ruleKeys.some((function(t){return e.getRef(t).$pending}))||this.nestedKeys.some((function(t){return e.refProxy(t).$pending}))},$params:function(){var e=this,t=this.validations;return r({},s(this.nestedKeys,(function(e){return t[e]&&t[e].$params||null})),s(this.ruleKeys,(function(t){return e.getRef(t).$params})))}};function p(e){this.dirty=e;var t=this.proxy,n=e?"$touch":"$reset";this.nestedKeys.forEach((function(e){t[e][n]()}))}var m={$touch:function(){p.call(this,!0)},$reset:function(){p.call(this,!1)},$flattenParams:function(){var e=this.proxy,t=[];for(var n in this.$params)if(this.isNested(n)){for(var r=e[n].$flattenParams(),a=0;a<r.length;a++)r[a].path.unshift(n);t=t.concat(r)}else t.push({path:[],name:n,params:this.$params[n]});return t}},f=Object.keys(d),h=Object.keys(m),_=null,v=function(e){if(_)return _;var t=e.extend({beforeCreate:function(){this._vval=null},beforeDestroy:function(){this._vval&&(0,a.patchChildren)(this._vval)},methods:{getModel:function(){return this.lazyModel?this.lazyModel(this.prop):this.model},getModelKey:function(e){var t=this.getModel();if(t)return t[e]}},computed:{refs:function(){var e=this._vval;this._vval=this.children,(0,a.patchChildren)(e,this._vval);var t={};return this._vval.forEach((function(e){t[e.key]=e.vm})),t}}}),n=t.extend({data:function(){return{rule:null,lazyModel:null,model:null,lazyParentModel:null,rootModel:null}},methods:{runRule:function(t){var n=this.getModel();(0,i.pushParams)();var r,a=this.rule.call(this.rootModel,n,t),o=c(r=a)&&l(r.then)?function(e,t){var n=new e({data:{p:!0,v:!1}});return t.then((function(e){n.p=!1,n.v=e}),(function(e){throw n.p=!1,n.v=!1,e})),n.__isVuelidateAsyncVm=!0,n}(e,a):a,s=(0,i.popParams)();return{output:o,params:s&&s.$sub?s.$sub.length>1?s:s.$sub[0]:null}}},computed:{run:function(){return this.runRule(this.lazyParentModel())},$params:function(){return this.run.params},proxy:function(){var e=this.run.output;return e.__isVuelidateAsyncVm?!!e.v:!!e},$pending:function(){var e=this.run.output;return!!e.__isVuelidateAsyncVm&&e.p}}}),p=t.extend({data:function(){return{dirty:!1,validations:null,lazyModel:null,model:null,prop:null,lazyParentModel:null,rootModel:null}},methods:r({},m,{refProxy:function(e){return this.getRef(e).proxy},getRef:function(e){return this.refs[e]},isNested:function(e){return"function"!=typeof this.validations[e]}}),computed:r({},d,{nestedKeys:function(){return this.keys.filter(this.isNested)},ruleKeys:function(){var e=this;return this.keys.filter((function(t){return!e.isNested(t)}))},keys:function(){return Object.keys(this.validations).filter((function(e){return"$params"!==e}))},proxy:function(){var e=this,t=s(this.keys,(function(t){return{enumerable:!0,configurable:!0,get:function(){return e.refProxy(t)}}})),n=s(f,(function(t){return{enumerable:!0,configurable:!0,get:function(){return e[t]}}})),a=s(h,(function(t){return{enumerable:!1,configurable:!0,get:function(){return e[t]}}}));return Object.defineProperties({},r({},t,n,a))},children:function(){var e=this;return[].concat(this.nestedKeys.map((function(t){return y(e,t)})),this.ruleKeys.map((function(t){return b(e,t)}))).filter(Boolean)}})}),v=p.extend({methods:{isNested:function(e){return void 0!==this.validations[e]()},getRef:function(e){var t=this;return{get proxy(){return t.validations[e]()||!1}}}}}),g=p.extend({computed:{keys:function(){var e=this.getModel();return c(e)?Object.keys(e):[]},tracker:function(){var e=this,t=this.validations.$trackBy;return t?function(n){return""+u(e.rootModel,e.getModelKey(n),t)}:function(e){return""+e}},eagerParentModel:function(){var e=this.lazyParentModel();return function(){return e}},children:function(){var e=this,t=this.validations,n=this.getModel(),i=r({},t);delete i.$trackBy;var o={};return this.keys.map((function(t){var r=e.tracker(t);return o.hasOwnProperty(r)?null:(o[r]=!0,(0,a.h)(p,r,{validations:i,prop:t,lazyParentModel:e.eagerParentModel,model:n[t],rootModel:e.rootModel}))})).filter(Boolean)}},methods:{isNested:function(){return!0},getRef:function(e){return this.refs[this.tracker(e)]}}}),y=function(e,t){if("$each"===t)return(0,a.h)(g,t,{validations:e.validations[t],lazyParentModel:e.lazyParentModel,prop:t,lazyModel:e.getModel,rootModel:e.rootModel});var n=e.validations[t];if(Array.isArray(n)){var r=e.rootModel,i=s(n,(function(e){return function(){return u(r,r.$v,e)}}),(function(e){return Array.isArray(e)?e.join("."):e}));return(0,a.h)(v,t,{validations:i,lazyParentModel:o,prop:t,lazyModel:o,rootModel:r})}return(0,a.h)(p,t,{validations:n,lazyParentModel:e.getModel,prop:t,lazyModel:e.getModelKey,rootModel:e.rootModel})},b=function(e,t){return(0,a.h)(n,t,{rule:e.validations[t],lazyParentModel:e.lazyParentModel,lazyModel:e.getModel,rootModel:e.rootModel})};return _={VBase:t,Validation:p}},g=null;var y=function(e,t){var n=function(e){if(g)return g;for(var t=e.constructor;t.super;)t=t.super;return g=t,t}(e),r=v(n),i=r.Validation;return new(0,r.VBase)({computed:{children:function(){var n="function"==typeof t?t.call(e):t;return[(0,a.h)(i,"$v",{validations:n,lazyParentModel:o,prop:"$v",model:e,rootModel:e})]}}})},b={data:function(){var e=this.$options.validations;return e&&(this._vuelidate=y(this,e)),{}},beforeCreate:function(){var e=this.$options;e.validations&&(e.computed||(e.computed={}),e.computed.$v||(e.computed.$v=function(){return this._vuelidate?this._vuelidate.refs.$v.proxy:null}))},beforeDestroy:function(){this._vuelidate&&(this._vuelidate.$destroy(),this._vuelidate=null)}};function w(e){e.mixin(b)}i.withParams,t.ZP=w},8413:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.pushParams=i,t.popParams=o,t.withParams=function(e,t){if("object"==typeof e&&void 0!==t)return n=e,r=t,l((function(e){return function(){e(n);for(var t=arguments.length,a=Array(t),i=0;i<t;i++)a[i]=arguments[i];return r.apply(this,a)}}));var n,r;return l(e)};var r=[],a=t.target=null;t._setTarget=function(e){t.target=a=e};function i(){null!==a&&r.push(a),t.target=a={}}function o(){var e=a,n=t.target=a=r.pop()||null;return n&&(Array.isArray(n.$sub)||(n.$sub=[]),n.$sub.push(e)),e}function s(e){if("object"!=typeof e||Array.isArray(e))throw new Error("params must be an object");t.target=a=n({},a,e)}function l(e){var t=e(s);return function(){i();try{for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.apply(this,n)}finally{o()}}}},6408:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=(0,r.regex)("alpha",/^[a-zA-Z]*$/)},6195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=(0,r.regex)("alphaNum",/^[a-zA-Z0-9]*$/)},5573:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.withParams)({type:"and"},(function(){for(var e=this,n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.length>0&&t.reduce((function(t,n){return t&&n.apply(e,r)}),!0)}))}},7884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=function(e,t){return(0,r.withParams)({type:"between",min:e,max:t},(function(n){return!(0,r.req)(n)||(!/\s/.test(n)||n instanceof Date)&&+e<=+n&&+t>=+n}))}},6681:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regex=t.ref=t.len=t.req=t.withParams=void 0;var r,a=n(8085),i=(r=a)&&r.__esModule?r:{default:r};t.withParams=i.default;var o=t.req=function(e){if(Array.isArray(e))return!!e.length;if(null==e||!1===e)return!1;if(e instanceof Date)return!isNaN(e.getTime());if("object"==typeof e){for(var t in e)return!0;return!1}return!!String(e).length};t.len=function(e){return Array.isArray(e)?e.length:"object"==typeof e?Object.keys(e).length:String(e).length},t.ref=function(e,t,n){return"function"==typeof e?e.call(t,n):n[e]},t.regex=function(e,t){return(0,i.default)({type:e},(function(e){return!o(e)||t.test(e)}))}},8107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=(0,r.regex)("email",/(^$|^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$)/)},379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maxValue=t.minValue=t.and=t.or=t.url=t.sameAs=t.requiredUnless=t.requiredIf=t.required=t.minLength=t.maxLength=t.macAddress=t.ipAddress=t.email=t.between=t.numeric=t.alphaNum=t.alpha=void 0;var r=w(n(6408)),a=w(n(6195)),i=w(n(5669)),o=w(n(7884)),s=w(n(8107)),l=w(n(9103)),c=w(n(7340)),u=w(n(5287)),d=w(n(3091)),p=w(n(2419)),m=w(n(2941)),f=w(n(8300)),h=w(n(918)),_=w(n(3213)),v=w(n(5832)),g=w(n(5573)),y=w(n(2628)),b=w(n(301));function w(e){return e&&e.__esModule?e:{default:e}}t.alpha=r.default,t.alphaNum=a.default,t.numeric=i.default,t.between=o.default,t.email=s.default,t.ipAddress=l.default,t.macAddress=c.default,t.maxLength=u.default,t.minLength=d.default,t.required=p.default,t.requiredIf=m.default,t.requiredUnless=f.default,t.sameAs=h.default,t.url=_.default,t.or=v.default,t.and=g.default,t.minValue=y.default,t.maxValue=b.default},9103:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=(0,r.withParams)({type:"ipAddress"},(function(e){if(!(0,r.req)(e))return!0;if("string"!=typeof e)return!1;var t=e.split(".");return 4===t.length&&t.every(a)}));var a=function(e){if(e.length>3||0===e.length)return!1;if("0"===e[0]&&"0"!==e)return!1;if(!e.match(/^\d+$/))return!1;var t=0|+e;return t>=0&&t<=255}},7340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":";return(0,r.withParams)({type:"macAddress"},(function(t){if(!(0,r.req)(t))return!0;if("string"!=typeof t)return!1;var n="string"==typeof e&&""!==e?t.split(e):12===t.length||16===t.length?t.match(/.{2}/g):null;return null!==n&&(6===n.length||8===n.length)&&n.every(a)}))};var a=function(e){return e.toLowerCase().match(/^[0-9a-f]{2}$/)}},5287:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=function(e){return(0,r.withParams)({type:"maxLength",max:e},(function(t){return!(0,r.req)(t)||(0,r.len)(t)<=e}))}},301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=function(e){return(0,r.withParams)({type:"maxValue",max:e},(function(t){return!(0,r.req)(t)||(!/\s/.test(t)||t instanceof Date)&&+t<=+e}))}},3091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=function(e){return(0,r.withParams)({type:"minLength",min:e},(function(t){return!(0,r.req)(t)||(0,r.len)(t)>=e}))}},2628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=function(e){return(0,r.withParams)({type:"minValue",min:e},(function(t){return!(0,r.req)(t)||(!/\s/.test(t)||t instanceof Date)&&+t>=+e}))}},5669:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=(0,r.regex)("numeric",/^[0-9]*$/)},5832:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.withParams)({type:"or"},(function(){for(var e=this,n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.length>0&&t.reduce((function(t,n){return t||n.apply(e,r)}),!1)}))}},2419:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=(0,r.withParams)({type:"required"},r.req)},2941:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=function(e){return(0,r.withParams)({type:"requiredIf",prop:e},(function(t,n){return!(0,r.ref)(e,this,n)||(0,r.req)(t)}))}},8300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=function(e){return(0,r.withParams)({type:"requiredUnless",prop:e},(function(t,n){return!!(0,r.ref)(e,this,n)||(0,r.req)(t)}))}},918:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=function(e){return(0,r.withParams)({type:"sameAs",eq:e},(function(t,n){return t===(0,r.ref)(e,this,n)}))}},3213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6681);t.default=(0,r.regex)("url",/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i)},2584:(e,t)=>{"use strict";function n(e){return null==e}function r(e){return null!=e}function a(e,t){return t.tag===e.tag&&t.key===e.key}function i(e){var t=e.tag;e.vm=new t({data:e.args})}function o(e,t,n){var a=void 0,i=void 0,o={};for(a=t;a<=n;++a)r(i=e[a].key)&&(o[i]=a);return o}function s(e,t,n){for(;t<=n;++t)i(e[t])}function l(e,t,n){for(;t<=n;++t){var a=e[t];r(a)&&(a.vm.$destroy(),a.vm=null)}}function c(e,t){e!==t&&(t.vm=e.vm,function(e){for(var t=Object.keys(e.args),n=0;n<t.length;n++)t.forEach((function(t){e.vm[t]=e.args[t]}))}(t))}Object.defineProperty(t,"__esModule",{value:!0}),t.patchChildren=function(e,t){r(e)&&r(t)?e!==t&&function(e,t){var u=0,d=0,p=e.length-1,m=e[0],f=e[p],h=t.length-1,_=t[0],v=t[h],g=void 0,y=void 0,b=void 0;for(;u<=p&&d<=h;)n(m)?m=e[++u]:n(f)?f=e[--p]:a(m,_)?(c(m,_),m=e[++u],_=t[++d]):a(f,v)?(c(f,v),f=e[--p],v=t[--h]):a(m,v)?(c(m,v),m=e[++u],v=t[--h]):a(f,_)?(c(f,_),f=e[--p],_=t[++d]):(n(g)&&(g=o(e,u,p)),n(y=r(_.key)?g[_.key]:null)?(i(_),_=t[++d]):a(b=e[y],_)?(c(b,_),e[y]=void 0,_=t[++d]):(i(_),_=t[++d]));u>p?s(t,d,h):d>h&&l(e,u,p)}(e,t):r(t)?s(t,0,t.length-1):r(e)&&l(e,0,e.length-1)},t.h=function(e,t,n){return{tag:e,key:t,args:n}}},8085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8413).withParams;t.default=r},629:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>A,nv:()=>D,Se:()=>k});var r=("undefined"!=typeof window?window:void 0!==n.g?n.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,r=(n=function(t){return t.original===e},t.filter(n)[0]);if(r)return r.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=a(e[n],t)})),i}function i(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function o(e){return null!==e&&"object"==typeof e}var s=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(e,t){this._children[e]=t},s.prototype.removeChild=function(e){delete this._children[e]},s.prototype.getChild=function(e){return this._children[e]},s.prototype.hasChild=function(e){return e in this._children},s.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},s.prototype.forEachChild=function(e){i(this._children,e)},s.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},s.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},s.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(s.prototype,l);var c=function(e){this.register([],e,!1)};function u(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;u(e.concat(r),t.getChild(r),n.modules[r])}}c.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},c.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},c.prototype.update=function(e){u([],this.root,e)},c.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var a=new s(t,n);0===e.length?this.root=a:this.get(e.slice(0,-1)).addChild(e[e.length-1],a);t.modules&&i(t.modules,(function(t,a){r.register(e.concat(a),t,n)}))},c.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},c.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var d;var p=function(e){var t=this;void 0===e&&(e={}),!d&&"undefined"!=typeof window&&window.Vue&&b(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var a=e.strict;void 0===a&&(a=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new c(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new d,this._makeLocalGettersCache=Object.create(null);var i=this,o=this.dispatch,s=this.commit;this.dispatch=function(e,t){return o.call(i,e,t)},this.commit=function(e,t,n){return s.call(i,e,t,n)},this.strict=a;var l=this._modules.root.state;v(this,l,[],this._modules.root),_(this,l),n.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:d.config.devtools)&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},m={state:{configurable:!0}};function f(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function h(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;v(e,n,[],e._modules.root,!0),_(e,n,t)}function _(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,o={};i(a,(function(t,n){o[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=d.config.silent;d.config.silent=!0,e._vm=new d({data:{$$state:t},computed:o}),d.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),d.nextTick((function(){return r.$destroy()})))}function v(e,t,n,r,a){var i=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!i&&!a){var s=g(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){d.set(s,l,r.state)}))}var c=r.context=function(e,t,n){var r=""===t,a={dispatch:r?e.dispatch:function(n,r,a){var i=y(n,r,a),o=i.payload,s=i.options,l=i.type;return s&&s.root||(l=t+l),e.dispatch(l,o)},commit:r?e.commit:function(n,r,a){var i=y(n,r,a),o=i.payload,s=i.options,l=i.type;s&&s.root||(l=t+l),e.commit(l,o,s)}};return Object.defineProperties(a,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(a){if(a.slice(0,r)===t){var i=a.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[a]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return g(e.state,n)}}}),a}(e,o,n);r.forEachMutation((function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,r.state,t)}))}(e,o+n,t,c)})),r.forEachAction((function(t,n){var r=t.root?n:o+n,a=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push((function(t){var a,i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(a=i)&&"function"==typeof a.then||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}(e,r,a,c)})),r.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,o+n,t,c)})),r.forEachChild((function(r,i){v(e,t,n.concat(i),r,a)}))}function g(e,t){return t.reduce((function(e,t){return e[t]}),e)}function y(e,t,n){return o(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function b(e){d&&e===d||function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(d=e)}m.state.get=function(){return this._vm._data.$$state},m.state.set=function(e){0},p.prototype.commit=function(e,t,n){var r=this,a=y(e,t,n),i=a.type,o=a.payload,s=(a.options,{type:i,payload:o}),l=this._mutations[i];l&&(this._withCommit((function(){l.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},p.prototype.dispatch=function(e,t){var n=this,r=y(e,t),a=r.type,i=r.payload,o={type:a,payload:i},s=this._actions[a];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(e){0}var l=s.length>1?Promise.all(s.map((function(e){return e(i)}))):s[0](i);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(e){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,n.state,e)}))}catch(e){0}t(e)}))}))}},p.prototype.subscribe=function(e,t){return f(e,this._subscribers,t)},p.prototype.subscribeAction=function(e,t){return f("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},p.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},p.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},p.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),n.preserveState),_(this,this.state)},p.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=g(t.state,e.slice(0,-1));d.delete(n,e[e.length-1])})),h(this)},p.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},p.prototype.hotUpdate=function(e){this._modules.update(e),h(this,!0)},p.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(p.prototype,m);var w=S((function(e,t){var n={};return M(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=C(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof a?a.call(this,t,n):t[a]},n[r].vuex=!0})),n})),x=S((function(e,t){var n={};return M(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var i=C(this.$store,"mapMutations",e);if(!i)return;r=i.context.commit}return"function"==typeof a?a.apply(this,[r].concat(t)):r.apply(this.$store,[a].concat(t))}})),n})),k=S((function(e,t){var n={};return M(t).forEach((function(t){var r=t.key,a=t.val;a=e+a,n[r]=function(){if(!e||C(this.$store,"mapGetters",e))return this.$store.getters[a]},n[r].vuex=!0})),n})),D=S((function(e,t){var n={};return M(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var i=C(this.$store,"mapActions",e);if(!i)return;r=i.context.dispatch}return"function"==typeof a?a.apply(this,[r].concat(t)):r.apply(this.$store,[a].concat(t))}})),n}));function M(e){return function(e){return Array.isArray(e)||o(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function S(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function C(e,t,n){return e._modulesNamespaceMap[n]}function L(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(n){e.log(t)}}function T(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function O(){var e=new Date;return" @ "+E(e.getHours(),2)+":"+E(e.getMinutes(),2)+":"+E(e.getSeconds(),2)+"."+E(e.getMilliseconds(),3)}function E(e,t){return n="0",r=t-e.toString().length,new Array(r+1).join(n)+e;var n,r}const A={Store:p,install:b,version:"3.6.2",mapState:w,mapMutations:x,mapGetters:k,mapActions:D,createNamespacedHelpers:function(e){return{mapState:w.bind(null,e),mapGetters:k.bind(null,e),mapMutations:x.bind(null,e),mapActions:D.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var d=a(e.state);void 0!==u&&(l&&e.subscribe((function(e,o){var s=a(o);if(n(e,d,s)){var l=O(),c=i(e),p="mutation "+e.type+l;L(u,p,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),T(u)}d=s})),c&&e.subscribeAction((function(e,n){if(o(e,n)){var r=O(),a=s(e),i="action "+e.type+r;L(u,i,t),u.log("%c action","color: #03A9F4; font-weight: bold",a),T(u)}})))}}}}},t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,n.x=e=>{},n.amdD=function(){throw new Error("define cannot be used indirect")},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={449:0},t=[[1865],[284]],r=e=>{},a=(a,i)=>{for(var o,s,[l,c,u,d]=i,p=0,m=[];p<l.length;p++)s=l[p],n.o(e,s)&&e[s]&&m.push(e[s][0]),e[s]=0;for(o in c)n.o(c,o)&&(n.m[o]=c[o]);for(u&&u(n),a&&a(i);m.length;)m.shift()();return d&&t.push.apply(t,d),r()},i=self.webpackChunk=self.webpackChunk||[];function o(){for(var r,a=0;a<t.length;a++){for(var i=t[a],o=!0,s=1;s<i.length;s++){var l=i[s];0!==e[l]&&(o=!1)}o&&(t.splice(a--,1),r=n(n.s=i[0]))}return 0===t.length&&(n.x(),n.x=e=>{}),r}i.forEach(a.bind(null,0)),i.push=a.bind(null,i.push.bind(i));var s=n.x;n.x=()=>(n.x=s||(e=>{}),(r=o)())})(),n.x()})();