Files
crater/public/assets/js/app.js
Mohit Panjwani 55d838371a new build
2021-04-12 14:42:40 +05:30

2 lines
3.7 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 a;"undefined"!=typeof self&&self,a=function(e){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},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")}({"0006":function(e,t,n){var a=n("95b7"),r=n("e7d9"),i=n("ebae");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 a: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(!r(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}},"00ee":function(e,t,n){var a={};a[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(a)},"00fd":function(e,t,n){var a=n("9e69"),r=Object.prototype,i=r.hasOwnProperty,o=r.toString,s=a?a.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var a=!0}catch(e){}var r=o.call(e);return a&&(t?e[s]=n:delete e[s]),r}},"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"))},"0265":function(e,t,n){var a=n("902a")(n("8aed"),"Set");e.exports=a},"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 a=n("1c0b");e.exports=function(e,t,n){if(a(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,a){return e.call(t,n,a)};case 3:return function(n,a,r){return e.call(t,n,a,r)}}return function(){return e.apply(t,arguments)}}},"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,a,r){var i=e+" ";switch(a){case"s":return n||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(n||r?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?i+(n||r?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(n||r?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?i+"dagar":i+(r?"daga":"dögum"):n?i+"dagur":i+(r?"dag":"degi");case"M":return n?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?n?i+"mánuðir":i+(r?"mánuði":"mánuðum"):n?i+"mánuður":i+(r?"mánuð":"mánuði");case"y":return n||r?"ár":"ári";case"yy":return t(e)?i+(n||r?"ár":"árum"):i+(n||r?"á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 a=n("fc6a"),r=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 r(e)}catch(e){return o.slice()}}(e):r(a(e))}},"06cf":function(e,t,n){var a=n("83ab"),r=n("d1e7"),i=n("5c6c"),o=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=a?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(!r.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 a=n("5dbe"),r=i(Error);function i(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=a.apply(null,arguments)),new e(t)}}e.exports=r,r.eval=i(EvalError),r.range=i(RangeError),r.reference=i(ReferenceError),r.syntax=i(SyntaxError),r.type=i(TypeError),r.uri=i(URIError),r.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}},"093e":function(e,t,n){var a=n("5438"),r=n("36a2"),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];i.call(e,t)&&r(o,n)&&(void 0!==n||t in e)||a(e,t,n)}},"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("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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 a=n("304a"),r=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 a=0;a<n;a++)t+=this.ranges[3*a+2]-this.ranges[3*a+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/r}(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 a=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?a: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+a+((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)*r;return new o(m,t<0?e!=c:e!=p,f)}a+=d-u}return n?e+a:new o(e+a)},s.prototype.touches=function(e,t){for(var n=0,a=i(t),r=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+r];if(e<=l+c&&s==3*a)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,a=0,r=0;a<this.ranges.length;a+=3){var i=this.ranges[a],o=i-(this.inverted?r:0),s=i+(this.inverted?0:r),l=this.ranges[a+t],c=this.ranges[a+n];e(o,o+l,s,s+c),r+=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,a){this.maps=e||[],this.from=n||0,this.to=null==a?this.maps.length:a,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 a=e.getMirror(t);this.appendMap(e.maps[t],null!=a&&a<t?n+a: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 a=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=a&&a>t?n-a-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 a=!1,r=this.from;r<this.to;r++){var i=this.maps[r].mapResult(e,t);if(null!=i.recover){var s=this.getMirror(r);if(null!=s&&s>r&&s<this.to){r=s,e=this.maps[s].recover(i.recover);continue}}i.deleted&&(a=!0),e=i.pos}return n?e:new o(e,a)},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,r){try{return h.ok(e.replace(t,n,r))}catch(e){if(e instanceof a.ReplaceError)return h.fail(e.message);throw e}};var _=function(e){function t(t,n,a,r){e.call(this),this.from=t,this.to=n,this.slice=a,this.structure=!!r}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),a=e.mapResult(this.to,-1);return n.deleted&&a.deleted?null:new t(n.pos,Math.max(n.pos,a.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?a.Slice.empty:new a.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 r=this.slice.size+e.slice.size==0?a.Slice.empty:new a.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),r,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,a.Slice.fromJSON(e,n.slice),!!n.structure)},t}(f);f.jsonID("replace",_);var v=function(e){function t(t,n,a,r,i,o,s){e.call(this),this.from=t,this.to=n,this.gapFrom=a,this.gapTo=r,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),a=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deleted&&a.deleted||r<n.pos||i>a.pos?null:new t(n.pos,a.pos,r,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,a.Slice.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(f);function g(e,t,n){for(var a=e.resolve(t),r=n-t,i=a.depth;r>0&&i>0&&a.indexAfter(i)==a.node(i).childCount;)i--,r--;if(r>0)for(var o=a.node(i).maybeChild(a.indexAfter(i));r>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,r--}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 a=e.$from.node(n),r=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&a.canReplace(r,i,t))return n;if(0==n||a.type.spec.isolating||!y(a,r,i))break}}function w(e,t,n,a){void 0===a&&(a=e);var r=function(e,t){var n=e.parent,a=e.startIndex,r=e.endIndex,i=n.contentMatchAt(a).findWrapping(t);if(!i)return null;var o=i.length?i[0]:t;return n.canReplaceWith(a,r,o)?i:null}(e,t),i=r&&function(e,t){var n=e.parent,a=e.startIndex,r=e.endIndex,i=n.child(a),o=t.contentMatch.findWrapping(i.type);if(!o)return null;for(var s=(o.length?o[o.length-1]:t).contentMatch,l=a;s&&l<r;l++)s=s.matchType(n.child(l).type);return s&&s.validEnd?o:null}(a,t);return i?r.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,a){void 0===n&&(n=1);var r=e.resolve(t),i=r.depth-n,o=a&&a[a.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!o.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(var s=r.depth-1,l=n-2;s>i;s--,l--){var c=r.node(s),u=r.index(s);if(c.type.spec.isolating)return!1;var d=c.content.cutByIndex(u,c.childCount),p=a&&a[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=r.indexAfter(i),f=a&&a[0];return r.node(i).canReplaceWith(m,m,f?f.type:r.node(i+1).type)}function D(e,t){var n=e.resolve(t),a=n.index();return M(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(a,a+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 a=e.resolve(t),r=a.depth;;r--){var i=void 0,o=void 0,s=a.index(r);if(r==a.depth?(i=a.nodeBefore,o=a.nodeAfter):n>0?(i=a.node(r+1),s++,o=a.node(r).maybeChild(s)):(i=a.node(r).maybeChild(s-1),o=a.node(r+1)),i&&!i.isTextblock&&M(i,o)&&a.node(r).canReplace(s,s+1))return t;if(0==r)break;t=n<0?a.before(r):a.after(r)}}function C(e,t,n){var a=e.resolve(t);if(!n.content.size)return t;for(var r=n.content,i=0;i<n.openStart;i++)r=r.firstChild.content;for(var o=1;o<=(0==n.openStart&&n.size?2:1);o++)for(var s=a.depth;s>=0;s--){var l=s==a.depth?0:a.pos<=(a.start(s+1)+a.end(s+1))/2?-1:1,c=a.index(s)+(l>0?1:0);if(1==o?a.node(s).canReplace(c,c,r):a.node(s).contentMatchAt(c).findWrapping(r.firstChild.type))return 0==l?a.pos:l<0?a.before(s+1):a.after(s+1)}return null}function L(e,t,n){for(var r=[],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)),r.push(o)}return a.Fragment.fromArray(r)}f.jsonID("replaceAround",v),u.prototype.lift=function(e,t){for(var n=e.$from,r=e.$to,i=e.depth,o=n.before(i+1),s=r.after(i+1),l=o,c=s,u=a.Fragment.empty,d=0,p=i,m=!1;p>t;p--)m||n.index(p)>0?(m=!0,u=a.Fragment.from(n.node(p).copy(u)),d++):l--;for(var f=a.Fragment.empty,h=0,_=i,g=!1;_>t;_--)g||r.after(_+1)<r.end(_)?(g=!0,f=a.Fragment.from(r.node(_).copy(f)),h++):c++;return this.step(new v(l,c,o,s,new a.Slice(u.append(f),d,h),u.size-d,!0))},u.prototype.wrap=function(e,t){for(var n=a.Fragment.empty,r=t.length-1;r>=0;r--)n=a.Fragment.from(t[r].type.create(t[r].attrs,n));var i=e.start,o=e.end;return this.step(new v(i,o,i,o,new a.Slice(n,0,0),t.length,!0))},u.prototype.setBlockType=function(e,t,n,r){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,r)&&function(e,t,n){var a=e.resolve(t),r=a.index();return a.parent.canReplaceWith(r,r+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 a.Slice(a.Fragment.from(n.create(r,null,e.marks)),0,0),1,!0)),!1}})),this},u.prototype.setNodeMarkup=function(e,t,n,r){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,r||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 a.Slice(a.Fragment.from(o),0,0),1,!0))},u.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var r=this.doc.resolve(e),i=a.Fragment.empty,o=a.Fragment.empty,s=r.depth,l=r.depth-t,c=t-1;s>l;s--,c--){i=a.Fragment.from(r.node(s).copy(i));var u=n&&n[c];o=a.Fragment.from(u?u.type.create(u.attrs,o):r.node(s).copy(o))}return this.step(new _(e,e,new a.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,a.Slice.empty,!0);return this.step(n)};var T=function(e){function t(t,n,a){e.call(this),this.from=t,this.to=n,this.mark=a}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),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),o=new a.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),a=e.mapResult(this.to,-1);return n.deleted&&a.deleted||n.pos>=a.pos?null:new t(n.pos,a.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,a){e.call(this),this.from=t,this.to=n,this.mark=a}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),r=new a.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,r)},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),a=e.mapResult(this.to,-1);return n.deleted&&a.deleted||n.pos>=a.pos?null:new t(n.pos,a.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 a=this,r=[],i=[],o=null,s=null;return this.doc.nodesBetween(e,t,(function(a,l,c){if(a.isInline){var u=a.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){for(var d=Math.max(l,e),p=Math.min(l+a.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:r.push(o=new O(d,p,u[f])));s&&s.to==d?s.to=p:i.push(s=new T(d,p,n))}}})),r.forEach((function(e){return a.step(e)})),i.forEach((function(e){return a.step(e)})),this},u.prototype.removeMark=function(e,t,n){var r=this;void 0===n&&(n=null);var i=[],o=0;return this.doc.nodesBetween(e,t,(function(r,s){if(r.isInline){o++;var l=null;if(n instanceof a.MarkType){var c=n.isInSet(r.marks);c&&(l=[c])}else n?n.isInSet(r.marks)&&(l=[n]):l=r.marks;if(l&&l.length)for(var u=Math.min(s+r.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 r.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 r=this.doc.nodeAt(e),i=[],o=e+1,s=0;s<r.childCount;s++){var l=r.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,a.Slice.empty));o=c}if(!n.validEnd){var p=n.fillBefore(a.Fragment.empty,!0);this.replace(o,o,new a.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=a.Slice.empty);var r=function(e,t,n,r){if(void 0===n&&(n=t),void 0===r&&(r=a.Slice.empty),t==n&&!r.size)return null;var i=e.resolve(t),o=e.resolve(n);return E(i,o,r)?new _(t,n,r):new j(i,o,r).fit()}(this.doc,e,t,n);return r&&this.step(r),this},u.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new a.Slice(a.Fragment.from(n),0,0))},u.prototype.delete=function(e,t){return this.replace(e,t,a.Slice.empty)},u.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var j=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var r=0;r<=e.depth;r++){var i=e.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(r))})}this.placed=a.Fragment.empty;for(var o=e.depth;o>0;o--)this.placed=a.Fragment.from(e.node(o).copy(this.placed))},A={depth:{configurable:!0}};function P(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(P(e.firstChild.content,t-1,n)))}function $(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy($(e.lastChild.content,t-1,n)))}function Y(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function z(e,t,n){if(t<=0)return e;var r=e.content;return t>1&&(r=r.replaceChild(0,z(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(a.Fragment.empty,!0)))),e.copy(r)}function N(e,t,n,a,r){var i=e.node(t),o=r?e.indexAfter(t):e.index(t);if(o==i.childCount&&!n.compatibleContent(i.type))return null;var s=a.fillBefore(i.content,!0,o);return s&&!function(e,t,n){for(var a=n;a<t.childCount;a++)if(!e.allowsMarks(t.child(a).marks))return!0;return!1}(n,i.content,o)?s:null}function I(e,t,n,r,i){if(t<n){var o=e.firstChild;e=e.replaceChild(0,o.copy(I(o.content,t+1,n,r,o)))}if(t>r){var s=i.contentMatchAt(0),l=s.fillBefore(e).append(e);e=l.append(s.matchFragment(l).fillBefore(a.Fragment.empty,!0))}return e}function F(e,t){for(var n=[],a=Math.min(e.depth,t.depth);a>=0;a--){var r=e.start(a);if(r<e.pos-(e.depth-a)||t.end(a)>t.pos+(t.depth-a)||e.node(a).type.spec.isolating||t.node(a).type.spec.isolating)break;r==t.start(a)&&n.push(a)}return n}A.depth.get=function(){return this.frontier.length-1},j.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,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;for(var o=this.placed,s=r.depth,l=i.depth;s&&l&&1==o.childCount;)o=o.firstChild.content,s--,l--;var c=new a.Slice(o,s,l);return t>-1?new v(r.pos,t,this.$to.pos,this.$to.end(),c,n):c.size||r.pos!=this.$to.pos?new _(r.pos,i.pos,c):void 0},j.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,r=(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&&(r?l.matchType(r.type)||(u=l.fillBefore(a.Fragment.from(r),!1)):s.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:i,parent:n,inject:u};if(2==e&&r&&(c=l.findWrapping(r.type)))return{sliceDepth:t,frontierDepth:i,parent:n,wrap:c};if(n&&l.matchType(n.type))break}},j.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,i=Y(t,n);return!(!i.childCount||i.firstChild.isLeaf||(this.unplaced=new a.Slice(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),0))},j.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,i=Y(t,n);if(i.childCount<=1&&n>0){var o=t.size-n<=n+i.size;this.unplaced=new a.Slice(P(t,n-1,1),n-1,o?n-1:r)}else this.unplaced=new a.Slice(P(t,n,1),n,r)},j.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,r=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=r?r.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(z(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=$(this.placed,n,a.Fragment.from(p)),this.frontier[n].match=f,b&&v<0&&r&&r.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?a.Slice.empty:new a.Slice(P(l.content,t-1,1),t-1,v<0?l.openEnd:t-1):new a.Slice(P(l.content,t,d),l.openStart,l.openEnd)},j.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||!N(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,a=this.$to.after(n);n>1&&a==this.$to.end(--n);)++a;return a},j.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],a=n.match,r=n.type,i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=N(e,t,r,a,i);if(o){for(var s=t-1;s>=0;s--){var l=this.frontier[s],c=l.match,u=N(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}}}},j.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=$(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var a=e.node(n),r=a.type.contentMatch.fillBefore(a.content,!0,e.index(n));this.openFrontierNode(a.type,a.attrs,r)}return e},j.prototype.openFrontierNode=function(e,t,n){var r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=$(this.placed,this.depth,a.Fragment.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},j.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(a.Fragment.empty,!0);e.childCount&&(this.placed=$(this.placed,this.frontier.length,e))},Object.defineProperties(j.prototype,A),u.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var r=this.doc.resolve(e),i=this.doc.resolve(t);if(E(r,i,n))return this.step(new _(e,t,n));var o=F(r,this.doc.resolve(t));0==o[o.length-1]&&o.pop();var s=-(r.depth+1);o.unshift(s);for(var l=r.depth,c=r.pos-1;l>0;l--,c--){var u=r.node(l).type.spec;if(u.defining||u.isolating)break;o.indexOf(l)>-1?s=l:r.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&&r.node(d).type!=p[m-1].type?m-=1:m>=2&&p[m-1].isTextblock&&p[m-2].type.spec.defining&&r.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=r.node(x-1),M=r.index(x-1);if(D.canReplaceWith(M,M,b.type,b.marks))return this.replace(r.before(x),k?i.after(x):t,new a.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=r.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 r=function(e,t,n){var a=e.resolve(t);if(a.parent.canReplaceWith(a.index(),a.index(),n))return t;if(0==a.parentOffset)for(var r=a.depth-1;r>=0;r--){var i=a.index(r);if(a.node(r).canReplaceWith(i,i,n))return a.before(r+1);if(i>0)return null}if(a.parentOffset==a.parent.content.size)for(var o=a.depth-1;o>=0;o--){var s=a.indexAfter(o);if(a.node(o).canReplaceWith(s,s,n))return a.after(o+1);if(s<a.node(o).childCount)return null}}(this.doc,e,n.type);null!=r&&(e=t=r)}return this.replaceRange(e,t,new a.Slice(a.Fragment.from(n),0,0))},u.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),a=this.doc.resolve(t),r=F(n,a),i=0;i<r.length;i++){var o=r[i],s=i==r.length-1;if(s&&0==o||n.node(o).type.contentMatch.validEnd)return this.delete(n.start(o),a.end(o));if(o>0&&(s||n.node(o-1).canReplace(n.index(o-1),a.indexAfter(o-1))))return this.delete(n.before(o),a.after(o))}for(var l=1;l<=n.depth&&l<=a.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&a.end(l)-t!=a.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)}},"0b07":function(e,t,n){var a=n("34ac"),r=n("3698");e.exports=function(e,t){var n=r(e,t);return a(n)?n:void 0}},"0b19":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)}},"0bcc":function(e,t,n){var a=n("202a"),r=n("f486")(a);e.exports=r},"0caa":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var r={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 a?r[n][0]:r[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 a=n("83ab"),r=n("d039"),i=n("cc12");e.exports=!a&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"0d24":function(e,t,n){(function(e){var a=n("2b3e"),r=n("07c7"),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?a.Buffer:void 0,l=(s?s.isBuffer:void 0)||r;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 a=e%10,r=e%100-a,i=e>=100?100:null;return e+(t[a]||t[r]||t[i])}},week:{dow:1,doy:7}})}(n("c1df"))},"0ebd":function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},"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 a=n("cd9d"),r=n("2286"),i=n("c1c9");e.exports=function(e,t){return i(r(e,t,a),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 a=e[t];"object"!=typeof a||Object.isFrozen(a)||n(a)})),e}var a=n,r=n;a.default=r;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,a){for(let r=n.firstChild;r;r=r.nextSibling)3===r.nodeType?a+=r.nodeValue.length:1===r.nodeType&&(t.push({event:"start",offset:a,node:r}),a=e(r,a),l(r).match(/br|hr|img|input/)||t.push({event:"stop",offset:a,node:r}));return a}(e,0),t},mergeStreams:function(e,t,n){let a=0,r="";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){r+="<"+l(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+o(e.value)+'"'})).join("")+">"}function u(e){r+="</"+l(e)+">"}function d(e){("start"===e.event?c:u)(e.node)}for(;e.length||t.length;){let t=s();if(r+=o(n.substring(a,t[0].offset)),a=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===a);i.reverse().forEach(c)}else"start"===t[0].event?i.push(t[0].node):i.pop(),d(t.splice(0,1)[0])}return r+o(n.substr(a))}});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 a=s({className:"comment",begin:e,end:t,contains:[]},n);return a.contains.push(k),a.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),a},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},j={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[b,{begin:/\[/,end:/\]/,relevance:0,contains:[b]}]}]},A={className:"title",begin:h,relevance:0},P={className:"title",begin:_,relevance:0},$={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:j,TITLE_MODE:A,UNDERSCORE_TITLE_MODE:P,METHOD_GUARD:$,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 z=["of","and","for","in","not","or","if","then","parent","list","value"];function N(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 a=0,r="";for(let i=0;i<e.length;i++){a+=1;const o=a;let s=f(e[i]);for(i>0&&(r+=t),r+="(";s.length>0;){const e=n.exec(s);if(null==e){r+=s;break}r+=s.substring(0,e.index),s=s.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+o):(r+=e[0],"("===e[0]&&a++)}r+=")"}return r}(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)),a=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,a)}}class a{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 r(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?a("keyword",e):Object.keys(e).forEach((function(t){a(t,e[t])})),n;function a(e,a){t&&(a=a.toLowerCase()),a.split(" ").forEach((function(t){const a=t.split("|");n[a[0]]=[e,F(a[0],a[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=r),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 a;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 z.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),r=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,a){const r={code:t,language:e};k("before:highlight",r);const i=r.result?r.result:h(r.language,r.code,n,a);return i.code=r.code,k("after:highlight",i),i}function h(e,t,a,r){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 a=l(M,t);if(a){const[e,r]=a;C.addText(n),n="",T+=r;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 a=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,n);if(a){if(e["on:end"]){const n=new i(e);e["on:end"](t,n),n.ignore&&(a=!1)}if(a){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):(j=!0,0)}function v(e){const t=e[0],n=e.rule,a=new i(n),r=[n.__beforeBegin,n["on:begin"]];for(const n of r)if(n&&(n(e,a),a.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),a=m(M,e,n);if(!a)return W;const r=M;r.skip?L+=t:(r.returnEnd||r.excludeEnd||(L+=t),u(),r.excludeEnd&&(L=t));do{M.className&&C.closeNode(),M.skip||M.subLanguage||(T+=M.relevance),M=M.parent}while(M!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),p(a.starts)),r.returnEnd?0:t.length}let y={};function w(t,n){const r=n&&n[0];if(L+=t,null==r)return u(),0;if("begin"===y.type&&"end"===n.type&&y.index===n.index&&""===r){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&&!a){const e=new Error('Illegal lexeme "'+r+'" 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&&""===r)return 1;if(E>1e5&&E>3*n.index)throw new Error("potential infinite loop, way more iterations than matches");return L+=r,r.length}const x=b(e);if(!x)throw console.error(c.replace("{}",e)),new Error('Unknown language: "'+e+'"');const k=N(x);let D="",M=r||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,j=!1;try{for(M.matcher.considerAll();;){E++,j?j=!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 a=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),r=t.filter(b).filter(x).map((t=>h(t,e,!1)));r.unshift(a);const i=r.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 a=t.textContent,i=n?f(n,a,!0):_(a),o=q(t);if(o.length){const e=document.createElement("div");e.innerHTML=i.value,i.value=V(o,q(e),a)}i.value=v(i.value),k("after:highlightBlock",{block:e,result:i}),e.innerHTML=i.value,e.className=function(e,t,n){const a=t?r[t]:n,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),e.includes(a)||i.push(a),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[r[e]]}function w(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{r[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,a){let r=null;try{r=a(e)}catch(e){if(console.error("Language definition for '{}' could not be registered.".replace("{}",t)),!s)throw e;console.error(e),r=u}r.name||(r.name=t),n[t]=r,r.rawDefinition=a.bind(null,e),r.aliases&&w(r.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]&&a(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 a=n("d784"),r=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")}));a("split",2,(function(e,t,n){var a;return a="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 a=String(o(this)),i=void 0===n?h:n>>>0;if(0===i)return[];if(void 0===e)return[a];if(!r(e))return t.call(a,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(_,a))&&!((l=_.lastIndex)>f&&(u.push(a.slice(f,s.index)),s.length>1&&s.index<a.length&&m.apply(u,s.slice(1)),c=s[0].length,f=l,u.length>=i));)_.lastIndex===s.index&&_.lastIndex++;return f===a.length?!c&&_.test("")||u.push(""):u.push(a.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 r=o(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,r,n):a.call(String(r),t,n)},function(e,r){var o=n(a,e,this,r,a!==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===r?h:r>>>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}},"131f":function(e,t,n){var a=n("36a2"),r=n("487c"),i=n("8b0d"),o=n("ac88");e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?r(n)&&i(t,n.length):"string"==s&&t in n)&&a(n[t],e)}},1368:function(e,t,n){var a,r=n("da03"),i=(a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";e.exports=function(e){return!!i&&i in e}},"13d5":function(e,t,n){"use strict";var a=n("23e7"),r=n("d58f").left,i=n("a640"),o=n("ae40"),s=n("2d00"),l=n("605d"),c=i("reduce"),u=o("reduce",{1:0});a({target:"Array",proto:!0,forced:!c||!u||!l&&s>79&&s<83},{reduce:function(e){return r(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,a){var r=t.words[a];return 1===a.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};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 a=n("c6b6"),r=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"!==a(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},1501:function(e,t,n){var a=n("902a")(Object,"create");e.exports=a},"159b":function(e,t,n){var a=n("da84"),r=n("fdbc"),i=n("17c2"),o=n("9112");for(var s in r){var l=a[s],c=l&&l.prototype;if(c&&c.forEach!==i)try{o(c,"forEach",i)}catch(e){c.forEach=i}}},1653:function(e,t){e.exports=function(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}},"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"))},"16a9":function(e,t){e.exports=function(e){return this.__data__.get(e)}},"16f0":function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},"17c2":function(e,t,n){"use strict";var a=n("b727").forEach,r=n("a640"),i=n("ae40"),o=r("forEach"),s=i("forEach");e.exports=o&&s?[].forEach:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}},"193e":function(e,t,n){var a=n("f6d2"),r=n("d94e"),i=n("906b"),o=n("b1bc"),s=n("30ad");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=r,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},"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"))},"1bc6":function(e,t,n){var a=n("902a"),r=function(){try{var e=a(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},"1be4":function(e,t,n){var a=n("d066");e.exports=a("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var a=n("b622")("iterator"),r=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){r=!0}};o[a]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[a]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},"1ca8":function(e,t){e.exports=function(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}},"1cdc":function(e,t,n){var a=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(a)},"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},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 عام"]},r=function(e){return function(t,r,i,o){var s=n(t),l=a[e][n(t)];return 2===s&&(l=l[r?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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/،/g,",")},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 a=n("d039"),r=n("b622"),i=n("2d00"),o=r("species");e.exports=function(e){return i>=51||!a((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1ea7":function(e,t,n){var a=n("210a"),r=n("193e"),i=n("d3c7");e.exports=function(){this.size=0,this.__data__={hash:new a,map:new(i||r),string:new a}}},"1efc":function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},"1f55":function(e,t,n){var a=n("74d4"),r=n("4472");e.exports=function(e){return a(e,r(e))}},"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,a){return"m"===a?n?"хвіліна":"хвіліну":"h"===a?n?"гадзіна":"гадзіну":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[a],+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 a=n("4245");e.exports=function(e,t){var n=a(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?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"))},"202a":function(e,t,n){var a=n("c796"),r=n("1bc6"),i=n("a628"),o=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:a(t),writable:!0})}:i;e.exports=o},"210a":function(e,t,n){var a=n("abdd"),r=n("fc88"),i=n("8300"),o=n("2fe8"),s=n("8459");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=r,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},2266:function(e,t,n){var a=n("825a"),r=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?(a(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(r(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 a=n("85e3"),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=r(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),a(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"))},2311:function(e,t){e.exports=function(){return!1}},"231d":function(e,t,n){var a=n("57c1");e.exports=function(e,t){var n=a(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},2343:function(e,t,n){function a(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=a=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=a=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),a(t)}n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=a,e.exports.default=e.exports,e.exports.__esModule=!0},"23cb":function(e,t,n){var a=n("a691"),r=Math.max,i=Math.min;e.exports=function(e,t){var n=a(e);return n<0?r(n+t,0):i(n,t)}},"23e7":function(e,t,n){var a=n("da84"),r=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?a:_?a[f]||s(f,{}):(a[f]||{}).prototype)for(u in t){if(p=t[u],d=e.noTargetGet?(m=r(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 a=n("ca84"),r=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,r)}},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"},a=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:a,monthsShort:a,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 a=n("2b3e").Uint8Array;e.exports=a},2478:function(e,t,n){var a=n("4245");e.exports=function(e){return a(this,e).get(e)}},2524:function(e,t,n){var a=n("6044");e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=a&&void 0===t?"__lodash_hash_undefined__":t,this}},"252c":function(e,t,n){"use strict";(function(e){var a;function r(){r.init||(r.init=!0,a=-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 a=e.indexOf("Edge/");return a>0?parseInt(e.substring(a+5,e.indexOf(".",a)),10):-1}())}function i(e,t,n,a,r,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,r&&(d.functional=!0)),a&&(d._scopeId=a),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}));var o={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var e=this;r(),this.$nextTick((function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight,e.emitOnMount&&e.emitSize()}));var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",a&&this.$el.appendChild(t),t.data="about:blank",a||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!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:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!a&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},s=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})};s._withStripped=!0;var l=i({render:s,staticRenderFns:[]},void 0,o,"data-v-8859cc6c",!1,void 0,!1,void 0,void 0,void 0),c={version:"1.0.1",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 a=n("23e7"),r=n("5a34"),i=n("1d80");a({target:"String",proto:!0,forced:!n("ab13")("includes")},{includes:function(e){return!!~String(i(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},"253c":function(e,t,n){var a=n("3729"),r=n("1310");e.exports=function(e){return r(e)&&"[object Arguments]"==a(e)}},2554:function(e,t,n){!function(e){"use strict";function t(e,t,n){var a=e+" ";switch(n){case"ss":return a+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return a+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return a+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return a+=1===e?"dan":"dana";case"MM":return a+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return a+=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 a=n("6eeb"),r=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)&&a(RegExp.prototype,s,(function(){var e=r(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 a=n("d066"),r=n("9bf2"),i=n("b622"),o=n("83ab"),s=i("species");e.exports=function(e){var t=a(e),n=r.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,a){return t?"kelios sekundės":a?"kelių sekundžių":"kelias sekundes"}function a(e,t,n,a){return t?i(n)[0]:a?i(n)[1]:i(n)[2]}function r(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+a(e,t,n[0],o):t?s+(r(e)?i(n)[1]:i(n)[0]):o?s+i(n)[1]:s+(r(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:a,mm:o,h:a,hh:o,d:a,dd:o,M:a,MM:o,y:a,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("c1df"))},"27ea":function(e,t,n){var a=n("a92b"),r=n("ae2d"),i=n("9f66"),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)&&r(e.length)&&!!o[a(e)]}},"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,a){var r=t.words[a];return 1===a.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};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 a=n("825a");e.exports=function(e){var t=e.return;if(void 0!==t)return a(t.call(e)).value}},"2b3e":function(e,t,n){var a=n("585a"),r="object"==typeof self&&self&&self.Object===Object&&self,i=a||r||Function("return this")();e.exports=i},"2bef":function(e,t){e.exports=function(e){return function(t){return e(t)}}},"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 a,r=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");r({target:"String",proto:!0,forced:!(!u&&!m&&(a=i(String.prototype,"startsWith"),a&&!a.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)),a=String(e);return d?d.call(t,a,n):t.slice(n,n+a.length)===a}})},"2cb6":function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},"2cf4":function(e,t,n){var a,r,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)},a(y),y},h=function(e){delete b[e]},p?a=function(e){_.nextTick(k(e))}:g&&g.now?a=function(e){g.now(k(e))}:v&&!d?(i=(r=new v).port2,r.port1.onmessage=D,a=l(i.postMessage,i,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts&&m&&"file:"!==m.protocol&&!s(M)?(a=M,o.addEventListener("message",D,!1)):a=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 a,r,i=n("da84"),o=n("342f"),s=i.process,l=s&&s.versions,c=l&&l.v8;c?r=(a=c.split("."))[0]+a[1]:o&&(!(a=o.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=o.match(/Chrome\/(\d+)/))&&(r=a[1]),e.exports=r&&+r},"2dcb":function(e,t,n){var a=n("91e9")(Object.getPrototypeOf,Object);e.exports=a},"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 a=n("100e"),r=n("9aff");e.exports=function(e){return a((function(t,n){var a=-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&&r(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++a<i;){var l=n[a];l&&e(t,l,a,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}},"2fe8":function(e,t,n){var a=n("1501"),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return a?void 0!==t[e]:r.call(t,e)}},3039:function(e,t){e.exports=function(e){return this.__data__.has(e)}},"304a":function(e,t,n){"use strict";function a(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 ae})),n.d(t,"Node",(function(){return $})),n.d(t,"NodeRange",(function(){return j})),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 re})),n.d(t,"Slice",(function(){return f})),a.prototype={constructor:a,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 r=n&&n!=e?this.remove(n):this,i=r.find(e),o=r.content.slice();return-1==i?o.push(n||e,t):(o[i+1]=t,n&&(o[i]=n)),new a(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 a(n)},addToStart:function(e,t){return new a([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new a(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),o=r.find(e);return i.splice(-1==o?i.length:o,0,t,n),new a(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=a.from(e)).size?new a(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=a.from(e)).size?new a(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=a.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}},a.from=function(e){if(e instanceof a)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new a(t)};var r=a;function i(e,t,n){for(var a=0;;a++){if(a==e.childCount||a==t.childCount)return e.childCount==t.childCount?null:n;var r=e.child(a),o=t.child(a);if(r!=o){if(!r.sameMarkup(o))return n;if(r.isText&&r.text!=o.text){for(var s=0;r.text[s]==o.text[s];s++)n++;return n}if(r.content.size||o.content.size){var l=i(r.content,o.content,n+1);if(null!=l)return l}n+=r.nodeSize}else n+=r.nodeSize}}function o(e,t,n,a){for(var r=e.childCount,i=t.childCount;;){if(0==r||0==i)return r==i?null:{a:n,b:a};var s=e.child(--r),l=t.child(--i),c=s.nodeSize;if(s!=l){if(!s.sameMarkup(l))return{a:n,b:a};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--,a--;return{a:n,b:a}}if(s.content.size||l.content.size){var p=o(s.content,l.content,n-1,a-1);if(p)return p}n-=c,a-=c}else n-=c,a-=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,a,r){void 0===a&&(a=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,a+o,r,i)&&s.content.size){var c=o+1;s.nodesBetween(Math.max(0,e-c),Math.min(s.content.size,t-c),n,a+c)}o=l}},s.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},s.prototype.textBetween=function(e,t,n,a){var r="",i=!0;return this.nodesBetween(e,t,(function(o,s){o.isText?(r+=o.text.slice(Math.max(e,s)-s,t-s),i=!n):o.isLeaf&&a?(r+=a,i=!n):!i&&o.isBlock&&(r+=n,i=!0)}),0),r},s.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,a=this.content.slice(),r=0;for(t.isText&&t.sameMarkup(n)&&(a[a.length-1]=t.withText(t.text+n.text),r=1);r<e.content.length;r++)a.push(e.content[r]);return new s(a,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=[],a=0;if(t>e)for(var r=0,i=0;i<t;r++){var o=this.content[r],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),a+=o.nodeSize),i=l}return new s(n,a)},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 a=this.content.slice(),r=this.size+t.nodeSize-n.nodeSize;return a[e]=t,new s(a,r)},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 a=this.content[t];e(a,n,t),n+=a.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,a=0;;n++){var r=a+this.child(n).nodeSize;if(r>=e)return r==e||t>0?u(n+1,r):u(n,a);a=r}},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,a=0;a<e.length;a++){var r=e[a];n+=r.nodeSize,a&&r.isText&&e[a-1].sameMarkup(r)?(t||(t=e.slice(0,a)),t[t.length-1]=r.withText(t[t.length-1].text+r.text)):t&&t.push(r)}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 a=0;a<e.length;a++)if(!d(e[a],t[a]))return!1}else{for(var r in e)if(!(r in t)||!d(e[r],t[r]))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,a=0;a<e.length;a++){var r=e[a];if(this.eq(r))return e;if(this.type.excludes(r.type))t||(t=e.slice(0,a));else{if(r.type.excludes(this.type))return e;!n&&r.type.rank>this.type.rank&&(t||(t=e.slice(0,a)),t.push(this),n=!0),t&&t.push(r)}}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 a=e.findIndex(t),r=a.index,i=a.offset,o=e.maybeChild(r),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(r!=l)throw new RangeError("Removing non-flat range");return e.replaceChild(r,o.copy(_(o.content,t-i-1,n-i-1)))}function v(e,t,n,a){var r=e.findIndex(t),i=r.index,o=r.offset,s=e.maybeChild(i);if(o==t||s.isText)return a&&!a.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,a){var r=e.index(a),i=e.node(a);if(r==t.index(a)&&a<e.depth-n.openStart){var o=y(e,t,n,a+1);return i.copy(i.content.replaceChild(r,o))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=a||t.depth!=a){var l=function(e,t){for(var n=t.depth-e.openStart,a=t.node(n).copy(e.content),r=n-1;r>=0;r--)a=t.node(r).copy(s.from(a));return{start:a.resolveNoCache(e.openStart+n),end:a.resolveNoCache(a.content.size-e.openEnd-n)}}(n,e);return D(i,M(e,l.start,l.end,t,a))}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,a))}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 a=e.node(n);return b(a,t.node(n)),a}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,a){var r=(t||e).node(n),i=0,o=t?t.index(n):r.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(x(e.nodeAfter,a),i++));for(var s=i;s<o;s++)x(r.child(s),a);t&&t.depth==n&&t.textOffset&&x(t.nodeBefore,a)}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,a,r){var i=e.depth>r&&w(e,t,r+1),o=a.depth>r&&w(n,a,r+1),l=[];return k(null,e,r,l),i&&o&&t.index(r)==n.index(r)?(b(i,o),x(D(i,M(e,t,n,a,r+1)),l)):(i&&x(D(i,S(e,t,r+1)),l),k(t,n,r,l),o&&x(D(o,S(n,a,r+1)),l)),k(a,null,r,l),new s(l)}function S(e,t,n){var a=[];return k(null,e,n,a),e.depth>n&&x(D(w(e,t,n+1),S(e,t,n+1)),a),k(t,null,n,a),new s(a)}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,a=t.openEnd||0;if("number"!=typeof n||"number"!=typeof a)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,a=0,r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(var i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)a++;return new f(e,n,a)},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],a=e.child(t);return n?e.child(t).cut(n):a},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),a=e.maybeChild(t);if(!n){var r=n;n=a,a=r}for(var i=n.marks,o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||a&&i[o].isInSet(a.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,a=e.parent.maybeChild(e.index()),r=0;r<n.length;r++)!1!==n[r].type.spec.inclusive||a&&n[r].isInSet(a.marks)||(n=n[r--].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 j(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=[],a=0,r=t,i=e;;){var o=i.content.findIndex(r),s=o.index,l=o.offset,c=r-l;if(n.push(i,s,a+l),!c)break;if((i=i.child(s)).isText)break;r=c-1,a+=l+1}return new C(t,n,r)},C.resolveCached=function(e,t){for(var n=0;n<T.length;n++){var a=T[n];if(a.pos==t&&a.doc==e)return a}var r=T[O]=C.resolve(e,t);return O=(O+1)%E,r},Object.defineProperties(C.prototype,L);var T=[],O=0,E=12,j=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},A={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};A.start.get=function(){return this.$from.before(this.depth+1)},A.end.get=function(){return this.$to.after(this.depth+1)},A.parent.get=function(){return this.$from.node(this.depth)},A.startIndex.get=function(){return this.$from.index(this.depth)},A.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(j.prototype,A);var P=Object.create(null),$=function(e,t,n,a){this.type=e,this.attrs=t,this.content=n||s.empty,this.marks=a||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},$.prototype.child=function(e){return this.content.child(e)},$.prototype.maybeChild=function(e){return this.content.maybeChild(e)},$.prototype.forEach=function(e){this.content.forEach(e)},$.prototype.nodesBetween=function(e,t,n,a){void 0===a&&(a=0),this.content.nodesBetween(e,t,n,a,this)},$.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},Y.textContent.get=function(){return this.textBetween(0,this.content.size,"")},$.prototype.textBetween=function(e,t,n,a){return this.content.textBetween(e,t,n,a)},Y.firstChild.get=function(){return this.content.firstChild},Y.lastChild.get=function(){return this.content.lastChild},$.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},$.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},$.prototype.hasMarkup=function(e,t,n){return this.type==e&&d(this.attrs,t||e.defaultAttrs||P)&&p.sameSet(this.marks,n||p.none)},$.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},$.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},$.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},$.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 a=this.resolve(e),r=this.resolve(t),i=n?0:a.sharedDepth(t),o=a.start(i),s=a.node(i).content.cut(a.pos-o,r.pos-o);return new f(s,a.depth-i,r.depth-i)},$.prototype.replace=function(e,t,n){return g(this.resolve(e),this.resolve(t),n)},$.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),a=n.index,r=n.offset;if(!(t=t.maybeChild(a)))return null;if(r==e||t.isText)return t;e-=r+1}},$.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,a=t.offset;return{node:this.content.maybeChild(n),index:n,offset:a}},$.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,a=t.offset;if(a<e)return{node:this.content.child(n),index:n,offset:a};var r=this.content.child(n-1);return{node:r,index:n-1,offset:a-r.nodeSize}},$.prototype.resolve=function(e){return C.resolveCached(this,e)},$.prototype.resolveNoCache=function(e){return C.resolve(this,e)},$.prototype.rangeHasMark=function(e,t,n){var a=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(a=!0),!a})),a},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},$.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()+")"),N(this.marks,e)},$.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},$.prototype.canReplace=function(e,t,n,a,r){void 0===n&&(n=s.empty),void 0===a&&(a=0),void 0===r&&(r=n.childCount);var i=this.contentMatchAt(e).matchFragment(n,a,r),o=i&&i.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(var l=a;l<r;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0},$.prototype.canReplaceWith=function(e,t,n,a){if(a&&!this.type.allowsMarks(a))return!1;var r=this.contentMatchAt(e).matchType(n),i=r&&r.matchFragment(this.content,t);return!!i&&i.validEnd},$.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},$.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()}))},$.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},$.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 a=s.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,a,n)},Object.defineProperties($.prototype,Y);var z=function(e){function t(t,n,a,r){if(e.call(this,t,n,null,r),!a)throw new RangeError("Empty text nodes are not allowed");this.text=a}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):N(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}($);function N(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 a=B(n);n.next&&n.err("Unexpected trailing text");var r=function(e){var t=Object.create(null);return n(Z(e,0));function n(a){var r=[];a.forEach((function(t){e[t].forEach((function(t){var n=t.term,a=t.to;if(n){var i=r.indexOf(n),o=i>-1&&r[i+1];Z(e,a).forEach((function(e){o||r.push(n,o=[]),-1==o.indexOf(e)&&o.push(e)}))}}))}));for(var i=t[a.join(",")]=new I(a.indexOf(e.length-1)>-1),o=0;o<r.length;o+=2){var s=r[o+1].sort(K);i.next.push(r[o],t[s.join(",")]||n(s))}return i}}(function(e){var t=[[]];return r(i(e,0),n()),t;function n(){return t.push([])-1}function a(e,n,a){var r={term:a,to:n};return t[e].push(r),r}function r(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;r(s,t=n())}else{if("star"==e.type){var l=n();return a(t,l),r(i(e.expr,l),l),[a(l)]}if("plus"==e.type){var c=n();return r(i(e.expr,t),c),r(i(e.expr,c),c),[a(c)]}if("opt"==e.type)return[a(t)].concat(i(e.expr,t));if("range"==e.type){for(var u=t,d=0;d<e.min;d++){var p=n();r(i(e.expr,u),p),u=p}if(-1==e.max)r(i(e.expr,u),u);else for(var m=e.min;m<e.max;m++){var f=n();a(u,f),r(i(e.expr,u),f),u=f}return[a(u)]}if("name"==e.type)return[a(t,null,e.value)]}}}(a));return function(e,t){for(var n=0,a=[e];n<a.length;n++){for(var r=a[n],i=!r.validEnd,o=[],s=0;s<r.next.length;s+=2){var l=r.next[s],c=r.next[s+1];o.push(l.name),!i||l.isText||l.hasRequiredAttrs()||(i=!1),-1==a.indexOf(c)&&a.push(c)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position")}}(r,n),r},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 a=this,r=t;a&&r<n;r++)a=a.matchType(e.child(r).type);return a},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 a=[this];return function r(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==a.indexOf(d)){a.push(d);var p=r(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 a=n.shift(),r=a.match;if(r.matchType(e)){for(var i=[],o=a;o.type;o=o.via)i.push(o.type);return i.reverse()}for(var s=0;s<r.next.length;s+=2){var l=r.next[s];l.isLeaf||l.hasRequiredAttrs()||l.name in t||a.type&&!r.next[s+1].validEnd||(n.push({match:l.contentMatch,type:l,via:a}),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 a=1;a<n.next.length;a+=2)-1==e.indexOf(n.next[a])&&t(n.next[a])}(this),e.map((function(t,n){for(var a=n+(t.validEnd?"*":" ")+" ",r=0;r<t.next.length;r+=2)a+=(r?", ":"")+t.next[r].name+"->"+e.indexOf(t.next[r+1]);return a})).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,a=n[t];if(a)return[a];var r=[];for(var i in n){var o=n[i];o.groups.indexOf(t)>-1&&r.push(o)}return 0==r.length&&e.err("No node type or group '"+t+"' found"),r}(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),a=n;return e.eat(",")&&(a="}"!=e.next?W(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:a,expr:t}}function K(e,t){return t-e}function Z(e,t){var n=[];return function t(a){var r=e[a];if(1==r.length&&!r[0].term)return t(r[0].to);n.push(a);for(var i=0;i<r.length;i++){var o=r[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 a=e[n];if(!a.hasDefault)return null;t[n]=a.default}return t}function J(e,t){var n=Object.create(null);for(var a in e){var r=t&&t[a];if(void 0===r){var i=e[a];if(!i.hasDefault)throw new RangeError("No value supplied for attribute "+a);r=i.default}n[a]=r}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 $(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 $(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 a=this.contentMatch.fillBefore(t);if(!a)return null;t=a.append(t)}var r=this.contentMatch.matchFragment(t).fillBefore(s.empty,!0);return r?new $(this,e,t.append(r),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,a){return n[e]=new Q(e,t,a)}));var a=t.spec.topNode||"doc";if(!n[a])throw new RangeError("Schema is missing its top node type ('"+a+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var r 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 ae=function(e,t,n,a){this.name=e,this.schema=n,this.spec=a,this.attrs=X(a.attrs),this.rank=t,this.excluded=null;var r=G(this.attrs);this.instance=r&&new p(this,r)};ae.prototype.create=function(e){return!e&&this.instance?this.instance:new p(this,J(this.attrs,e))},ae.compile=function(e,t){var n=Object.create(null),a=0;return e.forEach((function(e,r){return n[e]=new ae(e,a++,t,r)})),n},ae.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},ae.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},ae.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var re=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=r.from(e.nodes),this.spec.marks=r.from(e.marks),this.nodes=Q.compile(this.spec.nodes,this),this.marks=ae.compile(this.spec.marks,this);var n=Object.create(null);for(var a in this.nodes){if(a in this.marks)throw new RangeError(a+" can not be both a node and a mark");var i=this.nodes[a],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=[],a=0;a<t.length;a++){var r=t[a],i=e.marks[r],o=i;if(i)n.push(i);else for(var s in e.marks){var l=e.marks[s];("_"==r||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[a]+"'")}return n}re.prototype.node=function(e,t,n,a){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,a)},re.prototype.text=function(e,t){var n=this.nodes.text;return new z(n,n.defaultAttrs,e,p.setFrom(t))},re.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},re.prototype.nodeFromJSON=function(e){return $.fromJSON(this,e)},re.prototype.markFromJSON=function(e){return p.fromJSON(this,e)},re.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 a=this.tags[n];if(fe(e,a.tag)&&(void 0===a.namespace||e.namespaceURI==a.namespace)&&(!a.context||t.matchesContext(a.context))){if(a.getAttrs){var r=a.getAttrs(e);if(!1===r)continue;a.attrs=r}return a}}},oe.prototype.matchStyle=function(e,t,n){for(var a=0;a<this.styles.length;a++){var r=this.styles[a];if(!(0!=r.style.indexOf(e)||r.context&&!n.matchesContext(r.context)||r.style.length>e.length&&(61!=r.style.charCodeAt(e.length)||r.style.slice(e.length+1)!=t))){if(r.getAttrs){var i=r.getAttrs(t);if(!1===i)continue;r.attrs=i}return r}}},oe.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,a=0;a<t.length;a++){var r=t[a];if((null==r.priority?50:r.priority)<n)break}t.splice(a,0,e)}var a,r=function(t){var a=e.marks[t].spec.parseDOM;a&&a.forEach((function(e){n(e=he(e)),e.mark=t}))};for(var i in e.marks)r(i);for(var o in e.nodes)a=void 0,(a=e.nodes[o].spec.parseDOM)&&a.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,a,r,i,o){this.type=e,this.attrs=t,this.solid=r,this.match=i||(4&o?null:e.contentMatch),this.options=o,this.content=[],this.marks=n,this.activeMarks=p.none,this.pendingMarks=a};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,a=this.type.contentMatch;return(n=a.findWrapping(e.type))?(this.match=a,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 a=s.from(this.content);return!e&&this.match&&(a=a.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,a,this.marks):a},de.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var a=n[t];(this.type?this.type.allowsMarkType(a.type):_e(a.type,e))&&!a.isInSet(this.activeMarks)&&(this.activeMarks=a.addToSet(this.activeMarks),this.pendingMarks=a.removeFromSet(this.pendingMarks))}};var pe=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var a,r=t.topNode,i=ue(t.preserveWhitespace)|(n?4:0);a=r?new de(r.type,r.attrs,p.none,p.none,!0,t.topMatch||r.type.contentMatch,i):new de(n?null:e.schema.topNodeType,null,p.none,p.none,!0,null,i),this.nodes=[a],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,a=function(a){var r=n[a];if(r.allowsMarkType(e)){var i=[],o=function(e){i.push(e);for(var n=0;n<e.edgeCount;n++){var a=e.edge(n),r=a.type,s=a.next;if(r==t)return!0;if(i.indexOf(s)<0&&o(s))return!0}};return o(r.contentMatch)?{v:!0}:void 0}};for(var r in n){var i=a(r);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,a=[];t=n.exec(e);)a.push(t[1],t[2].trim());return a}(t)):null,a=this.top;if(null!=n)for(var r=0;r<n.length;r++)this.addPendingMark(n[r]);if(this.addElement(e),null!=n)for(var i=0;i<n.length;i++)this.removePendingMark(n[i],a)}},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 a=n.content[n.content.length-1],r=e.previousSibling;(!a||r&&"BR"==r.nodeName||a.isText&&/[ \t\r\n\u000c]$/.test(a.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 a=1==t.nodeType?t.nodeName.toLowerCase():null;a&&ce.hasOwnProperty(a)&&n?(n.appendChild(t),t=n):"li"==a?n=t:a&&(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 a,r=this.top,i=this.needsBlock;if(se.hasOwnProperty(t))a=!0,r.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),a&&this.sync(r),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 a=this.parser.matchStyle(e[n],e[n+1],this);if(a){if(a.ignore)return null;t=this.parser.schema.marks[a.mark].create(a.attrs).addToSet(t)}}return t},pe.prototype.addElementByRule=function(e,t){var n,a,r,i=this;t.node?(a=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(a.create(t.attrs))||this.leafFallback(e):n=this.enter(a,t.attrs,t.preserveWhitespace):(r=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(r));var o=this.top;if(a&&a.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--),r&&this.removePendingMark(r,o)},pe.prototype.addAll=function(e,t,n,a){for(var r=n||0,i=n?e.childNodes[n]:e.firstChild,o=null==a?null:e.childNodes[a];i!=o;i=i.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(i),t&&se.hasOwnProperty(i.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,r)},pe.prototype.findPlace=function(e){for(var t,n,a=this.open;a>=0;a--){var r=this.nodes[a],i=r.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,n=r,!i.length))break;if(r.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 a=n.activeMarks,r=0;r<e.marks.length;r++)n.type&&!n.type.allowsMarkType(e.marks[r].type)||(a=e.marks[r].addToSet(a));return n.content.push(e.mark(a)),!0}return!1},pe.prototype.enter=function(e,t,n){var a=this.findPlace(e.create(t));return a&&this.enterInner(e,t,!0,n),a},pe.prototype.enterInner=function(e,t,n,a){this.closeExtra();var r=this.top;r.applyPending(e),r.match=r.match&&r.match.matchType(e,t);var i=null==a?-5&r.options:ue(a);4&r.options&&0==r.content.length&&(i|=4),this.nodes.push(new de(e,t,r.activeMarks,r.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,a=n.length-1;a>=0;a--)e+=n[a].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 a=0;a<this.find.length;a++)null==this.find[a].pos&&1==e.nodeType&&e.contains(this.find[a].node)&&t.compareDocumentPosition(this.find[a].node)&(n?2:4)&&(this.find[a].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("/"),a=this.options.context,r=!(this.isOpen||a&&a.parent.type!=this.nodes[0].type),i=-(a?a.depth+1:0)+(r?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&&r?t.nodes[s].type:a&&s>=i?a.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 a in this.parser.schema.nodes){var r=this.parser.schema.nodes[a];if(r.isTextblock&&r.defaultAttrs)return r}},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 a=this.nodes[n];if(a.pendingMarks.lastIndexOf(e)>-1?a.pendingMarks=e.removeFromSet(a.pendingMarks):a.activeMarks=e.removeFromSet(a.activeMarks),a==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 a=e[n].spec.toDOM;a&&(t[n]=a)}return t}function ye(e){return e.document||window.document}ve.prototype.serializeFragment=function(e,t,n){var a=this;void 0===t&&(t={}),n||(n=ye(t).createDocumentFragment());var r=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(a.marks[s.type.name]){if(!s.eq(i[n])||!1===s.type.spec.spanning)break;n+=2,o++}else o++}for(;n<i.length;)r=i.pop(),i.pop();for(;o<e.marks.length;){var l=e.marks[o++],c=a.serializeMark(l,e.isInline,t);c&&(i.push(l,r),r.appendChild(c.dom),r=c.contentDOM||c.dom)}}r.appendChild(a.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)),a=n.dom,r=n.contentDOM;if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,r,t):this.serializeFragment(e.content,t,r)}return a},ve.prototype.serializeNodeAndMarks=function(e,t){void 0===t&&(t={});for(var n=this.serializeNode(e,t),a=e.marks.length-1;a>=0;a--){var r=this.serializeMark(e.marks[a],e.isInline,t);r&&((r.contentDOM||r.dom).appendChild(n),n=r.dom)}return n},ve.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var a=this.marks[e.type.name];return a&&ve.renderSpec(ye(n),a(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 a=t[0],r=a.indexOf(" ");r>0&&(n=a.slice(0,r),a=a.slice(r+1));var i=null,o=n?e.createElementNS(n,a):e.createElement(a),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)}},"30ad":function(e,t,n){var a=n("ed28");e.exports=function(e,t){var n=this.__data__,r=a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},"30c9":function(e,t,n){var a=n("9520"),r=n("b218");e.exports=function(e){return null!=e&&r(e.length)&&!a(e)}},"32b3":function(e,t,n){var a=n("872a"),r=n("9638"),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];i.call(e,t)&&r(o,n)&&(void 0!==n||t in e)||a(e,t,n)}},3307:function(e,t,n){var a=n("8aed").Uint8Array;e.exports=a},"342f":function(e,t,n){var a=n("d066");e.exports=a("navigator","userAgent")||""},"34ac":function(e,t,n){var a=n("9520"),r=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)||r(e))&&(a(e)?p:s).test(o(e))}},"35a1":function(e,t,n){var a=n("f5df"),r=n("3f8c"),i=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||r[a(e)]}},"367c":function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},3698:function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},"36a2":function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},3729:function(e,t,n){var a=n("9e69"),r=n("00fd"),i=n("29f3"),o=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?r(e):i(e)}},"37e8":function(e,t,n){var a=n("83ab"),r=n("9bf2"),i=n("825a"),o=n("df75");e.exports=a?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[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 a(e,t,n,a){var r="";if(t)switch(n){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(n){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.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:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},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"))},"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 a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<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,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},week:{dow:1,doy:7}})}(n("c1df"))},"3b4a":function(e,t,n){var a=n("0b07"),r=function(){try{var e=a(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},"3bbe":function(e,t,n){var a=n("861d");e.exports=function(e){if(!a(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("_"),a=[/^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],r=/^(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,a){var r=e+" ";switch(n){case"s":return t||a?"pár sekund":"pár sekundami";case"ss":return t||a?r+(i(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":a?"minutu":"minutou";case"mm":return t||a?r+(i(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?r+(i(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||a?"den":"dnem";case"dd":return t||a?r+(i(e)?"dny":"dní"):r+"dny";case"M":return t||a?"měsíc":"měsícem";case"MM":return t||a?r+(i(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||a?"rok":"rokem";case"yy":return t||a?r+(i(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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 a=n("6547").charAt,r=n("69f3"),i=n("7dd0"),o="String Iterator",s=r.set,l=r.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,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=a(n,r),t.index+=e.length,{value:e,done:!1})}))},"3ce4":function(e,t,n){"use strict";var a=n("1020"),r=n("073e");t.highlight=o,t.highlightAuto=function(e,t){var n,s,l,c,u=t||{},d=u.subset||a.listLanguages(),p=u.prefix,m=d.length,f=-1;if(null==p&&(p=i),"string"!=typeof e)throw r("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],a.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){a.registerLanguage(e,t)},t.listLanguages=function(){return a.listLanguages()},t.registerAlias=function(e,t){var n,r=e;for(n in t&&((r={})[e]=t),r)a.registerAliases(r[n],{languageName:n})},s.prototype.addText=function(e){var t,n,a=this.stack;""!==e&&(t=a[a.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,a=n[n.length-1],r=e.rootNode.children,i=t?{type:"element",tagName:"span",properties:{className:[t]},children:r}:r;a.children=a.children.concat(i)},s.prototype.openNode=function(e){var t=this.stack,n=this.options.classPrefix+e,a=t[t.length-1],r={type:"element",tagName:"span",properties:{className:[n]},children:[]};a.children.push(r),t.push(r)},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=a.configure({}),c=(n||{}).prefix;if("string"!=typeof e)throw r("Expected `string` for name, got `%s`",e);if(!a.getLanguage(e))throw r("Unknown language: `%s` is not registered",e);if("string"!=typeof t)throw r("Expected `string` for value, got `%s`",t);if(null==c&&(c=i),a.configure({__emitter:s,classPrefix:c}),o=a.highlight(e,t,!0),a.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 a=n("23e7"),r=n("17c2");a({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},"41c3":function(e,t,n){var a=n("1a8c"),r=n("eac5"),i=n("ec8c"),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!a(e))return i(e);var t=r(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 a=n("1290");e.exports=function(e,t){var n=e.__data__;return a(t)?n["string"==typeof t?"string":"hash"]:n.map}},42454:function(e,t,n){var a=n("f909"),r=n("2ec1")((function(e,t,n){a(e,t,n)}));e.exports=r},"428f":function(e,t,n){var a=n("da84");e.exports=a},"434b":function(e,t,n){var a,r=n("ad4e"),i=(a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";e.exports=function(e){return!!i&&i in e}},4359:function(e,t){e.exports=function(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}},"440c":function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var r={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?r[n][0]:r[n][1]}function n(e){return r(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function a(e){return r(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function r(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 r(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return r(e)}return r(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:a,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"))},4472:function(e,t,n){var a=n("f558"),r=n("59bc"),i=n("487c");e.exports=function(e){return i(e)?a(e,!0):r(e)}},"44ad":function(e,t,n){var a=n("d039"),r=n("c6b6"),i="".split;e.exports=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var a=n("b622"),r=n("7c73"),i=n("9bf2"),o=a("unscopables"),s=Array.prototype;null==s[o]&&i.f(s,o,{configurable:!0,value:r(null)}),e.exports=function(e){s[o][e]=!0}},"44de":function(e,t,n){var a=n("da84");e.exports=function(e,t){var n=a.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var a=n("861d"),r=n("c6b6"),i=n("b622")("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},"44f3":function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,a){n[++t]=[a,e]})),n}},4678:function(e,t,n){var a={"./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 r(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=i,e.exports=r,r.id="4678"},4773:function(e,t,n){var a=n("eebf"),r=n("f87b"),i=n("ae58"),o=n("1ca8"),s=n("71b8"),l=n("9fc8"),c=n("d934"),u=n("f0c4"),d=n("505d"),p=n("6273"),m=n("ac88"),f=n("aad9"),h=n("cd04"),_=n("9e0f"),v=n("1f55");e.exports=function(e,t,n,g,y,b,w){var x=_(e,n),k=_(t,n),D=w.get(k);if(D)a(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=r(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)),a(e,n,M)}}},4840:function(e,t,n){var a=n("825a"),r=n("1c0b"),i=n("b622")("species");e.exports=function(e,t){var n,o=a(e).constructor;return void 0===o||null==(n=a(o)[i])?t:r(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,a=e%100-n,r=e>=100?100:null;return e+(t[n]||t[a]||t[r])},week:{dow:1,doy:7}})}(n("c1df"))},"487c":function(e,t,n){var a=n("6273"),r=n("ae2d");e.exports=function(e){return null!=e&&r(e.length)&&!a(e)}},4930:function(e,t,n){var a=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!a((function(){return!String(Symbol())}))},"498a":function(e,t,n){"use strict";var a=n("23e7"),r=n("58a8").trim;a({target:"String",proto:!0,forced:n("c8d2")("trim")},{trim:function(){return r(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 a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1200?"上午":1200===a?"中午":a<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 a=n("6044");e.exports=function(){this.__data__=a?a(null):{},this.size=0}},"4b73":function(e,t,n){(function(e){var a=n("b83a"),r=t&&!t.nodeType&&t,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===r&&a.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))},"4ba9":function(e,t,n){!function(e){"use strict";function t(e,t,n){var a=e+" ";switch(n){case"ss":return a+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return a+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return a+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return a+=1===e?"dan":"dana";case"MM":return a+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return a+=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"))},"4d5b":function(e,t,n){var a=n("86c5"),r=n("e253"),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!a(e))return r(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},"4d64":function(e,t,n){var a=n("fc6a"),r=n("50c4"),i=n("23cb"),o=function(e){return function(t,n,o){var s,l=a(t),c=r(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 a=n("23e7"),r=n("b727").filter,i=n("1dde"),o=n("ae40"),s=i("filter"),l=o("filter");a({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var a=n("0366"),r=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=r(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=a(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 a=n("b760"),r=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)a(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=r(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)),a(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"))},"505d":function(e,t,n){(function(e){var a=n("8aed"),r=n("2311"),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?a.Buffer:void 0,l=(s?s.isBuffer:void 0)||r;e.exports=l}).call(this,n("62e4")(e))},"50c4":function(e,t,n){var a=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(a(e),9007199254740991):0}},"50d8":function(e,t){e.exports=function(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}},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"],a=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],r=["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:a,weekdaysShort:r,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 a=n("304a"),r=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=a.Slice.empty);for(var n=t.content.lastChild,r=null,i=0;i<t.openEnd;i++)r=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?a.Slice.empty:t),0==l&&_(e,o,(n?n.isInline:r&&r.isTextblock)?-1:1)}},o.prototype.replaceWith=function(e,t){for(var n=e.steps.length,a=this.ranges,r=0;r<a.length;r++){var i=a[r],o=i.$from,s=i.$to,l=e.mapping.slice(n),c=l.map(o.pos),u=l.map(s.pos);r?e.deleteRange(c,u):(e.replaceRangeWith(c,u,t),_(e,n,t.isInline?-1:1))}},o.findFrom=function(e,t,n){var a=e.parent.inlineContent?new c(e):h(e.node(0),e.parent,e.pos,e.index(),t,n);if(a)return a;for(var r=e.depth-1;r>=0;r--){var i=t<0?h(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):h(e.node(0),e.node(r),e.after(r+1),e.index(r)+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,a){var r=n.resolve(a.map(this.head));if(!r.parent.inlineContent)return e.near(r);var i=n.resolve(a.map(this.anchor));return new t(i.parent.inlineContent?i:r,r)},t.prototype.replace=function(t,n){if(void 0===n&&(n=a.Slice.empty),e.prototype.replace.call(this,t,n),n==a.Slice.empty){var r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}},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 a=e.resolve(t);return new this(a,n==t?a:e.resolve(n))},t.between=function(n,a,r){var i=n.pos-a.pos;if(r&&!i||(r=i>=0?1:-1),!a.parent.inlineContent){var o=e.findFrom(a,r,!0)||e.findFrom(a,-r,!0);if(!o)return e.near(a,r);a=o.$head}return n.parent.inlineContent||(0==i||(n=(e.findFrom(n,-r,!0)||e.findFrom(n,r,!0)).$anchor).pos<a.pos!=i<0)&&(n=a),new t(n,a)},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,a=t.node(0).resolve(t.pos+n.nodeSize);e.call(this,t,a),this.node=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,a){var r=a.mapResult(this.anchor),i=r.deleted,o=r.pos,s=n.resolve(o);return i?e.near(s):new t(s)},t.prototype.content=function(){return new a.Slice(a.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,a=t.pos;return n?new u(a,a):new p(a)},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=a.Slice.empty),n==a.Slice.empty){t.delete(0,t.doc.content.size);var r=e.atStart(t.doc);r.eq(t.selection)||t.setSelection(r)}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,a,r,i){if(t.inlineContent)return c.create(e,n);for(var o=a-(r>0?0:1);r>0?o<t.childCount:o>=0;o+=r){var s=t.child(o);if(s.isAtom){if(!i&&d.isSelectable(s))return d.create(e,n-(r<0?s.nodeSize:0))}else{var l=h(e,s,n+r,r<0?s.childCount:0,r,i);if(l)return l}n+=s.nodeSize*r}}function _(e,t,n){var a=e.steps.length-1;if(!(a<t)){var i,s=e.steps[a];(s instanceof r.c||s instanceof r.b)&&(e.mapping.maps[a].forEach((function(e,t,n,a){null==i&&(i=a)})),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 a.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)||a.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 a=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(a.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var r=this.storedMarks;if(!r){var i=this.doc.resolve(t);r=n==t?i.marks():i.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,a.text(e,r)),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}(r.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,a){return a.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 a=this.config.plugins[n];if(a.spec.filterTransaction&&!a.spec.filterTransaction.call(a,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),a=null;;){for(var r=!1,i=0;i<this.config.plugins.length;i++){var o=this.config.plugins[i];if(o.spec.appendTransaction){var s=a?a[i].n:0,l=a?a[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),!a){a=[];for(var u=0;u<this.config.plugins.length;u++)a.push(u<i?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),r=!0}a&&(a[i]={state:n,n:t.length})}}if(!r)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,a=0;a<n.length;a++){var r=n[a];t[r.name]=r.apply(e,this[r.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),a=0;a<t.fields.length;a++)n[t.fields[a].name]=t.fields[a].init(e,n);return n},x.prototype.reconfigure=function(e){for(var t=new w(e.schema||this.schema,e.plugins),n=t.fields,a=new x(t),r=0;r<n.length;r++){var i=n[r].name;a[i]=this.hasOwnProperty(i)?this[i]:n[r].init(e,a)}return a},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 a=e[n],r=a.spec.state;r&&r.toJSON&&(t[n]=r.toJSON.call(a,this[a.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 r=new w(e.schema,e.plugins),i=new x(r);return r.fields.forEach((function(r){if("doc"==r.name)i.doc=a.Node.fromJSON(e.schema,t.doc);else if("selection"==r.name)i.selection=o.fromJSON(i.doc,t.selection);else if("storedMarks"==r.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==r.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,s))return void(i[r.name]=c.fromJSON.call(l,e,t[s],i))}i[r.name]=r.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 a in e){var r=e[a];r instanceof Function?r=r.bind(t):"handleDOMEvents"==a&&(r=M(r,t,{})),n[a]=r}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 a=n("d784"),r=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;a("replace",2,(function(e,t,n,a){var _=a.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=a.REPLACE_KEEPS_$0,g=_?"$":"$0";return[function(n,a){var r=l(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r,a):t.call(String(r),n,a)},function(e,a){if(!_&&v||"string"==typeof a&&-1===a.indexOf(g)){var i=n(t,e,this,a);if(i.done)return i.value}var l=r(e),m=String(this),f="function"==typeof a;f||(a=String(a));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 j=[C].concat(T,L,m);void 0!==E&&j.push(E);var A=String(a.apply(void 0,j))}else A=y(C,m,L,T,E,a);L>=M&&(D+=m.slice(M,L)+A,M=L+C.length)}return D+m.slice(M)}];function y(e,n,a,r,o,s){var l=a+e.length,c=r.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,a);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===r[d-1]?i.charAt(1):r[d-1]+i.charAt(1):t}s=r[u-1]}return void 0===s?"":s}))}}))},5438:function(e,t,n){var a=n("1bc6");e.exports=function(e,t,n){"__proto__"==t&&a?a(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},"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 P})),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 z})),n.d(t,"addColSpan",(function(){return j})),n.d(t,"addColumn",(function(){return re})),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 A})),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 ae})),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 a,r,i=n("5313"),o=n("304a"),s=n("7f06"),l=n("576a"),c=n("0ac0");if("undefined"!=typeof WeakMap){var u=new WeakMap;a=function(e){return u.get(e)},r=function(e,t){return u.set(e,t),t}}else{var d=[],p=0;a=function(e){for(var t=0;t<d.length;t+=2)if(d[t]==e)return d[t+1]},r=function(e,t){return 10==p&&(p=0),d[p++]=e,d[p++]=t}}var m=function(e,t,n,a){this.left=e,this.top=t,this.right=n,this.bottom=a},f=function(e,t,n,a){this.width=e,this.height=t,this.map=n,this.problems=a};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"),a=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map((function(e){return Number(e)})):null,r=Number(e.getAttribute("colspan")||1),i={colspan:r,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:a&&a.length==r?a: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 a 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 r=t[a].setDOMAttr;r&&r(e.attrs[a],n)}return n}function g(e){var t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(var a in t)n[a]={default:t[a].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 a=e.nodes[n],r=a.spec.tableRole;r&&(t[r]=a)}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 a=t%this.width,r=t/this.width|0,i=a+1,o=r+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(a,r,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 a=this.findCell(e),r=a.left,i=a.right,o=a.top,s=a.bottom;return"horiz"==t?(n<0?0==r:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?0==o:s==this.height)?null:this.map[r+this.width*(n<0?o-1:s)]},f.prototype.rectBetween=function(e,t){var n=this.findCell(e),a=n.left,r=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(a,l),Math.min(i,u),Math.max(r,c),Math.max(o,d))},f.prototype.cellsInRect=function(e){for(var t=[],n={},a=e.top;a<e.bottom;a++)for(var r=e.left;r<e.right;r++){var i=a*this.width+r,o=this.map[i];n[o]||(n[o]=!0,r==e.left&&r&&this.map[i-1]==o||a==e.top&&a&&this.map[i-this.width]==o||t.push(o))}return t},f.prototype.positionAt=function(e,t,n){for(var a=0,r=0;;a++){var i=r+n.child(a).nodeSize;if(a==e){for(var o=t+e*this.width,s=(e+1)*this.width;o<s&&this.map[o]<r;)o++;return o==s?i-1:this.map[o]}r=i}},f.get=function(e){return a(e)||r(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,a=0;a<e.childCount;a++){var r=e.child(a),i=0;if(n)for(var o=0;o<a;o++)for(var s=e.child(o),l=0;l<s.childCount;l++){var c=s.child(l);o+c.attrs.rowspan>a&&(i+=c.attrs.colspan)}for(var u=0;u<r.childCount;u++){var d=r.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,a=[],r=0,i=null,o=[],s=0,l=t*n;s<l;s++)a[s]=0;for(var c=0,u=0;c<n;c++){var d=e.child(c);u++;for(var p=0;;p++){for(;r<a.length&&0!=a[r];)r++;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=r+b*t,x=0;x<v;x++){0==a[w+x]?a[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]++}}}r+=v,u+=m.nodeSize}for(var S=(c+1)*t,C=0;r<S;)0==a[r++]&&C++;C&&(i||(i=[])).push({type:"missing",row:c,n:C}),u++}for(var L=new f(t,n,a,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 a=0,r={};a<e.map.length;a++){var i=e.map[a];if(!r[i]){r[i]=!0;for(var o=n.nodeAt(i),s=null,l=0;l<o.attrs.colspan;l++){var c=t[(a+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 a=t.type.spec.tableRole;if("cell"==a||"header_cell"==a)return e.doc.resolve(n)}for(var r=e.nodeBefore,i=e.pos;r;r=r.lastChild,i--){var o=r.type.spec.tableRole;if("cell"==o||"header_cell"==o)return e.doc.resolve(i-r.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 a=e.start(-1),r=f.get(e.node(-1)).nextCell(e.pos-a,t,n);return null==r?null:e.node(0).resolve(a+r)}function O(e,t,n){var a={};for(var r in e)a[r]=e[r];return a[t]=n,a}function E(e,t,n){void 0===n&&(n=1);var a=O(e,"colspan",e.colspan-n);return a.colwidth&&(a.colwidth=a.colwidth.slice(),a.colwidth.splice(t,n),a.colwidth.some((function(e){return e>0}))||(a.colwidth=null)),a}function j(e,t,n){void 0===n&&(n=1);var a=O(e,"colspan",e.colspan+n);if(a.colwidth){a.colwidth=a.colwidth.slice();for(var r=0;r<n;r++)a.colwidth.splice(t,0,0)}return a}function A(e,t,n){for(var a=y(t.type.schema).header_cell,r=0;r<e.height;r++)if(t.nodeAt(e.map[n+r*e.width]).type!=a)return!1;return!0}var P=function(e){function t(t,n){void 0===n&&(n=t);var a=t.node(-1),r=f.get(a),o=t.start(-1),s=r.rectBetween(t.pos-o,n.pos-o),l=t.node(0),c=r.cellsInRect(s).filter((function(e){return e!=n.pos-o}));c.unshift(n.pos-o);var u=c.map((function(e){var t=a.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 a=e.resolve(n.map(this.$anchorCell.pos)),r=e.resolve(n.map(this.$headCell.pos));if(D(a)&&D(r)&&S(a,r)){var o=this.$anchorCell.node(-1)!=a.node(-1);return o&&this.isRowSelection()?t.rowSelection(a,r):o&&this.isColSelection()?t.colSelection(a,r):new t(a,r)}return i.TextSelection.between(a,r)},t.prototype.content=function(){for(var e=this.$anchorCell.node(-1),t=f.get(e),n=this.$anchorCell.start(-1),a=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),r={},i=[],s=a.top;s<a.bottom;s++){for(var l=[],c=s*t.width+a.left,u=a.left;u<a.right;u++,c++){var d=t.map[c];if(!r[d]){r[d]=!0;var p=t.findCell(d),m=e.nodeAt(d),h=a.left-p.left,_=p.right-a.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<a.left?m.type.createAndFill(v):m.type.create(v,m.content)}if(p.top<a.top||p.bottom>a.bottom){var g=O(m.attrs,"rowspan",Math.min(p.bottom,a.bottom)-Math.max(p.top,a.top));m=p.top<a.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 a=t.steps.length,r=this.ranges,i=0;i<r.length;i++){var s=r[i],l=s.$from,c=s.$to,u=t.mapping.slice(a);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(a).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),a=this.$anchorCell.start(-1),r=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-a,this.$headCell.pos-a)),i=0;i<r.length;i++)e(t.nodeAt(r[i]),a+r[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,a=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,a)==this.$headCell.node(-1).childCount},t.colSelection=function(e,n){void 0===n&&(n=e);var a=f.get(e.node(-1)),r=e.start(-1),i=a.findCell(e.pos-r),o=a.findCell(n.pos-r),s=e.node(0);return i.top<=o.top?(i.top>0&&(e=s.resolve(r+a.map[i.left])),o.bottom<a.height&&(n=s.resolve(r+a.map[a.width*(a.height-1)+o.right-1]))):(o.top>0&&(n=s.resolve(r+a.map[o.left])),i.bottom<a.height&&(e=s.resolve(r+a.map[a.width*(a.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),a=e.colCount(this.$headCell.pos-t);if(Math.min(n,a)>0)return!1;var r=n+this.$anchorCell.nodeAfter.attrs.colspan,i=a+this.$headCell.nodeAfter.attrs.colspan;return Math.max(r,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 a=f.get(e.node(-1)),r=e.start(-1),i=a.findCell(e.pos-r),o=a.findCell(n.pos-r),s=e.node(0);return i.left<=o.left?(i.left>0&&(e=s.resolve(r+a.map[i.top*a.width])),o.right<a.width&&(n=s.resolve(r+a.map[a.width*(o.top+1)-1]))):(o.left>0&&(n=s.resolve(r+a.map[o.top*a.width])),i.right<a.width&&(e=s.resolve(r+a.map[a.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,a){return void 0===a&&(a=n),new t(e.resolve(n),e.resolve(a))},t.prototype.getBookmark=function(){return new $(this.$anchorCell.pos,this.$headCell.pos)},t}(i.Selection);P.prototype.visible=!1,i.Selection.jsonID("cell",P);var $=function(e,t){this.anchor=e,this.head=t};function Y(e){if(!(e.selection instanceof P))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 z(e){if(!e.size)return null;for(var t=e.content,n=e.openStart,a=e.openEnd;1==t.childCount&&(n>0&&a>0||"table"==t.firstChild.type.spec.tableRole);)n--,a--,t=t.firstChild.content;var r=t.firstChild,i=r.type.spec.tableRole,s=r.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,a-1);(d||p)&&(u=N(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||a?N(y(s).row,new o.Slice(t,n,a)).content:t)}return function(e,t){for(var n=[],a=0;a<t.length;a++)for(var r=t[a],i=r.childCount-1;i>=0;i--)for(var s=r.child(i).attrs,l=s.rowspan,c=s.colspan,u=a;u<a+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 N(e,t){var n=e.createAndFill();return new c.e(n).replace(0,n.content.size,t).doc}function I(e,t,n){var a=e.width,r=e.height,i=e.rows;if(a!=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,a=t}if(r!=n){for(var _=[],v=0,g=0;v<n;v++,g++){for(var y=[],b=i[g%r],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=_,r=n}return{width:a,height:r,rows:i}}function F(e,t,n,a,r,i,o,s){if(0==o||o==t.height)return!1;for(var l=!1,c=r;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+a),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,a,r,i,o,s){if(0==o||o==t.width)return!1;for(var l=!1,c=r;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+a);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,a,r){var i=n?e.doc.nodeAt(n-1):e.doc,s=f.get(i),l=a.top,c=a.left,u=c+r.width,d=l+r.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,a,r,i,s){var l,c,u=y(e.doc.type.schema);if(r>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;_<r;_++)f.push(h);e.insert(e.mapping.slice(s).map(p-1+a),f)}if(i>t.height){for(var v=[],g=0,b=(t.height-1)*t.width;g<Math.max(t.width,r);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(a+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(r.rows[_-l],0,0))}h(),p.setSelection(new P(p.doc.resolve(n+s.positionAt(l,c,i)),p.doc.resolve(n+s.positionAt(d-1,u-1,i)))),t(p)}$.prototype.map=function(e){return new $(e.map(this.anchor),e.map(this.head))},$.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 P(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,a,r){var o=n.selection;if(o instanceof P)return q(n,a,i.Selection.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;var s=J(r,e,t);if(null==s)return!1;if("horiz"==e)return q(n,a,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,a,l)}}function W(e,t){return function(n,a,r){var i=n.selection;if(!(i instanceof P)){var o=J(r,e,t);if(null==o)return!1;i=new P(n.doc.resolve(o))}var s=T(i.$headCell,e,t);return!!s&&q(n,a,new P(i.$anchorCell,s))}}function U(e,t){var n=e.selection;if(!(n instanceof P))return!1;if(t){var a=e.tr,r=y(e.schema).cell.createAndFill().content;n.forEachCell((function(e,t){e.content.eq(r)||a.replace(a.mapping.map(t+1),a.mapping.map(t+e.nodeSize-1),new o.Slice(r,0,0))})),a.docChanged&&t(a)}return!0}function K(e,t){var n=w(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new P(n))),!0)}function Z(e,t,n){if(!x(e.state))return!1;var a=z(n),r=e.state.selection;if(r instanceof P){a||(a={width:1,height:1,rows:[o.Fragment.from(N(y(e.state.schema).cell,n))]});var i=r.$anchorCell.node(-1),s=r.$anchorCell.start(-1),l=f.get(i).rectBetween(r.$anchorCell.pos-s,r.$headCell.pos-s);return a=I(a,l.right-l.left,l.bottom-l.top),R(e.state,e.dispatch,s,l,a),!0}if(a){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),a),!0}return!1}function G(e,t){if(!t.ctrlKey&&!t.metaKey){var n,a=X(e,t.target);if(t.shiftKey&&e.state.selection instanceof P)r(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&a&&null!=(n=w(e.state.selection.$anchor))&&Q(e,t).pos!=n.pos)r(n,t),t.preventDefault();else if(!a)return;e.root.addEventListener("mouseup",i),e.root.addEventListener("dragstart",i),e.root.addEventListener("mousemove",o)}function r(t,n){var a=Q(e,n),r=null==b.getState(e.state);if(!a||!S(t,a)){if(!r)return;a=t}var i=new P(t,a);if(r||!e.state.selection.eq(i)){var o=e.state.tr.setSelection(i);r&&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)!=a&&!(o=Q(e,t)))return i();o&&r(o,n)}}function J(e,t,n){if(!(e.state.selection instanceof i.TextSelection))return null;for(var a=e.state.selection.$head,r=a.depth-1;r>=0;r--){var o=a.node(r);if((n<0?a.index(r):a.indexAfter(r))!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){var s=a.before(r),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,a){var r=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(r,o+3);c<u;c++)if(e.child(c)==l){s=c+1,n+=l.nodeSize;continue e}a(l,n),s<r&&e.child(s).sameMarkup(l)?te(e.child(s),l,n+1,a):l.nodesBetween(0,l.content.size,a,n+1),n+=l.nodeSize}}function ne(e,t){var n,a=function(t,a){"table"==t.type.spec.tableRole&&(n=function(e,t,n,a){var r=f.get(t);if(!r.problems)return a;a||(a=e.tr);for(var i,o,s=[],l=0;l<r.height;l++)s.push(0);for(var c=0;c<r.problems.length;c++){var u=r.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;a.setNodeMarkup(a.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);a.setNodeMarkup(a.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);a.setNodeMarkup(a.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<r.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;a.insert(a.mapping.map(S),D)}g=w}return a.setMeta(ee,{fixTables:!0})}(e,t,a,n))};return t?t.doc!=e.doc&&te(t.doc,e.doc,0,a):e.doc.descendants(a),n}function ae(e){var t,n=e.selection,a=k(e),r=a.node(-1),i=a.start(-1),o=f.get(r);return(t=n instanceof P?o.rectBetween(n.$anchorCell.pos-i,n.$headCell.pos-i):o.findCell(a.pos-i)).tableStart=i,t.map=o,t.table=r,t}function re(e,t,n){var a=t.map,r=t.tableStart,i=t.table,o=n>0?-1:0;A(a,i,n+o)&&(o=0==n||n==a.width?null:0);for(var s=0;s<a.height;s++){var l=s*a.width+n;if(n>0&&n<a.width&&a.map[l-1]==a.map[l]){var c=a.map[l],u=i.nodeAt(c);e.setNodeMarkup(e.mapping.map(r+c),null,j(u.attrs,n-a.colCount(c))),s+=u.attrs.rowspan-1}else{var d=null==o?y(i.type.schema).cell:i.nodeAt(a.map[l+o]).type,p=a.positionAt(s,n,i);e.insert(e.mapping.map(r+p),d.createAndFill())}}return e}function ie(e,t){if(!x(e))return!1;if(t){var n=ae(e);t(re(e.tr,n,n.left))}return!0}function oe(e,t){if(!x(e))return!1;if(t){var n=ae(e);t(re(e.tr,n,n.right))}return!0}function se(e,t,n){for(var a=t.map,r=t.table,i=t.tableStart,o=e.mapping.maps.length,s=0;s<a.height;){var l=s*a.width+n,c=a.map[l],u=r.nodeAt(c);if(n>0&&a.map[l-1]==c||n<a.width-1&&a.map[l+1]==c)e.setNodeMarkup(e.mapping.slice(o).map(i+c),null,E(u.attrs,n-a.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=ae(e),a=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(var r=n.right-1;se(a,n,r),r!=n.left;r--)n.table=n.tableStart?a.doc.nodeAt(n.tableStart-1):a.doc,n.map=f.get(n.table);t(a)}return!0}function ce(e,t,n){for(var a=y(t.type.schema).header_cell,r=0;r<e.width;r++)if(t.nodeAt(e.map[r+n*e.width]).type!=a)return!1;return!0}function ue(e,t,n){for(var a=t.map,r=t.tableStart,i=t.table,o=r,s=0;s<n;s++)o+=i.child(s).nodeSize;var l=[],c=n>0?-1:0;ce(a,i,n+c)&&(c=0==n||n==a.height?null:0);for(var u=0,d=a.width*n;u<a.width;u++,d++)if(n>0&&n<a.height&&a.map[d]==a.map[d-a.width]){var p=a.map[d],m=i.nodeAt(p).attrs;e.setNodeMarkup(r+p,null,O(m,"rowspan",m.rowspan+1)),u+=m.colspan-1}else{var f=null==c?y(i.type.schema).cell:i.nodeAt(a.map[d+c*a.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=ae(e);t(ue(e.tr,n,n.top))}return!0}function pe(e,t){if(!x(e))return!1;if(t){var n=ae(e);t(ue(e.tr,n,n.bottom))}return!0}function me(e,t,n){for(var a=t.map,r=t.table,i=t.tableStart,o=0,s=0;s<n;s++)o+=r.child(s).nodeSize;var l=o+r.child(n).nodeSize,c=e.mapping.maps.length;e.delete(o+i,l+i);for(var u=0,d=n*a.width;u<a.width;u++,d++){var p=a.map[d];if(n>0&&p==a.map[d-a.width]){var m=r.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<a.width&&p==a.map[d+a.width]){var f=r.nodeAt(p),h=f.type.create(O(f.attrs,"rowspan",f.attrs.rowspan-1),f.content),_=a.positionAt(n+1,u,r);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=ae(e),a=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(var r=n.bottom-1;me(a,n,r),r!=n.top;r--)n.table=n.tableStart?a.doc.nodeAt(n.tableStart-1):a.doc,n.map=f.get(n.table);t(a)}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 P)||n.$anchorCell.pos==n.$headCell.pos)return!1;var a=ae(e),r=a.map;if(function(e,t){for(var n=e.width,a=e.height,r=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&&r[o]==r[o-1]||t.right<n&&r[l]==r[l+1])return!0;o+=n,l+=n}for(var u=t.left;u<t.right;u++){if(t.top>0&&r[i]==r[i-n]||t.bottom<a&&r[s]==r[s+n])return!0;i++,s++}return!1}(r,a))return!1;if(t){for(var i,s,l=e.tr,c={},u=o.Fragment.empty,d=a.top;d<a.bottom;d++)for(var p=a.left;p<a.right;p++){var m=r.map[d*r.width+p],f=a.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+a.tableStart);l.delete(h,h+f.nodeSize)}}if(l.setNodeMarkup(i+a.tableStart,null,O(j(s.attrs,s.attrs.colspan,a.right-a.left-s.attrs.colspan),"rowspan",a.bottom-a.top)),u.size){var _=i+1+s.content.size,v=he(s)?i+1:_;l.replaceWith(v+a.tableStart,_+a.tableStart,u)}l.setSelection(new P(l.doc.resolve(i+a.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 a,r,i=t.selection;if(i instanceof P){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;a=i.$anchorCell.nodeAfter,r=i.$anchorCell.pos}else{if(!(a=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;r=w(i.$from).pos}if(1==a.attrs.colspan&&1==a.attrs.rowspan)return!1;if(n){var o=a.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=ae(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+=a.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:a,row:m,col:h}).createAndFill(s[_]))}d.setNodeMarkup(r,e({node:a,row:u.top,col:u.left}),s[0]),i instanceof P&&d.setSelection(new P(d.doc.resolve(i.$anchorCell.pos),c&&d.doc.resolve(c))),n(d)}return!0}}function ye(e,t){return function(n,a){if(!x(n))return!1;var r=k(n);if(r.nodeAfter.attrs[e]===t)return!1;if(a){var i=n.tr;n.selection instanceof P?n.selection.forEachCell((function(n,a){n.attrs[e]!==t&&i.setNodeMarkup(a,null,O(n.attrs,e,t))})):i.setNodeMarkup(r.pos,null,O(r.nodeAfter.attrs,e,t)),a(i)}return!0}}function be(e,t,n){for(var a=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1}),r=0;r<a.length;r++){var i=t.table.nodeAt(a[r]);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 a=y(t.schema),r=ae(t),i=t.tr,o=r.map.cellsInRect("column"==e?new m(r.left,0,r.right,r.map.height):"row"==e?new m(0,r.top,r.map.width,r.bottom):r),s=o.map((function(e){return r.table.nodeAt(e)})),l=0;l<o.length;l++)s[l].type==a.header_cell&&i.setNodeMarkup(r.tableStart+o[l],a.cell,s[l].attrs);if(0==i.steps.length)for(var c=0;c<o.length;c++)i.setNodeMarkup(r.tableStart+o[c],a.header_cell,s[c].attrs);n(i)}return!0}}(e):function(t,n){if(!x(t))return!1;if(n){var a=y(t.schema),r=ae(t),i=t.tr,o=be("row",r,a),s=be("column",r,a),l=("column"===e?o:"row"===e&&s)?1:0,c="column"==e?new m(0,l,1,r.map.height):"row"==e?new m(l,0,r.map.width,1):r,u="column"==e?s?a.cell:a.header_cell:"row"==e?o?a.cell:a.header_cell:a.cell;r.map.cellsInRect(c).forEach((function(e){var t=e+r.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 a=function(e,t){if(t<0){var n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(var a=e.index(-1)-1,r=e.before();a>=0;a--){var i=e.node(-1).child(a);if(i.childCount)return r-1-i.lastChild.nodeSize;r-=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!=a){if(n){var r=t.doc.resolve(a);n(t.tr.setSelection(i.TextSelection.between(r,M(r))).scrollIntoView())}return!0}}}function Se(e,t){for(var n=e.selection.$anchor,a=n.depth;a>0;a--)if("table"==n.node(a).type.spec.tableRole)return t&&t(e.tr.delete(n.before(a),n.after(a)).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,a,r,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 _=r==d?i:f&&f[h],v=_?_+"px":"";o+=_||a,_||(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 a=e.View;void 0===a&&(a=Ce);var r=e.lastColumnResizable;return void 0===r&&(r=!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 a(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,a,r){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=je(e,t,"left"):u-t.clientX<=n&&(s=je(e,t,"right"))}if(s!=i.activeHandle){if(!r&&-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}Pe(e,s)}}}(e,n,t,0,r)},mouseleave:function(e){!function(e){var t=Te.getState(e.state);t.activeHandle>-1&&!t.dragging&&Pe(e,-1)}(e)},mousedown:function(e,t){!function(e,t,n){var a=Te.getState(e.state);if(-1==a.activeHandle||a.dragging)return!1;var r=e.state.doc.nodeAt(a.activeHandle),i=function(e,t,n){var a=n.colspan,r=n.colwidth,i=r&&r[r.length-1];if(i)return i;var o=e.domAtPos(t),s=o.node.childNodes[o.offset].offsetWidth,l=a;if(r)for(var c=0;c<a;c++)r[c]&&(s-=r[c],l--);return s/l}(e,a.activeHandle,r.attrs);function o(t){window.removeEventListener("mouseup",o),window.removeEventListener("mousemove",s);var a=Te.getState(e.state);a.dragging&&(function(e,t,n){for(var a=e.state.doc.resolve(t),r=a.node(-1),i=f.get(r),o=a.start(-1),s=i.colCount(a.pos-o)+a.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=r.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():$e(p.colspan);h[m]=n,l.setNodeMarkup(o+d,null,O(p,"colwidth",h))}}}l.docChanged&&e.dispatch(l)}(e,a.activeHandle,Ae(a.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Te,{setDragging:null})))}function s(t){if(!t.which)return o(t);var a=Te.getState(e.state),r=Ae(a.dragging,t,n);!function(e,t,n,a){for(var r=e.state.doc.resolve(t),i=r.node(-1),o=r.start(-1),s=f.get(i).colCount(r.pos-o)+r.nodeAfter.attrs.colspan-1,l=e.domAtPos(r.start(-1)).node;"TABLE"!=l.nodeName;)l=l.parentNode;Le(i,l.firstChild,l,a,s,n)}(e,a.activeHandle,r,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=[],a=e.doc.resolve(t),r=a.node(-1),i=f.get(r),o=a.start(-1),s=i.colCount(a.pos-o)+a.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+r.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 je(e,t,n){var a=e.posAtCoords({left:t.clientX,top:t.clientY});if(!a)return-1;var r=a.pos,i=w(e.state.doc.resolve(r));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 Ae(e,t,n){var a=t.clientX-e.startX;return Math.max(n,e.startWidth+a)}function Pe(e,t){e.dispatch(e.state.tr.setMeta(Te,{setHandle:t}))}function $e(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 a=e.mapping.mapResult(t),r=a.deleted,i=a.pos;return r?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,a){return function(e,t,n){var a,r,o=(t||e).selection,s=(t||e).doc;if(o instanceof i.NodeSelection&&(r=o.node.type.spec.tableRole)){if("cell"==r||"header_cell"==r)a=P.create(s,o.from);else if("row"==r){var l=s.resolve(o.from+1);a=P.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];a=P.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 a=t.pos,r=n.pos,i=t.depth;i>=0&&!(t.after(i+1)<t.end(i));i--,a++);for(var o=n.depth;o>=0&&!(n.before(o+1)>n.start(o));o--,r--);return a==r&&/row|table/.test(t.node(i).type.spec.tableRole)}(o)?a=i.TextSelection.create(s,o.from):o instanceof i.TextSelection&&function(e){for(var t,n,a=e.$from,r=e.$to,i=a.depth;i>0;i--){var o=a.node(i);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){t=o;break}}for(var s=r.depth;s>0;s--){var l=r.node(s);if("cell"===l.type.spec.tableRole||"header_cell"===l.type.spec.tableRole){n=l;break}}return t!==n&&0===r.parentOffset}(o)&&(a=i.TextSelection.create(s,o.$from.start(),o.$from.end()));return a&&(t||(t=e.tr)).setSelection(a),t}(a,ne(a,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 a=e.mapping.map(t.activeHandle,-1);D(e.doc.resolve(a))||(a=null),t=new Ee(a,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("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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"))},5646:function(e,t,n){var a=n("5f60");e.exports=function(e,t){return a(e,t)}},5692:function(e,t,n){var a=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.0",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var a=n("d066"),r=n("241c"),i=n("7418"),o=n("825a");e.exports=a("Reflect","ownKeys")||function(e){var t=r.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 At}));var a=n("5313"),r=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 a=f||(f=document.createRange());return a.setEnd(e,null==n?e.nodeValue.length:n),a.setStart(e,t||0),a},_=function(e,t,n,a){return n&&(g(e,t,n,a,-1)||g(e,t,n,a,1))},v=/^(img|br|input|textarea|hr)$/i;function g(e,t,n,a,r){for(;;){if(e==n&&t==a)return!0;if(t==(r<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)+(r<0?0:1),e=i}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(r<0?-1:0)]).contentEditable)return!1;t=r<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 a=e.someProp("scrollThreshold")||0,r=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(a,"top")?u=-(l.top-t.top+D(r,"top")):t.bottom>l.bottom-D(a,"bottom")&&(u=t.bottom-l.bottom+D(r,"bottom")),t.left<l.left+D(a,"left")?c=-(l.left-t.left+D(r,"left")):t.right>l.right-D(a,"right")&&(c=t.right-l.right+D(r,"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 a=e[n],r=a.dom,i=a.top,o=a.left;r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=o&&(r.scrollLeft=o)}}var T=null;function O(e,t){for(var n,a,r=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<r){n=l,r=m,a=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,a=document.createRange(),r=0;r<n;r++){a.setEnd(e,r+1),a.setStart(e,r);var i=P(a,1);if(i.top!=i.bottom&&E(t,i))return{node:e,offset:r+(t.left>=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}(n,a):!n||r&&1==n.nodeType?{node:e,offset:i}:O(n,a)}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 j(e,t,n){var a=e.childNodes.length;if(a&&n.top<n.bottom)for(var r=Math.max(0,Math.min(a-1,Math.floor(a*(t.top-n.top)/(n.bottom-n.top))-2)),i=r;;){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 j(o,t,c)}if((i=(i+1)%a)==r)break}return e}function A(e,t){var n,a,r,i,s=e.root;if(s.caretPositionFromPoint)try{var l=s.caretPositionFromPoint(t.left,t.top);l&&(r=(n=l).offsetNode,i=n.offset)}catch(e){}if(!r&&s.caretRangeFromPoint){var c=s.caretRangeFromPoint(t.left,t.top);c&&(r=(a=c).startContainer,i=a.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=j(e.dom,t,p)))return null}if(o.safari&&d.draggable&&(r=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),r){if(o.gecko&&1==r.nodeType&&(i=Math.min(i,r.childNodes.length))<r.childNodes.length){var m,f=r.childNodes[i];"IMG"==f.nodeName&&(m=f.getBoundingClientRect()).right<=t.left&&m.bottom>t.top&&i++}r==e.dom&&i==r.childNodes.length-1&&1==r.lastChild.nodeType&&t.top>r.lastChild.getBoundingClientRect().bottom?u=e.state.doc.content.size:0!=i&&1==r.nodeType&&"BR"==r.childNodes[i-1].nodeName||(u=function(e,t,n,a){for(var r=-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>a.left||s.top>a.top)r=o.posBefore;else{if(!(s.right<a.left||s.bottom<a.top))break;r=o.posAfter}}i=o.dom.parentNode}return r>-1?r:e.docView.posFromDOM(t,n)}(e,r,i,t))}null==u&&(u=function(e,t,n){var a=O(t,n),r=a.node,i=a.offset,o=-1;if(1==r.nodeType&&!r.firstChild){var s=r.getBoundingClientRect();o=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}(e,d,t));var h=e.docView.nearestDesc(d,!0);return{pos:u,inside:h?h.posAtStart-h.border:-1}}function P(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var $=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Y(e,t,n){var a=e.docView.domFromPos(t),r=a.node,i=a.offset,s=e.state.doc.resolve(t),l=s.parent.inlineContent,c=o.webkit||o.gecko;if(3==r.nodeType&&c&&$.test(r.nodeValue)){var u=P(h(r,i,i),n);if(o.gecko&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){var d=P(h(r,i-1,i-1),-1);if(d.top==u.top){var m=P(h(r,i,i+1),-1);if(m.top!=u.top)return z(m,m.left<d.left)}}return u}if(l){for(var f=s.depth?e.docView.domAfterPos(s.before()):e.dom;n<0&&!i&&r!=f;)i=p(r),r=r.parentNode;for(;n>=0&&i==y(r)&&r!=f;)i=p(r)+1,r=r.parentNode}if(3==r.nodeType)return n<0?z(P(h(r,i-1,i),1),!1):z(P(h(r,i,i+1),-1),!0);if(!l){if(i&&(n<0||i==y(r))){var _=r.childNodes[i-1];if(1==_.nodeType)return N(_.getBoundingClientRect(),!1)}if(i<y(r)){var v=r.childNodes[i];if(1==v.nodeType)return N(v.getBoundingClientRect(),!0)}return N(r.getBoundingClientRect(),n>=0)}if(i&&(n<0||i==y(r))){var g=r.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 z(P(b,1),!1)}if(i<y(r)){var w=r.childNodes[i],x=3==w.nodeType?h(w,0,c?0:1):1==w.nodeType?w:null;if(x)return z(P(x,-1),!0)}return z(P(3==r.nodeType?h(r):r,-n),n>=0)}function z(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 N(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 a=e.state,r=e.root.activeElement;a!=t&&e.updateState(t),r!=e.dom&&e.focus();try{return n()}finally{a!=t&&e.updateState(a),r!=e.dom&&r&&r.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 a=t.selection,r="up"==n?a.$anchor.min(a.$head):a.$anchor.max(a.$head);return I(e,t,(function(){for(var t=e.docView.domFromPos(r.pos).node;;){var a=e.docView.nearestDesc(t,!0);if(!a)break;if(a.node.isBlock){t=a.dom;break}t=a.dom.parentNode}for(var i=Y(e,r.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 a=t.selection.$head;if(!a.parent.isTextblock)return!1;var r=a.parentOffset,i=!r,o=r==a.parent.content.size,s=getSelection();return F.test(a.parent.textContent)&&s.modify?I(e,t,(function(){var t=s.getRangeAt(0),r=s.focusNode,i=s.focusOffset,o=s.caretBidiLevel;s.modify("move",n,"character");var l=!(a.depth?e.docView.domAfterPos(a.before()):e.dom).contains(1==s.focusNode.nodeType?s.focusNode:s.focusNode.parentNode)||r==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,a){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=a,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 a=this.children[t];if(a==e)return n;n+=a.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 a,r;if(e==this.contentDOM)a=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;a=e.previousSibling}for(;a&&(!(r=a.pmViewDesc)||r.parent!=this);)a=a.previousSibling;return a?this.posBeforeChild(r)+r.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,a=e;a;a=a.parentNode){var r=this.getDesc(a);if(r&&(!t||r.node)){if(!n||!r.nodeDOM||(1==r.nodeDOM.nodeType?r.nodeDOM.contains(1==e.nodeType?e:e.parentNode):r.nodeDOM==e))return r;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 a=e;a;a=a.parentNode){var r=this.getDesc(a);if(r)return r.localPosFromDOM(e,t,n)}return-1},V.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var a=this.children[t],r=n+a.size;if(n==e&&r!=n){for(;!a.border&&a.children.length;)a=a.children[0];return a}if(e<r)return a.descAt(e-n-a.border);n=r}},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 a=this.children[n],r=t+a.size;if(e<r)return a.domFromPos(e-t-a.border);t=r}},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 a=-1,r=-1,i=n,o=0;;o++){var s=this.children[o],l=i+s.size;if(-1==a&&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)){a=p(d.dom)+1;break}e-=d.size}-1==a&&(a=0)}if(a>-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)){r=p(f.dom);break}t+=f.size}-1==r&&(r=this.contentDOM.childNodes.length);break}i=l}return{node:this.contentDOM,from:e,to:t,fromOffset:a,toOffset:r}},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,a=t.offset;if(1!=n.nodeType||a==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[a]},V.prototype.setSelection=function(e,t,n,a){for(var r=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(r>l&&i<u)return c.setSelection(e-l-c.border,t-l-c.border,n,a);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(a||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,a=0;a<this.children.length;a++){var r=this.children[a],i=n+r.size;if(n==i?e<=i&&t>=n:e<i&&t>n){var o=n+r.border,s=i-r.border;if(e>=o&&t<=s)return this.dirty=e==n||t==i?2:1,void(e!=o||t!=s||!r.contentLost&&r.dom.parentNode==this.contentDOM?r.markDirty(e-o,t-o):r.dirty=3);r.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,a,r){var i,o=n.type.toDOM;if("function"==typeof o&&(o=o(a,(function(){return i?i.parent?i.parent.posBeforeChild(i):void 0:r}))),!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,a,r){e.call(this,t,U,n,null),this.textDOM=a,this.text=r}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,a,r){e.call(this,t,[],a,r),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,a,i){var o=i.nodeViews[n.type.name],s=o&&o(n,i,a);return s&&s.dom||(s=r.DOMSerializer.renderSpec(document,n.type.spec.toDOM(n,a))),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 a=this.parent;!a.node;)a=a.parent;a.dirty<this.dirty&&(a.dirty=this.dirty),this.dirty=0}},t.prototype.slice=function(e,n,a){var r=t.create(this.parent,this.mark,!0,a),i=this.children,o=this.size;n<o&&(i=me(i,n,o,a)),e>0&&(i=me(i,0,e,a));for(var s=0;s<i.length;s++)i[s].parent=r;return r.children=i,r},t}(V),J=function(e){function t(t,n,a,r,i,o,s,l,c){e.call(this,t,n.isLeaf?U:[],i,o),this.nodeDOM=s,this.node=n,this.outerDeco=a,this.innerDeco=r,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,a,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}),a),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=r.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,a,n),d?c=new te(e,n,a,i,p,m,f,d,o,s+1):n.isText?new Q(e,n,a,i,p,f,o):new t(e,n,a,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?r.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,a=this.node.inlineContent,i=t,s=a&&e.composing&&this.localCompositionNode(e,t),l=new de(this,s&&s.node);!function(e,t,n,a){var r=t.locals(e),i=0;if(0!=r.length)for(var o=0,s=[],l=null,c=0;;){if(o<r.length&&r[o].to==i){for(var u=r[o++],d=void 0;o<r.length&&r[o].to==i;)(d||(d=[u])).push(r[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<r.length&&r[o].from<=i&&r[o].to>i;)s.push(r[o++]);var _=i+m.nodeSize;if(m.isText){var v=_;o<r.length&&r[o].from<v&&(v=r[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)}a(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);a(b,r,t.forChild(i,b),y),i+=b.nodeSize}}(this.node,this.innerDeco,(function(t,o,s){t.spec.marks?l.syncToMarks(t.spec.marks,a,e):t.type.side>=0&&!s&&l.syncToMarks(o==n.node.childCount?r.Mark.none:n.node.child(o).marks,a,e),l.placeWidget(t,e,i)}),(function(t,n,r,o){l.syncToMarks(t.marks,a,e),l.findNodeMatch(t,n,r,o)||l.updateNextNode(t,n,r,e,o)||l.addNode(t,n,r,e,i),i+=t.nodeSize})),l.syncToMarks(U,a,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,r=n.from,i=n.to;if(!(!(e.state.selection instanceof a.TextSelection)||r<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,a){for(var r=0,i=0;r<e.childCount&&i<=a;){var o=e.child(r++),s=i;if(i+=o.nodeSize,o.isText){for(var l=o.text;r<e.childCount;){var c=e.child(r++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){var u=l.lastIndexOf(t,a-s);if(u>=0&&u+t.length+s>=n)return s+u}}}return-1}(this.node.content,l,r-t,i-t);return c<0?null:{node:s,pos:c,text:l}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,a=t.pos,r=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,r);e.compositionNodes.push(o),this.children=me(this.children,a,a+r.length,e,o)}},t.prototype.update=function(e,t,n,a){return!(3==this.dirty||!e.sameMarkup(this.node)||(this.updateInner(e,t,n,a),0))},t.prototype.updateInner=function(e,t,n,a){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(a,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,a,r){return le(a,t,e),new J(null,e,t,n,a,a,a,r,0)}var Q=function(e){function t(t,n,a,r,i,o,s){e.call(this,t,n,a,r,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,a){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,a.trackWrites==this.nodeDOM&&(a.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,a){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,a)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,a){var r=this.node.cut(e,n),i=document.createTextNode(r.text);return new t(this.parent,r,this.outerDeco,this.innerDeco,i,i,a)},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,a,r,i,o,s,l,c,u){e.call(this,t,n,a,r,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,a,r){if(3==this.dirty)return!1;if(this.spec.update){var i=this.spec.update(t,n);return i&&this.updateInner(t,n,a,r),i}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,a,r)},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,a,r){this.spec.setSelection?this.spec.setSelection(t,n,a):e.prototype.setSelection.call(this,t,n,a,r)},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 a=e.firstChild,r=!1,i=0;i<t.length;i++){var o=t[i],s=o.dom;if(s.parentNode==e){for(;s!=a;)a=ue(a),r=!0;a=a.nextSibling}else r=!0,e.insertBefore(s,a);if(o instanceof G){var l=a?a.previousSibling:e.lastChild;ne(o.contentDOM,o.children,n),a=l?l.nextSibling:e.firstChild}}for(;a;)a=ue(a),r=!0;r&&n.trackWrites==e&&(n.trackWrites=null)}function ae(e){e&&(this.nodeName=e)}ae.prototype=Object.create(null);var re=[new ae];function ie(e,t,n){if(0==e.length)return re;for(var a=n?re[0]:new ae,r=[a],i=0;i<e.length;i++){var o=e[i].type.attrs;if(o)for(var s in o.nodeName&&r.push(a=new ae(o.nodeName)),o){var l=o[s];null!=l&&(n&&1==r.length&&r.push(a=new ae(t.isInline?"span":"div")),"class"==s?a.class=(a.class?a.class+" ":"")+l:"style"==s?a.style=(a.style?a.style+";":"")+l:"nodeName"!=s&&(a[s]=l))}}return r}function oe(e,t,n,a){if(n==re&&a==re)return t;for(var r=t,i=0;i<a.length;i++){var o=a[i],s=n[i];if(i){var l=void 0;s&&s.nodeName==o.nodeName&&r!=e&&(l=r.parentNode)&&l.tagName.toLowerCase()==o.nodeName||((l=document.createElement(o.nodeName)).pmIsDeco=!0,l.appendChild(r),s=re[0]),r=l}se(r,s||re[0],o)}return r}function se(e,t,n){for(var a in t)"class"==a||"style"==a||"nodeName"==a||a in n||e.removeAttribute(a);for(var r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);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,re,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=[],a=e.childCount,r=t.length-1;a>0&&r>=0;r--){var i=t[r],o=i.node;if(o){if(o!=e.child(a-1))break;n.push(i),--a}}return{nodes:n.reverse(),offset:a}}(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,a,r){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,a)),r&&(i.push(r),r=null),u>n&&i.push(l.slice(n-c,l.size,a)))}return i}function fe(e,t){var n=e.root.getSelection(),r=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=r.resolve(s);if(w(n)){for(l=u;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&a.NodeSelection.isSelectable(i.node)&&i.parent&&(!i.node.isInline||!function(e,t,n){for(var a=0==t,r=t==y(e);a||r;){if(e==n)return!0;var i=p(e);if(!(e=e.parentNode))return!1;a=a&&0==i,r=r&&i==y(e)}}(n.focusNode,n.focusOffset,i.dom))){var d=i.posBefore;c=new a.NodeSelection(s==d?u:r.resolve(d))}}else{var m=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(m<0)return null;l=r.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(),a=e.cursorWrapper.dom,r="IMG"==a.nodeName;r?n.setEnd(a.parentNode,p(a)+1):n.setEnd(a,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!r&&!e.state.selection.visible&&o.ie&&o.ie_version<=11&&(a.disabled=!0,a.disabled=!1)}(e);else{var r,i,s=n.anchor,l=n.head;!_e||n instanceof a.TextSelection||(n.$from.parent.inlineContent||(r=ve(e,n.from)),n.empty||n.$from.parent.inlineContent||(i=ve(e,n.to))),e.docView.setSelection(s,l,e.root,t),_e&&(r&&ye(r),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(),a=n.anchorNode,r=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==a&&n.anchorOffset==r||(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 a=0,r=this.stack.length>>1,i=Math.min(r,e.length);a<i&&(a==r-1?this.top:this.stack[a+1<<1]).matchesMark(e[a])&&!1!==e[a].type.spec.spanning;)a++;for(;a<r;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),r--;for(;r<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[r])){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[r],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,r++}},de.prototype.findNodeMatch=function(e,t,n,a){var r=-1,i=a<0?void 0:this.getPreMatch(a),o=this.top.children;if(i&&i.matchesNode(e,t,n))r=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){r=s;break}}return!(r<0||(this.destroyBetween(this.index,r),this.index++,0))},de.prototype.updateNextNode=function(e,t,n,a,r){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!=r)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,a))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,a,r){this.top.children.splice(this.index++,0,J.create(this.top,e,t,n,a,r)),this.changed=!0},de.prototype.placeWidget=function(e,t,n){var a=this.index<this.top.children.length?this.top.children[this.index]:null;if(!a||!a.matchesWidget(e)||e!=a.widget&&a.widget.type.toDOM.parentNode){var r=new K(this.top,e,t,n);this.top.children.splice(this.index++,0,r),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),a=n.node,r=n.offset,i=r<a.childNodes.length?a.childNodes[r]:null,s=r?a.childNodes[r-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 a.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,r){return e.someProp("createSelectionBetween",(function(a){return a(e,t,n)}))||a.TextSelection.between(t,n,r)}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,r=n.$anchor,i=n.$head,o=t>0?r.max(i):r.min(i),s=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return s&&a.Selection.findFrom(s,t)}function Me(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Se(e,t,n){var r=e.state.selection;if(!(r instanceof a.TextSelection)){if(r instanceof a.NodeSelection&&r.node.isInline)return Me(e,new a.TextSelection(t>0?r.$to:r.$from));var i=De(e.state,t);return!!i&&Me(e,i)}if(!r.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var s=De(e.state,t);return!!(s&&s instanceof a.NodeSelection)&&Me(e,s)}if(!(o.mac&&n.indexOf("m")>-1)){var l,c=r.$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)&&(a.NodeSelection.isSelectable(u)?Me(e,new a.NodeSelection(t<0?e.state.doc.resolve(c.pos-u.nodeSize):c)):!!o.webkit&&Me(e,new a.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,a=t.focusOffset;if(n){var r,i,s=!1;for(o.gecko&&1==n.nodeType&&a<Ce(n)&&Le(n.childNodes[a])&&(s=!0);;)if(a>0){if(1!=n.nodeType)break;var l=n.childNodes[a-1];if(Le(l))r=n,i=--a;else{if(3!=l.nodeType)break;a=(n=l).nodeValue.length}}else{if(Ee(n))break;for(var c=n.previousSibling;c&&Le(c);)r=n.parentNode,i=p(c),c=c.previousSibling;if(c)a=Ce(n=c);else{if((n=n.parentNode)==e.dom)break;a=0}}s?je(e,t,n,a):r&&je(e,t,r,i)}}function Oe(e){var t=e.root.getSelection(),n=t.focusNode,a=t.focusOffset;if(n){for(var r,i,o=Ce(n);;)if(a<o){if(1!=n.nodeType)break;if(!Le(n.childNodes[a]))break;r=n,i=++a}else{if(Ee(n))break;for(var s=n.nextSibling;s&&Le(s);)r=s.parentNode,i=p(s)+1,s=s.nextSibling;if(s)a=0,o=Ce(n=s);else{if((n=n.parentNode)==e.dom)break;a=o=0}}r&&je(e,t,r,i)}}function Ee(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function je(e,t,n,a){if(w(t)){var r=document.createRange();r.setEnd(n,a),r.setStart(n,a),t.removeAllRanges(),t.addRange(r)}else t.extend&&t.extend(n,a);e.domObserver.setCurSelection();var i=e.state;setTimeout((function(){e.state==i&&he(e)}),50)}function Ae(e,t,n){var r=e.state.selection;if(r instanceof a.TextSelection&&!r.empty||n.indexOf("s")>-1)return!1;if(o.mac&&n.indexOf("m")>-1)return!1;var i=r.$from,s=r.$to;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var l=De(e.state,t);if(l&&l instanceof a.NodeSelection)return Me(e,l)}if(!i.parent.inlineContent){var c=a.Selection.findFrom(t<0?i:s,t);return!c||Me(e,c)}return!1}function Pe(e,t){if(!(e.state.selection instanceof a.TextSelection))return!0;var n=e.state.selection,r=n.$head,i=n.$anchor,o=n.empty;if(!r.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var s=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(s&&!s.isText){var l=e.state.tr;return t<0?l.delete(r.pos-s.nodeSize,r.pos):l.delete(r.pos,r.pos+s.nodeSize),e.dispatch(l),!0}return!1}function $e(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Ye(e,t){var n=t.keyCode,a=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"==a?Pe(e,-1)||Te(e):46==n||o.mac&&68==n&&"c"==a?Pe(e,1)||Oe(e):13==n||27==n||(37==n?Se(e,-1,a)||Te(e):39==n?Se(e,1,a)||Oe(e):38==n?Ae(e,-1,a)||Te(e):40==n?function(e){if(o.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,a=t.focusOffset;if(n&&1==n.nodeType&&0==a&&n.firstChild&&"false"==n.firstChild.contentEditable){var r=n.firstChild;$e(e,r,!0),setTimeout((function(){return $e(e,r,!1)}),20)}}}(e)||Ae(e,1,a)||Oe(e):a==(o.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function ze(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 Ne(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 a=e.docView.parseRange(t,n),i=a.node,s=a.fromOffset,l=a.toOffset,c=a.from,u=a.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")||r.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:ze,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,a,r){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"==r&&(a-=s+Math.max(0,i-Math.min(s,l))-i),s<i&&e.size<t.size?(l=(i-=a<=i&&a>=s?i-a:0)+(l-s),s=i):l<i&&(s=(i-=a<=i&&a>=l?i-a:0)+(s-l),l=i),{start:i,endA:s,endB:l}}(g.content,_.doc.content,_.from,m,f);if(!y){if(!(i&&h instanceof a.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 a.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=a.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,a,r){if(!a.parent.isTextblock||n-t<=r.pos-a.pos||Fe(a,!0,!1)<r.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)&&a.parent.content.cut(a.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,j=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,j),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,a,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)a=l[0],n="add",i=function(e){return e.mark(a.addToSet(e.marks))};else{if(0!=l.length||1!=c.length)return null;a=c[0],n="remove",i=function(e){return e.mark(a.removeFromSet(e.marks))}}for(var p=[],m=0;m<t.childCount;m++)p.push(i(t.child(m)));if(r.Fragment.from(p).eq(e))return{mark:a,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,j,T.mark):C.removeMark(E,j,T.mark);else if(D.parent.child(D.index()).isText&&D.index()==M.index()-(M.textOffset?0:1)){var A=D.parent.textBetween(D.parentOffset,M.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,E,j,A)})))return;C=e.state.tr.insertText(A,E,j)}if(C||(C=e.state.tr.replace(E,j,_.doc.slice(y.start-_.from,y.endB-_.from))),_.sel){var P=Ie(e,C.doc,_.sel);P&&!(o.chrome&&o.android&&e.composing&&P.empty&&(P.head==E||P.head==C.mapping.map(j)-1)||o.ie&&P.empty&&P.head==E)&&C.setSelection(P)}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 a=e.depth,r=t?e.end():e.pos;a>0&&(t||e.indexAfter(a)==e.node(a).childCount);)a--,r++,t=!1;if(n)for(var i=e.node(a).maybeChild(e.indexAfter(a));i&&!i.isLeaf;)i=i.firstChild,r++;return r}function He(e,t){for(var n=[],a=t.content,i=t.openStart,o=t.openEnd;i>1&&o>1&&1==a.childCount&&1==a.firstChild.childCount;){i--,o--;var s=a.firstChild;n.push(s.type.name,s.attrs!=s.type.defaultAttrs?s.attrs:null),a=s.content}var l=e.someProp("clipboardSerializer")||r.DOMSerializer.fromSchema(e.state.schema),c=Ze(),u=c.createElement("div");u.appendChild(l.serializeFragment(a,{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,a,i){var o,s,l=i.parent.type.spec.code;if(!n&&!t)return null;var c=t&&(a||l||!n);if(c){if(e.someProp("transformPastedText",(function(e){t=e(t,l||a)})),l)return new r.Slice(r.Fragment.from(e.state.schema.text(t)),0,0);var u=e.someProp("clipboardTextParser",(function(e){return e(t,i,a)}));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,a=Ze().createElement("div"),r=/(?:<meta [^>]*>)*<([a-z][^>\s]+)/i.exec(e),i=0;(n=r&&Ue[r[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join(""),i=n.length),a.innerHTML=e;for(var o=0;o<i;o++)a=a.firstChild;return a}(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")||r.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,a=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=a.nodes[n[l]];if(!c||c.hasRequiredAttrs())break;i=r.Fragment.from(c.create(n[l+1],i)),o++,s++}return new r.Slice(i,o,s)}(function(e,t,n){return t<e.openStart&&(e=new r.Slice(We(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new r.Slice(We(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}(s,+p[1],+p[2]),p[3]):r.Slice.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n=function(n){var a=t.node(n).contentMatchAt(t.index(n)),i=void 0,o=[];if(e.forEach((function(e){if(o){var t,n=a.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 r=Be(e,n);o.push(r),a=a.matchType(r.type,r.attrs),i=n}}})),o)return{v:r.Fragment.from(o)}},a=t.depth;a>=0;a--){var i=n(a);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 a=t.length-1;a>=n;a--)e=t[a].create(null,r.Fragment.from(e));return e}function qe(e,t,n,a,i){if(i<e.length&&i<t.length&&e[i]==t[i]){var o=qe(e,t,n,a.lastChild,i+1);if(o)return a.copy(a.content.replaceChild(a.childCount-1,o));if(a.contentMatchAt(a.childCount).matchType(i==e.length-1?n.type:e[i+1]))return a.copy(a.content.append(r.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)),a=e.contentMatchAt(e.childCount).fillBefore(r.Fragment.empty,!0);return e.copy(n.append(a))}function We(e,t,n,a,i,o){var s=t<0?e.firstChild:e.lastChild,l=s.content;return i<a-1&&(l=We(l,t,n,a,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(r.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),a=-1,r=-1,i=!1,s=[];if(this.view.editable)for(var l=0;l<e.length;l++){var c=this.registerMutation(e[l],s);c&&(a=a<0?c.from:Math.min(c.from,a),r=r<0?c.to:Math.max(c.to,r),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()}}(a>-1||n)&&(a>-1&&(this.view.docView.markDirty(a,r),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(a,r,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 a=e.previousSibling,r=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)&&(a=l),(!c||Array.prototype.indexOf.call(e.addedNodes,c)<0)&&(r=c)}for(var u=a&&a.parentNode==e.target?p(a)+1:0,d=n.localPosFromDOM(e.target,u,-1),m=r&&r.parentNode==e.target?p(r):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 at(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function rt(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 a=n[t.type];return!!a&&(a(e,t)||t.defaultPrevented)}))}function ot(e){return{left:e.clientX,top:e.clientY}}function st(e,t,n,a,r){if(-1==a)return!1;for(var i=e.state.doc.resolve(a),o=function(a){if(e.someProp(t,(function(t){return a>i.depth?t(e,n,i.nodeAfter,i.before(a),r,!0):t(e,n,i.node(a),i.before(a),r,!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 a=e.state.tr.setSelection(t);"pointer"==n&&a.setMeta("pointer",!0),e.dispatch(a)}function ct(e,t,n,r,i){return st(e,"handleClickOn",t,n,r)||e.someProp("handleClick",(function(n){return n(e,t,r)}))||(i?function(e,t){if(-1==t)return!1;var n,r,i=e.state.selection;i instanceof a.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(a.NodeSelection.isSelectable(l)){r=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!=r&&(lt(e,a.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&&a.NodeSelection.isSelectable(r))&&(lt(e,new a.NodeSelection(n),"pointer"),!0)}(e,n))}function ut(e,t,n,a){return st(e,"handleDoubleClickOn",t,n,a)||e.someProp("handleDoubleClick",(function(n){return n(e,t,a)}))}function dt(e,t,n,r){return st(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&&(lt(e,a.TextSelection.create(n,0,n.content.size),"pointer"),!0);for(var r=n.resolve(t),i=r.depth+1;i>0;i--){var o=i>r.depth?r.nodeAfter:r.node(i),s=r.before(i);if(o.inlineContent)lt(e,a.TextSelection.create(n,s+1,s+1+o.content.size),"pointer");else{if(!a.NodeSelection.isSelectable(o))continue;lt(e,a.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():at(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 a.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 mt=o.mac?"metaKey":"ctrlKey";tt.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=pt(e),a=Date.now(),r="singleClick";a-e.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,a=t.y-e.clientY;return n*n+a*a<100}(t,e.lastClick)&&!t[mt]&&("singleClick"==e.lastClick.type?r="doubleClick":"doubleClick"==e.lastClick.type&&(r="tripleClick")),e.lastClick={time:a,x:t.clientX,y:t.clientY,type:r};var i=e.posAtCoords(ot(t));i&&("singleClick"==r?e.mouseDown=new ft(e,i,t,n):("doubleClick"==r?ut:dt)(e,i.pos,i.inside,t)?t.preventDefault():at(e,"pointer"))};var ft=function(e,t,n,r){var i,s,l=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=r,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=r?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 a.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)),at(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?at(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 a.TextSelection)&&(t.pos==this.view.state.selection.from||t.pos==this.view.state.selection.to)?(lt(this.view,a.Selection.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):at(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),at(this.view,"pointer")},tt.touchdown=function(e){pt(e),at(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 a=e.root.getSelection(),r=a.focusNode,i=a.focusOffset;r&&1==r.nodeType&&0!=i;){var s=i<0?r.lastChild:r.childNodes[i-1];if(!s)break;if(3==s.nodeType){a.collapse(s,s.nodeValue.length);break}r=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,a){var i=Re(e,t,n,e.shiftKey,e.state.selection.$from);if(!e.someProp("handlePaste",(function(t){return t(e,a,i||r.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,a="cut"==t.type;if(!n.empty){var r=bt?null:t.clipboardData,i=He(e,n.content()),o=i.dom,s=i.text;r?(t.preventDefault(),r.clearData(),r.setData("text/html",o.innerHTML),r.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 a=getSelection(),r=document.createRange();r.selectNodeContents(t),e.dom.blur(),a.removeAllRanges(),a.addRange(r),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,o),a&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},nt.paste=function(e,t){var n=bt?null:t.clipboardData,a=n&&n.getData("text/html"),r=n&&n.getData("text/plain");n&&(a||r||n.files.length)?(wt(e,r,a,t),t.preventDefault()):function(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,a=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(a.contentEditable="true"),a.style.cssText="position: fixed; left: -10000px; top: 10px",a.focus(),setTimeout((function(){e.focus(),a.parentNode&&a.parentNode.removeChild(a),n?wt(e,a.value,null,t):wt(e,a.textContent,a.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 r=e.state.selection,i=r.empty?null:e.posAtCoords(ot(t));if(i&&i.pos>=r.from&&i.pos<=(r instanceof a.NodeSelection?r.to-1:r.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(a.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(a.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||r.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&&a.NodeSelection.isSelectable(l.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(l.content.firstChild))d.setSelection(new a.NodeSelection(h));else{var _=d.mapping.map(u);d.mapping.maps[d.mapping.maps.length-1].forEach((function(e,t,n,a){return _=a})),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 a in t)if(!(a in e))return!1;return!0}var St=function(e,t){this.spec=t||jt,this.side=this.spec.side||0,this.toDOM=e};St.prototype.map=function(e,t,n,a){var r=e.mapResult(t.from+a,this.side<0?-1:1),i=r.pos;return r.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||jt,this.attrs=e};Ct.prototype.map=function(e,t,n,a){var r=e.map(t.from+a,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+a,this.spec.inclusiveEnd?1:-1)-n;return r>=i?null:new Tt(r,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||jt,this.attrs=e};Lt.prototype.map=function(e,t,n,a){var r=e.mapResult(t.from+a,1);if(r.deleted)return null;var i=e.mapResult(t.to+a,-1);return i.deleted||i.pos<=r.pos?null:new Tt(r.pos-n,i.pos-n,this)},Lt.prototype.valid=function(e,t){var n=e.content.findIndex(t.from),a=n.index,r=n.offset;return r==t.from&&r+e.child(a).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,a){return new Tt(e,t,new Ct(n,a))},Tt.node=function(e,t,n,a){return new Tt(e,t,new Lt(n,a))},Ot.spec.get=function(){return this.type.spec},Ot.inline.get=function(){return this.type instanceof Ct},Object.defineProperties(Tt.prototype,Ot);var Et=[],jt={},At=function(e,t){this.local=e&&e.length?e:Et,this.children=t&&t.length?t:Et};At.create=function(e,t){return t.length?It(t,e,0,jt):Pt},At.prototype.find=function(e,t,n){var a=[];return this.findInner(null==e?0:e,null==t?1e9:t,a,0,n),a},At.prototype.findInner=function(e,t,n,a,r){for(var i=0;i<this.local.length;i++){var o=this.local[i];o.from<=t&&o.to>=e&&(!r||r(o.spec))&&n.push(o.copy(o.from+a,o.to+a))}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,a+l,r)}},At.prototype.map=function(e,t,n){return this==Pt||0==e.maps.length?this:this.mapInner(e,t,0,0,n||jt)},At.prototype.mapInner=function(e,t,n,a,r){for(var i,o=0;o<this.local.length;o++){var s=this.local[o].map(e,n,a);s&&s.type.valid(t,s)?(i||(i=[])).push(s):r.onRemove&&r.onRemove(this.local[o].spec)}return this.children.length?function(e,t,n,a,r,i,o){for(var s=e.slice(),l=function(e,t,n,a){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>=r&&(c=a-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-r;if(m<0||m>=a.content.size){u=!0;continue}var f=n.map(e[d+1]+i,-1)-r,h=a.content.findIndex(m),_=h.index,v=h.offset,g=a.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!=Pt?(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,a,r,i,o){function s(e,t){for(var i=0;i<e.local.length;i++){var l=e.local[i].map(a,r,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,r,i,o),a,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 At(t&&t.sort(Ft),s)}(this.children,i,e,t,n,a,r):i?new At(i.sort(Ft)):Pt},At.prototype.add=function(e,t){return t.length?this==Pt?At.create(e,t):this.addInner(e,t,0):this},At.prototype.addInner=function(e,t,n){var a,r=this,i=0;e.forEach((function(e,o){var s,l=o+n;if(s=zt(t,e,l)){for(a||(a=r.children.slice());i<a.length&&a[i]<o;)i+=3;a[i]==o?a[i+2]=a[i+2].addInner(e,s,l+1):a.splice(i,0,o,o+e.nodeSize,It(s,e,l+1,jt)),i+=3}}));var o=Yt(i?Nt(t):t,-n);return new At(o.length?this.local.concat(o).sort(Ft):this.local,a||this.children)},At.prototype.remove=function(e){return 0==e.length||this==Pt?this:this.removeInner(e,0)},At.prototype.removeInner=function(e,t){for(var n=this.children,a=this.local,r=0;r<n.length;r+=3){for(var i=void 0,o=n[r]+t,s=n[r+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[r+2].removeInner(i,o+1);u!=Pt?n[r+2]=u:(n.splice(r,3),r-=3)}}if(a.length)for(var d=0,p=void 0;d<e.length;d++)if(p=e[d])for(var m=0;m<a.length;m++)a[m].eq(p,t)&&(a==this.local&&(a=this.local.slice()),a.splice(m--,1));return n==this.children&&a==this.local?this:a.length||n.length?new At(a,n):Pt},At.prototype.forChild=function(e,t){if(this==Pt)return this;if(t.isLeaf)return At.empty;for(var n,a,r=0;r<this.children.length;r+=3)if(this.children[r]>=e){this.children[r]==e&&(n=this.children[r+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&&(a||(a=[])).push(l.copy(c,u))}}if(a){var d=new At(a.sort(Ft));return n?new $t([d,n]):d}return n||Pt},At.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof At)||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},At.prototype.locals=function(e){return Ht(this.localsInner(e))},At.prototype.localsInner=function(e){if(this==Pt)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 Pt=new At;At.empty=Pt,At.removeOverlap=Ht;var $t=function(e){this.members=e};function Yt(e,t){if(!t||!e.length)return e;for(var n=[],a=0;a<e.length;a++){var r=e[a];n.push(new Tt(r.from+t,r.to+t,r.type))}return n}function zt(e,t,n){if(t.isLeaf)return null;for(var a=n+t.nodeSize,r=null,i=0,o=void 0;i<e.length;i++)(o=e[i])&&o.from>n&&o.to<a&&((r||(r=[])).push(o),e[i]=null);return r}function Nt(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function It(e,t,n,a){var r=[],i=!1;t.forEach((function(t,o){var s=zt(e,t,o+n);if(s){i=!0;var l=It(s,t,n+o+1,a);l!=Pt&&r.push(o,o+t.nodeSize,l)}}));for(var o=Yt(i?Nt(e):e,-n).sort(Ft),s=0;s<o.length;s++)o[s].type.valid(t,o[s])||(a.onRemove&&a.onRemove(o[s].spec),o.splice(s--,1));return o.length||r.length?new At(o,r):Pt}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 a=t[n];if(a.from!=a.to)for(var r=n+1;r<t.length;r++){var i=t[r];if(i.from!=a.from){i.from<a.to&&(t==e&&(t=e.slice()),t[n]=a.copy(a.from,i.from),Rt(t,r,a.copy(i.from,a.to)));break}i.to!=a.to&&(t==e&&(t=e.slice()),t[r]=i.copy(i.from,a.to),Rt(t,r+1,i.copy(a.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 a=n(e.state);a&&a!=Pt&&t.push(a)})),e.cursorWrapper&&t.push(At.create(e.state.doc,[e.cursorWrapper.deco])),$t.from(t)}$t.prototype.forChild=function(e,t){if(t.isLeaf)return At.empty;for(var n=[],a=0;a<this.members.length;a++){var r=this.members[a].forChild(e,t);r!=Pt&&(r instanceof $t?n=n.concat(r.members):n.push(r))}return $t.from(n)},$t.prototype.eq=function(e){if(!(e instanceof $t)||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},$t.prototype.locals=function(e){for(var t,n=!0,a=0;a<this.members.length;a++){var r=this.members[a].localsInner(e);if(r.length)if(t){n&&(t=t.slice(),n=!1);for(var i=0;i<r.length;i++)t.push(r[i])}else t=r}return t?Ht(n?t:t.sort(Ft)):Et},$t.from=function(e){switch(e.length){case 0:return Pt;case 1:return e[0];default:return new $t(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,a,r){return Ne(e,t,n,a,r)})),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})),rt(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 a in n)"class"==a?t.class+=" "+n[a]:t[a]||"contenteditable"==a||"nodeName"==a||(t[a]=String(n[a]))})),[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&&rt(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 a in t.state=this.state,e)t[a]=e[a];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,r=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,a=0;for(var r in e){if(e[r]!=t[r])return!0;n++}for(var i in t)a++;return n!=a})(l,this.nodeViews)&&(this.nodeViews=l,i=!0),rt(this)}this.editable=Kt(this),Ut(this);var c=Bt(this),u=Wt(this),d=t?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",p=i||!this.docView.matchesNode(e.doc,u,c);!p&&e.selection.eq(r.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,a=e.dom.getBoundingClientRect(),r=Math.max(0,a.top),i=(a.left+a.right)/2,o=r+1;o<Math.min(innerHeight,a.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>=r-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&&!r.selection.empty&&!e.selection.empty&&(v=r.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(r),"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 a.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 a=0;a<this.state.plugins.length;a++){var r=this.state.plugins[a];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}},qt.prototype.someProp=function(e,t){var n,a=this._props&&this._props[e];if(null!=a&&(n=t?t(a):a))return n;var r=this.state.plugins;if(r)for(var i=0;i<r.length;i++){var o=r[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 A(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 a=this.docView.posFromDOM(e,t,n);if(null==a)throw new RangeError("DOM position not inside the editor");return a},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"))},"57c1":function(e,t,n){var a=n("d8df");e.exports=function(e,t){var n=e.__data__;return a(t)?n["string"==typeof t?"string":"hash"]:n.map}},"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 a=n("1d80"),r="["+n("5899")+"]",i=RegExp("^"+r+r+"*"),o=RegExp(r+r+"*$"),s=function(e){return function(t){var n=String(a(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"))},"59bc":function(e,t,n){var a=n("ac88"),r=n("86c5"),i=n("367c"),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!a(e))return i(e);var t=r(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},"5a34":function(e,t,n){var a=n("44e7");e.exports=function(e){if(a(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 a=e%10,r=e%100-a,i=e>=100?100:null;return e+(t[a]||t[r]||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,a){var r=e;switch(n){case"s":return a||t?"néhány másodperc":"néhány másodperce";case"ss":return r+(a||t)?" másodperc":" másodperce";case"m":return"egy"+(a||t?" perc":" perce");case"mm":return r+(a||t?" perc":" perce");case"h":return"egy"+(a||t?" óra":" órája");case"hh":return r+(a||t?" óra":" órája");case"d":return"egy"+(a||t?" nap":" napja");case"dd":return r+(a||t?" nap":" napja");case"M":return"egy"+(a||t?" hónap":" hónapja");case"MM":return r+(a||t?" hónap":" hónapja");case"y":return"egy"+(a||t?" év":" éve");case"yy":return r+(a||t?" év":" éve")}return""}function a(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 a.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return a.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 a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<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,a,r,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,r=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":a=String(parseFloat(p()).toFixed(r||6)),c+=d?a:a.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 a=n("28c9"),r=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 a=e[t];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=r,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},"5f60":function(e,t,n){var a=n("a118"),r=n("9f66");e.exports=function e(t,n,i,o,s){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:a(t,n,i,o,e,s))}},"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 a=n("0b07")(Object,"create");e.exports=a},"605a":function(e,t,n){var a=n("f668"),r=n("b3ab"),i=n("d82e");e.exports=function(e){return a(e,i,r)}},"605d":function(e,t,n){var a=n("c6b6"),r=n("da84");e.exports="process"==a(r.process)},"60ed":function(e,t,n){var a=n("3729"),r=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]"!=a(e))return!1;var t=r(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 a=100*e+t;return a<600?"يېرىم كېچە":a<900?"سەھەر":a<1130?"چۈشتىن بۇرۇن":a<1230?"چۈش":a<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"))},6213:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},6273:function(e,t,n){var a=n("a92b"),r=n("ac88");e.exports=function(e){if(!r(e))return!1;var t=a(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},"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}},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 a=n("a691"),r=n("1d80"),i=function(e){return function(t,n){var i,o,s=String(r(t)),l=a(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 a=n("861d"),r=n("e8b5"),i=n("b622")("species");e.exports=function(e,t){var n;return r(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!r(n.prototype)?a(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"669c":function(e,t,n){var a=n("1ea7"),r=n("fdb1"),i=n("e3f3"),o=n("8517"),s=n("231d");function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=r,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},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"))},"67b5":function(e,t){e.exports=function(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}},"67ca":function(e,t,n){var a=n("cb5a");e.exports=function(e,t){var n=this.__data__,r=a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},"67ea":function(e,t,n){var a=n("0b19"),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=r(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),a(e,this,c)}}},6887:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+r({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){switch(a(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function a(e){return e>9?a(e%10):e}function r(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 a=n("cb5a"),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=a(t,e);return!(n<0||(n==t.length-1?t.pop():r.call(t,n,1),--this.size,0))}},"69f3":function(e,t,n){var a,r,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;a=function(e,t){return t.facade=e,g.call(h,e,t),t},r=function(e){return _.call(h,e)||{}},i=function(e){return v.call(h,e)}}else{var y=p("state");m[y]=!0,a=function(e,t){return t.facade=e,c(e,y,t),t},r=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:a,get:r,has:i,enforce:function(e){return i(e)?r(e):a(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6af4":function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},"6cc7":function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},"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,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},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"))},"6e72":function(e,t,n){var a=n("902a")(n("8aed"),"Promise");e.exports=a},"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 a=n("da84"),r=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")||r(n,"name",t),(l=u(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==a?(c?!m&&e[t]&&(p=!0):delete e[t],p?e[t]=n:r(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 a=n("50d8"),r=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&&r(e),d=!n&&!u&&o(e),p=!n&&!u&&!d&&l(e),m=n||u||d||p,f=m?a(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}},"6fe6":function(e,t,n){var a=n("193e"),r=n("d3c7"),i=n("669c");e.exports=function(e,t){var n=this.__data__;if(n instanceof a){var o=n.__data__;if(!r||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}},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,a){return e?/-MMM-/.test(a)?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 a=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var i,o;return r&&"function"==typeof(i=t.constructor)&&i!==n&&a(o=i.prototype)&&o!==n.prototype&&r(e,o),e}},"716b":function(e,t,n){e.exports=function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},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 a=n(2),r=n(5),i=n(0);t.a=function(e,t){if(t.value){var o=n.i(r.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(a.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(a.b)(e,t),e.dispatchEvent(n.i(a.c)("change"))},e.onfocus=function(){n.i(a.b)(e,e.value.length-o.suffix.length)},e.oninput(),e.dispatchEvent(n.i(a.c)("input"))}}},function(e,t,n){"use strict";function a(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?"-":"",a=d(l(i(e),t.precision)).split("."),r=a[0],s=a[1];return r=c(r,t.thousands),t.prefix+n+u(r,s,t.decimal)+t.suffix}function r(e,t){var n=e.indexOf("-")>=0?-1:1,a=l(i(e),t);return parseFloat(a)*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 a})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return m}))},function(e,t,n){"use strict";function a(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 r=n(6),i=n.n(r),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=a,"undefined"!=typeof window&&window.Vue&&window.Vue.use(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),r=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 r.a.precision}},decimal:{type:String,default:function(){return r.a.decimal}},thousands:{type:String,default:function(){return r.a.thousands}},prefix:{type:String,default:function(){return r.a.prefix}},suffix:{type:String,default:function(){return r.a.suffix}}},directives:{money:a.a},data:function(){return{formattedValue:""}},watch:{value:{immediate:!0,handler:function(e,t){var a=n.i(i.a)(e,this.$props);a!==this.formattedValue&&(this.formattedValue=a)}}},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,a){return n[a]=void 0===t[a]?e[a]:t[a],n}),{})}},function(e,t,n){var a=n(7)(n(4),n(8),null,null);e.exports=a.exports},function(e,t){e.exports=function(e,t,n,a){var r,i=e=e||{},o=typeof e.default;"object"!==o&&"function"!==o||(r=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),a){var l=s.computed||(s.computed={});Object.keys(a).forEach((function(e){var t=a[e];l[e]=function(){return t}}))}return{esModule:r,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)}])},"71b8":function(e,t,n){var a=n("8ef9"),r=n("fbbc"),i=n("86c5");e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:a(r(e))}},7260:function(e,t,n){var a=n("e005"),r=n("3307"),i=n("36a2"),o=n("0006"),s=n("44f3"),l=n("16f0"),c=a?a.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,a,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 r(e),new r(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&a;if(m||(m=l),e.size!=t.size&&!f)return!1;var h=p.get(e);if(h)return h==t;a|=2,p.set(e,t);var _=o(m(e),m(t),a,c,d,p);return p.delete(e),_;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},"72af":function(e,t,n){var a=n("99cd")();e.exports=a},"72e1":function(e,t,n){var a=n("e005"),r=Object.prototype,i=r.hasOwnProperty,o=r.toString,s=a?a.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var a=!0}catch(e){}var r=o.call(e);return a&&(t?e[s]=n:delete e[s]),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 a=n("743f"),r=n("b047"),i=n("99d3"),o=i&&i.isTypedArray,s=o?r(o):a;e.exports=s},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"743f":function(e,t,n){var a=n("3729"),r=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)&&r(e.length)&&!!o[a(e)]}},"746f":function(e,t,n){var a=n("428f"),r=n("5135"),i=n("e538"),o=n("9bf2").f;e.exports=function(e){var t=a.Symbol||(a.Symbol={});r(t,e)||o(t,e,{value:i.f(e)})}},"74d4":function(e,t,n){var a=n("093e"),r=n("5438");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?r(n,c,u):a(n,c,u)}return n}},"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 a=n("1a8c"),r=Object.create,i=function(){function e(){}return function(t){if(!a(t))return{};if(r)return r(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 a=n("0b07")(n("2b3e"),"Map");e.exports=a},"7a46":function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},"7a48":function(e,t,n){var a=n("6044"),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return a?void 0!==t[e]:r.call(t,e)}},"7b0b":function(e,t,n){var a=n("1d80");e.exports=function(e){return Object(a(e))}},"7b83":function(e,t,n){var a=n("7c64"),r=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 a=e[t];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=r,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},"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 a(e){return e>1&&e<5}function r(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?i+(a(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?i+(a(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(a(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?i+(a(e)?"dni":"dní"):i+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?i+(a(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?i+(a(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: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"))},"7c64":function(e,t,n){var a=n("e24b"),r=n("5e2e"),i=n("79bc");e.exports=function(){this.size=0,this.__data__={hash:new a,map:new(i||r),string:new a}}},"7c73":function(e,t,n){var a,r=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{a=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;f=a?function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}(a):((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=r(e),n=new p,p.prototype=null,n[d]=e):n=f(),void 0===t?n:i(n,t)}},"7db0":function(e,t,n){"use strict";var a=n("23e7"),r=n("b727").find,i=n("44d2"),o=n("ae40"),s="find",l=!0,c=o(s);s in[]&&Array(1).find((function(){l=!1})),a({target:"Array",proto:!0,forced:l||!c},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},"7dd0":function(e,t,n){"use strict";var a=n("23e7"),r=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){r(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),j="Array"==t&&T.entries||O;if(j&&(k=i(j.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 a({target:t,proto:!0,forced:h||L},D);return D}},"7e64":function(e,t,n){var a=n("5e2e"),r=n("efb6"),i=n("2fcc"),o=n("802a"),s=n("55a3"),l=n("d02c");function c(e){var t=this.__data__=new a(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},"7f06":function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return v}));for(var a={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"},r={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++)a[48+d]=a[96+d]=String(d);for(d=1;d<=24;d++)a[d+111]="F"+d;for(d=65;d<=90;d++)a[d]=String.fromCharCode(d+32),r[d]=String.fromCharCode(d);for(var p in a)r.hasOwnProperty(p)||(r[p]=a[p]);var m=n("5313"),f="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);function h(e){var t,n,a,r,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))r=!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))a=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: "+l);f?r=!0:n=!0}}return t&&(o="Alt-"+o),n&&(o="Ctrl-"+o),r&&(o="Meta-"+o),a&&(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?r:a)[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=a[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 a=n("da84"),r=n("8925"),i=a.WeakMap;e.exports="function"==typeof i&&/native code/.test(r(i))},"7fbd":function(e,t,n){var a=n("d220"),r=n("8f68")((function(e,t,n){a(e,t,n)}));e.exports=r},"802a":function(e,t){e.exports=function(e){return this.__data__.get(e)}},"80b8":function(e,t){e.exports=function(e){return this.__data__.has(e)}},"814e":function(e,t,n){var a=n("193e"),r=n("e565"),i=n("b4c1"),o=n("16a9"),s=n("80b8"),l=n("6fe6");function c(e){var t=this.__data__=new a(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},8155:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var r=e+" ";switch(n){case"s":return t||a?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===e?t?"sekundo":"sekundi":2===e?t||a?"sekundi":"sekundah":e<5?t||a?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return r+=1===e?t?"minuta":"minuto":2===e?t||a?"minuti":"minutama":e<5?t||a?"minute":"minutami":t||a?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return r+=1===e?t?"ura":"uro":2===e?t||a?"uri":"urama":e<5?t||a?"ure":"urami":t||a?"ur":"urami";case"d":return t||a?"en dan":"enim dnem";case"dd":return r+=1===e?t||a?"dan":"dnem":2===e?t||a?"dni":"dnevoma":t||a?"dni":"dnevi";case"M":return t||a?"en mesec":"enim mesecem";case"MM":return r+=1===e?t||a?"mesec":"mesecem":2===e?t||a?"meseca":"mesecema":e<5?t||a?"mesece":"meseci":t||a?"mesecev":"meseci";case"y":return t||a?"eno leto":"enim letom";case"yy":return r+=1===e?t||a?"leto":"letom":2===e?t||a?"leti":"letoma":e<5?t||a?"leta":"leti":t||a?"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 a(e,t,n,a){var i="";switch(n){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":i=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":i=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":i=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":i=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":i=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":i=a?"vuoden":"vuotta"}return i=r(e,a)+" "+i}function r(e,a){return e<10?a?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: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"))},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 a=n("861d");e.exports=function(e){if(!a(e))throw TypeError(String(e)+" is not an object");return e}},8300:function(e,t,n){var a=n("1501"),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(a){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},"83ab":function(e,t,n){var a=n("d039");e.exports=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var a=n("c04e"),r=n("9bf2"),i=n("5c6c");e.exports=function(e,t,n){var o=a(t);o in e?r.f(e,o,i(0,n)):e[o]=n}},"841c":function(e,t,n){"use strict";var a=n("d784"),r=n("825a"),i=n("1d80"),o=n("129f"),s=n("14c3");a("search",1,(function(e,t,n){return[function(t){var n=i(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,n):new RegExp(t)[e](String(n))},function(e){var a=n(t,e,this);if(a.done)return a.value;var i=r(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}]}))},8459:function(e,t,n){var a=n("1501");e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=a&&void 0===t?"__lodash_hash_undefined__":t,this}},"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"))},8517:function(e,t,n){var a=n("57c1");e.exports=function(e){return a(this,e).has(e)}},"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)}},8608:function(e,t,n){var a=n("6273"),r=n("434b"),i=n("ac88"),o=n("cbda"),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)||r(e))&&(a(e)?p:s).test(o(e))}},"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"))},"86c5":function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},"872a":function(e,t,n){var a=n("3b4a");e.exports=function(e,t,n){"__proto__"==t&&a?a(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 a,r,i;"undefined"!=typeof self&&self,r=[],void 0===(i="function"==typeof(a=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,a,r,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,a=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(a,"$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()===r)return u[d]}return null}}return e})?a.apply(t,r):a)||(e.exports=i)},8925:function(e,t,n){var a=n("c6cd"),r=Function.toString;"function"!=typeof a.inspectSource&&(a.inspectSource=function(e){return r.call(e)}),e.exports=a.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("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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 a=n("6547").charAt;e.exports=function(e,t,n){return t+(n?a(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]}},"8aed":function(e,t,n){var a=n("b83a"),r="object"==typeof self&&self&&self.Object===Object&&self,i=a||r||Function("return this")();e.exports=i},"8b0d":function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var a=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==a||"symbol"!=a&&n.test(e))&&e>-1&&e%1==0&&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 a=this._calendarEl[e],r=n&&n.hours();return t(a)&&(a=a.apply(n)),a.replace("{}",r%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("_"),a=[/^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 r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var a=e+" ";switch(n){case"ss":return a+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return a+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return a+(r(e)?"godziny":"godzin");case"ww":return a+(r(e)?"tygodnie":"tygodni");case"MM":return a+(r(e)?"miesiące":"miesięcy");case"yy":return a+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,a){return e?/D MMMM/.test(a)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:a,longMonthsParse:a,shortMonthsParse:a,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 a=n("8eeb"),r=n("9934");e.exports=function(e){return a(e,r(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"},a=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 عام"]},i=function(e){return function(t,n,i,o){var s=a(t),l=r[e][a(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 a=n("32b3"),r=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?r(n,c,u):a(n,c,u)}return n}},"8ef9":function(e,t,n){var a=n("ac88"),r=Object.create,i=function(){function e(){}return function(t){if(!a(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},"8f68":function(e,t,n){var a=n("9a3e"),r=n("131f");e.exports=function(e){return a((function(t,n){var a=-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&&r(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++a<i;){var l=n[a];l&&e(t,l,a,o)}return t}))}},"902a":function(e,t,n){var a=n("8608"),r=n("0ebd");e.exports=function(e,t){var n=r(e,t);return a(n)?n:void 0}},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"))},"906b":function(e,t,n){var a=n("ed28");e.exports=function(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]}},"90e3":function(e,t){var n=0,a=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+a).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 a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<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 a=n("83ab"),r=n("9bf2"),i=n("5c6c");e.exports=a?function(e,t,n){return r.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 a,r,i=n("ad6d"),o=n("9f7f"),s=RegExp.prototype.exec,l=String.prototype.replace,c=s,u=(a=/a/,r=/b*/g,s.call(a,"a"),s.call(r,"a"),0!==a.lastIndex||0!==r.lastIndex),d=o.UNSUPPORTED_Y||o.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(u||p||d)&&(c=function(e){var t,n,a,r,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),a=s.call(c?n:o,_),c?a?(a.input=a.input.slice(h),a[0]=a[0].slice(h),a.index=o.lastIndex,o.lastIndex+=a[0].length):o.lastIndex=0:u&&a&&(o.lastIndex=o.global?a.index+a[0].length:t),p&&a&&a.length>1&&l.call(a[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(a[r]=void 0)})),a}),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 a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(){a(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,a=Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];for(var i=0,o=o=t;!(i>=o.length);)o[i++].apply(this,a)}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 a=0;a<n.length;a++)if(n[a]===t){n.splice(a,1);break}return this}}]),e}(),i=function(e){function i(e,t){a(this,i);var r,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!=(r=i.optionsForElement(o.element))?r:{};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,r),t(i,null,[{key:"initClass",value:function(){this.prototype.Emitter=r,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 a=n[t++];if(/(^| )dz-message($| )/.test(a.className)){e=a,a.className="dz-message";break}}e||(e=i.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var r=e.getElementsByTagName("span")[0];return r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,a){var r={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},i=e.width/e.height;null==t&&null==n?(t=r.srcWidth,n=r.srcHeight):null==t?t=n*i:null==n&&(n=t/i);var o=(t=Math.min(t,r.srcWidth))/(n=Math.min(n,r.srcHeight));if(r.srcWidth>t||r.srcHeight>n)if("crop"===a)i>o?(r.srcHeight=e.height,r.srcWidth=r.srcHeight*o):(r.srcWidth=e.width,r.srcHeight=r.srcWidth/o);else{if("contain"!==a)throw new Error("Unknown resizeMethod '"+a+"'");i>o?n=t/i:t=n*i}return r.srcX=(e.width-r.srcWidth)/2,r.srcY=(e.height-r.srcHeight)/2,r.trgWidth=t,r.trgHeight=n,r},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,a=a=e.previewElement.querySelectorAll("[data-dz-name]");!(n>=a.length);){var r=a[n++];r.textContent=e.name}for(var o=0,s=s=e.previewElement.querySelectorAll("[data-dz-size]");!(o>=s.length);)(r=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,a=a=e.previewElement.querySelectorAll("[data-dz-thumbnail]");!(n>=a.length);){var r=a[n++];r.alt=e.name,r.src=t}return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=0,a=a=e.previewElement.querySelectorAll("[data-dz-errormessage]");!(n>=a.length);)a[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 a=0,r=r=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");!(a>=r.length);){var i=r[a++];"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),a=1;a<t;a++)n[a-1]=arguments[a];for(var r=0,i=i=n;!(r>=i.length);){var o=i[r++];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 a=0,r=r=n;!(a>=r.length);){var i=r[a++];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 a=n[t++];this.on(a,this.options[a])}this.on("uploadprogress",(function(){return e.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return e.emit("complete",t)})),this.on("complete",(function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var r=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return r(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",r(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return r(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){return e.listeners.push({element:t,events:{click:function(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 a=0,r=r=this.getActiveFiles();!(a>=r.length);){var i=r[a++];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 a=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(a):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:a}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,n=n=e;!(t>=n.length);){var a=n[t++];if(/(^| )fallback($| )/.test(a.className))return a}},t=["div","form"],n=0;n<t.length;n++){var a,r=t[n];if(a=e(this.element.getElementsByTagName(r)))return a}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var a=e.events[n];t.push(e.element.addEventListener(n,a,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var a=e.events[n];t.push(e.element.removeEventListener(n,a,!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 a=["tb","gb","mb","kb","b"],r=0;r<a.length;r++){var i=a[r];if(e>=Math.pow(this.options.filesizeBase,4-r)/10){t=e/Math.pow(this.options.filesizeBase,4-r),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 a=e.dataTransfer.items;a&&a.length&&null!=a[0].webkitGetAsEntry?this._addFilesFromItems(a):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 a=n[t++];this.addFile(a)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],a=0,r=r=e;!(a>=r.length);){var i,o=r[a++];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,a=e.createReader(),r=function(e){return n="log",a=function(t){return t.log(e)},null!=(t=console)&&"function"==typeof t[n]?a(t,n):void 0;var t,n,a};return function e(){return a.readEntries((function(a){if(a.length>0){for(var r=0,i=i=a;!(r>=i.length);){var o=i[r++];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}),r)}()}},{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 a=n[t++];this.enqueueFile(a)}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 a=n[t++];(a.status!==i.UPLOADING||e)&&this.removeFile(a)}return null}},{key:"resizeImage",value:function(e,t,n,a,r){var o=this;return this.createThumbnail(e,t,n,a,!0,(function(t,n){if(null==n)return r(e);var a=o.options.resizeMimeType;null==a&&(a=e.type);var s=n.toDataURL(a,o.options.resizeQuality);return"image/jpeg"!==a&&"image/jpg"!==a||(s=c.restore(e.dataURL,s)),r(i.dataURItoBlob(s))}))}},{key:"createThumbnail",value:function(e,t,n,a,r,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,a,r,i);null!=i&&i(s.result)},s.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,a,r,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&&r&&(o=function(e){return EXIF.getData(c,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),o((function(r){e.width=c.width,e.height=c.height;var o=s.options.resize.call(s,e,t,n,a),u=document.createElement("canvas"),d=u.getContext("2d");switch(u.width=o.trgWidth,u.height=o.trgHeight,r>4&&(u.width=o.trgHeight,u.height=o.trgWidth),r){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 a=this.getQueuedFiles();if(a.length>0){if(this.options.uploadMultiple)return this.processFiles(a.slice(0,e-t));for(;n<e;){if(!a.length)return;this.processFile(a.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 a=n[t++];a.processing=!0,a.status=i.UPLOADING,this.emit("processing",a)}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,a=a=t;!(n>=a.length);)a[n++].status=i.CANCELED;void 0!==e.xhr&&e.xhr.abort();for(var r=0,o=o=t;!(r>=o.length);){var s=o[r++];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),a=1;a<t;a++)n[a-1]=arguments[a];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 a=e[0],r=n[0];a.upload.chunks=[];var o=function(){for(var n=0;void 0!==a.upload.chunks[n];)n++;if(!(n>=a.upload.totalChunkCount)){var o=n*t.options.chunkSize,s=Math.min(o+t.options.chunkSize,a.size),l={name:t._getParamName(0),data:r.webkitSlice?r.webkitSlice(o,s):r.slice(o,s),filename:a.upload.filename,chunkIndex:n};a.upload.chunks[n]={file:a,index:n,dataBlock:l,status:i.UPLOADING,progress:0,retries:0},t._uploadData(e,[l])}};if(a.upload.finishedChunkUpload=function(n){var r=!0;n.status=i.SUCCESS,n.dataBlock=null,n.xhr=null;for(var s=0;s<a.upload.totalChunkCount;s++){if(void 0===a.upload.chunks[s])return o();a.upload.chunks[s].status!==i.SUCCESS&&(r=!1)}r&&t.options.chunksUploaded(a,(function(){t._finished(e,"",null)}))},t.options.parallelChunkUploads)for(var s=0;s<a.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,a=new XMLHttpRequest,r=0,o=o=e;!(r>=o.length);)o[r++].xhr=a;e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=a);var s=this.resolveOption(this.options.method,e),l=this.resolveOption(this.options.url,e);a.open(s,l,!0),a.timeout=this.resolveOption(this.options.timeout,e),a.withCredentials=!!this.options.withCredentials,a.onload=function(t){n._finishedUploading(e,a,t)},a.onerror=function(){n._handleUploadError(e,a)},(null!=a.upload?a.upload:a).onprogress=function(t){return n._updateFilesUploadProgress(e,a,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&&a.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,a,e[0].upload.chunked?this._getChunk(e[0],a):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,a,p)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,a,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(a,p,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,a=[],r=0,i=function(i){n.options.transformFile.call(n,e[i],(function(n){a[i]=n,++r===e.length&&t(a)}))},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 a=n[t++],r=a.getAttribute("name"),i=a.getAttribute("type");if(i&&(i=i.toLowerCase()),null!=r)if("SELECT"===a.tagName&&a.hasAttribute("multiple"))for(var o=0,s=s=a.options;!(o>=s.length);){var l=s[o++];l.selected&&e.append(r,l.value)}else(!i||"checkbox"!==i&&"radio"!==i||a.checked)&&e.append(r,a.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var a=void 0;if(void 0!==n){if(a=100*n.loaded/n.total,e[0].upload.chunked){var r=e[0],i=this._getChunk(r,t);i.progress=a,i.total=n.total,i.bytesSent=n.loaded,r.upload.progress=0,r.upload.total=0,r.upload.bytesSent=0;for(var o=0;o<r.upload.totalChunkCount;o++)void 0!==r.upload.chunks[o]&&void 0!==r.upload.chunks[o].progress&&(r.upload.progress+=r.upload.chunks[o].progress,r.upload.total+=r.upload.chunks[o].total,r.upload.bytesSent+=r.upload.chunks[o].bytesSent);r.upload.progress=r.upload.progress/r.upload.totalChunkCount}else for(var s=0,l=l=e;!(s>=l.length);){var c=l[s++];c.upload.progress=a,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;a=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=a,_.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,a,y.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,n){var a=void 0;if(e[0].status!==i.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(a=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{a=JSON.parse(a)}catch(e){n=e,a="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,a,n):this._handleUploadError(e,t,a)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==i.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var a=this._getChunk(e[0],t);if(a.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[a.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var r=0,o=o=e;!(r>=o.length);)o[r++],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 a=0,r=r=e;!(a>=r.length);){var o=r[a++];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 a=0,r=r=e;!(a>=r.length);){var o=r[a++];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=[],a=0,r=r=t;!(a>=r.length);){var i=r[a++];/(^| )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,a=a=e;!(n>=a.length);){var r=a[n++];!1!==i.optionsForElement(r)?t.push(new i(r)):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],a=new ArrayBuffer(t.length),r=new Uint8Array(a),i=0,o=t.length,s=0<=o;s?i<=o:i>=o;s?i++:i--)r[i]=t.charCodeAt(i);return new Blob([a],{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,a=void 0;if(e instanceof Array){a=[];try{for(var r=0,i=i=e;!(r>=i.length);)n=i[r++],a.push(this.getElement(n,t))}catch(e){a=null}}else if("string"==typeof e){a=[];for(var o=0,s=s=document.querySelectorAll(e);!(o>=s.length);)n=s[o++],a.push(n)}else null!=e.nodeType&&(a=[e]);if(null==a||!a.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return a},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,a=n.replace(/\/.*$/,""),r=0,i=i=t;!(r>=i.length);){var o=i[r++];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(a===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,a,r,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 a=n.getContext("2d");a.drawImage(e,0,0);for(var r=a.getImageData(1,0,1,t).data,i=0,o=t,s=t;s>i;)0===r[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,a,r,i,o,s,l,c/u)},c=function(){function e(){a(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,a=void 0,r="",i=void 0,o=void 0,s=void 0,l="",c=0;i=(n=e[c++])>>2,o=(3&n)<<4|(a=e[c++])>>4,s=(15&a)<<2|(r=e[c++])>>6,l=63&r,isNaN(a)?s=l=64:isNaN(r)&&(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=a=r="",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,","")),a=this.slice2Segments(n),r=this.exifManipulation(t,a);return"data:image/jpeg;base64,"+this.encode64(r)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),a=this.insertExif(e,n);return new Uint8Array(a)}},{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,",""),a=this.decode64(n),r=a.indexOf(255,3),i=a.slice(0,r),o=a.slice(r),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 a=t+(256*e[t+2]+e[t+3])+2,r=e.slice(t,a);n.push(r),t=a}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,a="",r=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|(r=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&r)<<4|(i=this.KEY_STR.indexOf(e.charAt(s++)))>>2,a=(3&i)<<6|(o=this.KEY_STR.indexOf(e.charAt(s++))),l.push(t),64!==i&&l.push(n),64!==o&&l.push(a),t=n=a="",r=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,a=!0,r=e.document,i=r.documentElement,o=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",c=function a(i){if("readystatechange"!==i.type||"complete"===r.readyState)return("load"===i.type?e:r)[s](l+i.type,a,!1),!n&&(n=!0)?t.call(e,i.type||i):void 0};if("complete"!==r.readyState){if(r.createEventObject&&i.doScroll){try{a=!e.frameElement}catch(e){}a&&function e(){try{i.doScroll("left")}catch(t){return void setTimeout(e,50)}return c("poll")}()}r[o](l+"DOMContentLoaded",c,!1),r[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(((a,r)=>{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?a(JSON.parse(o.response)):r(o.statusText)},o.onerror=function(e){console.error("Network Error : Could not send request to AWS (Maybe CORS errors)"),r(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 a=n?this.setResponseHandler:this.sendS3Handler;return this.getSignedURL(e,t).then((t=>a(t,e))).catch((e=>e))},setResponseHandler(e,t){t.s3Signature=e.signature,t.s3Url=e.postEndpoint},sendS3Handler(e,t){let n=new FormData,a=e.signature;return Object.keys(a).forEach((function(e){n.append(e,a[e])})),n.append("file",t),new Promise(((t,a)=>{let r=new XMLHttpRequest;r.open("POST",e.postEndpoint),r.onload=function(){if(201==r.status){var e=(new window.DOMParser).parseFromString(r.response,"text/xml").firstChild.children[0].innerHTML;t({success:!0,message:e})}else{var n=(new window.DOMParser).parseFromString(r.response,"text/xml").firstChild.children[0].innerHTML;a({success:!1,message:n+". Request is marked as resolved when returns as status 201"})}},r.onerror=function(e){var t=(new window.DOMParser).parseFromString(r.response,"text/xml").firstChild.children[1].innerHTML;a({success:!1,message:t})},r.send(n)}))}};return t.autoDiscover=!1,function(e,t,n,a,r,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,r&&(d.functional=!0)),a&&(d._scopeId=a),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,a;if(e.duplicateCheck&&this.files.length)for(n=0,a=this.files.length;n<a-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 a=(new window.DOMParser).parseFromString(n,"text/xml").firstChild.children[0].innerHTML;e.$emit("vdropzone-s3-upload-success",a)}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,a){e.$emit("vdropzone-error",t,n,a),this.isS3&&e.$emit("vdropzone-s3-upload-error")})),this.dropzone.on("errormultiple",(function(t,n,a){e.$emit("vdropzone-error-multiple",t,n,a)})),this.dropzone.on("sending",(function(t,n,a){if(e.isS3)if(e.isS3OverridesServerPropagation){let e=t.s3Signature;Object.keys(e).forEach((function(t){a.append(t,e[t])}))}else a.append("s3ObjectLocation",t.s3ObjectLocation);e.$emit("vdropzone-sending",t,n,a)})),this.dropzone.on("sendingmultiple",(function(t,n,a){e.$emit("vdropzone-sending-multiple",t,n,a)})),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,a){e.$emit("vdropzone-upload-progress",t,n,a)})),this.dropzone.on("totaluploadprogress",(function(t,n,a){e.$emit("vdropzone-total-upload-progress",t,n,a)})),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 a=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),r=0;r<a.length;r++)a[r].style.width=this.dropzoneSettings.thumbnailWidth+"px",a[r].style.height=this.dropzoneSettings.thumbnailHeight+"px",a[r].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 a=n("4245");e.exports=function(e){var t=a(this,e).delete(e);return this.size-=t?1:0,t}},"94ca":function(e,t,n){var a=n("d039"),r=/#|\.prototype\./,i=function(e,t){var n=s[o(e)];return n==c||n!=l&&("function"==typeof t?a(t):!!t)},o=i.normalize=function(e){return String(e).replace(r,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},9520:function(e,t,n){var a=n("3729"),r=n("1a8c");e.exports=function(e){if(!r(e))return!1;var t=a(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,a){return"m"===a?n?"минута":"минуту":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"часасаасов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяцаесяцев",yy:"год_годает"}[a],+e)}var a=[/^янв/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:a,longMonthsParse:a,shortMonthsParse:a,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,a){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"))},"95b7":function(e,t,n){var a=n("669c"),r=n("7a46"),i=n("3039");function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new a;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=r,o.prototype.has=i,e.exports=o},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,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},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 a=function(e){"use strict";var t,n=Object.prototype,a=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.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,a){var r=t&&t.prototype instanceof _?t:_,i=Object.create(r.prototype),o=new L(a||[]);return i._invoke=function(e,t,n){var a=d;return function(r,i){if(a===m)throw new Error("Generator is already running");if(a===f){if("throw"===r)throw i;return O()}for(n.method=r,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(a===d)throw a=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var l=u(e,t,n);if("normal"===l.type){if(a=n.done?f:p,l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=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&&a.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(r,i,o,s){var l=u(e[r],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&a.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 r;this._invoke=function(e,a){function i(){return new t((function(t,r){n(e,a,t,r)}))}return r=r?r.then(i,i):i()}}function M(e,n){var a=e.iterator[n.method];if(a===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 r=u(a,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,h;var i=r.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 r=-1,o=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],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,a,r,i){void 0===i&&(i=Promise);var o=new D(c(t,n,a,r),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 a=t.pop();if(a in e)return n.value=a,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)&&a.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 r(a,r){return s.type="throw",s.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;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 a=n.completion;if("throw"===a.type){var r=a.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:T(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=a}catch(e){Function("r","regeneratorRuntime = r")(a)}},"972c":function(e,t,n){!function(e){"use strict";function t(e,t,n){var a=" ";return(e%100>=20||e>=100&&e%100==0)&&(a=" de "),e+a+{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"))},9788:function(e,t,n){var a=n("a92b"),r=n("9f66");e.exports=function(e){return r(e)&&"[object Arguments]"==a(e)}},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 a=n("5313"),r=n("304a"),i=n("55be"),o=function(e,t){return function(n){Array.isArray(e)||(e=[e]);for(var a=0,r=e.length;a<r;a++){var i=j(e[a])(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 r.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 a.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 r=a.Selection.findFrom(n.doc.resolve(e),t,!0);return r?n.setSelection(r):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 a.NodeSelection(n.doc.resolve(t))):l(t)(n)},d=function(e,t,n){return function(a){var r="number"==typeof t,i=a.selection.$from,l=r?a.doc.resolve(t):p(a.selection)?a.doc.resolve(i.pos+1):i,d=l.parent;if(p(a.selection)&&n&&a!==(a=s(e)(a)))return a;if(b(d)&&a!==(a=o(d.type,e)(a))){var m=c(e)?l.before(l.depth):l.pos;return u(e,m,a)}if(y(l,e)){a.insert(l.pos,e);var h=r?l.pos:c(e)?a.selection.$anchor.pos-1:a.selection.$anchor.pos;return f(u(e,h,a))}for(var _=l.depth;_>0;_--){var v=l.after(_),g=a.doc.resolve(v);if(y(g,e))return a.insert(v,e),f(u(e,v,a))}return a}},p=function(e){return e instanceof a.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 a=n.doc.nodeAt(e),r=n.doc.resolve(e);if(_(r,t)){var i=(n=n.replaceWith(e,e+a.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 r.Fragment?t:r.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 a=e.nodes[n];a.spec.tableRole&&(t[a.spec.tableRole]=a)})),e.cached.tableNodeTypes=t,t},y=function(e,t){var n=e.index();return t instanceof r.Fragment?e.parent.canReplace(n,n,t):t instanceof r.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)),a=t.$anchorCell.start(-1),r=n.cellsInRect(e),o=n.cellsInRect(n.rectBetween(t.$anchorCell.pos-a,t.$headCell.pos-a)),s=0,l=r.length;s<l;s++)if(-1===o.indexOf(r[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=[],a=0;a<t.height;a++){for(var r=[],o={},s=0;s<t.width;s++){var l=t.map[a*t.width+s],c=e.nodeAt(l),u=t.findCell(l);o[l]||u.top!==a?r.push(null):(o[l]=!0,r.push(c))}n.push(r)}return n},M=function(e,t){for(var n=[],a=i.TableMap.get(e),r=0;r<a.height;r++){for(var o=e.child(r),s=[],l=0;l<a.width;l++)if(t[r][l]){var c=a.map[r*a.width+l],u=t[r][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,a){var r=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===a&&1===r?n[0]-1:1===a&&-1===r?n[n.length-1]-o+1:-1===r?n[0]:n[n.length-1]-o,e.splice.apply(e,[s,0].concat(i)),e},C=function(e,t,n,a){var r="Target position is invalid, you can't move the "+a+" "+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(r)}else if(-1!==n.slice(1).indexOf(t))throw new Error(r);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 a=e.node(n);if(t(a))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:a}}},O=function(e,t){return function(n){var a=L(e)(n);if(a)return P(a.pos,t)}},E=function(e){return function(t){return!!L(e)(t)}},j=function(e){return function(t){return L((function(t){return m(e,t)}))(t)}},A=function(e){var t=e.$from.nodeBefore,n=a.Selection.findFrom(e.$from,-1);if(n&&t){var r=j(t.type)(n);return r?r.pos:n.$from.pos}},P=function(e,t){var n=t(e),a=n.node.childNodes[n.offset];return n.node.nodeType===Node.TEXT_NODE?n.node.parentNode:a&&a.nodeType!==Node.TEXT_NODE?a:n.node},$=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,a){if(n.push({node:e,pos:a}),!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 $(e,n).filter((function(e){return t(e.node)}))},z=function(e,t,n){return Y(e,(function(e){return e.type===t}),n)},N=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=N(t);if(n){var a=i.TableMap.get(n.node);return(Array.isArray(e)?e:Array.from([e])).reduce((function(e,t){if(t>=0&&t<=a.width-1){var r=a.cellsInRect({left:t,right:t+1,top:0,bottom:a.height});return e.concat(r.map((function(e){var t=n.node.nodeAt(e),a=e+n.start;return{pos:a,start:a+1,node:t}})))}}),[])}}},R=function(e){return function(t){var n=N(t);if(n){var a=i.TableMap.get(n.node);return(Array.isArray(e)?e:Array.from([e])).reduce((function(e,t){if(t>=0&&t<=a.height-1){var r=a.cellsInRect({left:0,right:a.width,top:t,bottom:t+1});return e.concat(r.map((function(e){var t=n.node.nodeAt(e),a=e+n.start;return{pos:a,start:a+1,node:t}})))}}),[])}}},B=function(e){return function(t,n){return function(a){var r=N(a.selection),o="row"===e;if(r){var s=i.TableMap.get(r.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(a.selection.$from);if(!p)return a;var m=s.findCell(p.pos-r.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=r.start+h[0],g=r.start+_[_.length-1],y=a.doc.resolve(v),b=a.doc.resolve(g);return f(a.setSelection(new i.CellSelection(b,y)))}}return a}}},q=B("column"),V=B("row"),W=function(e){return function(t){var n=N(t.selection);if(n){var a=i.TableMap.get(n.node);if(e>=0&&e<=a.height){for(var r=n.node,o=g(r.type.schema),s=n.start,l=0;l<e+1;l++)s+=r.child(l).nodeSize;var c=r.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<a.width){for(var m=[],f=function(n){var a=Q(n,(function(t,a){var r=t.node.attrs.rowspan;return r>1&&n+r>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)}(a))},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=N(t.selection);if(n){var a=i.TableMap.get(n.node);if(0===e&&1===a.width)return Z(t);if(e>=0&&e<=a.width)return i.removeColumn(t,{map:a,tableStart:n.start,table:n.node},e),f(t)}return t}},K=function(e){return function(t){var n=N(t.selection);if(n){var a=i.TableMap.get(n.node);if(0===e&&1===a.height)return Z(t);if(e>=0&&e<=a.height)return i.removeRow(t,{map:a,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),a=i.TableMap.get(n.node),r=t.pos-n.start;return a.rectBetween(r,r)}},Q=function(e,t){return function(n){var a=[],r=R(e)(n.selection);if(r)for(var i=r.length-1;i>=0;i--)t(r[i],n)&&a.push(r[i]);return a}},ee=function(e){return function(t){for(var n=e,a=e,r=function(e){var r=H(e)(t.selection);r&&r.forEach((function(t){var r=t.node.attrs.colspan+e-1;r>=n&&(n=e),r>a&&(a=r)}))},i=e;i>=0;i--)r(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>a&&(a=n)}))};for(i=e;i<=a;i++)o(i);var s=[];for(i=n;i<=a;i++){var l=H(i)(t.selection);l&&l.length&&s.push(i)}n=s[0],a=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=a;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,a=e,r=function(e){R(e)(t.selection).forEach((function(t){var r=t.node.attrs.rowspan+e-1;r>=n&&(n=e),r>a&&(a=r)}))},i=e;i>=0;i--)r(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>a&&(a=n)}))};for(i=e;i<=a;i++)o(i);var s=[];for(i=n;i<=a;i++){var l=R(i)(t.selection);l&&l.length&&s.push(i)}n=s[0],a=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=a;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=j,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,a=t.$from;if(m(e,n))return{node:n,pos:a.pos,depth:a.depth}}}},t.findPositionOfNodeBefore=A,t.findDomRefAtPos=P,t.flatten=$,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=z,t.findChildrenByMark=function(e,t,n){return Y(e,(function(e){return t.isInSet(e.marks)}),n)},t.contains=function(e,t){return!!z(e,t).length},t.findTable=N,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=N(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),a=e+t.start;return{pos:a,start:a+1,node:n}}))}},t.selectColumn=q,t.selectRow=V,t.selectTable=function(e){var t=N(e.selection);if(t){var n=i.TableMap.get(t.node).map;if(n&&n.length){var a=t.start+n[0],r=t.start+n[n.length-1],o=e.doc.resolve(a),s=e.doc.resolve(r);return f(e.setSelection(new i.CellSelection(s,o)))}}return e},t.emptyCell=function(e,t){return function(n){if(e){var a=g(t).cell.createAndFill().content;if(!e.node.content.eq(a))return n.replaceWith(e.pos+1,e.pos+e.node.nodeSize,a),f(n)}return n}},t.addColumnAt=function(e){return function(t){var n=N(t.selection);if(n){var a=i.TableMap.get(n.node);if(e>=0&&e<=a.width)return f(i.addColumn(t,{map:a,tableStart:n.start,table:n.node},e))}return t}},t.moveRow=function(e,t,n){return function(a){var r=Object.assign({tryToFit:!1,direction:0},n),i=N(a.selection);if(!i)return a;var o=te(e)(a).indexes,s=te(t)(a).indexes;if(o.indexOf(t)>-1)return a;!r.tryToFit&&s.length>1&&C(e,t,s,"row");var l=function(e,t,n,a){var r=D(e.node);return r=S(r,t,n,a),M(e.node,r)}(i,o,s,r.direction);return f(a).replaceWith(i.pos,i.pos+i.node.nodeSize,l)}},t.moveColumn=function(e,t,n){return function(a){var r=Object.assign({tryToFit:!1,direction:0},n),i=N(a.selection);if(!i)return a;var o=ee(e)(a).indexes,s=ee(t)(a).indexes;if(o.indexOf(t)>-1)return a;!r.tryToFit&&s.length>1&&C(e,t,s,"column");var l=function(e,t,n,a){var r=k(D(e.node));return r=S(r,t,n,a),r=k(r),M(e.node,r)}(i,o,s,r.direction);return f(a).replaceWith(i.pos,i.pos+i.node.nodeSize,l)}},t.addRowAt=function(e,t){return function(n){var a=N(n.selection);if(a){var r=i.TableMap.get(a.node),o=e-1;if(t&&o>=0)return f(W(o)(n));if(e>=0&&e<=r.height)return f(i.addRow(n,{map:r,tableStart:a.start,table:a.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=N(t);if(n){var a=i.TableMap.get(n.node),r=a.rectBetween(t.$anchorCell.pos-n.start,t.$headCell.pos-n.start);if(0==r.left&&r.right==a.width)return!1;for(var o=Object.assign({},r,{map:a,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=N(t);if(n){var a=i.TableMap.get(n.node),r=a.rectBetween(t.$anchorCell.pos-n.start,t.$headCell.pos-n.start);if(0==r.top&&r.bottom==a.height)return!1;for(var o=Object.assign({},r,{map:a,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(r){var i=H(e)(r.selection);if(i){for(var o=i.length-1;o>=0;o--)r=t(i[o],r);if(n){var s=r.doc.resolve(r.mapping.map(i[i.length-1].pos));r.setSelection(a.Selection.near(s))}return f(r)}return r}},t.forEachCellInRow=function(e,t,n){return function(r){var i=R(e)(r.selection);if(i){for(var o=i.length-1;o>=0;o--)r=t(i[o],r);if(n){var s=r.doc.resolve(r.mapping.map(i[i.length-1].pos));r.setSelection(a.Selection.near(s))}}return r}},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,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=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,r)),a&&d.push(w(s,r));for(var m=[],f=0;f<t;f++)m.push(l.createChecked(null,a&&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=j(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,a){return function(r){var i=j(e)(r.selection);return i?f(r.setNodeMarkup(i.pos,t,Object.assign({},i.node.attrs,n),a)):r}},t.selectParentNodeOfType=function(e){return function(t){if(!p(t.selection)){var n=j(e)(t.selection);if(n)return f(t.setSelection(a.NodeSelection.create(t.doc,n.pos)))}return t}},t.removeNodeBefore=function(e){var t=A(e.selection);return"number"==typeof t?v(t)(e):e}},9934:function(e,t,n){var a=n("6fcd"),r=n("41c3"),i=n("30c9");e.exports=function(e){return i(e)?a(e,!0):r(e)}},"99af":function(e,t,n){"use strict";var a=n("23e7"),r=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||!r((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)};a({target:"Array",proto:!0,forced:!v||!g},{concat:function(e){var t,n,a,r,i,o=s(this),d=u(o,0),p=0;for(t=-1,a=arguments.length;t<a;t++)if(y(i=-1===t?o:arguments[t])){if(p+(r=l(i.length))>h)throw TypeError(_);for(n=0;n<r;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,a){for(var r=-1,i=Object(t),o=a(t),s=o.length;s--;){var l=o[e?s:++r];if(!1===n(i[l],l,i))break}return t}}},"99d3":function(e,t,n){(function(e){var a=n("585a"),r=t&&!t.nodeType&&t,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===r&&a.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))},"9a3e":function(e,t,n){var a=n("a628"),r=n("67ea"),i=n("0bcc");e.exports=function(e,t){return i(r(e,t,a),e+"")}},"9af9":function(e,t){e.exports=function(){return[]}},"9aff":function(e,t,n){var a=n("9638"),r=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?r(n)&&i(t,n.length):"string"==s&&t in n)&&a(n[t],e)}},"9bdd":function(e,t,n){var a=n("825a"),r=n("2a62");e.exports=function(e,t,n,i){try{return i?t(a(n)[0],n[1]):t(n)}catch(t){throw r(e),t}}},"9bf2":function(e,t,n){var a=n("83ab"),r=n("0cfb"),i=n("825a"),o=n("c04e"),s=Object.defineProperty;t.f=a?s:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)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}},"9e0f":function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},"9e69":function(e,t,n){var a=n("2b3e").Symbol;e.exports=a},"9ed3":function(e,t,n){"use strict";var a=n("ae93").IteratorPrototype,r=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=r(a,{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,a=/(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,r=[/^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:a,monthsShortRegex:a,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,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"))},"9f66":function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},"9f7f":function(e,t,n){"use strict";var a=n("d039");function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=a((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=a((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},"9fc8":function(e,t,n){var a=n("9788"),r=n("9f66"),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=a(function(){return arguments}())?a:function(e){return r(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},a118:function(e,t,n){var a=n("814e"),r=n("0006"),i=n("7260"),o=n("e973"),s=n("f14b"),l=n("d934"),c=n("505d"),u=n("cd04"),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 a),g||u(e)?r(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 a),_(C,L,n,h,v)}}return!!D&&(v||(v=new a),o(e,t,n,h,_,v))}},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 عام"]},a=function(e){return function(a,r,i,o){var s=t(a),l=n[e][t(a)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,a)}},r=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,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")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n("c1df"))},a434:function(e,t,n){"use strict";var a=n("23e7"),r=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";a({target:"Array",proto:!0,forced:!p||!m},{splice:function(e,t){var n,a,u,d,p,m,g=s(this),y=o(g.length),b=r(e,y),w=arguments.length;if(0===w?n=a=0:1===w?(n=0,a=y-b):(n=w-2,a=h(f(i(t),0),y-b)),y+n-a>_)throw TypeError(v);for(u=l(g,a),d=0;d<a;d++)(p=b+d)in g&&c(u,d,g[p]);if(u.length=a,n<a){for(d=b;d<y-a;d++)m=d+n,(p=d+a)in g?g[m]=g[p]:delete g[m];for(d=y;d>y-a+n;d--)delete g[d-1]}else if(n>a)for(d=y-a;d>b;d--)m=d+n-1,(p=d+a-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-a+n,u}})},a454:function(e,t,n){var a=n("72f0"),r=n("3b4a"),i=n("cd9d"),o=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:a(t),writable:!0})}:i;e.exports=o},a4d3:function(e,t,n){"use strict";var a=n("23e7"),r=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"),j=n("90e3"),A=n("b622"),P=n("e538"),$=n("746f"),Y=n("d44e"),z=n("69f3"),N=n("b727").forEach,I=O("hidden"),F="Symbol",H=A("toPrimitive"),R=z.set,B=z.getterFor(F),q=Object.prototype,V=r.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=r.QObject,ae=!ne||!ne.prototype||!ne.prototype.findChild,re=s&&u((function(){return 7!=y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var a=U(q,t);a&&delete q[t],K(e,t,n),a&&e!==q&&K(q,t,a)}: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 a=v(t,!0);return f(n),d(J,a)?(n.enumerable?(d(e,I)&&e[I][a]&&(e[I][a]=!1),n=y(n,{enumerable:g(0,!1)})):(d(e,I)||K(e,I,g(1,{})),e[I][a]=!0),re(e,a,n)):K(e,a,n)},le=function(e,t){f(e);var n=_(t),a=b(n).concat(pe(n));return N(a,(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),a=v(t,!0);if(n!==q||!d(J,a)||d(X,a)){var r=U(n,a);return!r||!d(J,a)||d(n,I)&&n[I][a]||(r.enumerable=!0),r}},de=function(e){var t=Z(_(e)),n=[];return N(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)),a=[];return N(n,(function(e){!d(J,e)||t&&!d(q,e)||a.push(J[e])})),a};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=j(e),n=function(e){this===q&&n.call(X,e),d(this,I)&&d(this[I],t)&&(this[I][t]=!1),re(this,t,g(1,e))};return s&&ae&&re(q,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",(function(){return B(this).tag})),L(V,"withoutSetter",(function(e){return ie(j(e),e)})),S.f=ce,M.f=se,D.f=ue,w.f=x.f=de,k.f=pe,P.f=function(e){return ie(A(e),e)},s&&(K(V.prototype,"description",{configurable:!0,get:function(){return B(this).description}}),o||L(q,"propertyIsEnumerable",ce,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),N(b(te),(function(e){$(e)})),a({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(){ae=!0},useSimple:function(){ae=!1}}),a({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}),a({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:de,getOwnPropertySymbols:pe}),a({target:"Object",stat:!0,forced:u((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(h(e))}}),W&&a({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 a,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(a=t,(m(t)||void 0!==e)&&!oe(e))return p(t)||(t=function(e,t){if("function"==typeof a&&(t=a.call(this,e,t)),!oe(t))return t}),r[1]=t,W.apply(null,r)}}),V.prototype[H]||C(V.prototype,H,V.prototype.valueOf),Y(V,F),E[I]=!0},a524:function(e,t,n){var a=n("4245");e.exports=function(e){return a(this,e).has(e)}},a566:function(e,t,n){window,e.exports=function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},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 a=n(2),r=n(8);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),a(r,{insert:"head",singleton:!1}),e.exports=r.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,a,r,i=e[1]||"",o=e[3];if(!o)return i;if(t&&"function"==typeof btoa){var s=(n=o,a=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(r," */")),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,a){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(a)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);a&&r[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 a,r=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},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={},a=[],r=0;r<e.length;r++){var i=e[r],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}),a.push(u)}return a}function c(e){var t=document.createElement("style"),a=e.attributes||{};if(void 0===a.nonce){var r=n.nc;r&&(a.nonce=r)}if(Object.keys(a).forEach((function(e){t.setAttribute(e,a[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,a){var r=n?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(e.styleSheet)e.styleSheet.cssText=d(t,r);else{var i=document.createTextNode(r),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 a=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}var f=null,h=0;function _(e,t){var n,a,r;if(t.singleton){var i=h++;n=f||(f=c(t)),a=p.bind(null,n,i,!1),r=p.bind(null,n,i,!0)}else n=c(t),a=m.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return a(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;a(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var a=0;a<n.length;a++){var r=s(n[a]);o[r].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 a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}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 r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(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,a=new Array(t);n<t;n++)a[n]=e[n];return a}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 j(e){return void 0===e}function A(t){return"object"===e(t)&&null!==t}var P=Object.prototype.hasOwnProperty;function $(e){if(!A(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&P.call(n,"isPrototypeOf")}catch(e){return!1}}function Y(e){return"function"==typeof e}var z=Array.prototype.slice;function N(e){return Array.from?Array.from(e):z.call(e)}function I(e,t){return e&&Y(t)&&(Array.isArray(e)||O(e.length)?N(e).forEach((function(n,a){t.call(e,n,a,e)})):A(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),a=1;a<t;a++)n[a-1]=arguments[a];return A(e)&&n.length>0&&n.forEach((function(t){A(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 A(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Z(t)))}function J(e,t,n){A(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(){},a=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});c.addEventListener("test",n,a),c.removeEventListener("test",n,a)}return e}();function ee(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n;t.trim().split(X).forEach((function(t){if(!Q){var i=e.listeners;i&&i[t]&&i[t][n]&&(r=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,r,a)}))}function te(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n;t.trim().split(X).forEach((function(t){if(a.once&&!Q){var i=e.listeners,o=void 0===i?{}:i;r=function(){delete o[t][n],e.removeEventListener(t,r,a);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],a),o[t][n]=r,e.listeners=o}e.addEventListener(t,r,a)}))}function ne(e,t,n){var a;return Y(Event)&&Y(CustomEvent)?a=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(a=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(a)}function ae(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var re=c.location,ie=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function oe(e){var t=e.match(ie);return null!==t&&(t[1]!==re.protocol||t[2]!==re.hostname||t[3]!==re.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,a=e.scaleY,r=e.translateX,i=e.translateY,o=[];O(r)&&0!==r&&o.push("translateX(".concat(r,"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(a)&&1!==a&&o.push("scaleY(".concat(a,")"));var s=o.length?o.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function ce(e,t){var n=e.pageX,a=e.pageY,r={endX:n,endY:a};return t?r:i({startX:n,startY:a},r)}function ue(e){var t=e.aspectRatio,n=e.height,a=e.width,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",i=E(a),o=E(n);if(i&&o){var s=n*t;"contain"===r&&s>a||"cover"===r&&s<a?n=a/t:a=n*t}else i?n=a/t:o&&(a=n*t);return{width:a,height:n}}function de(e,t,n,a){var r=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=a.fillColor,g=void 0===v?"transparent":v,y=a.imageSmoothingEnabled,b=void 0===y||y,w=a.imageSmoothingQuality,x=void 0===w?"low":w,k=a.maxWidth,D=void 0===k?1/0:k,M=a.maxHeight,S=void 0===M?1/0:M,C=a.minWidth,L=void 0===C?0:C,T=a.minHeight,O=void 0===T?0:T,E=document.createElement("canvas"),j=E.getContext("2d"),A=ue({aspectRatio:f,width:D,height:S}),P=ue({aspectRatio:f,width:L,height:O},"cover"),$=Math.min(A.width,Math.max(P.width,h)),Y=Math.min(A.height,Math.max(P.height,_)),z=ue({aspectRatio:r,width:D,height:S}),N=ue({aspectRatio:r,width:L,height:O},"cover"),I=Math.min(z.width,Math.max(N.width,i)),F=Math.min(z.height,Math.max(N.height,s)),H=[-I/2,-F/2,I,F];return E.width=R($),E.height=R(Y),j.fillStyle=g,j.fillRect(0,0,$,Y),j.save(),j.translate($/2,Y/2),j.rotate(c*Math.PI/180),j.scale(d,m),j.imageSmoothingEnabled=b,j.imageSmoothingQuality=x,j.drawImage.apply(j,[e].concat(o(H.map((function(e){return Math.floor(R(e))}))))),j.restore(),E}var pe=String.fromCharCode,me=/^data:.*,/;function fe(e){var t,n=new DataView(e);try{var a,r,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)){r=s;break}s+=1}if(r){var l=r+10;if("Exif"===function(e,t,n){var a="";n+=t;for(var r=t;r<n;r+=1)a+=pe(e.getUint8(r));return a}(n,r+4,4)){var c=n.getUint16(l);if(((a=18761===c)||19789===c)&&42===n.getUint16(l+2,a)){var u=n.getUint32(l+4,a);u>=8&&(i=l+u)}}}if(i){var d,p,m=n.getUint16(i,a);for(p=0;p<m;p+=1)if(d=i+12*p+2,274===n.getUint16(d,a)){d+=8,t=n.getUint16(d,a),n.setUint16(d,1,a);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,a=this.cropper;V(a,f),W(e,f);var r={width:Math.max(n.offsetWidth,Number(t.minContainerWidth)||200),height:Math.max(n.offsetHeight,Number(t.minContainerHeight)||100)};this.containerData=r,q(a,{width:r.width,height:r.height}),V(e,f),W(a,f)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,a=Math.abs(t.rotate)%180==90,r=a?t.naturalHeight:t.naturalWidth,i=a?t.naturalWidth:t.naturalHeight,o=r/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:r,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,a=this.containerData,r=this.canvasData,i=this.cropBoxData,o=n.viewMode,s=r.aspectRatio,l=this.cropped&&i;if(e){var c=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;o>1?(c=Math.max(c,a.width),u=Math.max(u,a.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,r.minWidth=c,r.minHeight=u,r.maxWidth=1/0,r.maxHeight=1/0}if(t)if(o>(l?0:1)){var p=a.width-r.width,m=a.height-r.height;r.minLeft=Math.min(0,p),r.minTop=Math.min(0,m),r.maxLeft=Math.max(0,p),r.maxTop=Math.max(0,m),l&&this.limited&&(r.minLeft=Math.min(i.left,i.left+(i.width-r.width)),r.minTop=Math.min(i.top,i.top+(i.height-r.height)),r.maxLeft=i.left,r.maxTop=i.top,2===o&&(r.width>=a.width&&(r.minLeft=Math.min(0,p),r.maxLeft=Math.max(0,p)),r.height>=a.height&&(r.minTop=Math.min(0,m),r.maxTop=Math.max(0,m))))}else r.minLeft=-r.width,r.minTop=-r.height,r.maxLeft=a.width,r.maxTop=a.height},renderCanvas:function(e,t){var n=this.canvasData,a=this.imageData;if(t){var r=function(e){var t=e.width,n=e.height,a=e.degree;if(90==(a=Math.abs(a)%180))return{width:n,height:t};var r=a%90*Math.PI/180,i=Math.sin(r),o=Math.cos(r),s=t*o+n*i,l=t*i+n*o;return a>90?{width:l,height:s}:{width:s,height:l}}({width:a.naturalWidth*Math.abs(a.scaleX||1),height:a.naturalHeight*Math.abs(a.scaleY||1),degree:a.rotate||0}),i=r.width,o=r.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,a=n.naturalWidth*(t.width/t.naturalWidth),r=n.naturalHeight*(t.height/t.naturalHeight);F(n,{width:a,height:r,left:(t.width-a)/2,top:(t.height-r)/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,a=Number(e.autoCropArea)||.8,r={width:t.width,height:t.height};n&&(t.height*n>t.width?r.height=r.width/n:r.width=r.height*n),this.cropBoxData=r,this.limitCropBox(!0,!0),r.width=Math.min(Math.max(r.width,r.minWidth),r.maxWidth),r.height=Math.min(Math.max(r.height,r.minHeight),r.maxHeight),r.width=Math.max(r.minWidth,r.width*a),r.height=Math.max(r.minHeight,r.height*a),r.left=t.left+(t.width-r.width)/2,r.top=t.top+(t.height-r.height)/2,r.oldLeft=r.left,r.oldTop=r.top,this.initialCropBoxData=F({},r)},limitCropBox:function(e,t){var n=this.options,a=this.containerData,r=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(a.width,r.width,r.width+r.left,a.width-r.left):a.width,d=o?Math.min(a.height,r.height,r.height+r.top,a.height-r.top):a.height;l=Math.min(l,a.width),c=Math.min(c,a.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,r.left),i.minTop=Math.max(0,r.top),i.maxLeft=Math.min(a.width,r.left+r.width)-i.width,i.maxTop=Math.min(a.height,r.top+r.height)-i.height):(i.minLeft=0,i.minTop=0,i.maxLeft=a.width-i.width,i.maxTop=a.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,a=t?this.crossOriginUrl:this.url,r=e.alt||"The image to preview",i=document.createElement("img");if(t&&(i.crossOrigin=t),i.src=a,i.alt=r,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=a,n.alt=r,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(A(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,a=n.width,r=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;a&&(p=r*(m=c/a)),r&&p>u&&(d=a*(m=u/r),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,a=this.container,r=this.containerData,i=a.offsetWidth/r.width;1===i&&a.offsetHeight===r.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,a=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?a=e.deltaY>0?1:-1:e.wheelDelta?a=-e.wheelDelta/120:e.detail&&(a=e.detail>0?1:-1),this.zoom(-a*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 a,r=this.options,i=this.pointers;e.changedTouches?I(e.changedTouches,(function(e){i[e.identifier]=ce(e)})):i[e.pointerId||0]=ce(e),a=Object.keys(i).length>1&&r.zoomable&&r.zoomOnTouch?"zoom":G(e.target,y),D.test(a)&&!1!==ne(this.element,"cropstart",{originalEvent:e,action:a})&&(e.preventDefault(),this.action=a,this.cropping=!1,"crop"===a&&(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,a=this.canvasData,r=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=r.width,b=r.height,w=!0;!c&&e.shiftKey&&(c=p&&m?p/m:1),this.limited&&(v=o.minLeft,g=o.minTop,y=v+Math.min(r.width,a.width,a.left+a.width),b=g+Math.min(r.height,a.height,a.top+a.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,a){delete t[a],I(t,(function(t){var a=Math.abs(e.startX-t.startX),r=Math.abs(e.startY-t.startY),i=Math.abs(e.endX-t.endX),o=Math.abs(e.endY-t.endY),s=Math.sqrt(a*a+r*r),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=ae(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,a=n.left,r=n.top;return this.moveTo(j(e)?e:a+Number(e),j(t)?t:r+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,a=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(O(e)&&(n.left=e,a=!0),O(t)&&(n.top=t,a=!0),a&&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 a=this.options,r=this.canvasData,i=r.width,o=r.height,s=r.naturalWidth,l=r.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&a.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=ae(this.cropper),m=d&&Object.keys(d).length?function(e){var t=0,n=0,a=0;return I(e,(function(e){var r=e.startX,i=e.startY;t+=r,n+=i,a+=1})),{pageX:t/=a,pageY:n/=a}}(d):{pageX:n.pageX,pageY:n.pageY};r.left-=(c-i)*((m.pageX-p.left-r.left)/i),r.top-=(u-o)*((m.pageY-p.top-r.top)/o)}else $(t)&&O(t.x)&&O(t.y)?(r.left-=(c-i)*((t.x-r.left)/i),r.top-=(u-o)*((t.y-r.top)/o)):(r.left-=(c-i)/2,r.top-=(u-o)/2);r.width=c,r.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,a=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(O(e)&&(n.scaleX=e,a=!0),O(t)&&(n.scaleY=t,a=!0),a&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,a=this.imageData,r=this.canvasData,i=this.cropBoxData;if(this.ready&&this.cropped){e={x:i.left-r.left,y:i.top-r.top,width:i.width,height:i.height};var o=a.width/a.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=a.rotate||0),n.scalable&&(e.scaleX=a.scaleX||1,e.scaleY=a.scaleY||1),e},setData:function(e){var t=this.options,n=this.imageData,a=this.canvasData,r={};if(this.ready&&!this.disabled&&$(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)&&(r.left=e.x*o+a.left),O(e.y)&&(r.top=e.y*o+a.top),O(e.width)&&(r.width=e.width*o),O(e.height)&&(r.height=e.height*o),this.setCropBoxData(r)}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&&$(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,a=this.cropBoxData,r=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&$(e)&&(O(e.left)&&(a.left=e.left),O(e.top)&&(a.top=e.top),O(e.width)&&e.width!==a.width&&(t=!0,a.width=e.width),O(e.height)&&e.height!==a.height&&(n=!0,a.height=e.height),r&&(t?a.height=a.width/r:n&&(a.width=a.height*r)),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 a=this.getData(),r=a.x,i=a.y,s=a.width,l=a.height,c=n.width/Math.floor(t.naturalWidth);1!==c&&(r*=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=r,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 j=f/s;E.push(k*j,D*j,M*j,S*j)}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||j(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,a=this.face;if(this.ready&&!this.disabled){var r="crop"===e,i=t.movable&&"move"===e;e=r||i?e:"none",t.dragMode=e,J(n,y,e),U(n,p,r),U(n,g,i),t.cropBoxMovable||(J(a,y,e),U(a,p,r),U(a,g,i))}return this}},we=c.Cropper,xe=function(){function e(n){var a=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,$(a)&&a),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 a,r,i;return a=e,i=[{key:"noConflict",value:function(){return window.Cropper=we,e}},{key:"setDefaults",value:function(e){F(L,$(e)&&e)}}],(r=[{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,a=this.options;if(a.rotatable||a.scalable||(a.checkOrientation=!1),a.checkOrientation&&window.ArrayBuffer)if(M.test(e))S.test(e)?this.read((r=e.replace(me,""),i=atob(r),o=new ArrayBuffer(i.length),I(s=new Uint8Array(o),(function(e,t){s[t]=i.charCodeAt(t)})),o)):this.clone();else{var r,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},a.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,a=fe(e),r=0,i=1,o=1;if(a>1){this.url=function(e,t){for(var n=[],a=new Uint8Array(e);a.length>0;)n.push(pe.apply(null,N(a.subarray(0,8192)))),a=a.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,"image/jpeg");var s=function(e){var t=0,n=1,a=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:a=-1;break;case 5:t=90,a=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:a}}(a);r=s.rotate,i=s.scaleX,o=s.scaleY}t.rotatable&&(n.rotate=r),t.scalable&&(n.scaleX=i,n.scaleY=o),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,a=t;this.options.checkCrossOrigin&&oe(t)&&(n||(n="anonymous"),a=se(t)),this.crossOrigin=n,this.crossOriginUrl=a;var r=document.createElement("img");n&&(r.crossOrigin=n),r.src=a||t,r.alt=e.alt||"The image to crop",this.image=r,r.onload=this.start.bind(this),r.onerror=this.stop.bind(this),V(r,h),e.parentNode.insertBefore(r,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),a=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 r=document.createElement("img"),i=document.body||document.documentElement;this.sizingImage=r,r.onload=function(){a(r.width,r.height),n||i.removeChild(r)},r.src=t.src,n||(r.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(r))}else a(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,a=e.parentNode,r=document.createElement("div");r.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=r.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=a,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),a.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(a.prototype,r),i&&n(a,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 a=n(2),r=n(6);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]),a(r,{insert:"head",singleton:!1}),e.exports=r.locals||{}},function(e,t,n){"use strict";n.r(t);var a=n(1),r=n.n(a)()(!0);r.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=r},function(e,t,n){"use strict";var a=n(0);n.n(a).a},function(e,t,n){"use strict";n.r(t);var a=n(1),r=n.n(a)()(!0);r.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=r},function(e,t,n){"use strict";n.r(t),n(5);var a=n(3),r=n.n(a);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 r.a(this.$refs.img,this.cropperOptions)},uploadImage:function(){var e=this;this.cropper.getCroppedCanvas(this.outputOptions).toBlob((function(t){var n=new FormData,a=new XMLHttpRequest,r=Object.assign({},e.uploadFormData);for(var i in a.withCredentials=e.withCredentials,r)n.append(i,r[i]);for(var o in n.append(e.uploadFormName,t,e.filename),e.$emit("uploading",n,a),a.open(e.requestMethod,e.uploadUrl,!0),e.uploadHeaders)a.setRequestHeader(o,e.uploadHeaders[o]);a.onreadystatechange=function(){if(4===a.readyState){var t="";try{t=JSON.parse(a.responseText)}catch(e){t=a.responseText}e.$emit("completed",t,n,a),[200,201,204].indexOf(a.status)>-1?e.$emit("uploaded",t,n,a):e.$emit("error","Image upload fail.","upload",a)}},a.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,a,r,i,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),a&&(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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),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 a=n("23e7"),r=n("b727").every,i=n("a640"),o=n("ae40"),s=i("every"),l=o("every");a({target:"Array",proto:!0,forced:!s||!l},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},a628:function(e,t){e.exports=function(e){return e}},a630:function(e,t,n){var a=n("23e7"),r=n("4df4");a({target:"Array",stat:!0,forced:!n("1c7e")((function(e){Array.from(e)}))},{from:r})},a640:function(e,t,n){"use strict";var a=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&a((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:n)(e)}},a6f1:function(e,t){e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length,r=0,i=[];++n<a;){var o=e[n];t(o,n,e)&&(i[r++]=o)}return i}},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"))},a830:function(e,t,n){var a=n("902a")(n("8aed"),"DataView");e.exports=a},a92b:function(e,t,n){var a=n("e005"),r=n("72e1"),i=n("6cc7"),o=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?r(e):i(e)}},a9e3:function(e,t,n){"use strict";var a=n("83ab"),r=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=r.Number,y=g.prototype,b=l(p(y))==v,w=function(e){var t,n,a,r,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:a=2,r=49;break;case 79:case 111:a=8,r=55;break;default:return+c}for(o=(i=c.slice(2)).length,s=0;s<o;s++)if((l=i.charCodeAt(s))<48||l>r)return NaN;return parseInt(i,a)}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=a?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(r,v,k)}},aad9:function(e,t,n){var a=n("a92b"),r=n("fbbc"),i=n("9f66"),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]"!=a(e))return!1;var t=r(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}},aaf2:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var r={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 a?r[n][0]:r[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 a=n("b622")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[a]=!1,"/./"[e](t)}catch(e){}}return!1}},abdd:function(e,t,n){var a=n("1501");e.exports=function(){this.__data__=a?a(null):{},this.size=0}},ac1f:function(e,t,n){"use strict";var a=n("23e7"),r=n("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ac88:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},ad4e:function(e,t,n){var a=n("8aed")["__core-js_shared__"];e.exports=a},ad6d:function(e,t,n){"use strict";var a=n("825a");e.exports=function(){var e=a(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,a){return"m"===a?n?"хвилина":"хвилину":"h"===a?n?"година":"годину":e+" "+t({ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяціісяців",yy:"рік_роки_років"}[a],+e)}function a(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 r(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_веровт_лист_груд".split("_"),weekdays:a,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:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] 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"))},add0:function(e,t,n){var a=n("c5e6")();e.exports=a},ae2d:function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},ae40:function(e,t,n){var a=n("83ab"),r=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&&!r((function(){if(c&&!a)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,d)}))}},ae58:function(e,t,n){var a=n("f43d");e.exports=function(e,t){var n=t?a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},ae93:function(e,t,n){"use strict";var a,r,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())?(r=o(o(i)))!==Object.prototype&&(a=r):p=!0),null==a&&(a={}),u||l(a,d)||s(a,d,(function(){return this})),e.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:p}},b041:function(e,t,n){"use strict";var a=n("00ee"),r=n("f5df");e.exports=a?{}.toString:function(){return"[object "+r(this)+"]"}},b047:function(e,t){e.exports=function(e){return function(t){return e(t)}}},b0c0:function(e,t,n){var a=n("83ab"),r=n("9bf2").f,i=Function.prototype,o=i.toString,s=/^\s*function ([^ (]*)/,l="name";a&&!(l in i)&&r(i,l,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(e){return""}}})},b1bc:function(e,t,n){var a=n("ed28");e.exports=function(e){return a(this.__data__,e)>-1}},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"))},b3ab:function(e,t,n){var a=n("a6f1"),r=n("9af9"),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),a(o(e),(function(t){return i.call(e,t)})))}:r;e.exports=s},b3c5:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}e.exports=function(e,t,a){return t&&n(e.prototype,t),a&&n(e,a),e},e.exports.default=e.exports,e.exports.__esModule=!0},b3eb:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var r={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?r[n][0]:r[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,a){var r={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?r[n][0]:r[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 a=n("cb5a");e.exports=function(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]}},b4c1:function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},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 a,r,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||(a=function(){var e,t;for(h&&(e=g.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(e){throw r?o():i=void 0,e}}i=void 0,e&&e.enter()},!f&&!h&&_&&v?(s=!0,l=v.createTextNode(""),new _(a).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,a)}):o=h?function(){g.nextTick(a)}:function(){m.call(d,a)}),e.exports=w||function(e){var t={fn:e,next:void 0};i&&(i.next=t),r||(r=t,o()),i=t}},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("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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 a=n("da84"),r=n("5692"),i=n("5135"),o=n("90e3"),s=n("4930"),l=n("fdbf"),c=r("wks"),u=a.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 a=n("23e7"),r=n("7b0b"),i=n("df75");a({target:"Object",stat:!0,forced:n("d039")((function(){i(1)}))},{keys:function(e){return i(r(e))}})},b727:function(e,t,n){var a=n("0366"),r=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=r(b),x=a(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 a=n("872a"),r=n("9638");e.exports=function(e,t,n){(void 0!==n&&!r(e[t],n)||void 0===n&&!(t in e))&&a(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"))},b83a:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},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 a(e,a,r){return e+" "+n(t[r],e,a)}function r(e,a,r){return n(t[r],e,a)}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:a,m:r,mm:a,h:r,hh:a,d:r,dd:a,M:r,MM:a,y:r,yy:a},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,a){var r={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?r[n][0]:r[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 a=n("6044"),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(a){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},c04e:function(e,t,n){var a=n("861d");e.exports=function(e,t){if(!a(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!a(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},c098:function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var a=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==a||"symbol"!=a&&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 a=n("a454"),r=n("f3c1")(a);e.exports=r},c1df:function(e,t,n){(function(e){e.exports=function(){"use strict";var t,a;function r(){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,a=[];for(n=0;n<e.length;++n)a.push(t(e[n],n));return a}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,a){return Kn(e,t,n,a,!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=a.call(t.parsedDateParts,(function(e){return null!=e})),r=!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&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function y(e){var t=h(NaN);return null!=e?f(v(t),e):v(t).userInvalidated=!0,t}a=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),a=n.length>>>0;for(t=0;t<a;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function x(e,t){var n,a,r;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(r=t[a=b[n]])||(e[a]=r);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,r.updateOffset(this),w=!1)}function D(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function M(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var a,i,o,s=[];for(i=0;i<arguments.length;i++){if(a="","object"==typeof arguments[i]){for(o in a+="\n["+i+"] ",arguments[0])l(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];s.push(a)}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!=r.deprecationHandler&&r.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 j(e,t){var n,a=f({},e);for(n in t)l(t,n)&&(s(e[n])&&s(t[n])?(a[n]={},f(a[n],e[n]),f(a[n],t[n])):null!=t[n]?a[n]=t[n]:delete a[n]);for(n in e)l(e,n)&&!l(t,n)&&s(e[n])&&(a[n]=f({},a[n]));return a}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.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 P={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function $(e,t,n){var a=this._calendar[e]||this._calendar.sameElse;return O(a)?a.call(t,n):a}function Y(e,t,n){var a=""+Math.abs(e),r=t-a.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+a}var z=/(\[[^\[]*\])|(\\)?([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,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},F={};function H(e,t,n,a){var r=a;"string"==typeof a&&(r=function(){return this[a]()}),e&&(F[e]=r),t&&(F[t[0]]=function(){return Y(r.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function R(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,a=e.match(z);for(t=0,n=a.length;t<n;t++)F[a[t]]?a[t]=F[a[t]]:a[t]=R(a[t]);return function(t){var r,i="";for(r=0;r<n;r++)i+=O(a[r])?a[r].call(t,e):a[r];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 a(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;n>=0&&N.test(e);)e=e.replace(N,a),N.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(z).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,a){var r=this._relativeTime[n];return O(r)?r(e,t,n,a):r.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 ae(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function re(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ie(e){var t,n,a={};for(n in e)l(e,n)&&(t=re(n))&&(a[t]=e[n]);return a}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),r.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=re(e)])?this[e]():this}function _e(e,t){if("object"==typeof e){var n,a=le(e=ie(e));for(n=0;n<a.length;n++)this[a[n].unit](e[a[n].unit])}else if(O(this[e=re(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,je=/Z|[+-]\d\d(?::?\d\d)?/gi,Ae=/[+-]?\d+(\.\d{1,3})?/,Pe=/[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 $e(e,t,n){ve[e]=O(t)?t:function(e,a){return e&&n?n:t}}function Ye(e,t){return l(ve,e)?ve[e](t._strict,t._locale):new RegExp(ze(e))}function ze(e){return Ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,a,r){return t||n||a||r})))}function Ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Ie={};function Fe(e,t){var n,a=t;for("string"==typeof e&&(e=[e]),d(t)&&(a=function(e,n){n[t]=de(e)}),n=0;n<e.length;n++)Ie[e[n]]=a}function He(e,t){Fe(e,(function(e,n,a,r){a._w=a._w||{},t(e,a._w,a,r)}))}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)})),ae("month","M"),se("month",8),$e("M",ke),$e("MM",ke,ye),$e("MMM",(function(e,t){return t.monthsShortRegex(e)})),$e("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,a){var r=n._locale.monthsParse(e,a,n._strict);null!=r?t[Ve]=r: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("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Pe,it=Pe;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).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[at.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var a,r,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)i=h([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Be.call(this._shortMonthsParse,o))?r:null:-1!==(r=Be.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=Be.call(this._shortMonthsParse,o))||-1!==(r=Be.call(this._longMonthsParse,o))?r:null:-1!==(r=Be.call(this._longMonthsParse,o))||-1!==(r=Be.call(this._shortMonthsParse,o))?r:null}function ct(e,t,n){var a,r,i;if(this._monthsParseExact)return lt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(r=h([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[a]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}}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),r.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=rt),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,a=[],r=[],i=[];for(t=0;t<12;t++)n=h([2e3,t]),a.push(this.monthsShort(n,"")),r.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(a.sort(e),r.sort(e),i.sort(e),t=0;t<12;t++)a[t]=Ne(a[t]),r[t]=Ne(r[t]);for(t=0;t<24;t++)i[t]=Ne(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.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"),ae("year","y"),se("year",1),$e("Y",Oe),$e("YY",ke,ye),$e("YYYY",Ce,we),$e("YYYYY",Le,xe),$e("YYYYYY",Le,xe),Fe(["YYYYY","YYYYYY"],qe),Fe("YYYY",(function(e,t){t[qe]=2===e.length?r.parseTwoDigitYear(e):de(e)})),Fe("YY",(function(e,t){t[qe]=r.parseTwoDigitYear(e)})),Fe("Y",(function(e,t){t[qe]=parseInt(e,10)})),r.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,a,r,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,a,r,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,a,r,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 a=7+t-n;return-(7+bt(e,0,a).getUTCDay()-t)%7+a-1}function xt(e,t,n,a,r){var i,o,s=1+7*(t-1)+(7+n-a)%7+wt(e,a,r);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 a,r,i=wt(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?a=o+Dt(r=e.year()-1,t,n):o>Dt(e.year(),t,n)?(a=o-Dt(e.year(),t,n),r=e.year()+1):(r=e.year(),a=o),{week:a,year:r}}function Dt(e,t,n){var a=wt(e,t,n),r=wt(e+1,t,n);return(_t(e)-a+r)/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"),ae("week","w"),ae("isoWeek","W"),se("week",5),se("isoWeek",5),$e("w",ke),$e("ww",ke,ye),$e("W",ke),$e("WW",ke,ye),He(["w","ww","W","WW"],(function(e,t,n,a){t[a.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 jt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function At(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"),ae("day","d"),ae("weekday","e"),ae("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),$e("d",ke),$e("e",ke),$e("E",ke),$e("dd",(function(e,t){return t.weekdaysMinRegex(e)})),$e("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),$e("dddd",(function(e,t){return t.weekdaysRegex(e)})),He(["dd","ddd","dddd"],(function(e,t,n,a){var r=n._locale.weekdaysParse(e,a,n._strict);null!=r?t.d=r:v(n).invalidWeekday=e})),He(["d","e","E"],(function(e,t,n,a){t[a]=de(e)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zt=Pe,Nt=Pe,It=Pe;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?At(n,this._week.dow):e?n[e.day()]:n}function Ht(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Rt(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Bt(e,t,n){var a,r,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)i=h([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Be.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Be.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=Be.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=Be.call(this._weekdaysParse,o))||-1!==(r=Be.call(this._shortWeekdaysParse,o))||-1!==(r=Be.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Be.call(this._shortWeekdaysParse,o))||-1!==(r=Be.call(this._weekdaysParse,o))||-1!==(r=Be.call(this._minWeekdaysParse,o))?r:null:-1!==(r=Be.call(this._minWeekdaysParse,o))||-1!==(r=Be.call(this._weekdaysParse,o))||-1!==(r=Be.call(this._shortWeekdaysParse,o))?r:null}function qt(e,t,n){var a,r,i;if(this._weekdaysParseExact)return Bt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(r=h([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[a]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}}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=jt(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=zt),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=Nt),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,a,r,i,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),a=Ne(this.weekdaysMin(n,"")),r=Ne(this.weekdaysShort(n,"")),i=Ne(this.weekdays(n,"")),o.push(a),s.push(r),l.push(i),c.push(a),c.push(r),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),ae("hour","h"),se("hour",13),$e("a",tn),$e("A",tn),$e("H",ke),$e("h",ke),$e("k",ke),$e("HH",ke,ye),$e("hh",ke,ye),$e("kk",ke,ye),$e("hmm",De),$e("hmmss",Me),$e("Hmm",De),$e("Hmmss",Me),Fe(["H","HH"],Ue),Fe(["k","kk"],(function(e,t,n){var a=de(e);t[Ue]=24===a?0:a})),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 a=e.length-2;t[Ue]=de(e.substr(0,a)),t[Ke]=de(e.substr(a)),v(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var a=e.length-4,r=e.length-2;t[Ue]=de(e.substr(0,a)),t[Ke]=de(e.substr(a,2)),t[Ze]=de(e.substr(r)),v(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var a=e.length-2;t[Ue]=de(e.substr(0,a)),t[Ke]=de(e.substr(a))})),Fe("Hmmss",(function(e,t,n){var a=e.length-4,r=e.length-2;t[Ue]=de(e.substr(0,a)),t[Ke]=de(e.substr(a,2)),t[Ze]=de(e.substr(r))}));var an=/[ap]\.?m?\.?/i,rn=pe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:P,longDateFormat:W,invalidDate:K,ordinal:G,dayOfMonthOrdinalParse:J,relativeTime:Q,months:tt,monthsShort:nt,week:St,weekdays:Pt,weekdaysMin:Yt,weekdaysShort:$t,meridiemParse:an},cn={},un={};function dn(e,t){var n,a=Math.min(e.length,t.length);for(n=0;n<a;n+=1)if(e[n]!==t[n])return n;return a}function pn(e){return e?e.toLowerCase().replace("_","-"):e}function mn(e){for(var t,n,a,r,i=0;i<e.length;){for(t=(r=pn(e[i]).split("-")).length,n=(n=pn(e[i+1]))?n.split("-"):null;t>0;){if(a=fn(r.slice(0,t).join("-")))return a;if(n&&n.length>=t&&dn(r,n)>=t-1)break;t--}i++}return sn}function fn(t){var a=null;if(void 0===cn[t]&&void 0!==e&&e&&e.exports)try{a=sn._abbr,n("4678")("./"+t),hn(a)}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,a=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."),a=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])a=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;a=n._config}return cn[e]=new A(j(a,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,a,r=ln;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(j(cn[e]._config,t)):(null!=(a=fn(e))&&(r=a._config),t=j(r,t),null==a&&(t.abbr=e),(n=new A(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,a,r,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])){r=Dn[t][0],a=!1!==Dn[t][2];break}if(null==r)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(!a&&null!=i)return void(e._isValid=!1);if(l[4]){if(!kn.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=r+(i||"")+(o||""),Hn(e)}else e._isValid=!1}function On(e,t,n,a,r,i){var o=[En(e),nt.indexOf(t),parseInt(n,10),parseInt(a,10),parseInt(r,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 jn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function An(e,t,n){return!e||$t.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Pn(e,t,n){if(e)return Ln[e];if(t)return 0;var a=parseInt(n,10),r=a%100;return(a-r)/100*60+r}function $n(e){var t,n=Cn.exec(jn(e._i));if(n){if(t=On(n[4],n[3],n[2],n[5],n[6],n[7]),!An(n[1],t,e))return;e._a=t,e._tzm=Pn(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,$n(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function zn(e,t,n){return null!=e?e:null!=t?t:n}function Nn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function In(e){var t,n,a,r,i,o=[];if(!e._d){for(a=Nn(e),e._w&&null==e._a[We]&&null==e._a[Ve]&&Fn(e),null!=e._dayOfYear&&(i=zn(e._a[qe],a[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]=a[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),r=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!==r&&(v(e).weekdayMismatch=!0)}}function Fn(e){var t,n,a,r,i,o,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=zn(t.GG,e._a[qe],kt(Zn(),1,4).year),a=zn(t.W,1),((r=zn(t.E,1))<1||r>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,c=kt(Zn(),i,o),n=zn(t.gg,e._a[qe],c.year),a=zn(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+i,(t.e<0||t.e>6)&&(l=!0)):r=i),a<1||a>Dt(n,i,o)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(s=xt(n,a,r,i,o),e._a[qe]=s.year,e._dayOfYear=s.dayOfYear)}function Hn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],v(e).empty=!0;var t,n,a,i,o,s,l=""+e._i,c=l.length,u=0;for(a=V(e._f,e._locale).match(z)||[],t=0;t<a.length;t++)i=a[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 $n(e);else Tn(e)}function Rn(e,t,n){var a;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((a=e.isPM(n))&&t<12&&(t+=12),a||12!==t||(t=0),t):t}function Bn(e){var t,n,a,r,i,o,s=!1;if(0===e._f.length)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)i=0,o=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Hn(t),g(t)&&(o=!0),i+=v(t).charsLeftOver,i+=10*v(t).unusedTokens.length,v(t).score=i,s?i<a&&(a=i,n=t):(null==a||i<a||o)&&(a=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(r.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):r.createFromInputFallback(e)}function Kn(e,t,n,a,r){var i={};return!0!==t&&!1!==t||(a=t,t=void 0),!0!==n&&!1!==n||(a=n,n=void 0),(s(e)&&c(e)||o(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=n,i._i=e,i._f=t,i._strict=a,Vn(i)}function Zn(e,t,n,a){return Kn(e,t,n,a,!1)}r.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":""))})),r.ISO_8601=function(){},r.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,a;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Zn();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}function Qn(){return Xn("isBefore",[].slice.call(arguments,0))}function ea(){return Xn("isAfter",[].slice.call(arguments,0))}var ta=function(){return Date.now?Date.now():+new Date},na=["year","quarter","month","week","day","hour","minute","second","millisecond"];function aa(e){var t,n,a=!1;for(t in e)if(l(e,t)&&(-1===Be.call(na,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<na.length;++n)if(e[na[n]]){if(a)return!1;parseFloat(e[na[n]])!==de(e[na[n]])&&(a=!0)}return!0}function ra(){return this._isValid}function ia(){return La(NaN)}function oa(e){var t=ie(e),n=t.year||0,a=t.quarter||0,r=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=aa(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*i,this._months=+r+3*a+12*n,this._data={},this._locale=gn(),this._bubble()}function sa(e){return e instanceof oa}function la(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ca(e,t,n){var a,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(a=0;a<r;a++)(n&&e[a]!==t[a]||!n&&de(e[a])!==de(t[a]))&&o++;return o+i}function ua(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)}))}ua("Z",":"),ua("ZZ",""),$e("Z",je),$e("ZZ",je),Fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=pa(je,e)}));var da=/([\+\-]|\d\d)/gi;function pa(e,t){var n,a,r=(t||"").match(e);return null===r?null:0===(a=60*(n=((r[r.length-1]||[])+"").match(da)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?a:-a}function ma(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(D(e)||p(e)?e.valueOf():Zn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),r.updateOffset(n,!1),n):Zn(e).local()}function fa(e){return-Math.round(e._d.getTimezoneOffset())}function ha(e,t,n){var a,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=pa(je,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=fa(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),i!==e&&(!t||this._changeInProgress?Aa(this,La(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:fa(this)}function _a(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function va(e){return this.utcOffset(0,e)}function ga(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fa(this),"m")),this}function ya(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=pa(Ee,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ba(e){return!!this.isValid()&&(e=e?Zn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function wa(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xa(){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()&&ca(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ka(){return!!this.isValid()&&!this._isUTC}function Da(){return!!this.isValid()&&this._isUTC}function Ma(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Sa=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ca=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function La(e,t){var n,a,r,i=e,o=null;return sa(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Sa.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(la(1e3*o[Ge]))*n}):(o=Ca.exec(e))?(n="-"===o[1]?-1:1,i={y:Ta(o[2],n),M:Ta(o[3],n),w:Ta(o[4],n),d:Ta(o[5],n),h:Ta(o[6],n),m:Ta(o[7],n),s:Ta(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(r=Ea(Zn(i.from),Zn(i.to)),(i={}).ms=r.milliseconds,i.M=r.months),a=new oa(i),sa(e)&&l(e,"_locale")&&(a._locale=e._locale),sa(e)&&l(e,"_isValid")&&(a._isValid=e._isValid),a}function Ta(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Oa(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 Ea(e,t){var n;return e.isValid()&&t.isValid()?(t=ma(t,e),e.isBefore(t)?n=Oa(e,t):((n=Oa(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ja(e,t){return function(n,a){var r;return null===a||isNaN(+a)||(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."),r=n,n=a,a=r),Aa(this,La(n,a),e),this}}function Aa(e,t,n,a){var i=t._milliseconds,o=la(t._days),s=la(t._months);e.isValid()&&(a=null==a||a,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),a&&r.updateOffset(e,o||s))}La.fn=oa.prototype,La.invalid=ia;var Pa=ja(1,"add"),$a=ja(-1,"subtract");function Ya(e){return"string"==typeof e||e instanceof String}function za(e){return D(e)||p(e)||Ya(e)||d(e)||Ia(e)||Na(e)||null==e}function Na(e){var t,n,a=s(e)&&!c(e),r=!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],r=r||l(e,n);return a&&r}function Ia(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Ya(e)})).length),t&&n}function Fa(e){var t,n,a=s(e)&&!c(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=i[t],r=r||l(e,n);return a&&r}function Ha(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 Ra(e,t){1===arguments.length&&(arguments[0]?za(arguments[0])?(e=arguments[0],t=void 0):Fa(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Zn(),a=ma(n,this).startOf("day"),i=r.calendarFormat(this,a)||"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 Ba(){return new k(this)}function qa(e,t){var n=D(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Va(e,t){var n=D(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Wa(e,t,n,a){var r=D(e)?e:Zn(e),i=D(t)?t:Zn(t);return!!(this.isValid()&&r.isValid()&&i.isValid())&&("("===(a=a||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===a[1]?this.isBefore(i,n):!this.isAfter(i,n))}function Ua(e,t){var n,a=D(e)?e:Zn(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===a.valueOf():(n=a.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Ka(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Za(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ga(e,t,n){var a,r,i;if(!this.isValid())return NaN;if(!(a=ma(e,this)).isValid())return NaN;switch(r=6e4*(a.utcOffset()-this.utcOffset()),t=re(t)){case"year":i=Ja(this,a)/12;break;case"month":i=Ja(this,a);break;case"quarter":i=Ja(this,a)/3;break;case"second":i=(this-a)/1e3;break;case"minute":i=(this-a)/6e4;break;case"hour":i=(this-a)/36e5;break;case"day":i=(this-a-r)/864e5;break;case"week":i=(this-a-r)/6048e5;break;default:i=this-a}return n?i:ue(i)}function Ja(e,t){if(e.date()<t.date())return-Ja(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(n,"months");return-(n+(t-a<0?(t-a)/(a-e.clone().add(n-1,"months")):(t-a)/(e.clone().add(n+1,"months")-a)))||0}function Xa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qa(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 er(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,a,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=i+'[")]',this.format(e+t+n+a)}function tr(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=q(this,e);return this.localeData().postformat(t)}function nr(e,t){return this.isValid()&&(D(e)&&e.isValid()||Zn(e).isValid())?La({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ar(e){return this.from(Zn(),e)}function rr(e,t){return this.isValid()&&(D(e)&&e.isValid()||Zn(e).isValid())?La({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ir(e){return this.to(Zn(),e)}function or(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sr=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 lr(){return this._locale}var cr=1e3,ur=60*cr,dr=60*ur,pr=3506328*dr;function mr(e,t){return(e%t+t)%t}function fr(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-pr:new Date(e,t,n).valueOf()}function hr(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-pr:Date.UTC(e,t,n)}function _r(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?hr:fr,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-=mr(t+(this._isUTC?0:this.utcOffset()*ur),dr);break;case"minute":t=this._d.valueOf(),t-=mr(t,ur);break;case"second":t=this._d.valueOf(),t-=mr(t,cr)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vr(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?hr:fr,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+=dr-mr(t+(this._isUTC?0:this.utcOffset()*ur),dr)-1;break;case"minute":t=this._d.valueOf(),t+=ur-mr(t,ur)-1;break;case"second":t=this._d.valueOf(),t+=cr-mr(t,cr)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function gr(){return this._d.valueOf()-6e4*(this._offset||0)}function yr(){return Math.floor(this.valueOf()/1e3)}function br(){return new Date(this.valueOf())}function wr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xr(){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 kr(){return this.isValid()?this.toISOString():null}function Dr(){return g(this)}function Mr(){return f({},v(this))}function Sr(){return v(this).overflow}function Cr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Lr(e,t){var n,a,i,o=this._eras||gn("en")._eras;for(n=0,a=o.length;n<a;++n){switch(typeof o[n].since){case"string":i=r(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=r(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}}return o}function Tr(e,t,n){var a,r,i,o,s,l=this.eras();for(e=e.toUpperCase(),a=0,r=l.length;a<r;++a)if(i=l[a].name.toUpperCase(),o=l[a].abbr.toUpperCase(),s=l[a].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[a];break;case"NNNN":if(i===e)return l[a];break;case"NNNNN":if(s===e)return l[a]}else if([i,o,s].indexOf(e)>=0)return l[a]}function Or(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Er(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].name;if(a[e].until<=n&&n<=a[e].since)return a[e].name}return""}function jr(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].narrow;if(a[e].until<=n&&n<=a[e].since)return a[e].narrow}return""}function Ar(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].abbr;if(a[e].until<=n&&n<=a[e].since)return a[e].abbr}return""}function Pr(){var e,t,n,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return(this.year()-r(i[e].since).year())*n+i[e].offset;return this.year()}function $r(e){return l(this,"_erasNameRegex")||Rr.call(this),e?this._erasNameRegex:this._erasRegex}function Yr(e){return l(this,"_erasAbbrRegex")||Rr.call(this),e?this._erasAbbrRegex:this._erasRegex}function zr(e){return l(this,"_erasNarrowRegex")||Rr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Nr(e,t){return t.erasAbbrRegex(e)}function Ir(e,t){return t.erasNameRegex(e)}function Fr(e,t){return t.erasNarrowRegex(e)}function Hr(e,t){return t._eraYearOrdinalRegex||Te}function Rr(){var e,t,n=[],a=[],r=[],i=[],o=this.eras();for(e=0,t=o.length;e<t;++e)a.push(Ne(o[e].name)),n.push(Ne(o[e].abbr)),r.push(Ne(o[e].narrow)),i.push(Ne(o[e].name)),i.push(Ne(o[e].abbr)),i.push(Ne(o[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Br(e,t){H(0,[e,e.length],0,t)}function qr(e){return Gr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vr(e){return Gr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wr(){return Dt(this.year(),1,4)}function Ur(){return Dt(this.isoWeekYear(),1,4)}function Kr(){var e=this.localeData()._week;return Dt(this.year(),e.dow,e.doy)}function Zr(){var e=this.localeData()._week;return Dt(this.weekYear(),e.dow,e.doy)}function Gr(e,t,n,a,r){var i;return null==e?kt(this,a,r).year:(t>(i=Dt(e,a,r))&&(t=i),Jr.call(this,e,t,n,a,r))}function Jr(e,t,n,a,r){var i=xt(e,t,n,a,r),o=bt(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Xr(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"),$e("N",Nr),$e("NN",Nr),$e("NNN",Nr),$e("NNNN",Ir),$e("NNNNN",Fr),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,a){var r=n._locale.erasParse(e,a,n._strict);r?v(n).era=r:v(n).invalidEra=e})),$e("y",Te),$e("yy",Te),$e("yyy",Te),$e("yyyy",Te),$e("yo",Hr),Fe(["y","yy","yyy","yyyy"],qe),Fe(["yo"],(function(e,t,n,a){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[qe]=n._locale.eraYearOrdinalParse(e,r):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})),Br("gggg","weekYear"),Br("ggggg","weekYear"),Br("GGGG","isoWeekYear"),Br("GGGGG","isoWeekYear"),ae("weekYear","gg"),ae("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),$e("G",Oe),$e("g",Oe),$e("GG",ke,ye),$e("gg",ke,ye),$e("GGGG",Ce,we),$e("gggg",Ce,we),$e("GGGGG",Le,xe),$e("ggggg",Le,xe),He(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,a){t[a.substr(0,2)]=de(e)})),He(["gg","GG"],(function(e,t,n,a){t[a]=r.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),ae("quarter","Q"),se("quarter",7),$e("Q",ge),Fe("Q",(function(e,t){t[Ve]=3*(de(e)-1)})),H("D",["DD",2],"Do","date"),ae("date","D"),se("date",9),$e("D",ke),$e("DD",ke,ye),$e("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 Qr=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"),ae("dayOfYear","DDD"),se("dayOfYear",4),$e("DDD",Se),$e("DDDD",be),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=de(e)})),H("m",["mm",2],0,"minute"),ae("minute","m"),se("minute",14),$e("m",ke),$e("mm",ke,ye),Fe(["m","mm"],Ke);var ti=pe("Minutes",!1);H("s",["ss",2],0,"second"),ae("second","s"),se("second",15),$e("s",ke),$e("ss",ke,ye),Fe(["s","ss"],Ze);var ni,ai,ri=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()})),ae("millisecond","ms"),se("millisecond",16),$e("S",Se,ge),$e("SS",Se,ye),$e("SSS",Se,be),ni="SSSS";ni.length<=9;ni+="S")$e(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":""}ai=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=Pa,li.calendar=Ra,li.clone=Ba,li.diff=Ga,li.endOf=vr,li.format=tr,li.from=nr,li.fromNow=ar,li.to=rr,li.toNow=ir,li.get=he,li.invalidAt=Sr,li.isAfter=qa,li.isBefore=Va,li.isBetween=Wa,li.isSame=Ua,li.isSameOrAfter=Ka,li.isSameOrBefore=Za,li.isValid=Dr,li.lang=sr,li.locale=or,li.localeData=lr,li.max=Jn,li.min=Gn,li.parsingFlags=Mr,li.set=_e,li.startOf=_r,li.subtract=$a,li.toArray=wr,li.toObject=xr,li.toDate=br,li.toISOString=Qa,li.inspect=er,"undefined"!=typeof Symbol&&null!=Symbol.for&&(li[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),li.toJSON=kr,li.toString=Xa,li.unix=yr,li.valueOf=gr,li.creationData=Cr,li.eraName=Er,li.eraNarrow=jr,li.eraAbbr=Ar,li.eraYear=Pr,li.year=vt,li.isLeapYear=gt,li.weekYear=qr,li.isoWeekYear=Vr,li.quarter=li.quarters=Xr,li.month=dt,li.daysInMonth=pt,li.week=li.weeks=Tt,li.isoWeek=li.isoWeeks=Ot,li.weeksInYear=Kr,li.weeksInWeekYear=Zr,li.isoWeeksInYear=Wr,li.isoWeeksInISOWeekYear=Ur,li.date=Qr,li.day=li.days=Vt,li.weekday=Wt,li.isoWeekday=Ut,li.dayOfYear=ei,li.hour=li.hours=rn,li.minute=li.minutes=ti,li.second=li.seconds=ri,li.millisecond=li.milliseconds=ai,li.utcOffset=ha,li.utc=va,li.local=ga,li.parseZone=ya,li.hasAlignedHourOffset=ba,li.isDST=wa,li.isLocal=ka,li.isUtcOffset=Da,li.isUtc=Ma,li.isUTC=Ma,li.zoneAbbr=oi,li.zoneName=si,li.dates=S("dates accessor is deprecated. Use date instead.",Qr),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/",_a),li.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xa);var pi=A.prototype;function mi(e,t,n,a){var r=gn(),i=h().set(a,t);return r[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 a,r=[];for(a=0;a<12;a++)r[a]=mi(e,a,n,"month");return r}function hi(e,t,n,a){"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 r,i=gn(),o=e?i._week.dow:0,s=[];if(null!=n)return mi(t,(n+o)%7,a,"day");for(r=0;r<7;r++)s[r]=mi(t,(r+o)%7,a,"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=$,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=Lr,pi.erasParse=Tr,pi.erasConvertYear=Or,pi.erasAbbrRegex=Yr,pi.erasNameRegex=$r,pi.erasNarrowRegex=zr,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")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",hn),r.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,a){var r=La(t,n);return e._milliseconds+=a*r._milliseconds,e._days+=a*r._days,e._months+=a*r._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,a,r,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+=r=ue(Li(o)),o-=Si(Ti(r)),a=ue(s/12),s%=12,l.days=o,l.months=s,l.years=a,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,a=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+a/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+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;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 ji(e){return function(){return this.as(e)}}var Ai=ji("ms"),Pi=ji("s"),$i=ji("m"),Yi=ji("h"),zi=ji("d"),Ni=ji("w"),Ii=ji("M"),Fi=ji("Q"),Hi=ji("y");function Ri(){return La(this)}function Bi(e){return e=re(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,a,r){return r.relativeTime(t||1,!!n,e,a)}function no(e,t,n,a){var r=La(e).abs(),i=Qi(r.as("s")),o=Qi(r.as("m")),s=Qi(r.as("h")),l=Qi(r.as("d")),c=Qi(r.as("M")),u=Qi(r.as("w")),d=Qi(r.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]=a,to.apply(null,p)}function ao(e){return void 0===e?Qi:"function"==typeof e&&(Qi=e,!0)}function ro(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,a,r=!1,i=eo;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(i=Object.assign({},eo,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),a=no(this,!r,i,n=this.localeData()),r&&(a=n.pastFuture(+this,a)),n.postformat(a)}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,a,r,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,a=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",i=so(this._months)!==so(d)?"-":"",o=so(this._days)!==so(d)?"-":"",s=so(this._milliseconds)!==so(d)?"-":"",r+"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+a+"S":"")):"P0D"}var co=oa.prototype;return co.isValid=ra,co.abs=xi,co.add=Di,co.subtract=Mi,co.as=Oi,co.asMilliseconds=Ai,co.asSeconds=Pi,co.asMinutes=$i,co.asHours=Yi,co.asDays=zi,co.asWeeks=Ni,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=or,co.localeData=lr,co.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),co.lang=sr,H("X",0,0,"unix"),H("x",0,0,"valueOf"),$e("x",Oe),$e("X",Ae),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))})),r.version="2.29.1",i(Zn),r.fn=li,r.min=Qn,r.max=ea,r.now=ta,r.utc=h,r.unix=ci,r.months=_i,r.isDate=p,r.locale=hn,r.invalid=y,r.duration=La,r.isMoment=D,r.weekdays=gi,r.parseZone=ui,r.localeData=gn,r.isDuration=sa,r.monthsShort=vi,r.weekdaysMin=bi,r.defineLocale=_n,r.updateLocale=vn,r.locales=yn,r.weekdaysShort=yi,r.normalizeUnits=re,r.relativeTimeRounding=ao,r.relativeTimeThreshold=ro,r.calendarFormat=Ha,r.prototype=li,r.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"},r}()}).call(this,n("62e4")(e))},c430:function(e,t){e.exports=!1},c5e6:function(e,t){e.exports=function(e){return function(t,n,a){for(var r=-1,i=Object(t),o=a(t),s=o.length;s--;){var l=o[e?s:++r];if(!1===n(i[l],l,i))break}return 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 a=n("da84"),r=n("ce4e"),i="__core-js_shared__",o=a[i]||r(i,{});e.exports=o},c740:function(e,t,n){"use strict";var a=n("23e7"),r=n("b727").findIndex,i=n("44d2"),o=n("ae40"),s="findIndex",l=!0,c=o(s);s in[]&&Array(1).findIndex((function(){l=!1})),a({target:"Array",proto:!0,forced:l||!c},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i(s)},c796:function(e,t){e.exports=function(e){return function(){return e}}},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"))},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 a=n("d039"),r=n("5899");e.exports=function(e){return a((function(){return!!r[e]()||"…"!="…"[e]()||r[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 a=n("f8af");e.exports=function(e,t){var n=t?a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},c975:function(e,t,n){"use strict";var a=n("23e7"),r=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});a({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?s.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var a=n("5135"),r=n("fc6a"),i=n("4d64").indexOf,o=n("d012");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)!a(o,n)&&a(s,n)&&c.push(n);for(;t.length>l;)a(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},caad:function(e,t,n){"use strict";var a=n("23e7"),r=n("4d64").includes,i=n("44d2");a({target:"Array",proto:!0,forced:!n("ae40")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cb5a:function(e,t,n){var a=n("9638");e.exports=function(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1}},cbda: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""}},cc12:function(e,t,n){var a=n("da84"),r=n("861d"),i=a.document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},cd04:function(e,t,n){var a=n("27ea"),r=n("2bef"),i=n("4b73"),o=i&&i.isTypedArray,s=o?r(o):a;e.exports=s},cd9d:function(e,t){e.exports=function(e){return e}},cdf9:function(e,t,n){var a=n("825a"),r=n("861d"),i=n("f069");e.exports=function(e,t){if(a(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},ce4e:function(e,t,n){var a=n("da84"),r=n("9112");e.exports=function(e,t){try{r(a,e,t)}catch(n){a[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,a){var r=t.words[a];return 1===a.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};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,a){var r={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 a||t?r[n][0]:r[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 a(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 r(e,t,n,a){var r=i(e);switch(n){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function i(e){var n=Math.floor(e%1e3/100),a=Math.floor(e%100/10),r=e%10,i="";return n>0&&(i+=t[n]+"vatlh"),a>0&&(i+=(""!==i?" ":"")+t[a]+"maH"),r>0&&(i+=(""!==i?" ":"")+t[r]),""===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:a,s:"puS lup",ss:r,m:"wa tup",mm:r,h:"wa rep",hh:r,d:"wa jaj",dd:r,M:"wa jar",MM:r,y:"wa DIS",yy:r},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 a=n("5e2e"),r=n("79bc"),i=n("7b83");e.exports=function(e,t){var n=this.__data__;if(n instanceof a){var o=n.__data__;if(!r||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 a=n("428f"),r=n("da84"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(a[e])||i(r[e]):a[e]&&a[e][t]||r[e]&&r[e][t]}},d1e7:function(e,t,n){"use strict";var a={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!a.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:a},d220:function(e,t,n){var a=n("814e"),r=n("eebf"),i=n("add0"),o=n("4773"),s=n("ac88"),l=n("4472"),c=n("9e0f");e.exports=function e(t,n,u,d,p){t!==n&&i(n,(function(i,l){if(p||(p=new a),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),r(t,l,m)}}),l)}},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 a=n("825a"),r=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 a(n),r(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"))},d370:function(e,t,n){var a=n("253c"),r=n("1310"),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=a(function(){return arguments}())?a:function(e){return r(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},d3b7:function(e,t,n){var a=n("00ee"),r=n("6eeb"),i=n("b041");a||r(Object.prototype,"toString",i,{unsafe:!0})},d3c7:function(e,t,n){var a=n("902a")(n("8aed"),"Map");e.exports=a},d44e:function(e,t,n){var a=n("9bf2").f,r=n("5135"),i=n("b622")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&a(e,i,{configurable:!0,value:t})}},d58f:function(e,t,n){var a=n("1c0b"),r=n("7b0b"),i=n("44ad"),o=n("50c4"),s=function(e){return function(t,n,s,l){a(n);var c=r(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)}},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 a=n("6eeb"),r=n("d039"),i=n("b622"),o=n("9263"),s=n("9112"),l=i("species"),c=!r((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=!r((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=!r((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),_=h&&!r((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,a,r){return t.exec===o?h&&!r?{done:!0,value:v.call(t,n,a)}:{done:!0,value:e.call(n,t,a)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),y=g[0],b=g[1];a(String.prototype,e,y),a(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 a=n("23e7"),r=n("b727").map,i=n("1dde"),o=n("ae40"),s=i("map"),l=o("map");a({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},d82e:function(e,t,n){var a=n("f558"),r=n("4d5b"),i=n("487c");e.exports=function(e){return i(e)?a(e):r(e)}},d8df:function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},d934:function(e,t){var n=Array.isArray;e.exports=n},d94e:function(e,t,n){var a=n("ed28"),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=a(t,e);return!(n<0||(n==t.length-1?t.pop():r.call(t,n,1),--this.size,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 a=n("2b3e")["__core-js_shared__"];e.exports=a},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"))},dad5:function(e,t,n){var a=n("902a")(n("8aed"),"WeakMap");e.exports=a},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("_"),a=[/^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],r=/^(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,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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 a=n("23e7"),r=n("83ab"),i=n("56ef"),o=n("fc6a"),s=n("06cf"),l=n("8418");a({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,a=o(e),r=s.f,c=i(a),u={},d=0;c.length>d;)void 0!==(n=r(a,t=c[d++]))&&l(u,t,n);return u}})},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"},a=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],r=[/^जन/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:a,longMonthsParse:a,shortMonthsParse:r,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 a=n("30c9"),r=n("1310");e.exports=function(e){return r(e)&&a(e)}},ddb0:function(e,t,n){var a=n("da84"),r=n("fdbc"),i=n("e260"),o=n("9112"),s=n("b622"),l=s("iterator"),c=s("toStringTag"),u=i.values;for(var d in r){var p=a[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),r[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 a=n("ca84"),r=n("7839");e.exports=Object.keys||function(e){return a(e,r)}},e005:function(e,t,n){var a=n("8aed").Symbol;e.exports=a},e01a:function(e,t,n){"use strict";var a=n("23e7"),r=n("83ab"),i=n("da84"),o=n("5135"),s=n("861d"),l=n("9bf2").f,c=n("e893"),u=i.Symbol;if(r&&"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}}),a({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 a=n("5135"),r=n("7b0b"),i=n("f772"),o=n("e177"),s=i("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=r(e),a(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 a=n("d039");e.exports=!a((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 a=n("49f4"),r=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 a=e[t];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=r,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},e253:function(e,t,n){var a=n("2cb6")(Object.keys,Object);e.exports=a},e260:function(e,t,n){"use strict";var a=n("fc6a"),r=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:a(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,a=e.index++;return!t||a>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:a,done:!1}:"values"==n?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},e2cc:function(e,t,n){var a=n("6eeb");e.exports=function(e,t,n){for(var r in t)a(e,r,t[r],n);return e}},e37d:function(e,t,n){"use strict";(function(e){var a=n("2343"),r=n.n(a),i=n("6213"),o=n.n(i),s=n("6af4"),l=n.n(s),c=n("b3c5"),u=n.n(c),d=n("f0bd"),p=n("5646"),m=n.n(p),f=n("252c"),h=n("7fbd"),_=n.n(h),v=function(){};function g(e){return"string"==typeof e&&(e=e.split(" ")),e}function y(e,t){var n,a=g(t);n=e.className instanceof v?g(e.className.baseVal):g(e.className),a.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}function b(e,t){var n,a=g(t);n=e.className instanceof v?g(e.className.baseVal):g(e.className),a.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&&(v=window.SVGAnimatedString);var w=!1;if("undefined"!=typeof window){w=!1;try{var x=Object.defineProperty({},"passive",{get:function(){w=!0}});window.addEventListener("test",null,x)}catch(e){}}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var M={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},S=[],C=function(){function e(t,n){var a=this;l()(this,e),o()(this,"_events",[]),o()(this,"_setTooltipNodeEvent",(function(e,t,n,r){var i=e.relatedreference||e.toElement||e.relatedTarget;return!!a._tooltipNode.contains(i)&&(a._tooltipNode.addEventListener(e.type,(function n(i){var o=i.relatedreference||i.toElement||i.relatedTarget;a._tooltipNode.removeEventListener(e.type,n),t.contains(o)||a._scheduleHide(t,r.delay,r,i)})),!0)})),n=D(D({},M),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()}return u()(e,[{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||N.options.defaultClass;m()(this._classes,n)||(this.setClasses(n),t=!0),e=A(e);var a=!1,r=!1;for(var i in this.options.offset===e.offset&&this.options.placement===e.placement||(a=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(r=!0),e)this.options[i]=e[i];if(this._tooltipNode)if(r){var o=this._isOpen;this.dispose(),this._init(),o&&this.show()}else a&&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,a=window.document.createElement("div");a.innerHTML=t.trim();var r=a.childNodes[0];return r.id=this.options.ariaId||"tooltip_".concat(Math.random().toString(36).substr(2,10)),r.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(r.addEventListener("mouseenter",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)})),r.addEventListener("click",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)}))),r}},{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(a,r){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&&y(o,t.loadingClass),t.loadingContent&&n._applyContent(t.loadingContent,t),l.then((function(e){return t.loadingClass&&b(o,t.loadingClass),n._applyContent(e,t)})).then(a).catch(r)):n._applyContent(l,t).then(a).catch(r))}i?s.innerHTML=e:s.innerText=e}a()}}))}},{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&&(y(this._tooltipNode,this._classes),n=!1);var a=this._ensureShown(e,t);return n&&this._tooltipNode&&y(this._tooltipNode,this._classes),y(e,["v-tooltip-open"]),a}}},{key:"_ensureShown",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,S.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 r=this._create(e,t.template);this._tooltipNode=r,e.setAttribute("aria-describedby",r.id);var i=this._findContainer(t.container,e);this._append(r,i);var o=D(D({},t.popperOptions),{},{placement:t.placement});return o.modifiers=D(D({},o.modifiers),{},{arrow:{element:this.options.arrowSelector}}),t.boundariesElement&&(o.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new d.a(e,r,o),this._setContent(a,t),requestAnimationFrame((function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame((function(){n._isDisposed?n.dispose():n._isOpen&&r.setAttribute("aria-hidden","false")}))):n.dispose()})),this}},{key:"_noLongerOpen",value:function(){var e=S.indexOf(this);-1!==e&&S.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=N.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)),b(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,a=t.event;e.reference.removeEventListener(a,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 a=this,r=[],i=[];t.forEach((function(e){switch(e){case"hover":r.push("mouseenter"),i.push("mouseleave"),a.options.hideOnTargetClick&&i.push("click");break;case"focus":r.push("focus"),i.push("blur"),a.options.hideOnTargetClick&&i.push("click");break;case"click":r.push("click"),i.push("click")}})),r.forEach((function(t){var r=function(t){!0!==a._isOpen&&(t.usedByTooltip=!0,a._scheduleShow(e,n.delay,n,t))};a._events.push({event:t,func:r}),e.addEventListener(t,r)})),i.forEach((function(t){var r=function(t){!0!==t.usedByTooltip&&a._scheduleHide(e,n.delay,n,t)};a._events.push({event:t,func:r}),e.addEventListener(t,r)}))}},{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 a=this,r=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){return a._show(e,n)}),r)}},{key:"_scheduleHide",value:function(e,t,n,a){var r=this,i=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){if(!1!==r._isOpen&&r._tooltipNode.ownerDocument.body.contains(r._tooltipNode)){if("mouseleave"===a.type&&r._setTooltipNodeEvent(a,e,t,n))return;r._hide(e,n)}}),i)}}]),e}();function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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}"undefined"!=typeof document&&document.addEventListener("touchstart",(function(e){for(var t=0;t<S.length;t++)S[t]._onDocumentTouch(e)}),!w||{passive:!0,capture:!0});var O={enabled:!0},E=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],j={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 A(e){var t={placement:void 0!==e.placement?e.placement:N.options.defaultPlacement,delay:void 0!==e.delay?e.delay:N.options.defaultDelay,html:void 0!==e.html?e.html:N.options.defaultHtml,template:void 0!==e.template?e.template:N.options.defaultTemplate,arrowSelector:void 0!==e.arrowSelector?e.arrowSelector:N.options.defaultArrowSelector,innerSelector:void 0!==e.innerSelector?e.innerSelector:N.options.defaultInnerSelector,trigger:void 0!==e.trigger?e.trigger:N.options.defaultTrigger,offset:void 0!==e.offset?e.offset:N.options.defaultOffset,container:void 0!==e.container?e.container:N.options.defaultContainer,boundariesElement:void 0!==e.boundariesElement?e.boundariesElement:N.options.defaultBoundariesElement,autoHide:void 0!==e.autoHide?e.autoHide:N.options.autoHide,hideOnTargetClick:void 0!==e.hideOnTargetClick?e.hideOnTargetClick:N.options.defaultHideOnTargetClick,loadingClass:void 0!==e.loadingClass?e.loadingClass:N.options.defaultLoadingClass,loadingContent:void 0!==e.loadingContent?e.loadingContent:N.options.defaultLoadingContent,popperOptions:T({},void 0!==e.popperOptions?e.popperOptions:N.options.defaultPopperOptions)};if(t.offset){var n=r()(t.offset),a=t.offset;("number"===n||"string"===n&&-1===a.indexOf(","))&&(a="0, ".concat(a)),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:a}}return t.trigger&&-1!==t.trigger.indexOf("click")&&(t.hideOnTargetClick=!1),t}function P(e,t){for(var n=e.placement,a=0;a<E.length;a++){var r=E[a];t[r]&&(n=r)}return n}function $(e){var t=r()(e);return"string"===t?e:!(!e||"object"!==t)&&e.content}function Y(e){e._tooltip&&(e._tooltip.dispose(),delete e._tooltip,delete e._tooltipOldShow),e._tooltipTargetClasses&&(b(e,e._tooltipTargetClasses),delete e._tooltipTargetClasses)}function z(e,t){var n=t.value;t.oldValue;var a,i=t.modifiers,o=$(n);o&&O.enabled?(e._tooltip?((a=e._tooltip).setContent(o),a.setOptions(T(T({},n),{},{placement:P(n,i)}))):a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=$(t),i=void 0!==t.classes?t.classes:N.options.defaultClass,o=T({title:a},A(T(T({},"object"===r()(t)?t:{}),{},{placement:P(t,n)}))),s=e._tooltip=new C(e,o);s.setClasses(i),s._vueEl=e;var l=void 0!==t.targetClasses?t.targetClasses:N.options.defaultTargetClass;return e._tooltipTargetClasses=l,y(e,l),s}(e,n,i),void 0!==n.show&&n.show!==e._tooltipOldShow&&(e._tooltipOldShow=n.show,n.show?a.show():a.hide())):Y(e)}var N={options:j,bind:z,update:z,unbind:function(e){Y(e)}};function I(e){e.addEventListener("click",H),e.addEventListener("touchstart",R,!!w&&{passive:!0})}function F(e){e.removeEventListener("click",H),e.removeEventListener("touchstart",R),e.removeEventListener("touchend",B),e.removeEventListener("touchcancel",q)}function H(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function R(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",B),t.addEventListener("touchcancel",q)}}function B(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],a=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-a.screenY)<20&&Math.abs(n.screenX-a.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function q(e){e.currentTarget.$_vclosepopover_touch=!1}var V={bind:function(e,t){var n=t.value,a=t.modifiers;e.$_closePopoverModifiers=a,(void 0===n||n)&&I(e)},update:function(e,t){var n=t.value,a=t.oldValue,r=t.modifiers;e.$_closePopoverModifiers=r,n!==a&&(void 0===n||n?I(e):F(e))},unbind:function(e){F(e)}};function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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){o()(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){var t=N.options.popover[e];return void 0===t?N.options[e]:t}var Z=!1;"undefined"!=typeof window&&"undefined"!=typeof navigator&&(Z=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var G=[],J=function(){};"undefined"!=typeof window&&(J=window.Element);var X={name:"VPopover",components:{ResizeObserver:f.a},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return K("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return K("defaultDelay")}},offset:{type:[String,Number],default:function(){return K("defaultOffset")}},trigger:{type:String,default:function(){return K("defaultTrigger")}},container:{type:[String,Object,J,Boolean],default:function(){return K("defaultContainer")}},boundariesElement:{type:[String,J],default:function(){return K("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return K("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return K("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return N.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return N.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return N.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return N.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return N.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return N.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return N.options.popover.defaultOpenClass}},ariaId:{default:null}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return o()({},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,a=this.$_findContainer(this.container,n);if(!a)return void console.warn("No container for popover",this);a.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;t.skipDelay;var a=t.force,r=void 0!==a&&a;!r&&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 r=U(U({},this.popperOptions),{},{placement:this.placement});if(r.modifiers=U(U({},r.modifiers),{},{arrow:U(U({},r.modifiers&&r.modifiers.arrow),{},{element:this.$refs.arrow})}),this.offset){var i=this.$_getOffset();r.modifiers.offset=U(U({},r.modifiers&&r.modifiers.offset),{},{offset:i})}this.boundariesElement&&(r.modifiers.preventOverflow=U(U({},r.modifiers&&r.modifiers.preventOverflow),{},{boundariesElement:this.boundariesElement})),this.popperInstance=new d.a(t,n,r),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<G.length;l++)(s=G[l]).openGroup!==o&&(s.hide(),s.$emit("close-group"));G.push(this),this.$emit("apply-show")}},$_hide:function(){var e=this;if(this.isOpen){var t=G.indexOf(this);-1!==t&&G.splice(t,1),this.isOpen=!1,this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this.$_disposeTimer);var n=N.options.popover.disposeTimeout||N.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=r()(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=[],a=[];("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"),a.push("mouseleave");break;case"focus":n.push("focus"),a.push("blur");break;case"click":n.push("click"),a.push("click")}})),n.forEach((function(n){var a=function(t){e.isOpen||(t.usedByTooltip=!0,!e.$_preventOpen&&e.show({event:t}),e.hidden=!1)};e.$_events.push({event:n,func:a}),t.addEventListener(n,a)})),a.forEach((function(n){var a=function(t){t.usedByTooltip||(e.hide({event:t}),e.hidden=!0)};e.$_events.push({event:n,func:a}),t.addEventListener(n,a)}))},$_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 a=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()}}),a)}},$_setTooltipNodeEvent:function(e){var t=this,n=this.$refs.trigger,a=this.$refs.popover,r=e.relatedreference||e.toElement||e.relatedTarget;return!!a.contains(r)&&(a.addEventListener(e.type,(function r(i){var o=i.relatedreference||i.toElement||i.relatedTarget;a.removeEventListener(e.type,r),n.contains(o)||t.hide({event:i})})),!0)},$_removeEventListeners:function(){var e=this.$refs.trigger;this.$_events.forEach((function(t){var n=t.func,a=t.event;e.removeEventListener(a,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 a=G[n];if(a.$refs.popover){var r=a.$refs.popover.contains(e.target);requestAnimationFrame((function(){(e.closeAllPopover||e.closePopover&&r||a.autoHide&&!r)&&a.$_handleGlobalClose(e,t)}))}},a=0;a<G.length;a++)n(a)}function ee(e,t,n,a,r,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,r&&(u.functional=!0)),a&&(u._scopeId=a),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&&(Z?document.addEventListener("touchend",(function(e){Q(e,!0)}),!w||{passive:!0,capture:!0}):window.addEventListener("click",(function(e){Q(e)}),!0));var te=X,ne=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})])])])};ne._withStripped=!0;var ae=ee({render:ne,staticRenderFns:[]},void 0,te,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 a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.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 re={install:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0;var a={};_()(a,j,n),re.options=a,N.options=a,t.directive("tooltip",N),t.directive("close-popover",V),t.component("VPopover",ae)}},get enabled(){return O.enabled},set enabled(e){O.enabled=e}},ie=null;"undefined"!=typeof window?ie=window.Vue:void 0!==e&&(ie=e.Vue),ie&&ie.use(re),t.a=re}).call(this,n("c8ba"))},e3f3:function(e,t,n){var a=n("57c1");e.exports=function(e){return a(this,e).get(e)}},e439:function(e,t,n){var a=n("23e7"),r=n("d039"),i=n("fc6a"),o=n("06cf").f,s=n("83ab"),l=r((function(){o(1)}));a({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(i(e),t)}})},e538:function(e,t,n){var a=n("b622");t.f=a},e5383:function(e,t,n){(function(e){var a=n("2b3e"),r=t&&!t.nodeType&&t,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===r?a.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,a=s?s(n):new e.constructor(n);return e.copy(a),a}}).call(this,n("62e4")(e))},e565:function(e,t,n){var a=n("193e");e.exports=function(){this.__data__=new a,this.size=0}},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 a(e){return void 0!==e.componentInstance&&e.componentInstance.$isServer}e.exports={bind:function(e,t,r){if(!n(t))return;function i(t){if(r.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,a=t.length;n<a;n++)try{if(e.contains(t[n]))return!0;if(t[n].contains(e))return!1}catch(e){return!1}return!1}(r.context.popupItem,n)||e.__vueClickOutside__.callback(t)}}e.__vueClickOutside__={handler:i,callback:t.value};const o="ontouchstart"in document.documentElement?"touchstart":"click";!a(r)&&document.addEventListener(o,i)},update:function(e,t){n(t)&&(e.__vueClickOutside__.callback=t.value)},unbind:function(e,t,n){const r="ontouchstart"in document.documentElement?"touchstart":"click";!a(n)&&e.__vueClickOutside__&&document.removeEventListener(r,e.__vueClickOutside__.handler),delete e.__vueClickOutside__}}},e6cf:function(e,t,n){"use strict";var a,r,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"),j=n("605d"),A=n("2d00"),P=E("species"),$="Promise",Y=T.get,z=T.set,N=T.getterFor($),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($,(function(){if(y(I)===String(I)){if(66===A)return!0;if(!j&&!U)return!0}if(l&&!I.prototype.finally)return!0;if(A>=51&&/native code/.test(I))return!1;var e=I.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[P]=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 a=e.value,r=1==e.state,i=0;n.length>i;){var o,s,l,c=n[i++],u=r?c.ok:c.fail,d=c.resolve,p=c.reject,m=c.domain;try{u?(r||(2===e.rejection&&ne(e),e.rejection=1),!0===u?o=a:(m&&m.enter(),o=u(a),m&&(m.exit(),l=!0)),o===c.promise?p(F("Promise-chain cycle")):(s=J(o))?s.call(o,d,p):d(o)):p(a)}catch(e){m&&!l&&m.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ee(e)}))}},Q=function(e,t,n){var a,r;W?((a=H.createEvent("Event")).promise=t,a.reason=n,a.initEvent(e,!1,!0),c.dispatchEvent(a)):a={promise:t,reason:n},!U&&(r=c["on"+e])?r(a):e===K&&S("Unhandled promise rejection",n)},ee=function(e){k.call(c,(function(){var t,n=e.facade,a=e.value;if(te(e)&&(t=L((function(){j?R.emit("unhandledRejection",a,n):Q(K,n,a)})),e.rejection=j||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;j?R.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},ae=function(e,t,n){return function(a){e(t,a,n)}},re=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 a=J(t);a?D((function(){var n={done:!1};try{a.call(t,ae(ie,n,e),ae(re,n,e))}catch(t){re(n,t,e)}})):(e.value=t,e.state=1,X(e,!1))}catch(t){re({done:!1},t,e)}}};Z&&(I=function(e){g(this,I,$),v(e),a.call(this);var t=Y(this);try{e(ae(ie,t),ae(re,t))}catch(e){re(t,e)}},(a=function(e){z(this,{type:$,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=m(I.prototype,{then:function(e,t){var n=N(this),a=q(x(this,I));return a.ok="function"!=typeof e||e,a.fail="function"==typeof t&&t,a.domain=j?R.domain:void 0,n.parent=!0,n.reactions.push(a),0!=n.state&&X(n,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new a,t=Y(e);this.promise=e,this.resolve=ae(ie,t),this.reject=ae(re,t)},C.f=q=function(e){return e===I||e===i?new r(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,$,!1,!0),h($),i=u($),s({target:$,stat:!0,forced:Z},{reject:function(e){var t=q(this);return t.reject.call(void 0,e),t.promise}}),s({target:$,stat:!0,forced:l||Z},{resolve:function(e){return M(l&&this===i?I:this,e)}}),s({target:$,stat:!0,forced:G},{all:function(e){var t=this,n=q(t),a=n.resolve,r=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||a(i))}),r)})),--s||a(i)}));return i.error&&r(i.value),n.promise},race:function(e){var t=this,n=q(t),a=n.reject,r=L((function(){var r=v(t.resolve);b(e,(function(e){r.call(t,e).then(n.resolve,a)}))}));return r.error&&a(r.value),n.promise}})},e7d9:function(e,t){e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}},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 a=n("5135"),r=n("56ef"),i=n("06cf"),o=n("9bf2");e.exports=function(e,t){for(var n=r(t),s=o.f,l=i.f,c=0;c<n.length;c++){var u=n[c];a(e,u)||s(e,u,l(t,u))}}},e8b5:function(e,t,n){var a=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==a(e)}},e95a:function(e,t,n){var a=n("b622"),r=n("3f8c"),i=a("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},e973:function(e,t,n){var a=n("605a"),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,s){var l=1&n,c=a(e),u=c.length;if(u!=a(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:r.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}},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)}},ebae:function(e,t){e.exports=function(e,t){return e.has(t)}},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,a){var r={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?r[n][2]?r[n][2]:r[n][1]:a?r[n][0]:r[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"))},ec8c:function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},ed28:function(e,t,n){var a=n("36a2");e.exports=function(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1}},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"))},eebf:function(e,t,n){var a=n("5438"),r=n("36a2");e.exports=function(e,t,n){(void 0!==n&&!r(e[t],n)||void 0===n&&!(t in e))&&a(e,t,n)}},efb6:function(e,t,n){var a=n("5e2e");e.exports=function(){this.__data__=new a,this.size=0}},f069:function(e,t,n){"use strict";var a=n("1c0b"),r=function(e){var t,n;this.promise=new e((function(e,a){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=a})),this.resolve=a(t),this.reject=a(n)};e.exports.f=function(e){return new r(e)}},f0bd:function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,a=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}(),r=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()}),a))}};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,a=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+a)?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 a=n&&n.nodeName;return a&&"BODY"!==a&&"HTML"!==a?-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,a=n?e:t,r=n?t:e,i=document.createRange();i.setStart(a,0),i.setEnd(r,0);var o,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||a.contains(r))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",a=e.nodeName;if("BODY"===a||"HTML"===a){var r=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||r;return i[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=_(t,"top"),r=_(t,"left"),i=n?-1:1;return e.top+=a*i,e.bottom+=a*i,e.left+=r*i,e.right+=r*i,e}function g(e,t){var n="x"===t?"Left":"Top",a="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+a+"Width"])}function y(e,t,n,a){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(a["margin"+("Height"===e?"Top":"Left")])+parseInt(a["margin"+("Height"===e?"Bottom":"Right")]):0)}function b(e){var t=e.body,n=e.documentElement,a=p(10)&&getComputedStyle(n);return{height:y("Height",t,n,a),width:y("Width",t,n,a)}}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 a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}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"),a=_(e,"left");t.top+=n,t.left+=a,t.bottom+=n,t.right+=a}else t=e.getBoundingClientRect()}catch(e){}var r={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||r.width,l=i.height||e.clientHeight||r.height,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var d=o(e);c-=g(d,"x"),u-=g(d,"y"),r.width-=c,r.height-=u}return M(r)}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=p(10),r="HTML"===t.nodeName,i=S(e),s=S(t),c=l(e),u=o(t),d=parseFloat(u.borderTopWidth),m=parseFloat(u.borderLeftWidth);n&&r&&(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,!a&&r){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(a&&!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,a=C(e,n),r=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-a.top+a.marginTop,left:s-a.left+a.marginLeft,width:r,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,a){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},o=r?O(e):h(e,c(t));if("viewport"===a)i=L(o,r);else{var u=void 0;"scrollParent"===a?"BODY"===(u=l(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===a?e.ownerDocument.documentElement:a;var d=C(u,o,r);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 j(e){return e.width*e.height}function A(e,t,n,a,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=E(n,a,i,r),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:j(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,a=e.height;return t>=n.clientWidth&&a>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function P(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=a?O(t):h(t,c(n));return C(n,r,a)}function $(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),a=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+a,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 z(e,t,n){n=n.split("-")[0];var a=$(e),r={width:a.width,height:a.height},i=-1!==["right","left"].indexOf(n),o=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return r[o]=t[o]+t[l]/2-a[l]/2,r[s]=n===s?t[s]-a[c]:t[Y(s)],r}function N(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 a=N(e,(function(e){return e[t]===n}));return e.indexOf(a)}(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=P(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=A(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=z(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),a=0;a<t.length;a++){var r=t[a],i=r?""+r+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,a){var r="BODY"===e.nodeName,i=r?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),r||V(l(i.parentNode),t,n,a),a.push(i)}function W(e,t,n,a){n.updateBound=a,q(e).addEventListener("resize",n.updateBound,{passive:!0});var r=l(e);return V(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,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 a="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Z(t[n])&&(a="px"),e.style[n]=t[n]+a}))}var J=n&&/Firefox/i.test(navigator.userAgent);function X(e,t,n){var a=N(e,(function(e){return e.name===t})),r=!!a&&e.some((function(e){return e.name===n&&e.enabled&&e.order<a.order}));if(!r){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 r}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),a=ee.slice(n+1).concat(ee.slice(0,n));return t?a.reverse():a}var ne="flip",ae="clockwise",re="counterclockwise";function ie(e,t,n,a){var r=[0,0],i=-1!==["right","left"].indexOf(a),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(N(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,a){var r=(1===a?!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,a){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],o=r[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=a}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,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,a){Z(n)&&(r[t]+=n*("-"===e[a-1]?-1:1))}))})),r}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],a=t.split("-")[1];if(a){var r=e.offsets,i=r.reference,o=r.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[a])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,a=e.placement,r=e.offsets,i=r.popper,o=r.reference,s=a.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 a=R("transform"),r=e.instance.popper.style,i=r.top,o=r.left,s=r[a];r.top="",r.left="",r[a]="";var l=E(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=o,r[a]=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",a=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(a=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),k({},n,a)}};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,a=t.reference,r=e.placement.split("-")[0],i=Math.floor,o=-1!==["top","bottom"].indexOf(r),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[s]<i(a[l])&&(e.offsets.popper[l]=i(a[l])-n[c]),n[l]>i(a[s])&&(e.offsets.popper[l]=i(a[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var a=t.element;if("string"==typeof a){if(!(a=e.instance.popper.querySelector(a)))return e}else if(!e.instance.popper.contains(a))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,s=i.popper,l=i.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",d=c?"Top":"Left",p=d.toLowerCase(),m=c?"left":"top",f=c?"bottom":"right",h=$(a)[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=a,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),a=e.placement.split("-")[0],r=Y(a),i=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case ne:o=[a,r];break;case ae:o=te(a);break;case re:o=te(a,!0);break;default:o=t.behavior}return o.forEach((function(s,l){if(a!==s||o.length===l+1)return e;a=e.placement.split("-")[0],r=Y(a);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===a&&d(c.right)>d(u.left)||"right"===a&&d(c.left)<d(u.right)||"top"===a&&d(c.bottom)>d(u.top)||"bottom"===a&&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"===a&&m||"right"===a&&f||"top"===a&&h||"bottom"===a&&_,g=-1!==["top","bottom"].indexOf(a),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)&&(a=o[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=a+(i?"-"+i:""),e.offsets.popper=D({},e.offsets.popper,z(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],a=e.offsets,r=a.popper,i=a.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[o?"left":"top"]=i[n]-(s?r[o?"width":"height"]:0),e.placement=Y(t),e.offsets.popper=M(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=N(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,a=t.y,r=e.offsets.popper,i=N(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:r.position},u=function(e,t){var n=e.offsets,a=n.popper,r=n.reference,i=Math.round,o=Math.floor,s=function(e){return e},l=i(r.width),c=i(a.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?a.left-1:a.left),top:m(a.top),bottom:m(a.bottom),right:p(a.right)}}(e,window.devicePixelRatio<2||!J),d="bottom"===n?"top":"bottom",p="right"===a?"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,a,r){var i=P(r,t,e,n.positionFixed),o=A(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 a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(a.update)},this.update=r(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){a.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},a.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(a.reference,a.popper,a.options,e,a.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"))},f0c4:function(e,t,n){var a=n("487c"),r=n("9f66");e.exports=function(e){return r(e)&&a(e)}},f14b:function(e,t,n){var a=n("a830"),r=n("d3c7"),i=n("6e72"),o=n("0265"),s=n("dad5"),l=n("a92b"),c=n("cbda"),u="[object Map]",d="[object Promise]",p="[object Set]",m="[object WeakMap]",f="[object DataView]",h=c(a),_=c(r),v=c(i),g=c(o),y=c(s),b=l;(a&&b(new a(new ArrayBuffer(1)))!=f||r&&b(new r)!=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,a=n?c(n):"";if(a)switch(a){case h:return f;case _:return u;case v:return d;case g:return p;case y:return m}return t}),e.exports=b},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,a=0;return function(){var r=n(),i=16-(r-a);if(a=r,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"))},f43d:function(e,t,n){var a=n("3307");e.exports=function(e){var t=new e.constructor(e.byteLength);return new a(t).set(new a(e)),t}},f486:function(e,t){var n=Date.now;e.exports=function(e){var t=0,a=0;return function(){var r=n(),i=16-(r-a);if(a=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},f558:function(e,t,n){var a=n("67b5"),r=n("9fc8"),i=n("d934"),o=n("505d"),s=n("8b0d"),l=n("cd04"),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&r(e),d=!n&&!u&&o(e),p=!n&&!u&&!d&&l(e),m=n||u||d||p,f=m?a(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}},f5df:function(e,t,n){var a=n("00ee"),r=n("c6b6"),i=n("b622")("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=a?r:function(e){var t,n,a;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?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},f668:function(e,t,n){var a=n("1653"),r=n("d934");e.exports=function(e,t,n){var i=t(e);return r(e)?i:a(i,n(e))}},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"],a=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],r=["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:a,weekdaysShort:r,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"))},f6d2:function(e,t){e.exports=function(){this.__data__=[],this.size=0}},f772:function(e,t,n){var a=n("5692"),r=n("90e3"),i=a("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},f87b:function(e,t,n){(function(e){var a=n("8aed"),r=t&&!t.nodeType&&t,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===r?a.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,a=s?s(n):new e.constructor(n);return e.copy(a),a}}).call(this,n("62e4")(e))},f8af:function(e,t,n){var a=n("2474");e.exports=function(e){var t=new e.constructor(e.byteLength);return new a(t).set(new a(e)),t}},f909:function(e,t,n){var a=n("7e64"),r=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 a),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),r(t,l,m)}}),l)}},fa21:function(e,t,n){var a=n("7530"),r=n("2dcb"),i=n("eac5");e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:a(r(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("_"),a=[/^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],r=/^(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,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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 a=window.document.currentScript,r=n("8875");a=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var i=a&&a.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 a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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"}},j={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"}}},A={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"}}},P={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:{}},$={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:j,SwTable:A,SwWizard:P},Y=(n("c740"),n("b0c0"),n("ac1f"),n("5319"),n("42454")),z=n.n(Y),N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=n.props;Object.keys(t).forEach((function(e){var n={default:function(){return t[e]}};a[e]=n})),e.component(n.name,l(l({},n),{props:a}))},I=function(e,t,n,a,r,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"}],a=n.findIndex((function(e){return e.name==t}));return a>=0?e[n[a].themeName]:e[t]}(t,n),s=r[n],c=z()(s,o),u=a[n].props;return Object.keys(c).forEach((function(e){var t={default:function(){return c[e]}};u[e]=t})),e.extend(l(l({},a[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,a,r,i,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),a&&(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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),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){N(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 a=new FileReader;a.onload=function(e){t.selectedImage=e.target.result,t.$emit("changed",{file:t.file,image:t.selectedImage})},a.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){N(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){N(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){N(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){N(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,ae=m.variants,re=q({name:"SwCard",install:function(e,t){N(e,t,this)},props:{classes:{type:Object,default:function(){return ne}},variants:{type:Object,default:function(){return ae}},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,a=new Array(t);n<t;n++)a[n]=e[n];return a}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){N(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]},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}},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)}}},(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){N(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,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function Ce(e,t,n){void 0===n&&(n=!1);var a,r,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=(a=t)!==ge(a)&&we(a)?{scrollLeft:(r=a).scrollLeft,scrollTop:r.scrollTop}:ye(a)),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),a="body"===xe(n),r=ge(n),i=a?[r].concat(r.visualViewport||[],Se(n)?n:[]):n,o=t.concat(i);return a?o:o.concat(Ee(Te(i)))}function je(e){return["table","td","th"].indexOf(xe(e))>=0}function Ae(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 Pe(e){for(var t=ge(e),n=Ae(e);n&&je(n)&&"static"===Me(n).position;)n=Ae(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 $e="top",Ye="bottom",ze="right",Ne="left",Ie="auto",Fe=[$e,Ye,ze,Ne],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,a=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var a=t.get(e);a&&r(a)}})),a.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),a}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,a=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?Ze:r;return function(e,t,n){void 0===n&&(n=i);var r,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 r=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(a,s.options.modifiers)));return s.orderedModifiers=r.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,a=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var i=r({state:s,name:t,instance:u,options:a}),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,Pe(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 a=0;a<s.orderedModifiers.length;a++)if(!0!==s.reset){var r=s.orderedModifiers[a],i=r.fn,o=r.options,l=void 0===o?{}:o,d=r.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,a=-1}}},update:(r=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(r())}))}))),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,a=e.element,r=e.placement,i=r?Qe(r):null,o=r?et(r):null,s=n.x+n.width/2-a.width/2,l=n.y+n.height/2-a.height/2;switch(i){case $e:t={x:s,y:n.y-a.height};break;case Ye:t={x:s,y:n.y+n.height};break;case ze:t={x:n.x+n.width,y:l};break;case Ne:t={x:n.x-a.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-a[u]/2);break;case Re:t[c]=Math.floor(t[c])+Math.ceil(n[u]/2-a[u]/2)}}return t}var at={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rt(e){var t,n=e.popper,a=e.popperRect,r=e.placement,i=e.offsets,o=e.position,s=e.gpuAcceleration,l=e.adaptive,c=function(e){var t=e.x,n=e.y,a=window.devicePixelRatio||1;return{x:Math.round(t*a)/a||0,y:Math.round(n*a)/a||0}}(i),u=c.x,d=c.y,p=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),f=Ne,h=$e,_=window;if(l){var v=Pe(n);v===ge(n)&&(v=ke(n)),r===$e&&(h=Ye,d-=v.clientHeight-a.height,d*=s?1:-1),r===Ne&&(f=ze,u-=v.clientWidth-a.width,u*=s?1:-1)}var g,y=Object.assign({position:o},l&&at);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,a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&((n=a)instanceof ge(n).ShadowRoot||n instanceof ShadowRoot)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}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),a=t.visualViewport,r=n.clientWidth,i=n.clientHeight,o=0,s=0;return a&&(r=a.width,i=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=a.offsetLeft,s=a.offsetTop)),{width:r,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),a=e.ownerDocument.body,r=Math.max(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-n.scrollLeft+De(e),s=-n.scrollTop;return"rtl"===Me(a||t).direction&&(o+=Math.max(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:i,x:o,y:s}}(ke(e)))}function pt(e,t,n){var a="clippingParents"===t?function(e){var t=Ee(Te(e)),n=["absolute","fixed"].indexOf(Me(e).position)>=0&&we(e)?Pe(e):e;return be(n)?t.filter((function(e){return be(e)&&ct(e,n)&&"body"!==xe(e)})):[]}(e):[].concat(t),r=[].concat(a,[n]),i=r[0],o=r.reduce((function(t,n){var a=dt(e,n);return t.top=Math.max(a.top,t.top),t.right=Math.min(a.right,t.right),t.bottom=Math.min(a.bottom,t.bottom),t.left=Math.max(a.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,a=n.placement,r=void 0===a?e.placement:a,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:r}),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[r];Object.keys(M).forEach((function(e){var t=[ze,Ye].indexOf(e)>=0?1:-1,n=[$e,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[$e,ze,Ye,Ne].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,a=e.options,r=a.scroll,i=void 0===r||r,o=a.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,a=n.gpuAcceleration,r=void 0===a||a,i=n.adaptive,o=void 0===i||i,s={placement:Qe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),rt(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),rt(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]||{},a=t.attributes[e]||{},r=t.elements[e];we(r)&&xe(r)&&(Object.assign(r.style,n),Object.keys(a).forEach((function(e){var t=a[e];!1===t?r.removeAttribute(e):r.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 a=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});we(a)&&xe(a)&&(Object.assign(a.style,i),Object.keys(r).forEach((function(e){a.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,a=e.name,r=n.offset,i=void 0===r?[0,0]:r,o=We.reduce((function(e,n){return e[n]=function(e,t,n){var a=Qe(e),r=[Ne,$e].indexOf(a)>=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)*r,[Ne,ze].indexOf(a)>=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[a]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,i=void 0===r||r,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,a=n.placement,r=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?We:l,u=et(a),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:r,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=[$e,Ye].indexOf(C)>=0,O=T?"width":"height",E=ht(t,{placement:S,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),j=T?L?ze:Ne:L?Ye:$e;b[O]>w[O]&&(j=ot(j));var A=ot(j),P=[];if(i&&P.push(E[C]<=0),s&&P.push(E[j]<=0,E[A]<=0),P.every((function(e){return e}))){D=S,k=!1;break}x.set(S,P)}if(k)for(var $=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"!==$(Y);Y--);t.placement!==D&&(t.modifiersData[a]._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,a=e.name,r=n.mainAxis,i=void 0===r||r,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?$e:Ne,L="y"===b?Ye:ze,T="y"===b?"height":"width",O=x[b],E=x[b]+_[C],j=x[b]-_[L],A=m?-D[T]/2:0,P=g===He?k[T]:D[T],$=g===He?-D[T]:-k[T],Y=t.elements.arrow,z=m&&Y?Le(Y):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=N[C],F=N[L],H=_t(0,k[T],z[T]),R=y?k[T]/2-A-H-I-M:P-H-I-M,B=y?-k[T]/2+A+H+F+M:$+H+F+M,q=t.elements.arrow&&Pe(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(j,K):j);x[b]=Z,S[b]=Z-O}if(s){var G="x"===b?$e:Ne,J="x"===b?Ye:ze,X=x[w],Q=_t(X+_[G],X,X-_[J]);x[w]=Q,S[w]=Q-X}t.modifiersData[a]=S}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,a=e.name,r=n.elements.arrow,i=n.modifiersData.popperOffsets,o=Qe(n.placement),s=tt(o),l=[Ne,ze].indexOf(o)>=0?"height":"width";if(r&&i){var c=n.modifiersData[a+"#persistent"].padding,u=Le(r),d="y"===s?$e:Ne,p="y"===s?Ye:ze,m=n.rects.reference[l]+n.rects.reference[s]-i[s]-n.rects.popper[l],f=i[s]-n.rects.reference[s],h=Pe(r),_=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[a]=((t={})[x]=w,t.centerOffset=w-b,t)}},effect:function(e){var t=e.state,n=e.options,a=e.name,r=n.element,i=void 0===r?"[data-popper-arrow]":r,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[a+"#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,a=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=ht(t,{elementContext:"reference"}),s=ht(t,{altBoundary:!0}),l=vt(o,a),c=vt(s,r,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:"SwDropdown",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.SwDropdown?l(l({},this.classes),this.$theme.SwDropdown.classes):this.classes},variantsTheme:function(){return this.$theme&&this.$theme.SwDropdown?l(l({},this.variants),this.$theme.SwDropdown.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){N(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){N(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){N(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,jt=b.variants,At=b.classes,Pt=q({name:"SwInput",inheritAttrs:!1,install:function(e,t){N(e,t,this)},props:{prefix:{type:String,default:null,required:!1},classes:{type:Object,default:function(){return At}},value:{type:[String,Number],default:""},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},variants:{type:Object,default:function(){return jt}},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,a=t.target,r=!!a.checked;if(Array.isArray(n)){var i=e.value,o=e._i(n,i);a.checked?o<0&&(e.inputValue=n.concat([i])):o>-1&&(e.inputValue=n.slice(0,o).concat(n.slice(o+1)))}else e.inputValue=r},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,$t=x.variants,Yt=q({name:"SwLabel",install:function(e,t){N(e,t,this)},props:{classes:{type:String,default:x.classes},variants:{type:Object,default:function(){return $t}},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,zt=w.classes,Nt=w.variants,It=q({name:"SwInputGroup",install:function(e,t){N(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 zt}},variants:{type:Object,default:function(){return Nt}},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){N(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){N(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){N(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){N(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){N(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){N(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){N(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"),an=q({components:{vueDropzone:n.n(nn).a},inheritAttrs:!1,install:function(e,t){N(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,a,r,i;if(e.previewElement){for(e.previewElement.classList.remove("dz-file-preview"),n=0,a=(r=e.previewElement.querySelectorAll("[data-dz-thumbnail-bg]")).length;n<a;n++)(i=r[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,rn=L.classes,on=L.variants,sn=L.sizes,ln=q({name:"SwRadio",inheritAttrs:!1,model:{prop:"modelValue",event:"change"},install:function(e,t){N(e,t,this)},props:{value:{type:[Boolean,Number,String],required:!1,default:!1},modelValue:{default:""},classes:{type:Object,default:function(){return rn}},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){N(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,a=t.target,r=!!a.checked;if(Array.isArray(n)){var i=e._i(n,null);a.checked?i<0&&(e.checkValue=n.concat([null])):i>-1&&(e.checkValue=n.slice(0,i).concat(n.slice(i+1)))}else e.checkValue=r},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 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 overflow-y-auto",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,a){return e.filter((function(e){return r=a(e,n),i=t,void 0===r&&(r="undefined"),null===r&&(r="null"),!1===r&&(r="false"),-1!==r.toString().toLowerCase().indexOf(i.trim());var r,i}))}function hn(e){return e.filter((function(e){return!e.$isLabel}))}function _n(e,t){return function(n){return n.reduce((function(n,a){return a[e]&&a[e].length?(n.push({$groupLabel:a[t],$isLabel:!0}),n.concat(a[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(),a=this.options.concat();return a=this.internalSearch?this.groupValues?this.filterAndFlat(a,n,this.label):fn(a,n,this.label,this.customLabel):this.groupValues?_n(this.groupValues,this.groupLabel)(a):a,a=this.hideSelected?a.filter((e=this.isSelected,function(){return!e.apply(void 0,arguments)})):a,this.taggable&&n.length&&!this.isExistingOption(n)&&("bottom"===this.tagPosition?a.push({isTag:!0,label:t}):a.unshift({isTag:!0,label:t})),a.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,a,r){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,r);return l.length?(o(s={},a,i[a]),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 a=this.internalValue.filter((function(e){return-1===n[t.groupValues].indexOf(e)}));this.$emit("input",a,this.id)}else{var r=n[this.groupValues].filter((function(e){return!(t.isOptionDisabled(e)||t.isSelected(e))}));this.$emit("select",r,this.id),this.$emit("input",this.internalValue.concat(r),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 a=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("input",a,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 a=this.options.find((function(e){return e[n.groupLabel]===t.$groupLabel}));return a&&!this.wholeGroupDisabled(a)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(a)},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(){var e={maxHeight:this.optimizedHeight+"px"};return e.display=this.options.length?"inline-block":"block",e},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,a){return[e._t("tag",[n("span",{key:a,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,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,a){return n("li",{key:a,class:e.multiselectElementStyle,attrs:{id:e.id+"-"+a,role:t&&(t.$isLabel||t.$isDisabled)?null:"option"}},[t&&(t.$isLabel||t.$isDisabled)?e._e():n("span",{class:e.optionHighlight(a,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(a)}}},[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(a,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(a)},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){N(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){N(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,a){return n("li",{key:a,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){N(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=j.classes,On=j.variants,En=q({name:"SwTransition",install:function(e,t){N(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,jn=n("5313"),An=n("304a"),Pn=n("0ac0"),$n={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var Yn=/Edge\/(\d+)/.exec(navigator.userAgent),zn=/MSIE \d/.test(navigator.userAgent),Nn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);$n.mac=/Mac/.test(navigator.platform);var In=$n.ie=!!(zn||Nn||Yn);$n.ie_version=zn?document.documentMode||6:Nn?+Nn[1]:Yn?+Yn[1]:null,$n.gecko=!In&&/gecko\/(\d+)/i.test(navigator.userAgent),$n.gecko_version=$n.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var Fn=!In&&/Chrome\/(\d+)/.exec(navigator.userAgent);$n.chrome=!!Fn,$n.chrome_version=Fn&&+Fn[1],$n.ios=!In&&/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),$n.android=/Android \d/.test(navigator.userAgent),$n.webkit="webkitFontSmoothing"in document.documentElement.style,$n.safari=/Apple Computer/.test(navigator.vendor),$n.webkit_version=$n.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 a=document.createRange();return a.setEnd(e,null==n?e.nodeValue.length:n),a.setStart(e,t||0),a},qn=function(e,t,n,a){return n&&(Wn(e,t,n,a,-1)||Wn(e,t,n,a,1))},Vn=/^(img|br|input|textarea|hr)$/i;function Wn(e,t,n,a,r){for(;;){if(e==n&&t==a)return!0;if(t==(r<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)+(r<0?0:1),e=i}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(r<0?-1:0)]).contentEditable)return!1;t=r<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&&$n.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 ea(e,t,n){for(var a=e.someProp("scrollThreshold")||0,r=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(a,"top")?u=-(l.top-t.top+Xn(r,"top")):t.bottom>l.bottom-Xn(a,"bottom")&&(u=t.bottom-l.bottom+Xn(r,"bottom")),t.left<l.left+Xn(a,"left")?c=-(l.left-t.left+Xn(r,"left")):t.right>l.right-Xn(a,"right")&&(c=t.right-l.right+Xn(r,"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 ta(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 na(e,t){for(var n=0;n<e.length;n++){var a=e[n],r=a.dom,i=a.top,o=a.left;r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=o&&(r.scrollLeft=o)}}var aa=null;function ra(e,t){for(var n,a,r=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<r){n=l,r=m,a=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,a=document.createRange(),r=0;r<n;r++){a.setEnd(e,r+1),a.setStart(e,r);var i=la(a,1);if(i.top!=i.bottom&&ia(t,i))return{node:e,offset:r+(t.left>=(i.left+i.right)/2?1:0)}}return{node:e,offset:0}}(n,a):!n||r&&1==n.nodeType?{node:e,offset:i}:ra(n,a)}function ia(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function oa(e,t,n){var a=e.childNodes.length;if(a&&n.top<n.bottom)for(var r=Math.max(0,Math.min(a-1,Math.floor(a*(t.top-n.top)/(n.bottom-n.top))-2)),i=r;;){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(ia(t,c))return oa(o,t,c)}if((i=(i+1)%a)==r)break}return e}function sa(e,t){var n,a,r,i,o=e.root;if(o.caretPositionFromPoint)try{var s=o.caretPositionFromPoint(t.left,t.top);s&&(r=(n=s).offsetNode,i=n.offset)}catch(e){}if(!r&&o.caretRangeFromPoint){var l=o.caretRangeFromPoint(t.left,t.top);l&&(r=(a=l).startContainer,i=a.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(!ia(t,d))return null;if(!(u=oa(e.dom,t,d)))return null}if($n.safari&&u.draggable&&(r=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),r){if($n.gecko&&1==r.nodeType&&(i=Math.min(i,r.childNodes.length))<r.childNodes.length){var p,m=r.childNodes[i];"IMG"==m.nodeName&&(p=m.getBoundingClientRect()).right<=t.left&&p.bottom>t.top&&i++}r==e.dom&&i==r.childNodes.length-1&&1==r.lastChild.nodeType&&t.top>r.lastChild.getBoundingClientRect().bottom?c=e.state.doc.content.size:0!=i&&1==r.nodeType&&"BR"==r.childNodes[i-1].nodeName||(c=function(e,t,n,a){for(var r=-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>a.left||s.top>a.top)r=o.posBefore;else{if(!(s.right<a.left||s.bottom<a.top))break;r=o.posAfter}}i=o.dom.parentNode}return r>-1?r:e.docView.posFromDOM(t,n)}(e,r,i,t))}null==c&&(c=function(e,t,n){var a=ra(t,n),r=a.node,i=a.offset,o=-1;if(1==r.nodeType&&!r.firstChild){var s=r.getBoundingClientRect();o=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}(e,u,t));var f=e.docView.nearestDesc(u,!0);return{pos:c,inside:f?f.posAtStart-f.border:-1}}function la(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}function ca(e,t){var n=e.docView.domFromPos(t),a=n.node,r=n.offset;if(3==a.nodeType&&($n.webkit||$n.gecko)){var i=la(Bn(a,r,r),0);if($n.gecko&&r&&/\s/.test(a.nodeValue[r-1])&&r<a.nodeValue.length){var o=la(Bn(a,r-1,r-1),-1);if(o.top==i.top){var s=la(Bn(a,r,r+1),-1);if(s.top!=i.top)return ua(s,s.left<o.left)}}return i}if(1==a.nodeType&&!e.state.doc.resolve(t).parent.inlineContent){var l,c=!0;if(r<a.childNodes.length){var u=a.childNodes[r];1==u.nodeType&&(l=u.getBoundingClientRect())}if(!l&&r){var d=a.childNodes[r-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||a.getBoundingClientRect(),c)}for(var p=-1;p<2;p+=2)if(p<0&&r){var m=void 0,f=3==a.nodeType?Bn(a,r-1,r):3==(m=a.childNodes[r-1]).nodeType?Bn(m):1==m.nodeType&&"BR"!=m.nodeName?m:null;if(f){var h=la(f,1);if(h.top<h.bottom)return ua(h,!1)}}else if(p>0&&r<Un(a)){var _=void 0,v=3==a.nodeType?Bn(a,r,r+1):3==(_=a.childNodes[r]).nodeType?Bn(_):1==_.nodeType?_:null;if(v){var g=la(v,-1);if(g.top<g.bottom)return ua(g,!0)}}return ua(la(3==a.nodeType?Bn(a):a,0),!1)}function ua(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 da(e,t,n){var a=e.state,r=e.root.activeElement;a!=t&&e.updateState(t),r!=e.dom&&e.focus();try{return n()}finally{a!=t&&e.updateState(a),r!=e.dom&&r&&r.focus()}}var pa=/[\u0590-\u08ac]/,ma=null,fa=null,ha=!1;function _a(e,t,n){return ma==t&&fa==n?ha:(ma=t,fa=n,ha="up"==n||"down"==n?function(e,t,n){var a=t.selection,r="up"==n?a.$anchor.min(a.$head):a.$anchor.max(a.$head);return da(e,t,(function(){for(var t=e.docView.domFromPos(r.pos).node;;){var a=e.docView.nearestDesc(t,!0);if(!a)break;if(a.node.isBlock){t=a.dom;break}t=a.dom.parentNode}for(var i=ca(e,r.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 a=t.selection.$head;if(!a.parent.isTextblock)return!1;var r=a.parentOffset,i=!r,o=r==a.parent.content.size,s=getSelection();return pa.test(a.parent.textContent)&&s.modify?da(e,t,(function(){var t=s.getRangeAt(0),r=s.focusNode,i=s.focusOffset,o=s.caretBidiLevel;s.modify("move",n,"character");var l=!(a.depth?e.docView.domAfterPos(a.before()):e.dom).contains(1==s.focusNode.nodeType?s.focusNode:s.focusNode.parentNode)||r==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 va=function(e,t,n,a){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=a,this.dirty=0},ga={beforePosition:{configurable:!0},size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0}};va.prototype.matchesWidget=function(){return!1},va.prototype.matchesMark=function(){return!1},va.prototype.matchesNode=function(){return!1},va.prototype.matchesHack=function(){return!1},ga.beforePosition.get=function(){return!1},va.prototype.parseRule=function(){return null},va.prototype.stopEvent=function(){return!1},ga.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},ga.border.get=function(){return 0},va.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()},va.prototype.posBeforeChild=function(e){for(var t=0,n=this.posAtStart;t<this.children.length;t++){var a=this.children[t];if(a==e)return n;n+=a.size}},ga.posBefore.get=function(){return this.parent.posBeforeChild(this)},ga.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},ga.posAfter.get=function(){return this.posBefore+this.size},ga.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},va.prototype.localPosFromDOM=function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var a,r;if(e==this.contentDOM)a=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;a=e.previousSibling}for(;a&&(!(r=a.pmViewDesc)||r.parent!=this);)a=a.previousSibling;return a?this.posBeforeChild(r)+r.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},va.prototype.nearestDesc=function(e,t){for(var n=!0,a=e;a;a=a.parentNode){var r=this.getDesc(a);if(r&&(!t||r.node)){if(!n||!r.nodeDOM||(1==r.nodeDOM.nodeType?r.nodeDOM.contains(1==e.nodeType?e:e.parentNode):r.nodeDOM==e))return r;n=!1}}},va.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},va.prototype.posFromDOM=function(e,t,n){for(var a=e;a;a=a.parentNode){var r=this.getDesc(a);if(r)return r.localPosFromDOM(e,t,n)}return-1},va.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var a=this.children[t],r=n+a.size;if(n==e&&r!=n){for(;!a.border&&a.children.length;)a=a.children[0];return a}if(e<r)return a.descAt(e-n-a.border);n=r}},va.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 a=this.children[n],r=t+a.size;if(e<r)return a.domFromPos(e-t-a.border);t=r}},va.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 a=-1,r=-1,i=n,o=0;;o++){var s=this.children[o],l=i+s.size;if(-1==a&&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)){a=Hn(d.dom)+1;break}e-=d.size}-1==a&&(a=0)}if(a>-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)){r=Hn(m.dom);break}t+=m.size}-1==r&&(r=this.contentDOM.childNodes.length);break}i=l}return{node:this.contentDOM,from:e,to:t,fromOffset:a,toOffset:r}},va.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)},va.prototype.domAfterPos=function(e){var t=this.domFromPos(e),n=t.node,a=t.offset;if(1!=n.nodeType||a==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[a]},va.prototype.setSelection=function(e,t,n,a){for(var r=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(r>s&&i<c)return l.setSelection(e-s-l.border,t-s-l.border,n,a);s=c}var u=this.domFromPos(e),d=this.domFromPos(t),p=n.getSelection(),m=!1;if(($n.gecko||$n.safari)&&e==t){var f=u.node.childNodes[u.offset-1];m=f&&("BR"==f.nodeName||"false"==f.contentEditable)}if(a||m&&$n.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)}}},va.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},ga.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},va.prototype.markDirty=function(e,t){for(var n=0,a=0;a<this.children.length;a++){var r=this.children[a],i=n+r.size;if(n==i?e<=i&&t>=n:e<i&&t>n){var o=n+r.border,s=i-r.border;if(e>=o&&t<=s)return this.dirty=e==n||t==i?2:1,void(e!=o||t!=s||!r.contentLost&&r.dom.parentNode==this.contentDOM?r.markDirty(e-o,t-o):r.dirty=3);r.dirty=3}n=i}this.dirty=2},va.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(va.prototype,ga);var ya=[],ba=function(e){function t(t,n,a,r){var i,o=n.type.toDOM;if("function"==typeof o&&(o=o(a,(function(){return i?i.parent?i.parent.posBeforeChild(i):void 0:r}))),!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,ya,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}(va),wa=function(e){function t(t,n,a,r){e.call(this,t,ya,n,null),this.textDOM=a,this.text=r}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}(va),xa=function(e){function t(t,n,a,r){e.call(this,t,[],a,r),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,a,r){var i=r.nodeViews[n.type.name],o=i&&i(n,r,a);return o&&o.dom||(o=An.DOMSerializer.renderSpec(document,n.type.spec.toDOM(n,a))),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 a=this.parent;!a.node;)a=a.parent;a.dirty<this.dirty&&(a.dirty=this.dirty),this.dirty=0}},t.prototype.slice=function(e,n,a){var r=t.create(this.parent,this.mark,!0,a),i=this.children,o=this.size;n<o&&(i=Ia(i,n,o,a)),e>0&&(i=Ia(i,0,e,a));for(var s=0;s<i.length;s++)i[s].parent=r;return r.children=i,r},t}(va),ka=function(e){function t(t,n,a,r,i,o,s,l,c){e.call(this,t,n.isLeaf?ya:[],i,o),this.nodeDOM=s,this.node=n,this.outerDeco=a,this.innerDeco=r,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,a,r,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}),a),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=An.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=Pa(d,a,n),u?l=new Ca(e,n,a,r,d,p,m,u,i,o+1):n.isText?new Ma(e,n,a,r,d,m,i):new t(e,n,a,r,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?An.Fragment.empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&$a(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,a=this.node.inlineContent,r=t,i=a&&e.composing&&this.localCompositionNode(e,t),o=new za(this,i&&i.node);!function(e,t,n,a){var r=t.locals(e),i=0;if(0!=r.length)for(var o=0,s=[],l=null,c=0;;){if(o<r.length&&r[o].to==i){for(var u=r[o++],d=void 0;o<r.length&&r[o].to==i;)(d||(d=[u])).push(r[o++]);if(d){d.sort(Na);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<r.length&&r[o].from<=i&&r[o].to>i;)s.push(r[o++]);var _=i+m.nodeSize;if(m.isText){var v=_;o<r.length&&r[o].from<v&&(v=r[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)}a(m,s.length?m.isInline&&!m.isLeaf?s.filter((function(e){return!e.inline})):s.slice():ya,t.forChild(i,m),f),i=_}else for(var y=0;y<e.childCount;y++){var b=e.child(y);a(b,r,t.forChild(i,b),y),i+=b.nodeSize}}(this.node,this.innerDeco,(function(t,i,s){t.spec.marks?o.syncToMarks(t.spec.marks,a,e):t.type.side>=0&&!s&&o.syncToMarks(i==n.node.childCount?An.Mark.none:n.node.child(i).marks,a,e),o.placeWidget(t,e,r)}),(function(t,n,i,s){o.syncToMarks(t.marks,a,e),o.findNodeMatch(t,n,i,s)||o.updateNextNode(t,n,i,e,s)||o.addNode(t,n,i,e,r),r+=t.nodeSize})),o.syncToMarks(ya,a,e),this.node.isTextblock&&o.addTextblockHacks(),o.destroyRest(),(o.changed||2==this.dirty)&&(i&&this.protectLocalComposition(e,i),La(this.contentDOM,this.children,e),$n.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,r=n.to;if(!(!(e.state.selection instanceof jn.TextSelection)||a<t||r>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,a){for(var r=0,i=0;r<e.childCount&&i<=a;){var o=e.child(r++),s=i;if(i+=o.nodeSize,o.isText){for(var l=o.text;r<e.childCount;){var c=e.child(r++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){var u=l.lastIndexOf(t,a-s);if(u>=0&&u+t.length+s>=n)return s+u}}}return-1}(this.node.content,s,a-t,r-t);return l<0?null:{node:o,pos:l,text:s}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,a=t.pos,r=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 wa(this,i,n,r);e.compositionNodes.push(o),this.children=Ia(this.children,a,a+r.length,e,o)}},t.prototype.update=function(e,t,n,a){return!(3==this.dirty||!e.sameMarkup(this.node)||(this.updateInner(e,t,n,a),0))},t.prototype.updateInner=function(e,t,n,a){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(a,this.posAtStart),this.dirty=0},t.prototype.updateOuterDeco=function(e){if(!$a(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=ja(this.dom,this.nodeDOM,Ea(this.outerDeco,this.node,t),Ea(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}(va);function Da(e,t,n,a,r){return Pa(a,t,e),new ka(null,e,t,n,a,a,a,r,0)}var Ma=function(e){function t(t,n,a,r,i,o,s){e.call(this,t,n,a,r,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,a){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,a.trackWrites==this.nodeDOM&&(a.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,a){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,a)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,a){var r=this.node.cut(e,n),i=document.createTextNode(r.text);return new t(this.parent,r,this.outerDeco,this.innerDeco,i,i,a)},t}(ka),Sa=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}(va),Ca=function(e){function t(t,n,a,r,i,o,s,l,c,u){e.call(this,t,n,a,r,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,a,r){if(3==this.dirty)return!1;if(this.spec.update){var i=this.spec.update(t,n);return i&&this.updateInner(t,n,a,r),i}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,a,r)},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,a,r){this.spec.setSelection?this.spec.setSelection(t,n,a):e.prototype.setSelection.call(this,t,n,a,r)},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}(ka);function La(e,t,n){for(var a=e.firstChild,r=!1,i=0;i<t.length;i++){var o=t[i],s=o.dom;if(s.parentNode==e){for(;s!=a;)a=Ya(a),r=!0;a=a.nextSibling}else r=!0,e.insertBefore(s,a);if(o instanceof xa){var l=a?a.previousSibling:e.lastChild;La(o.contentDOM,o.children,n),a=l?l.nextSibling:e.firstChild}}for(;a;)a=Ya(a),r=!0;r&&n.trackWrites==e&&(n.trackWrites=null)}function Ta(e){e&&(this.nodeName=e)}Ta.prototype=Object.create(null);var Oa=[new Ta];function Ea(e,t,n){if(0==e.length)return Oa;for(var a=n?Oa[0]:new Ta,r=[a],i=0;i<e.length;i++){var o=e[i].type.attrs,s=a;if(o)for(var l in o.nodeName&&r.push(s=new Ta(o.nodeName)),o){var c=o[l];null!=c&&(n&&1==r.length&&r.push(s=a=new Ta(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 r}function ja(e,t,n,a){if(n==Oa&&a==Oa)return t;for(var r=t,i=0;i<a.length;i++){var o=a[i],s=n[i];if(i){var l=void 0;s&&s.nodeName==o.nodeName&&r!=e&&(l=r.parentNode)&&l.tagName.toLowerCase()==o.nodeName||((l=document.createElement(o.nodeName)).pmIsDeco=!0,l.appendChild(r),s=Oa[0]),r=l}Aa(r,s||Oa[0],o)}return r}function Aa(e,t,n){for(var a in t)"class"==a||"style"==a||"nodeName"==a||a in n||e.removeAttribute(a);for(var r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){for(var i=t.class?t.class.split(" "):ya,o=n.class?n.class.split(" "):ya,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 Pa(e,t,n){return ja(e,e,Oa,Ea(t,n,1!=e.nodeType))}function $a(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 Ya(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var za=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=[],a=e.childCount,r=t.length-1;a>0&&r>=0;r--){var i=t[r],o=i.node;if(o){if(o!=e.child(a-1))break;n.push(i),--a}}return{nodes:n.reverse(),offset:a}}(e.node.content,e.children);this.preMatched=n.nodes,this.preMatchOffset=n.offset};function Na(e,t){return e.type.side-t.type.side}function Ia(e,t,n,a,r){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,a)),r&&(i.push(r),r=null),u>n&&i.push(l.slice(n-c,l.size,a)))}return i}function Fa(e,t){var n=e.root.getSelection(),a=e.state.doc;if(!n.focusNode)return null;var r=e.docView.nearestDesc(n.focusNode),i=r&&0==r.size,o=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(o<0)return null;var s,l,c=a.resolve(o);if(Zn(n)){for(s=c;r&&!r.node;)r=r.parent;if(r&&r.node.isAtom&&jn.NodeSelection.isSelectable(r.node)&&r.parent&&(!r.node.isInline||!function(e,t,n){for(var a=0==t,r=t==Un(e);a||r;){if(e==n)return!0;var i=Hn(e);if(!(e=e.parentNode))return!1;a=a&&0==i,r=r&&i==Un(e)}}(n.focusNode,n.focusOffset,r.dom))){var u=r.posBefore;l=new jn.NodeSelection(o==u?c:a.resolve(u))}}else{var d=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(d<0)return null;s=a.resolve(d)}return l||(l=Ka(e,s,c,"pointer"==t||e.state.selection.head<c.pos&&!i?1:-1)),l}function Ha(e,t){var n=e.state.selection;if(Wa(e,n),e.editable?e.hasFocus():Za(e)&&document.activeElement&&document.activeElement.contains(e.dom)){if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){var t=e.root.getSelection(),n=document.createRange(),a=e.cursorWrapper.dom,r="IMG"==a.nodeName;r?n.setEnd(a.parentNode,Hn(a)+1):n.setEnd(a,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!r&&!e.state.selection.visible&&$n.ie&&$n.ie_version<=11&&(a.disabled=!0,a.disabled=!1)}(e);else{var a,r,i=n.anchor,o=n.head;!Ra||n instanceof jn.TextSelection||(n.$from.parent.inlineContent||(a=Ba(e,n.from)),n.empty||n.$from.parent.inlineContent||(r=Ba(e,n.to))),e.docView.setSelection(i,o,e.root,t),Ra&&(a&&Va(a),r&&Va(r)),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(),a=n.anchorNode,r=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==a&&n.anchorOffset==r||(t.removeEventListener("selectionchange",e.hideSelectionGuard),e.dom.classList.remove("ProseMirror-hideselection"))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}za.prototype.getPreMatch=function(e){return e>=this.preMatchOffset?this.preMatched[e-this.preMatchOffset]:null},za.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}},za.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},za.prototype.syncToMarks=function(e,t,n){for(var a=0,r=this.stack.length>>1,i=Math.min(r,e.length);a<i&&(a==r-1?this.top:this.stack[a+1<<1]).matchesMark(e[a])&&!1!==e[a].type.spec.spanning;)a++;for(;a<r;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),r--;for(;r<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[r])){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=xa.create(this.top,e[r],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,r++}},za.prototype.findNodeMatch=function(e,t,n,a){var r=-1,i=a<0?void 0:this.getPreMatch(a),o=this.top.children;if(i&&i.matchesNode(e,t,n))r=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){r=s;break}}return!(r<0||(this.destroyBetween(this.index,r),this.index++,0))},za.prototype.updateNextNode=function(e,t,n,a,r){for(var i=this.index;i<this.top.children.length;i++){var o=this.top.children[i];if(o instanceof ka){var s=this.preMatched.indexOf(o);if(s>-1&&s+this.preMatchOffset!=r)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&&$a(t,o.outerDeco))&&o.update(e,t,n,a))return this.destroyBetween(this.index,i),o.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1},za.prototype.addNode=function(e,t,n,a,r){this.top.children.splice(this.index++,0,ka.create(this.top,e,t,n,a,r)),this.changed=!0},za.prototype.placeWidget=function(e,t,n){var a=this.index<this.top.children.length?this.top.children[this.index]:null;if(!a||!a.matchesWidget(e)||e!=a.widget&&a.widget.type.toDOM.parentNode){var r=new ba(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++},za.prototype.addTextblockHacks=function(){for(var e=this.top.children[this.index-1];e instanceof xa;)e=e.children[e.children.length-1];if(!e||!(e instanceof Ma)||/\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 Sa(this.top,ya,t,null)),this.changed=!0}};var Ra=$n.safari||$n.chrome&&$n.chrome_version<63;function Ba(e,t){var n=e.docView.domFromPos(t),a=n.node,r=n.offset,i=r<a.childNodes.length?a.childNodes[r]:null,o=r?a.childNodes[r-1]:null;if($n.safari&&i&&"false"==i.contentEditable)return qa(i);if(!(i&&"false"!=i.contentEditable||o&&"false"!=o.contentEditable)){if(i)return qa(i);if(o)return qa(o)}}function qa(e){return e.contentEditable="true",$n.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Va(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Wa(e,t){if(t instanceof jn.NodeSelection){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Ua(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Ua(e)}function Ua(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function Ka(e,t,n,a){return e.someProp("createSelectionBetween",(function(a){return a(e,t,n)}))||jn.TextSelection.between(t,n,a)}function Za(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 Ga(e,t){var n=e.selection,a=n.$anchor,r=n.$head,i=t>0?a.max(r):a.min(r),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&jn.Selection.findFrom(o,t)}function Ja(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Xa(e,t,n){var a=e.state.selection;if(!(a instanceof jn.TextSelection)){if(a instanceof jn.NodeSelection&&a.node.isInline)return Ja(e,new jn.TextSelection(t>0?a.$to:a.$from));var r=Ga(e.state,t);return!!r&&Ja(e,r)}if(!a.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var i=Ga(e.state,t);return!!(i&&i instanceof jn.NodeSelection)&&Ja(e,i)}if(!($n.mac&&n.indexOf("m")>-1)){var o,s=a.$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)&&(jn.NodeSelection.isSelectable(l)?Ja(e,new jn.NodeSelection(t<0?e.state.doc.resolve(s.pos-l.nodeSize):s)):!!$n.webkit&&Ja(e,new jn.TextSelection(e.state.doc.resolve(t<0?c:c+l.nodeSize))))}}function Qa(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function er(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function tr(e){var t=e.root.getSelection(),n=t.focusNode,a=t.focusOffset;if(n){var r,i,o=!1;for($n.gecko&&1==n.nodeType&&a<Qa(n)&&er(n.childNodes[a])&&(o=!0);;)if(a>0){if(1!=n.nodeType)break;var s=n.childNodes[a-1];if(er(s))r=n,i=--a;else{if(3!=s.nodeType)break;a=(n=s).nodeValue.length}}else{if(ar(n))break;for(var l=n.previousSibling;l&&er(l);)r=n.parentNode,i=Hn(l),l=l.previousSibling;if(l)a=Qa(n=l);else{if((n=n.parentNode)==e.dom)break;a=0}}o?rr(e,t,n,a):r&&rr(e,t,r,i)}}function nr(e){var t=e.root.getSelection(),n=t.focusNode,a=t.focusOffset;if(n){for(var r,i,o=Qa(n);;)if(a<o){if(1!=n.nodeType)break;if(!er(n.childNodes[a]))break;r=n,i=++a}else{if(ar(n))break;for(var s=n.nextSibling;s&&er(s);)r=s.parentNode,i=Hn(s)+1,s=s.nextSibling;if(s)a=0,o=Qa(n=s);else{if((n=n.parentNode)==e.dom)break;a=o=0}}r&&rr(e,t,r,i)}}function ar(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function rr(e,t,n,a){if(Zn(t)){var r=document.createRange();r.setEnd(n,a),r.setStart(n,a),t.removeAllRanges(),t.addRange(r)}else t.extend&&t.extend(n,a);e.domObserver.setCurSelection();var i=e.state;setTimeout((function(){e.state==i&&Ha(e)}),50)}function ir(e,t,n){var a=e.state.selection;if(a instanceof jn.TextSelection&&!a.empty||n.indexOf("s")>-1)return!1;if($n.mac&&n.indexOf("m")>-1)return!1;var r=a.$from,i=a.$to;if(!r.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var o=Ga(e.state,t);if(o&&o instanceof jn.NodeSelection)return Ja(e,o)}if(!r.parent.inlineContent){var s=jn.Selection.findFrom(t<0?r:i,t);return!s||Ja(e,s)}return!1}function or(e,t){if(!(e.state.selection instanceof jn.TextSelection))return!0;var n=e.state.selection,a=n.$head,r=n.$anchor,i=n.empty;if(!a.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var o=!a.textOffset&&(t<0?a.nodeBefore:a.nodeAfter);if(o&&!o.isText){var s=e.state.tr;return t<0?s.delete(a.pos-o.nodeSize,a.pos):s.delete(a.pos,a.pos+o.nodeSize),e.dispatch(s),!0}return!1}function sr(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function lr(e,t){var n=t.keyCode,a=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||$n.mac&&72==n&&"c"==a?or(e,-1)||tr(e):46==n||$n.mac&&68==n&&"c"==a?or(e,1)||nr(e):13==n||27==n||(37==n?Xa(e,-1,a)||tr(e):39==n?Xa(e,1,a)||nr(e):38==n?ir(e,-1,a)||tr(e):40==n?function(e){if($n.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,a=t.focusOffset;if(n&&1==n.nodeType&&0==a&&n.firstChild&&"false"==n.firstChild.contentEditable){var r=n.firstChild;sr(e,r,!0),setTimeout((function(){return sr(e,r,!1)}),20)}}}(e)||ir(e,1,a)||nr(e):a==($n.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function cr(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if($n.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||$n.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function ur(e,t,n,a,r){if(t<0){var i=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,o=Fa(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 a=e.docView.parseRange(t,n),r=a.node,i=a.fromOffset,o=a.toOffset,s=a.from,l=a.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})),$n.chrome&&8===e.lastKeyCode)for(var p=o;p>i;p--){var m=r.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")||An.DOMParser.fromSchema(e.state.schema),v=h.resolve(s),g=null,y=_.parse(r,{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:cr,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,a,r){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"==r&&(a-=s+Math.max(0,i-Math.min(s,l))-i),s<i&&e.size<t.size?(l=(i-=a<=i&&a>=s?i-a:0)+(l-s),s=i):l<i&&(s=(i-=a<=i&&a>=l?i-a:0)+(s-l),l=i),{start:i,endA:s,endB:l}}(h.content,m.doc.content,m.from,u,d);if(!_){if(!(a&&p instanceof jn.TextSelection&&!p.empty&&p.$head.sameParent(p.$anchor))||e.composing||m.sel&&m.sel.anchor!=m.sel.head){if(m.sel){var v=dr(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 jn.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)),$n.ie&&$n.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(($n.ios&&e.lastIOSEnter>Date.now()-225&&(!w||r.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!w&&y.pos<m.doc.content.size&&(g=jn.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,a,r){if(!a.parent.isTextblock||n-t<=r.pos-a.pos||pr(a,!0,!1)<r.pos)return!1;var i=e.resolve(t);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;var o=e.resolve(pr(i,!0,!0));return!(!o.parent.isTextblock||o.pos>n||pr(o,!0,!1)<n)&&a.parent.content.cut(a.parentOffset).eq(o.parent.content)}(f,_.start,_.endA,y,b)&&e.someProp("handleKeyDown",(function(t){return t(e,Gn(8,"Backspace"))})))$n.android&&$n.chrome&&e.domObserver.suppressSelectionUpdates();else{$n.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)$n.ie&&$n.ie_version<=11&&0==y.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return Ha(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,a,r,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)a=s[0],n="add",r=function(e){return e.mark(a.addToSet(e.marks))};else{if(0!=s.length||1!=l.length)return null;a=l[0],n="remove",r=function(e){return e.mark(a.removeFromSet(e.marks))}}for(var d=[],p=0;p<t.childCount;p++)d.push(r(t.child(p)));if(An.Fragment.from(d).eq(e))return{mark:a,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=dr(e,x.doc,m.sel);T&&!($n.chrome&&$n.android&&e.composing&&T.empty&&(T.head==S||T.head==x.mapping.map(C)-1)||$n.ie&&T.empty&&T.head==S)&&x.setSelection(T)}k&&x.ensureMarks(k),e.dispatch(x.scrollIntoView())}}}function dr(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Ka(e,t.resolve(n.anchor),t.resolve(n.head))}function pr(e,t,n){for(var a=e.depth,r=t?e.end():e.pos;a>0&&(t||e.indexAfter(a)==e.node(a).childCount);)a--,r++,t=!1;if(n)for(var i=e.node(a).maybeChild(e.indexAfter(a));i&&!i.isLeaf;)i=i.firstChild,r++;return r}function mr(e,t){for(var n=[],a=t.content,r=t.openStart,i=t.openEnd;r>1&&i>1&&1==a.childCount&&1==a.firstChild.childCount;){r--,i--;var o=a.firstChild;n.push(o.type.name,o.type.hasRequiredAttrs()?o.attrs:null),a=o.content}var s=e.someProp("clipboardSerializer")||An.DOMSerializer.fromSchema(e.state.schema),l=wr(),c=l.createElement("div");c.appendChild(s.serializeFragment(a,{document:l}));for(var u,d=c.firstChild;d&&1==d.nodeType&&(u=yr[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",r+" "+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 fr(e,t,n,a,r){var i,o,s=r.parent.type.spec.code;if(!n&&!t)return null;var l=t&&(a||s||!n);if(l){if(e.someProp("transformPastedText",(function(e){t=e(t,s||a)})),s)return new An.Slice(An.Fragment.from(e.state.schema.text(t)),0,0);var c=e.someProp("clipboardTextParser",(function(e){return e(t,r,a)}));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,a=wr().createElement("div"),r=/(?:<meta [^>]*>)*<([a-z][^>\s]+)/i.exec(e),i=0;(n=r&&yr[r[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join(""),i=n.length),a.innerHTML=e;for(var o=0;o<i;o++)a=a.firstChild;return a}(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")||An.DOMParser.fromSchema(e.state.schema);o=p.parseSlice(i,{preserveWhitespace:!(!l&&!d),context:r})}return o=d?function(e,t){if(!e.size)return e;var n,a=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}for(var r=e.content,i=e.openStart,o=e.openEnd,s=n.length-2;s>=0;s-=2){var l=a.nodes[n[s]];if(!l||l.hasRequiredAttrs())break;r=An.Fragment.from(l.create(n[s+1],r)),i++,o++}return new An.Slice(r,i,o)}(function(e,t,n){return t<e.openStart&&(e=new An.Slice(gr(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new An.Slice(gr(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}(o,+d[1],+d[2]),d[3]):An.Slice.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n=function(n){var a=t.node(n).contentMatchAt(t.index(n)),r=void 0,i=[];if(e.forEach((function(e){if(i){var t,n=a.findWrapping(e.type);if(!n)return i=null;if(t=i.length&&r.length&&_r(n,r,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=vr(i[i.length-1],r.length));var o=hr(e,n);i.push(o),a=a.matchType(o.type,o.attrs),r=n}}})),i)return{v:An.Fragment.from(i)}},a=t.depth;a>=0;a--){var r=n(a);if(r)return r.v}return e}(o.content,r),!1),e.someProp("transformPasted",(function(e){o=e(o)})),o}function hr(e,t,n){void 0===n&&(n=0);for(var a=t.length-1;a>=n;a--)e=t[a].create(null,An.Fragment.from(e));return e}function _r(e,t,n,a,r){if(r<e.length&&r<t.length&&e[r]==t[r]){var i=_r(e,t,n,a.lastChild,r+1);if(i)return a.copy(a.content.replaceChild(a.childCount-1,i));if(a.contentMatchAt(a.childCount).matchType(r==e.length-1?n.type:e[r+1]))return a.copy(a.content.append(An.Fragment.from(hr(n,e,r+1))))}}function vr(e,t){if(0==t)return e;var n=e.content.replaceChild(e.childCount-1,vr(e.lastChild,t-1)),a=e.contentMatchAt(e.childCount).fillBefore(An.Fragment.empty,!0);return e.copy(n.append(a))}function gr(e,t,n,a,r,i){var o=t<0?e.firstChild:e.lastChild,s=o.content;return r<a-1&&(s=gr(s,t,n,a,r+1,i)),r>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,e.childCount>1||i<=r).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(An.Fragment.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}var yr={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},br=null;function wr(){return br||(br=document.implementation.createHTMLDocument("title"))}var xr={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},kr=$n.ie&&$n.ie_version<=11,Dr=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};Dr.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},Dr.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var Mr=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]);$n.ie&&$n.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 Dr,kr&&(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};Mr.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},Mr.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},Mr.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,xr),kr&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},Mr.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()}kr&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},Mr.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},Mr.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},Mr.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},Mr.prototype.onSelectionChange=function(){if((!(e=this.view).editable||e.root.activeElement==e.dom)&&Za(e)){var e;if(this.suppressingSelectionUpdates)return Ha(this.view);if($n.ie&&$n.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()}},Mr.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},Mr.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},Mr.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)&&Za(this.view)&&!this.ignoreSelectionChange(t),a=-1,r=-1,i=!1,o=[];if(this.view.editable)for(var s=0;s<e.length;s++){var l=this.registerMutation(e[s],o);l&&(a=a<0?l.from:Math.min(l.from,a),r=r<0?l.to:Math.max(l.to,r),l.typeOver&&(i=!0))}if($n.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()}}(a>-1||n)&&(a>-1&&(this.view.docView.markDirty(a,r),p=this.view,Sr||(Sr=!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(a,r,i,o),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||Ha(this.view))}var p},Mr.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 a=e.previousSibling,r=e.nextSibling;if($n.ie&&$n.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)&&(a=s),(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(r=l)}for(var c=a&&a.parentNode==e.target?Hn(a)+1:0,u=n.localPosFromDOM(e.target,c,-1),d=r&&r.parentNode==e.target?Hn(r):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 Sr=!1,Cr={},Lr={};function Tr(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function Or(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return Er(e,t)})}))}function Er(e,t){return e.someProp("handleDOMEvents",(function(n){var a=n[t.type];return!!a&&(a(e,t)||t.defaultPrevented)}))}function jr(e){return{left:e.clientX,top:e.clientY}}function Ar(e,t,n,a,r){if(-1==a)return!1;for(var i=e.state.doc.resolve(a),o=function(a){if(e.someProp(t,(function(t){return a>i.depth?t(e,n,i.nodeAfter,i.before(a),r,!0):t(e,n,i.node(a),i.before(a),r,!1)})))return{v:!0}},s=i.depth+1;s>0;s--){var l=o(s);if(l)return l.v}return!1}function Pr(e,t,n){e.focused||e.focus();var a=e.state.tr.setSelection(t);"pointer"==n&&a.setMeta("pointer",!0),e.dispatch(a)}function $r(e,t,n,a,r){return Ar(e,"handleClickOn",t,n,a)||e.someProp("handleClick",(function(n){return n(e,t,a)}))||(r?function(e,t){if(-1==t)return!1;var n,a,r=e.state.selection;r instanceof jn.NodeSelection&&(n=r.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(jn.NodeSelection.isSelectable(s)){a=n&&r.$from.depth>0&&o>=r.$from.depth&&i.before(r.$from.depth+1)==r.$from.pos?i.before(r.$from.depth):i.before(o);break}}return null!=a&&(Pr(e,jn.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&&jn.NodeSelection.isSelectable(a))&&(Pr(e,new jn.NodeSelection(n),"pointer"),!0)}(e,n))}function Yr(e,t,n,a){return Ar(e,"handleDoubleClickOn",t,n,a)||e.someProp("handleDoubleClick",(function(n){return n(e,t,a)}))}function zr(e,t,n,a){return Ar(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&&(Pr(e,jn.TextSelection.create(n,0,n.content.size),"pointer"),!0);for(var a=n.resolve(t),r=a.depth+1;r>0;r--){var i=r>a.depth?a.nodeAfter:a.node(r),o=a.before(r);if(i.inlineContent)Pr(e,jn.TextSelection.create(n,o+1,o+1+i.content.size),"pointer");else{if(!jn.NodeSelection.isSelectable(i))continue;Pr(e,jn.NodeSelection.create(n,o),"pointer")}return!0}}(e,n)}function Nr(e){return Vr(e)}Lr.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!Hr(e,t))if(e.domObserver.forceFlush(),e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!$n.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",(function(n){return n(e,t)}))||lr(e,t)?t.preventDefault():Tr(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)}},Lr.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},Lr.keypress=function(e,t){if(!(Hr(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||$n.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof jn.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 Ir=$n.mac?"metaKey":"ctrlKey";Cr.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=Nr(e),a=Date.now(),r="singleClick";a-e.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,a=t.y-e.clientY;return n*n+a*a<100}(t,e.lastClick)&&!t[Ir]&&("singleClick"==e.lastClick.type?r="doubleClick":"doubleClick"==e.lastClick.type&&(r="tripleClick")),e.lastClick={time:a,x:t.clientX,y:t.clientY,type:r};var i=e.posAtCoords(jr(t));i&&("singleClick"==r?e.mouseDown=new Fr(e,i,t,n):("doubleClick"==r?Yr:zr)(e,i.pos,i.inside,t)?t.preventDefault():Tr(e,"pointer"))};var Fr=function(e,t,n,a){var r,i,o=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=a,this.selectNode=n[Ir],this.allowDefault=n.shiftKey,t.inside>-1)r=e.state.doc.nodeAt(t.inside),i=t.inside;else{var s=e.state.doc.resolve(t.pos);r=s.parent,i=s.depth?s.before():0}this.mightDrag=null;var l=a?null:n.target,c=l?e.docView.nearestDesc(l,!0):null;this.target=c?c.dom:null,(r.type.spec.draggable&&!1!==r.type.spec.selectable||e.state.selection instanceof jn.NodeSelection&&i==e.state.selection.from)&&(this.mightDrag={node:r,pos:i,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&$n.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)),Tr(e,"pointer")};function Hr(e,t){return!!e.composing||!!($n.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}Fr.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},Fr.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(jr(e))),this.allowDefault||!t?Tr(this.view,"pointer"):$r(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():this.flushed||$n.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||$n.chrome&&!(this.view.state.selection instanceof jn.TextSelection)&&(t.pos==this.view.state.selection.from||t.pos==this.view.state.selection.to)?(Pr(this.view,jn.Selection.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Tr(this.view,"pointer")}},Fr.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),Tr(this.view,"pointer")},Cr.touchdown=function(e){Nr(e),Tr(e,"pointer")},Cr.contextmenu=function(e){return Nr(e)};var Rr=$n.android?5e3:-1;function Br(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return Vr(e)}),t))}function qr(e){for(e.composing=!1;e.compositionNodes.length>0;)e.compositionNodes.pop().markParentsDirty()}function Vr(e,t){if(e.domObserver.forceFlush(),qr(e),t||e.docView.dirty){var n=Fa(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}Lr.compositionstart=Lr.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(),Vr(e,!0),e.markCursor=null;else if(Vr(e),$n.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var a=e.root.getSelection(),r=a.focusNode,i=a.focusOffset;r&&1==r.nodeType&&0!=i;){var o=i<0?r.lastChild:r.childNodes[i-1];if(!o)break;if(3==o.nodeType){a.collapse(o,o.nodeValue.length);break}r=o,i=-1}e.composing=!0}Br(e,Rr)},Lr.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,Br(e,20))};var Wr=$n.ie&&$n.ie_version<15||$n.ios&&$n.webkit_version<604;function Ur(e,t,n,a){var r=fr(e,t,n,e.shiftKey,e.state.selection.$from);if(!e.someProp("handlePaste",(function(t){return t(e,a,r||An.Slice.empty)}))&&r){var i=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(r),o=i?e.state.tr.replaceSelectionWith(i,e.shiftKey):e.state.tr.replaceSelection(r);e.dispatch(o.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste"))}}Cr.copy=Lr.cut=function(e,t){var n=e.state.selection,a="cut"==t.type;if(!n.empty){var r=Wr?null:t.clipboardData,i=mr(e,n.content()),o=i.dom,s=i.text;r?(t.preventDefault(),r.clearData(),r.setData("text/html",o.innerHTML),r.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 a=getSelection(),r=document.createRange();r.selectNodeContents(t),e.dom.blur(),a.removeAllRanges(),a.addRange(r),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,o),a&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},Lr.paste=function(e,t){var n=Wr?null:t.clipboardData,a=n&&n.getData("text/html"),r=n&&n.getData("text/plain");n&&(a||r||n.files.length)?(Ur(e,r,a,t),t.preventDefault()):function(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,a=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(a.contentEditable="true"),a.style.cssText="position: fixed; left: -10000px; top: 10px",a.focus(),setTimeout((function(){e.focus(),a.parentNode&&a.parentNode.removeChild(a),n?Ur(e,a.value,null,t):Ur(e,a.textContent,a.innerHTML,t)}),50)}}(e,t)};var Kr=function(e,t){this.slice=e,this.move=t},Zr=$n.mac?"altKey":"ctrlKey";for(var Gr in Cr.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var a=e.state.selection,r=a.empty?null:e.posAtCoords(jr(t));if(r&&r.pos>=a.from&&r.pos<=(a instanceof jn.NodeSelection?a.to-1:a.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(jn.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(jn.NodeSelection.create(e.state.doc,i.posBefore)))}var o=e.state.selection.content(),s=mr(e,o),l=s.dom,c=s.text;t.dataTransfer.clearData(),t.dataTransfer.setData(Wr?"Text":"text/html",l.innerHTML),Wr||t.dataTransfer.setData("text/plain",c),e.dragging=new Kr(o,!t[Zr])}},Cr.dragend=function(e){window.setTimeout((function(){return e.dragging=null}),50)},Lr.dragover=Lr.dragenter=function(e,t){return t.preventDefault()},Lr.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var a=e.posAtCoords(jr(t));if(a){var r=e.state.doc.resolve(a.pos);if(r){var i=n&&n.slice||fr(e,t.dataTransfer.getData(Wr?"Text":"text/plain"),Wr?null:t.dataTransfer.getData("text/html"),!1,r),o=n&&!t[Zr];if(e.someProp("handleDrop",(function(n){return n(e,t,i||An.Slice.empty,o)})))t.preventDefault();else if(i){t.preventDefault();var s=i?Object(Pn.h)(e.state.doc,r.pos,i):r.pos;null==s&&(s=r.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&&jn.NodeSelection.isSelectable(i.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(i.content.firstChild))l.setSelection(new jn.NodeSelection(p));else{var m=l.mapping.map(s);l.mapping.maps[l.mapping.maps.length-1].forEach((function(e,t,n,a){return m=a})),l.setSelection(Ka(e,p,l.doc.resolve(m)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}}}}}},Cr.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())&&Ha(e)}),20))},Cr.blur=function(e){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),e.domObserver.currentSelection.set({}),e.focused=!1)},Cr.beforeinput=function(e,t){if($n.chrome&&$n.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)}},Lr)Cr[Gr]=Lr[Gr];function Jr(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var a in t)if(!(a in e))return!1;return!0}var Xr=function(e,t){this.spec=t||ri,this.side=this.spec.side||0,this.toDOM=e};Xr.prototype.map=function(e,t,n,a){var r=e.mapResult(t.from+a,this.side<0?-1:1),i=r.pos;return r.deleted?null:new ti(i-n,i-n,this)},Xr.prototype.valid=function(){return!0},Xr.prototype.eq=function(e){return this==e||e instanceof Xr&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Jr(this.spec,e.spec))};var Qr=function(e,t){this.spec=t||ri,this.attrs=e};Qr.prototype.map=function(e,t,n,a){var r=e.map(t.from+a,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+a,this.spec.inclusiveEnd?1:-1)-n;return r>=i?null:new ti(r,i,this)},Qr.prototype.valid=function(e,t){return t.from<t.to},Qr.prototype.eq=function(e){return this==e||e instanceof Qr&&Jr(this.attrs,e.attrs)&&Jr(this.spec,e.spec)},Qr.is=function(e){return e.type instanceof Qr};var ei=function(e,t){this.spec=t||ri,this.attrs=e};ei.prototype.map=function(e,t,n,a){var r=e.mapResult(t.from+a,1);if(r.deleted)return null;var i=e.mapResult(t.to+a,-1);return i.deleted||i.pos<=r.pos?null:new ti(r.pos-n,i.pos-n,this)},ei.prototype.valid=function(e,t){var n=e.content.findIndex(t.from),a=n.index,r=n.offset;return r==t.from&&r+e.child(a).nodeSize==t.to},ei.prototype.eq=function(e){return this==e||e instanceof ei&&Jr(this.attrs,e.attrs)&&Jr(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 Xr(t,n))},ti.inline=function(e,t,n,a){return new ti(e,t,new Qr(n,a))},ti.node=function(e,t,n,a){return new ti(e,t,new ei(n,a))},ni.spec.get=function(){return this.type.spec},ni.inline.get=function(){return this.type instanceof Qr},Object.defineProperties(ti.prototype,ni);var ai=[],ri={},ii=function(e,t){this.local=e&&e.length?e:ai,this.children=t&&t.length?t:ai};ii.create=function(e,t){return t.length?di(t,e,0,ri):oi},ii.prototype.find=function(e,t,n){var a=[];return this.findInner(null==e?0:e,null==t?1e9:t,a,0,n),a},ii.prototype.findInner=function(e,t,n,a,r){for(var i=0;i<this.local.length;i++){var o=this.local[i];o.from<=t&&o.to>=e&&(!r||r(o.spec))&&n.push(o.copy(o.from+a,o.to+a))}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,a+l,r)}},ii.prototype.map=function(e,t,n){return this==oi||0==e.maps.length?this:this.mapInner(e,t,0,0,n||ri)},ii.prototype.mapInner=function(e,t,n,a,r){for(var i,o=0;o<this.local.length;o++){var s=this.local[o].map(e,n,a);s&&s.type.valid(t,s)?(i||(i=[])).push(s):r.onRemove&&r.onRemove(this.local[o].spec)}return this.children.length?function(e,t,n,a,r,i,o){for(var s=e.slice(),l=function(e,t,n,a){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>=r&&(c=a-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-r;if(m<0||m>=a.content.size){u=!0;continue}var f=n.map(e[d+1]+i,-1)-r,h=a.content.findIndex(m),_=h.index,v=h.offset,g=a.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,a,r,i,o){function s(e,t){for(var i=0;i<e.local.length;i++){var l=e.local[i].map(a,r,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,r,i,o),a,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,a,r):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 a,r=this,i=0;e.forEach((function(e,o){var s,l=o+n;if(s=ci(t,e,l)){for(a||(a=r.children.slice());i<a.length&&a[i]<o;)i+=3;a[i]==o?a[i+2]=a[i+2].addInner(e,s,l+1):a.splice(i,0,o,o+e.nodeSize,di(s,e,l+1,ri)),i+=3}}));var o=li(i?ui(t):t,-n);return new ii(o.length?this.local.concat(o).sort(pi):this.local,a||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,a=this.local,r=0;r<n.length;r+=3){for(var i=void 0,o=n[r]+t,s=n[r+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[r+2].removeInner(i,o+1);u!=oi?n[r+2]=u:(n.splice(r,3),r-=3)}}if(a.length)for(var d=0,p=void 0;d<e.length;d++)if(p=e[d])for(var m=0;m<a.length;m++)a[m].eq(p,t)&&(a==this.local&&(a=this.local.slice()),a.splice(m--,1));return n==this.children&&a==this.local?this:a.length||n.length?new ii(a,n):oi},ii.prototype.forChild=function(e,t){if(this==oi)return this;if(t.isLeaf)return ii.empty;for(var n,a,r=0;r<this.children.length;r+=3)if(this.children[r]>=e){this.children[r]==e&&(n=this.children[r+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 Qr){var c=Math.max(i,l.from)-i,u=Math.min(o,l.to)-i;c<u&&(a||(a=[])).push(l.copy(c,u))}}if(a){var d=new ii(a.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 ai;if(e.inlineContent||!this.local.some(Qr.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof Qr||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=[],a=0;a<e.length;a++){var r=e[a];n.push(new ti(r.from+t,r.to+t,r.type))}return n}function ci(e,t,n){if(t.isLeaf)return null;for(var a=n+t.nodeSize,r=null,i=0,o=void 0;i<e.length;i++)(o=e[i])&&o.from>n&&o.to<a&&((r||(r=[])).push(o),e[i]=null);return r}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,a){var r=[],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,a);l!=oi&&r.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])||(a.onRemove&&a.onRemove(o[s].spec),o.splice(s--,1));return o.length||r.length?new ii(o,r):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 a=t[n];if(a.from!=a.to)for(var r=n+1;r<t.length;r++){var i=t[r];if(i.from!=a.from){i.from<a.to&&(t==e&&(t=e.slice()),t[n]=a.copy(a.from,i.from),fi(t,r,a.copy(i.from,a.to)));break}i.to!=a.to&&(t==e&&(t=e.slice()),t[r]=i.copy(i.from,a.to),fi(t,r+1,i.copy(a.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 a=n(e.state);a&&a!=oi&&t.push(a)})),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=[],a=0;a<this.members.length;a++){var r=this.members[a].forChild(e,t);r!=oi&&(r instanceof si?n=n.concat(r.members):n.push(r))}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,a=0;a<this.members.length;a++){var r=this.members[a].localsInner(e);if(r.length)if(t){n&&(t=t.slice(),n=!1);for(var i=0;i<r.length;i++)t.push(r[i])}else t=r}return t?mi(n?t:t.sort(pi)):ai},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=Da(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 Mr(e,(function(t,n,a,r){return ur(e,t,n,a,r)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=Cr[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)||Er(e,t)||!e.editable&&t.type in Lr||n(e,t)})};for(var n in Cr)t(n);$n.safari&&e.dom.addEventListener("input",(function(){return null})),Or(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 a in n)"class"==a?t.class+=" "+n[a]:t[a]||"contenteditable"==a||"nodeName"==a||(t[a]=String(n[a]))})),[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&&Or(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 a in t.state=this.state,e)t[a]=e[a];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,a=this.state,r=!1,i=!1;if(e.storedMarks&&this.composing&&(qr(this),i=!0),this.state=e,t){var o=wi(this);(function(e,t){var n=0,a=0;for(var r in e){if(e[r]!=t[r])return!0;n++}for(var i in t)a++;return n!=a})(o,this.nodeViews)&&(this.nodeViews=o,r=!0),Or(this)}this.editable=bi(this),yi(this);var s=hi(this),l=gi(this),c=t?"reset":e.scrollToSelection>a.scrollToSelection?"to selection":"preserve",u=r||!this.docView.matchesNode(e.doc,l,s);!u&&e.selection.eq(a.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,a=e.dom.getBoundingClientRect(),r=Math.max(0,a.top),i=(a.left+a.right)/2,o=r+1;o<Math.min(innerHeight,a.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>=r-20){t=s,n=l.top;break}}}return{refDOM:t,refTop:n,stack:ta(e.dom)}}(this);if(i){this.domObserver.stop();var k=u&&($n.ie||$n.chrome)&&!this.composing&&!a.selection.empty&&!e.selection.empty&&(f=a.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=$n.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!r&&this.docView.update(e.doc,l,s,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Da(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)))?Ha(this,k):(Wa(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(a),"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 jn.NodeSelection?ea(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),M):ea(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,na(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 a=0;a<this.state.plugins.length;a++){var r=this.state.plugins[a];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}},_i.prototype.someProp=function(e,t){var n,a=this._props&&this._props[e];if(null!=a&&(n=t?t(a):a))return n;var r=this.state.plugins;if(r)for(var i=0;i<r.length;i++){var o=r[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(aa)return e.focus(aa);var t=ta(e);e.focus(null==aa?{get preventScroll(){return aa={preventScroll:!0},!0}}:void 0),aa||(aa=!1,na(t,0))}(this.dom),Ha(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 sa(this,e)},_i.prototype.coordsAtPos=function(e){return ca(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 a=this.docView.posFromDOM(e,t,n);if(null==a)throw new RangeError("DOM position not inside the editor");return a},_i.prototype.endOfTextblock=function(e,t){return _a(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){Er(e,t)||!Cr[t.type]||!e.editable&&t.type in Lr||Cr[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 a=function(e){return n[t](e)};return e.dom.addEventListener(t,a),{name:t,handler:a}}))};xi.prototype.destroy=function(){var e=this;this.handlers.forEach((function(t){var n=t.name,a=t.handler;return e.editorView.dom.removeEventListener(n,a)}))},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,a=t.nodeAfter;if(n||a){var r=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0)).getBoundingClientRect(),i=n?r.bottom:r.top;n&&a&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:r.left,right:r.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(Pn.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,a){var r=n.resolve(a.map(this.head));return t.valid(r)?new t(r):e.near(r)},t.prototype.content=function(){return An.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 a=e.node(t).child(n-1);;a=a.lastChild){if(0==a.childCount&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}(e)||!function(e){for(var t=e.depth;t>=0;t--){var n=e.indexAfter(t),a=e.node(t);if(n!=a.childCount)for(var r=a.child(n);;r=r.firstChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}(e))return!1;var n=t.type.spec.allowGapCursor;if(null!=n)return n;var a=t.contentMatchAt(e.index()).defaultType;return a&&a.isTextblock},t.findFrom=function(e,n,a){e:for(;;){if(!a&&t.valid(e))return e;for(var r=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;r+=n;var l=e.doc.resolve(r);if(t.valid(l))return l}for(;;){var c=n>0?i.firstChild:i.lastChild;if(!c){if(i.isAtom&&!i.isText&&!jn.NodeSelection.isSelectable(i)){e=e.doc.resolve(r+i.nodeSize*n),a=!1;continue e}break}i=c,r+=n;var u=e.doc.resolve(r);if(t.valid(u))return u}return null}},t}(jn.Selection);Mi.prototype.visible=!1,jn.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):jn.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,a,r){var i=e.selection,o=t>0?i.$to:i.$from,s=i.empty;if(i instanceof jn.TextSelection){if(!r.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&&(a&&a(e.tr.setSelection(new Mi(l))),!0)}}function Ti(e,t,n){if(!e.editable)return!1;var a=e.state.doc.resolve(t);if(!Mi.valid(a))return!1;var r=e.posAtCoords({left:n.clientX,top:n.clientY}).inside;return!(r>-1&&jn.NodeSelection.isSelectable(e.state.doc.nodeAt(r))||(e.dispatch(e.state.tr.setSelection(new Mi(a))),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 ji(e,t){for(;e;e="start"==t?e.firstChild:e.lastChild)if(e.isTextblock)return!0;return!1}function Ai(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 Pi(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 $i(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,a=n.$head,r=n.$anchor;if(!a.parent.type.spec.code||!a.sameParent(r))return!1;var i=a.node(-1),o=a.indexAfter(-1),s=$i(i.contentMatchAt(o));if(!i.canReplaceWith(o,o,s))return!1;if(t){var l=a.after(),c=e.tr.replaceWith(l,l,s.createAndFill());c.setSelection(jn.Selection.near(c.doc.resolve(l),1)),t(c.scrollIntoView())}return!0}function zi(e,t){var n=e.selection,a=n.$from,r=n.$to;if(e.selection instanceof jn.NodeSelection&&e.selection.node.isBlock)return!(!a.parentOffset||!Object(Pn.g)(e.doc,a.pos)||(t&&t(e.tr.split(a.pos).scrollIntoView()),0));if(!a.parent.isBlock)return!1;if(t){var i=r.parentOffset==r.parent.content.size,o=e.tr;e.selection instanceof jn.TextSelection&&o.deleteSelection();var s=0==a.depth?null:$i(a.node(-1).contentMatchAt(a.indexAfter(-1))),l=i&&s?[{type:s}]:null,c=Object(Pn.g)(o.doc,o.mapping.map(a.pos),1,l);l||c||!Object(Pn.g)(o.doc,o.mapping.map(a.pos),1,s&&[{type:s}])||(l=[{type:s}],c=!0),c&&(o.split(o.mapping.map(a.pos),1,l),i||a.parentOffset||a.parent.type==s||!a.node(-1).canReplace(a.index(-1),a.indexAfter(-1),An.Fragment.from(s.create(),a.parent))||o.setNodeMarkup(o.mapping.map(a.before()),s)),t(o.scrollIntoView())}return!0}function Ni(e,t,n){var a,r,i=t.nodeBefore,o=t.nodeAfter;if(i.type.spec.isolating||o.type.spec.isolating)return!1;if(function(e,t,n){var a=t.nodeBefore,r=t.nodeAfter,i=t.index();return!(!(a&&r&&a.type.compatibleContent(r.type))||(!a.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-a.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(i,i+1)||!r.isTextblock&&!Object(Pn.f)(e.doc,t.pos)||(n&&n(e.tr.clearIncompatible(t.pos,a.type,a.contentMatchAt(a.childCount)).join(t.pos).scrollIntoView()),0)))}(e,t,n))return!0;if(t.parent.canReplace(t.index(),t.index()+1)&&(a=(r=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&r.matchType(a[0]||o.type).validEnd){if(n){for(var s=t.pos+o.nodeSize,l=An.Fragment.empty,c=a.length-1;c>=0;c--)l=An.Fragment.from(a[c].create(null,l));l=An.Fragment.from(i.copy(l));var u=e.tr.step(new Pn.b(t.pos-1,s,t.pos,s,new An.Slice(l,1,0),a.length,!0)),d=s+2*a.length;Object(Pn.f)(u.doc,d)&&u.join(d),n(u.scrollIntoView())}return!0}var p=jn.Selection.findFrom(t,1),m=p&&p.$from.blockRange(p.$to),f=m&&Object(Pn.k)(m);return null!=f&&f>=t.depth&&(n&&n(e.tr.lift(m,f).scrollIntoView()),!0)}function Ii(e,t){return function(n,a){var r=n.selection,i=r.from,o=r.to,s=!1;return n.doc.nodesBetween(i,o,(function(a,r){if(s)return!1;if(a.isTextblock&&!a.hasMarkup(e,t))if(a.type==e)s=!0;else{var i=n.doc.resolve(r),o=i.index();s=i.parent.canReplaceWith(o,o+1,e)}})),!!s&&(a&&a(n.tr.setBlockType(i,o,e,t).scrollIntoView()),!0)}}function Fi(e,t){return function(n,a){var r=n.selection,i=r.empty,o=r.$cursor,s=r.ranges;if(i&&!o||!function(e,t,n){for(var a=function(a){var r=t[a],i=r.$from,o=r.$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}},r=0;r<t.length;r++){var i=a(r);if(i)return i.v}return!1}(n.doc,s,e))return!1;if(a)if(o)e.isInSet(n.storedMarks||o.marks())?a(n.tr.removeStoredMark(e)):a(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))}a(c.scrollIntoView())}return!0}}function Hi(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t,n,a){for(var r=0;r<e.length;r++)if(e[r](t,n,a))return!0;return!1}}var Ri=Hi(Ei,(function(e,t,n){var a=e.selection.$cursor;if(!a||(n?!n.endOfTextblock("backward",e):a.parentOffset>0))return!1;var r=Ai(a);if(!r){var i=a.blockRange(),o=i&&Object(Pn.k)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)}var s=r.nodeBefore;if(!s.type.spec.isolating&&Ni(e,r,t))return!0;if(0==a.parent.content.size&&(ji(s,"end")||jn.NodeSelection.isSelectable(s))){if(t){var l=e.tr.deleteRange(a.before(),a.after());l.setSelection(ji(s,"end")?jn.Selection.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):jn.NodeSelection.create(l.doc,r.pos-s.nodeSize)),t(l.scrollIntoView())}return!0}return!(!s.isAtom||r.depth!=a.depth-1||(t&&t(e.tr.delete(r.pos-s.nodeSize,r.pos).scrollIntoView()),0))}),(function(e,t,n){var a=e.selection,r=a.$head,i=r;if(!a.empty)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;i=Ai(r)}var o=i&&i.nodeBefore;return!(!o||!jn.NodeSelection.isSelectable(o)||(t&&t(e.tr.setSelection(jn.NodeSelection.create(e.doc,i.pos-o.nodeSize)).scrollIntoView()),0))})),Bi=Hi(Ei,(function(e,t,n){var a=e.selection.$cursor;if(!a||(n?!n.endOfTextblock("forward",e):a.parentOffset<a.parent.content.size))return!1;var r=Pi(a);if(!r)return!1;var i=r.nodeAfter;if(Ni(e,r,t))return!0;if(0==a.parent.content.size&&(ji(i,"start")||jn.NodeSelection.isSelectable(i))){if(t){var o=e.tr.deleteRange(a.before(),a.after());o.setSelection(ji(i,"start")?jn.Selection.findFrom(o.doc.resolve(o.mapping.map(r.pos)),1):jn.NodeSelection.create(o.doc,o.mapping.map(r.pos))),t(o.scrollIntoView())}return!0}return!(!i.isAtom||r.depth!=a.depth-1||(t&&t(e.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),0))}),(function(e,t,n){var a=e.selection,r=a.$head,i=r;if(!a.empty)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;i=Pi(r)}var o=i&&i.nodeAfter;return!(!o||!jn.NodeSelection.isSelectable(o)||(t&&t(e.tr.setSelection(jn.NodeSelection.create(e.doc,i.pos)).scrollIntoView()),0))})),qi={Enter:Hi((function(e,t){var n=e.selection,a=n.$head,r=n.$anchor;return!(!a.parent.type.spec.code||!a.sameParent(r)||(t&&t(e.tr.insertText("\n").scrollIntoView()),0))}),(function(e,t){var n=e.selection,a=n.$from,r=n.$to;if(a.parent.inlineContent||r.parent.inlineContent)return!1;var i=$i(a.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){var o=(!a.parentOffset&&r.index()<r.parent.childCount?a:r).pos,s=e.tr.insert(o,i.createAndFill());s.setSelection(jn.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 a=n.before();if(Object(Pn.g)(e.doc,a))return t&&t(e.tr.split(a).scrollIntoView()),!0}var r=n.blockRange(),i=r&&Object(Pn.k)(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)}),zi),"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 jn.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,a,r){var i=n;if(t[1]){var o=t[0].lastIndexOf(t[1]);i+=t[0].slice(o+t[1].length);var s=(a+=o)-r;s>0&&(i=t[0].slice(o-s,o)+i,a=r)}return e.tr.insertText(i,a,r)}):t};function Zi(e,t,n,a,r,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,"")+a,c=0;c<r.length;c++){var u=r[c].match.exec(l),d=u&&r[c].handler(o,u,t-(u[0].length-a.length),n);if(d)return e.dispatch(d.setMeta(i,{transform:d,from:t,to:n,text:a})),!0}return!1}function Gi(e,t){for(var n=e.plugins,a=0;a<n.length;a++){var r=n[a],i=void 0;if(r.spec.isInputRules&&(i=r.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:a}=e.selection;let r=[];e.doc.nodesBetween(n,a,(e=>{r=[...r,...e.marks]}));const i=r.find((e=>e.type.name===t.name));return i?i.attrs:{}}function Qi(e,t){const{from:n,to:a}=e.selection;let r=[];e.doc.nodesBetween(n,a,(e=>{r=[...r,e]}));const i=r.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 a=n.node.marks.find((e=>e.type===t));if(!a)return!1;let r=e.index(),i=e.start()+n.offset,o=r+1,s=i+n.node.nodeSize;for(;r>0&&a.isInSet(e.parent.child(r-1).marks);)r-=1,i-=e.parent.child(r).nodeSize;for(;o<e.parent.childCount&&a.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 a=Object(Ji.findSelectedNodeOfType)(t)(e.selection)||Object(Ji.findParentNode)((e=>e.type===t))(e.selection);return Object.keys(n).length&&a?a.node.hasMarkup(t,{...a.node.attrs,...n}):!!a}var no=n("8bbf"),ao=n.n(no);function ro(e,t){return function(n,a){var r=n.selection,i=r.$from,o=r.$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 An.NodeRange(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new An.NodeRange(i,n.doc.resolve(o.end(s.depth)),s.depth)),l=!0}var d=Object(Pn.i)(c,e,t,s);return!!d&&(a&&a(function(e,t,n,a,r){for(var i=An.Fragment.empty,o=n.length-1;o>=0;o--)i=An.Fragment.from(n[o].type.create(n[o].attrs,i));e.step(new Pn.b(t.start-(a?2:0),t.end,t.start,t.end,new An.Slice(i,0,0),n.length,!0));for(var s=0,l=0;l<n.length;l++)n[l].type==r&&(s=l+1);for(var c=n.length-s,u=t.start+n.length-(a?2:0),d=t.parent,p=t.startIndex,m=t.endIndex,f=!0;p<m;p++,f=!1)!f&&Object(Pn.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 a=t.selection,r=a.$from,i=a.$to,o=r.blockRange(i,(function(t){return t.childCount&&t.firstChild.type==e}));return!!o&&(!n||(r.node(o.depth-1).type==e?function(e,t,n,a){var r=e.tr,i=a.end,o=a.$to.end(a.depth);return i<o&&(r.step(new Pn.b(i-1,o,i,o,new An.Slice(An.Fragment.from(n.create(null,a.parent.copy())),1,0),1,!0)),a=new An.NodeRange(r.doc.resolve(a.$from.pos),r.doc.resolve(o),a.depth)),t(r.lift(a,Object(Pn.k)(a)).scrollIntoView()),!0}(t,n,e,o):function(e,t,n){for(var a=e.tr,r=n.parent,i=n.end,o=n.endIndex-1,s=n.startIndex;o>s;o--)i-=r.child(o).nodeSize,a.delete(i-1,i+1);var l=a.doc.resolve(n.start),c=l.nodeAfter,u=0==n.startIndex,d=n.endIndex==r.childCount,p=l.node(-1),m=l.index(-1);if(!p.canReplace(m+(u?0:1),m+1,c.content.append(d?An.Fragment.empty:An.Fragment.from(r))))return!1;var f=l.pos,h=f+c.nodeSize;return a.step(new Pn.b(f-(u?1:0),h+(d?1:0),f+1,h-1,new An.Slice((u?An.Fragment.empty:An.Fragment.from(r.copy(An.Fragment.empty))).append(d?An.Fragment.empty:An.Fragment.from(r.copy(An.Fragment.empty))),u?0:1,d?0:1),u?0:1)),t(a.scrollIntoView()),!0}(t,n,o)))}}function oo(e){return function(t,n){var a=t.selection,r=a.$from,i=a.$to,o=r.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=An.Fragment.from(u?e.create():null),p=new An.Slice(An.Fragment.from(e.create(null,An.Fragment.from(l.type.create(null,d)))),u?3:1,0),m=o.start,f=o.end;n(t.tr.step(new Pn.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,a,r){var i=n;if(t[1]){var o=t[0].lastIndexOf(t[1]);i+=t[0].slice(o+t[1].length);var s=(a+=o)-r;s>0&&(i=t[0].slice(o-s,o)+i,a=r)}return e.tr.insertText(i,a,r)}):t};function lo(e,t,n,a){return new so(e,(function(e,r,i,o){var s=n instanceof Function?n(r):n,l=e.tr.delete(i,o),c=l.doc.resolve(i).blockRange(),u=c&&Object(Pn.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(Pn.f)(l.doc,i-1)&&(!a||a(r,d))&&l.join(i-1),l}))}function co(e,t,n){return new so(e,(function(e,a,r,i){var o=e.doc.resolve(r),s=n instanceof Function?n(a):n;return o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t)?e.tr.delete(r,i).setBlockType(r,r,t,s):null}))}function uo(e,t,n){return new so(e,((e,a,r,i)=>{const o=n instanceof Function?n(a):n,{tr:s}=e,l=a.length-1;let c=i,u=r;if(a[l]){const n=r+a[0].indexOf(a[l-1]),o=n+a[l-1].length-1,d=n+a[l-1].lastIndexOf(a[l]),p=d+a[l].length;if(function(e,t,n){let a=[];return n.doc.nodesBetween(e,t,((e,t)=>{a=[...a,...e.marks.map((n=>({start:t,end:t+e.nodeSize,mark:n})))]})),a}(r,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+a[l].length}return s.addMark(u,c,t.create(o)),s.removeStoredMark(t),s}))}function po(e,t,n){const a=r=>{const i=[];return r.forEach((r=>{if(r.isText){const{text:a}=r;let o,s=0;do{if(o=e.exec(a),o){const e=o.index,a=e+o[0].length,l=n instanceof Function?n(o[0]):n;e>0&&i.push(r.cut(s,e)),i.push(r.cut(e,a).mark(t.create(l).addToSet(r.marks))),s=a}}while(o);s<a.length&&i.push(r.cut(s))}else i.push(r.copy(a(r.content)))})),An.Fragment.fromArray(i)};return new jn.Plugin({props:{transformPasted:e=>new An.Slice(a(e.content),e.openStart,e.openEnd)}})}function mo(e,t,n){const a=(r,i)=>{const o=[];return r.forEach((r=>{if(r.isText){const{text:a,marks:s}=r;let l,c=0;const u=!!s.filter((e=>"link"===e.type.name))[0];for(;!u&&null!==(l=e.exec(a));)if(i&&i.type.allowsMarkType(t)&&l[1]){const e=l.index,a=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(r.cut(c,e)),o.push(r.cut(i,s).mark(t.create(u).addToSet(r.marks))),c=a}c<a.length&&o.push(r.cut(c))}else o.push(r.copy(a(r.content,r)))})),An.Fragment.fromArray(o)};return new jn.Plugin({props:{transformPasted:e=>new An.Slice(a(e.content),e.openStart,e.openEnd)}})}function fo(e,t,n={}){return(a,r,i)=>to(a,e,n)?Ii(t)(a,r,i):Ii(e,n)(a,r,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,a,r)=>{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,a,r);if(ho(u.node,i)&&e.validContent(u.node.content)){const{tr:t}=n;return t.setNodeMarkup(u.pos,e),a&&a(t),!1}}return ro(e)(n,a,r)}}function vo(e,t={}){return(n,a,r)=>to(n,e,t)?function(e,t){var n=e.selection,a=n.$from,r=n.$to,i=a.blockRange(r),o=i&&Object(Pn.k)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)}(n,a):function(e,t){return function(n,a){var r=n.selection,i=r.$from,o=r.$to,s=i.blockRange(o),l=s&&Object(Pn.i)(s,e,t);return!!l&&(a&&a(n.tr.wrap(s,l).scrollIntoView()),!0)}}(e,t)(n,a,r)}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:a,node:r,view:i,decorations:o,getPos:s}){this.component=e,this.editor=t,this.extension=n,this.parent=a,this.node=r,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=ao.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=ao.a.config.silent;ao.a.config.silent=!0,Object.entries(e).forEach((([e,t])=>{this.vm._props[e]=t})),ao.a.config.silent=t}updateAttrs(e){if(!this.view.editable)return;const{state:t}=this.view,{type:n}=this.node,a=this.getPos(),r={...this.node.attrs,...e},i=this.isMark?t.tr.removeMark(a.from,a.to,n).addMark(a.from,a.to,n.create(r)):t.tr.setNodeMarkup(a,null,r);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,a="paste"===e.type,r="cut"===e.type,i=e.type.startsWith("drag")||"drop"===e.type;return!(t&&i||n||a||r)&&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,a){const r=t[n]!==a;return Object.assign(t,{[n]:a}),r&&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,a)=>{const{name:r,type:i}=a,o={},s=a.commands({schema:e,...["node","mark"].includes(i)?{type:e["".concat(i,"s")][r]}:{}}),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(r,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:a}=n;a?n.insertBefore(t,a):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 An.Schema({topNode:this.options.topNode,nodes:this.nodes,marks:this.marks})}createState(){return jn.EditorState.create({schema:this.schema,doc:this.createDocument(this.options.content),plugins:[...this.plugins,(t={rules:this.inputRules},n=t.rules,a=new jn.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,r,i){return Zi(e,t,r,i,n,a)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var t=e.state.selection.$cursor;t&&Zi(e,t.pos,t.pos,"",n,a)}))}}},isInputRules:!0}),a),...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 jn.Plugin({view:function(t){return new xi(t,e)}}))]:[],...this.options.enableGapCursor?[new jn.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 jn.Plugin({key:new jn.PluginKey("editable"),props:{editable:()=>this.options.editable}}),new jn.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 jn.Plugin({props:this.options.editorProps})]});var e,t,n,a}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>"),a=(new window.DOMParser).parseFromString(n,"text/html").body.firstElementChild;return An.DOMParser.fromSchema(this.schema).parse(a,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,a,r,i)=>{const o=n.view;return new go(o,{editor:this,extension:n,parent:e,node:t,view:a,getPos:r,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:a}=this.state,r=xo(e,0,n.content.size),i=xo(t,0,n.content.size),o=jn.TextSelection.create(n,r,i),s=a.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=An.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:a,tr:r}=this.state,i=this.createDocument(e,n),o=jn.TextSelection.create(a,0,a.content.size),s=r.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:a,to:r,empty:i}=e.selection;return i?!!t.isInSet(e.storedMarks||a.marks()):!!e.doc.rangeHasMark(n,r,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],a=this.state.reconfigure({plugins:n});this.view.updateState(a)}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 jn.Plugin({key:new jn.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,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:"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,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:"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,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:"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,$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:"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,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:"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,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:"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 jn.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 a=[];return this.forEach((function(t,n){return a.push(e(t,n))}),t,n),a},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,a){for(var r=t;r<n;r++)if(!1===e(this.values[r],a+r))return!1},t.prototype.forEachInvertedInner=function(e,t,n,a){for(var r=t-1;r>=n;r--)if(!1===e(this.values[r],a+r))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,a){var r=this.left.length;return!(t<r&&!1===this.left.forEachInner(e,t,Math.min(n,r),a))&&!(n>r&&!1===this.right.forEachInner(e,Math.max(t-r,0),Math.min(this.length,n)-r,a+r))&&void 0},t.prototype.forEachInvertedInner=function(e,t,n,a){var r=this.left.length;return!(t>r&&!1===this.right.forEachInvertedInner(e,t-r,Math.max(n,r)-r,a+r))&&!(n<r&&!1===this.left.forEachInvertedInner(e,Math.min(t,r),n,a))&&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 a,r,i=this.items.length;;i--)if(this.items.get(i-1).selection){--i;break}t&&(a=this.remapping(i,this.items.length),r=a.maps.length);var o,s,l=e.tr,c=[],u=[];return this.items.forEach((function(e,t){if(!e.step)return a||(a=n.remapping(i,t+1),r=a.maps.length),r--,void u.push(e);if(a){u.push(new Go(e.map));var d,p=e.step.map(a.slice(r));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))),r--,d&&a.appendMap(d,r)}else l.maybeStep(e.step);return e.selection?(o=a?e.selection.map(a.slice(r)):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,a){for(var r=[],i=this.eventCount,o=this.items,s=!a&&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?r.pop():o=o.slice(0,o.length-1)),r.push(d),t&&(i++,t=null),a||(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(r),i)},Zo.prototype.remapping=function(e,t){var n=new Pn.a;return this.items.forEach((function(t,a){var r=null!=t.mirrorOffset&&a-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,r)}),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=[],a=Math.max(0,this.items.length-t),r=e.mapping,i=e.steps.length,o=this.eventCount;this.items.forEach((function(e){e.selection&&o--}),a);var s=t;this.items.forEach((function(t){var a=r.getMirror(--s);if(null!=a){i=Math.min(i,a);var l=r.maps[a];if(t.step){var c=e.steps[a].invert(e.docs[a]),u=t.selection&&t.selection.map(r.slice(s+1,a));u&&o++,n.push(new Go(l,c,u))}else n.push(new Go(l))}}),a);for(var l=[],c=t;c<i;c++)l.push(new Go(r.maps[c]));var u=this.items.slice(0,a).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,a=[],r=0;return this.items.forEach((function(i,o){if(o>=e)a.push(i),i.selection&&r++;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&&r++;var u,d=new Go(l.invert(),s,c),p=a.length-1;(u=a.length&&a[p].merge(d))?a[p]=u:a.push(d)}}else i.map&&n--}),this.items.length,0),new Zo(Ko.from(a.reverse()),r)},Zo.empty=new Zo(Ko.empty,0);var Go=function(e,t,n,a){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=a};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,a){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=a},Xo=20;function Qo(e){var t=[];return e.forEach((function(e,n,a,r){return t.push(a,r)})),t}function es(e,t){if(!e)return null;for(var n=[],a=0;a<e.length;a+=2){var r=t.map(e[a],1),i=t.map(e[a+1],-1);r<=i&&n.push(r,i)}return n}function ts(e,t,n,a){var r=rs(t),i=is.get(t).spec.config,o=(a?e.undone:e.done).popEvent(t,r);if(o){var s=o.selection.resolve(o.transform.doc),l=(a?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),c=new Jo(a?l:o.remaining,a?o.remaining:l,null,0);n(o.transform.setSelection(s).setMeta(is,{redo:a,historyState:c}).scrollIntoView())}}var ns=!1,as=null;function rs(e){var t=e.plugins;if(as!=t){ns=!1,as=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){ns=!0;break}}return ns}var is=new jn.PluginKey("history"),ss=new jn.PluginKey("closeHistory");function ls(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new jn.Plugin({key:is,state:{init:function(){return new Jo(Zo.empty,Zo.empty,null,0)},apply:function(t,n,a){return function(e,t,n,a){var r,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,a,rs(t)),e.undone,Qo(n.mapping.maps[n.steps.length-1]),e.prevTime):new Jo(e.done,e.undone.addTransform(n,null,a,rs(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||o&&!1===o.getMeta("addToHistory"))return(r=n.getMeta("rebased"))?new Jo(e.done.rebased(n,r),e.undone.rebased(n,r),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)-a.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach((function(e,a){for(var r=0;r<t.length;r+=2)e<=t[r+1]&&a>=t[r]&&(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,a,rs(t)),Zo.empty,l,n.time)}(n,a,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 a=e.selection,r=a.$from,i=a.$to,o=a.node;if(o&&o.isBlock||r.depth<2||!r.sameParent(i))return!1;var s=r.node(-1);if(s.type!=t)return!1;if(0==r.parent.content.size&&r.node(-1).childCount==r.indexAfter(-1)){if(2==r.depth||r.node(-3).type!=t||r.index(-2)!=r.node(-2).childCount-1)return!1;if(n){for(var l=An.Fragment.empty,c=r.index(-1)>0,u=r.depth-(c?1:2);u>=r.depth-3;u--)l=An.Fragment.from(r.node(u).copy(l));l=l.append(An.Fragment.from(t.createAndFill()));var d=e.tr.replace(r.before(c?null:-1),r.after(-3),new An.Slice(l,c?3:2,2));d.setSelection(e.selection.constructor.near(d.doc.resolve(r.pos+(c?3:2)))),n(d.scrollIntoView())}return!0}var p=i.pos==r.end()?s.contentMatchAt(0).defaultType:null,m=e.tr.delete(r.pos,i.pos),f=p&&[null,{type:p}];return!!Object(Pn.g)(m.doc,r.pos,2,f)&&(n&&n(m.split(r.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:a,$to:r,node:i}=e.selection;if(i&&i.isBlock||a.depth<2||!a.sameParent(r))return!1;const o=a.node(-1);if(o.type!=t)return!1;if(0==a.parent.content.size){if(2==a.depth||a.node(-3).type!=t||a.index(-2)!=a.node(-2).childCount-1)return!1;if(n){let r=An.Fragment.empty;const i=a.index(-1)>0;for(let e=a.depth-(i?1:2);e>=a.depth-3;e--)r=An.Fragment.from(a.node(e).copy(r));r=r.append(An.Fragment.from(t.createAndFill()));const o=e.tr.replace(a.before(i?null:-1),a.after(-3),new An.Slice(r,i?3:2,2));o.setSelection(e.selection.constructor.near(o.doc.resolve(a.pos+(i?3:2)))),n(o.scrollIntoView())}return!0}const s=r.pos==a.end()?o.contentMatchAt(a.indexAfter(-1)).defaultType:null,l=e.tr.delete(a.pos,r.pos);let c=s&&[{type:t},{type:s}];return c||(c=[{type:t},null]),!!function(e,t,n=1,a){const r=e.resolve(t),i=r.depth-n,o=a&&a[a.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!o.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let e=r.depth-1,t=n-2;e>i;e--,t--){const n=r.node(e),i=r.index(e);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(i,n.childCount);const s=a&&a[t]||n;if(s!=n&&(o=o.replaceChild(0,s.type.create(s.attrs))),!n.canReplace(i+1,n.childCount))return!1}const s=r.indexAfter(i),l=a&&a[0];return r.node(i).canReplaceWith(s,s,l?l.type:r.node(i+1).type)}(l.doc,a.pos,2,c)&&(n&&n(l.split(a.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,a)=>{const{tr:r,selection:i,doc:o}=n,{ranges:s,empty:l}=i;if(l){const{from:n,to:a}=eo(i.$from,e);o.rangeHasMark(n,a,e)&&r.removeMark(n,a,e),r.addMark(n,a,e.create(t))}else s.forEach((n=>{const{$to:a,$from:i}=n;o.rangeHasMark(i.pos,a.pos,e)&&r.removeMark(i.pos,a.pos,e),r.addMark(i.pos,a.pos,e.create(t))}));return a(r)}}(e,t):function(e){return(t,n)=>{const{tr:a,selection:r}=t;let{from:i,to:o}=r;const{$from:s,empty:l}=r;if(l){const t=eo(s,e);i=t.from,o=t.to}return a.removeMark(i,o,e),n(a)}}(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 jn.Plugin({props:{handleClick:(e,t,n)=>{const{schema:a}=e.state,r=Xi(e.state,a.marks.link);r.href&&n.target instanceof HTMLAnchorElement&&(n.stopPropagation(),window.open(r.href,r.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){N(e,t,this)},components:{EditorContent:Lo,EditorMenuBar:Oo,UnderlineIcon:Eo,BoldIcon:jo,CodingIcon:Ao,ItalicIcon:Po,ListIcon:$o,ListUlIcon:Yo,ParagraphIcon:zo,QuoteIcon:No,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 a=t.commands,r=t.isActive;return[n("div",{class:e.getEditorStyle.menuDropdown.menuContainer},[n("span",{class:e.mobileMenuIconContainerStyle(r.bold()),on:{click:a.bold}},[n("bold-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(r.italic()),on:{click:a.italic}},[n("italic-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(r.strike()),on:{click:a.strike}},[n("strikethrough-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(r.underline()),on:{click:a.underline}},[n("underline-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(r.code()),on:{click:a.code}},[n("coding-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(r.paragraph()),on:{click:a.paragraph}},[n("paragraph-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(r.heading({level:1})),on:{click:function(e){return a.heading({level:1})}}},[e._v(" H1 ")]),n("span",{class:e.mobileMenuIconContainerStyle(r.heading({level:2})),on:{click:function(e){return a.heading({level:2})}}},[e._v(" H2 ")]),n("span",{class:e.mobileMenuIconContainerStyle(r.heading({level:3})),on:{click:function(e){return a.heading({level:3})}}},[e._v(" H3 ")]),n("span",{class:e.mobileMenuIconContainerStyle(r.bullet_list()),on:{click:a.bullet_list}},[n("list-ul-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(r.ordered_list()),on:{click:a.ordered_list}},[n("list-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(r.blockquote()),on:{click:a.blockquote}},[n("quote-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(r.code_block()),on:{click:a.code_block}},[n("code-block-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(),on:{click:a.undo}},[n("undo-icon",{class:e.getEditorStyle.menuDropdown.icon})],1),n("span",{class:e.mobileMenuIconContainerStyle(),on:{click:a.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 a=t.commands,r=t.isActive;return[n("div",{class:e.getEditorStyle.menuContainer},[n("span",{class:e.getIconContainerStyle(r.bold()),on:{click:a.bold}},[n("bold-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(r.italic()),on:{click:a.italic}},[n("italic-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(r.strike()),on:{click:a.strike}},[n("strikethrough-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(r.underline()),on:{click:a.underline}},[n("underline-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(r.code()),on:{click:a.code}},[n("coding-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(r.paragraph()),on:{click:a.paragraph}},[n("paragraph-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(r.heading({level:1})),on:{click:function(e){return a.heading({level:1})}}},[e._v(" H1 ")]),n("span",{class:e.getIconContainerStyle(r.heading({level:2})),on:{click:function(e){return a.heading({level:2})}}},[e._v(" H2 ")]),n("span",{class:e.getIconContainerStyle(r.heading({level:3})),on:{click:function(e){return a.heading({level:3})}}},[e._v(" H3 ")]),n("span",{class:e.getIconContainerStyle(r.bullet_list()),on:{click:a.bullet_list}},[n("list-ul-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(r.ordered_list()),on:{click:a.ordered_list}},[n("list-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(r.blockquote()),on:{click:a.blockquote}},[n("quote-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(r.code_block()),on:{click:a.code_block}},[n("code-block-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(),on:{click:a.undo}},[n("undo-icon",{class:e.getEditorStyle.icon})],1),n("span",{class:e.getIconContainerStyle(),on:{click:a.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,js=P.classes,As=q({props:{currentStep:{type:Number,default:null},steps:{type:Number,default:null},classes:{type:Object,default:function(){return js}}},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,a){return n("div",{key:a,class:e.stepStyle(t),on:{click:function(t){return e.$emit("update:currentStep",a+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",a+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,Ps=P.classes,$s=P.variants,Ys=q({install:function(e,t){N(e,t,this)},components:{WizardNavigation:As},props:{currentStep:{type:Number,default:0},steps:{type:Number,default:0},classes:{type:Object,default:function(){return Ps}},variant:{type:String,default:null},variants:{type:Object,default:function(){return $s}},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,zs=P.classes,Ns=q({name:"SwWizardStep",props:{description:{type:String,default:null},title:{type:String,default:null},classes:{type:Object,default:function(){return zs}}},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,a,r,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(a,r)}function Fs(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Is(i,a,r,o,s,"next",e)}function s(e){Is(i,a,r,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 a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}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=[],a=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==s.return||s.return()}finally{if(r)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),a=n[0],r=n[1];return Ws(e[a],r)}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 a in n)this[a]=t[a];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(),a=t.find((function(e){return e.sortAs===n||e.show===n})).dataType;return a.startsWith("date")||"numeric"===a?function(t,a){var r=t.getSortableValue(n),i=a.getSortableValue(n);return"desc"===e?i<r?-1:1:r<i?-1:1}:function(t,a){var r=t.getSortableValue(n),i=a.getSortableValue(n);return"desc"===e?i.localeCompare(r):r.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 a=(new Date).getTime(),r=new Date(a+6e4*n);localStorage.setItem(e,JSON.stringify({value:t,expires:r}))}}]),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 a=t.replace("date:","");return Js()(n,a).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=A.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=A.classes,nl=A.classes,al=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,a={};return n.column.cellClass&&(a.class=n.column.cellClass),a.class+=" ".concat(n.classes.tdStyles),n.column.template?e("td",a,n.column.template(n.row.data)):(a.domProps={},a.domProps.innerHTML=n.column.formatter(n.row.getValue(n.column.show),n.row.data),e("td",{class:n.classes.tdStyles},[e("span",n.responsiveLabel),a.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,rl={tableClass:"",theadClass:"",tbodyClass:"",headerClass:"",cellClass:"",filterInputClass:"",filterPlaceholder:"Filter table…",filterNoResults:"There are no matching rows"},il=rl,ol=A.classes,sl=A.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 a=t;a<=n;a++)e.push(a);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=A.classes,ul=A.variants,dl=q({components:{TableColumnHeader:el,TableRow:al,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(a){return t.$watch(a,(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,a;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,a=0,e.rows=n.map((function(e){return e.vueTableComponentInternalRowId=a++,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,a;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 a=t.sent,e.pagination=a.pagination,e.loading=!1,t.abrupt("return",a.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:re,SwCheckbox:de,SwDivider:fe,SwDropdown:xt,SwDropdownItem:Dt,SwDropdownDivider:St,SwEmptyTablePlaceholder:Lt,SwFilterWrapper:Et,SwInput:Pt,SwLabel:Yt,SwList:Rt,SwListItem:Bt,SwModal:Ut,SwListGroup:qt,SwMoney:Jt,SwPageHeader:Qt,SwPopup:tn,SwInputGroup:It,SwFileUpload:an,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:Ns,SwWizardNavigation:As},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({},$),t.theme||{}),a=l({},t.option||{}),r=t.components||Object.keys(fl);r.forEach((function(t){e.component(t,I(e,n,t,fl,$,a))}))}}};t.default=hl},fb6a:function(e,t,n){"use strict";var a=n("23e7"),r=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;a({target:"Array",proto:!0,forced:!m||!f},{slice:function(e,t){var n,a,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)?r(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return _.call(d,m,f);for(a=new(void 0===n?Array:n)(v(f-m,0)),u=0;m<f;m++,u++)m in d&&c(a,u,d[m]);return a.length=u,a}})},fba5:function(e,t,n){var a=n("cb5a");e.exports=function(e){return a(this.__data__,e)>-1}},fbbc:function(e,t,n){var a=n("2cb6")(Object.getPrototypeOf,Object);e.exports=a},fc6a:function(e,t,n){var a=n("44ad"),r=n("1d80");e.exports=function(e){return a(r(e))}},fc88:function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},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"))},fdb1:function(e,t,n){var a=n("57c1");e.exports=function(e){var t=a(this,e).delete(e);return this.size-=t?1:0,t}},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 a=n("4930");e.exports=a&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var a=n("da84");e.exports=a.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=a(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,b0D:()=>E});var a=n(6568),r=n.n(a),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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},E={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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:"M6 18L18 6M6 6l12 12"}})])}}},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,$Ow:()=>w,tEF:()=>x,k1n:()=>k,ROc:()=>D,jdL:()=>M,xPt:()=>S,bV6:()=>C,$_5:()=>L,Rdq:()=>T,sCx:()=>O,vdY:()=>E,wl8:()=>j,pOD:()=>P,d2U:()=>A,DuK:()=>$,W1M:()=>Y,Q1y:()=>z,TV4:()=>N,mcG:()=>I,XHJ:()=>F,uSF:()=>H,tBG:()=>R,XOb:()=>B,oOx:()=>q,b0D:()=>V});var a=n(6568),r=n.n(a),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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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:"ExclamationCircleIcon",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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},t.data]),[e("path",{attrs:{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"}})])}},x={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},k={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},D={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},M={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},S={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},C={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},L={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},T={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},O={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},E={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},j={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},P={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},Y={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},z={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},I={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},F={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},H={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},R={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},B={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},q={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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"}})])}},V={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",a=t.data.attrs||{};return a.width=a.width||n,a.height=a.height||n,t.data.attrs=a,e("svg",r()([{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 a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)}var n=["attrs","props","domProps"],a=["class","style","directives"],r=["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!==a.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!==r.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 a=n(4867),r=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;a.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,a={data:e.responseType&&"text"!==e.responseType?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m};r(t,u,a),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},a.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&&a.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:m.setRequestHeader(t,e)})),a.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 a=n(4867),r=n(1849),i=n(321),o=n(7185);function s(e){var t=new i(e),n=r(i.prototype.request,t);return a.extend(n,i.prototype,t),a.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 a=n(5263);function r(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 a(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var a=n(4867),r=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),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},a.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(a.merge(n||{},{method:e,url:t}))}})),a.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(a.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var a=n(4867);function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){a.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},4097:(e,t,n)=>{"use strict";var a=n(9699),r=n(7303);e.exports=function(e,t){return e&&!a(t)?r(e,t):t}},5061:(e,t,n)=>{"use strict";var a=n(481);e.exports=function(e,t,n,r,i){var o=new Error(e);return a(o,t,n,r,i)}},3572:(e,t,n)=>{"use strict";var a=n(4867),r=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=r(e.data,e.headers,e.transformRequest),e.headers=a.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),a.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=r(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,a,r){return e.config=t,n&&(e.code=n),e.request=a,e.response=r,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 a=n(4867);e.exports=function(e,t){t=t||{};var n={},r=["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"];a.forEach(r,(function(e){void 0!==t[e]&&(n[e]=t[e])})),a.forEach(i,(function(r){a.isObject(t[r])?n[r]=a.deepMerge(e[r],t[r]):void 0!==t[r]?n[r]=t[r]:a.isObject(e[r])?n[r]=a.deepMerge(e[r]):void 0!==e[r]&&(n[r]=e[r])})),a.forEach(o,(function(a){void 0!==t[a]?n[a]=t[a]:void 0!==e[a]&&(n[a]=e[a])}));var s=r.concat(i).concat(o),l=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return a.forEach(l,(function(a){void 0!==t[a]?n[a]=t[a]:void 0!==e[a]&&(n[a]=e[a])})),n}},6026:(e,t,n)=>{"use strict";var a=n(5061);e.exports=function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(a("Request failed with status code "+n.status,n.config,null,n.request,n))}},6205:(e,t,n)=>{"use strict";var a=n(4867);e.exports=function(e,t,n){return a.forEach(n,(function(n){e=n(e,t)})),e}},6419:(e,t,n)=>{"use strict";var a=n(4155),r=n(4867),i=n(6016),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==a&&"[object process]"===Object.prototype.toString.call(a))&&(l=n(5448)),l),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.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, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var a=n(4867);function r(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(a.isURLSearchParams(t))i=t.toString();else{var o=[];a.forEach(t,(function(e,t){null!=e&&(a.isArray(e)?t+="[]":e=[e],a.forEach(e,(function(e){a.isDate(e)?e=e.toISOString():a.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+"="+r(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 a=n(4867);e.exports=a.isStandardBrowserEnv()?{write:function(e,t,n,r,i,o){var s=[];s.push(e+"="+encodeURIComponent(t)),a.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),a.isString(r)&&s.push("path="+r),a.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 a=n(4867);e.exports=a.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var a=e;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{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=r(window.location.href),function(t){var n=a.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var a=n(4867);e.exports=function(e,t){a.forEach(e,(function(n,a){a!==t&&a.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[a])}))}},4109:(e,t,n)=>{"use strict";var a=n(4867),r=["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?(a.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=a.trim(e.substr(0,i)).toLowerCase(),n=a.trim(e.substr(i+1)),t){if(o[t]&&r.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 a=n(1849),r=Object.prototype.toString;function i(e){return"[object Array]"===r.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===r.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===r.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]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.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,a){"object"==typeof t[a]&&"object"==typeof n?t[a]=e(t[a],n):t[a]=n}for(var a=0,r=arguments.length;a<r;a++)c(arguments[a],n);return t},deepMerge:function e(){var t={};function n(n,a){"object"==typeof t[a]&&"object"==typeof n?t[a]=e(t[a],n):t[a]="object"==typeof n?e({},n):n}for(var a=0,r=arguments.length;a<r;a++)c(arguments[a],n);return t},extend:function(e,t,n){return c(t,(function(t,r){e[r]=n&&"function"==typeof t?a(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},5375:(e,t,n)=>{"use strict";var a=n(538),r=n(3159),i=n(6520),o=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function s(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var l=Array.isArray;function c(e){return null!==e&&"object"==typeof e}function u(e){return"string"==typeof e}var d=Object.prototype.toString;function p(e){return"[object Object]"===d.call(e)}function m(e){return null==e}function f(e){return"function"==typeof e}function h(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,a=null;return 1===e.length?c(e[0])||l(e[0])?a=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(c(e[1])||l(e[1]))&&(a=e[1])),{locale:n,params:a}}function _(e){return JSON.parse(JSON.stringify(e))}function v(e,t){return!!~e.indexOf(t)}var g=Object.prototype.hasOwnProperty;function y(e,t){return g.call(e,t)}function b(e){for(var t=arguments,n=Object(e),a=1;a<arguments.length;a++){var r=t[a];if(null!=r){var i=void 0;for(i in r)y(r,i)&&(c(r[i])?n[i]=b(n[i],r[i]):n[i]=r[i])}}return n}function w(e,t){if(e===t)return!0;var n=c(e),a=c(t);if(!n||!a)return!n&&!a&&String(e)===String(t);try{var r=l(e),i=l(t);if(r&&i)return e.length===t.length&&e.every((function(e,n){return w(e,t[n])}));if(r||i)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return w(e[n],t[n])}))}catch(e){return!1}}function x(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 k={beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n)if(e.i18n instanceof X){if(e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){t=b(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(p(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof X?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 a=e.i18n&&e.i18n.messages?e.i18n.messages:{};e.__i18n.forEach((function(e){a=b(a,JSON.parse(e))})),e.i18n.messages=a}catch(e){0}var r=e.i18n.sharedMessages;r&&p(r)&&(e.i18n.messages=b(e.i18n.messages,r)),this._i18n=new X(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 X?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof X&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n?(e.i18n instanceof X||p(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof X||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof X)&&(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)}))}}},D={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,a=t.parent,r=t.props,i=t.slots,o=a.$i18n;if(o){var s=r.path,l=r.locale,c=r.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(S,{}):Object.assign({},e)}(t):{};if(!e)return n;var a=(e=e.filter((function(e){return e.tag||""!==e.text.trim()}))).every(C);0;return e.reduce(a?M:S,n)}(u.default,c):u),p=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return p?e(p,n,d):d}}};function M(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function S(e,t,n){return e[n]=t,e}function C(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var L,T={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,a=t.parent,r=t.data,i=a.$i18n;if(!i)return null;var s=null,l=null;u(n.format)?s=n.format:c(n.format)&&(n.format.key&&(s=n.format.key),l=Object.keys(n.format).reduce((function(e,t){var a;return v(o,t)?Object.assign({},e,((a={})[t]=n.format[t],a)):e}),null));var d=n.locale||i.locale,p=i._ntp(n.value,d,s,l),m=p.map((function(e,t){var n,a=r.scopedSlots&&r.scopedSlots[e.type];return a?a(((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:r.attrs,class:r.class,staticClass:r.staticClass},m):m}};function O(e,t,n){A(e,n)&&P(e,t,n)}function E(e,t,n,a){if(A(e,n)){var r=n.context.$i18n;(function(e,t){var n=t.context;return e._locale===n.$i18n.locale})(e,n)&&w(t.value,t.oldValue)&&w(e._localeMessage,r.getLocaleMessage(r.locale))||P(e,t,n)}}function j(e,t,n,a){if(n.context){var r=n.context.$i18n||{};t.modifiers.preserve||r.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 s("Vue instance does not exists in VNode context")}function A(e,t){var n=t.context;return n?!!n.$i18n||(s("VueI18n instance does not exists in Vue instance"),!1):(s("Vue instance does not exists in VNode context"),!1)}function P(e,t,n){var a,r,i=function(e){var t,n,a,r;u(e)?t=e:p(e)&&(t=e.path,n=e.locale,a=e.args,r=e.choice);return{path:t,locale:n,args:a,choice:r}}(t.value),o=i.path,l=i.locale,c=i.args,d=i.choice;if(o||l||c)if(o){var m=n.context;e._vt=e.textContent=null!=d?(a=m.$i18n).tc.apply(a,[o,d].concat($(l,c))):(r=m.$i18n).t.apply(r,[o].concat($(l,c))),e._locale=m.$i18n.locale,e._localeMessage=m.$i18n.getLocaleMessage(m.$i18n.locale)}else s("`path` is required in v-t directive");else s("value type not supported")}function $(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||p(t))&&n.push(t),n}function Y(e){Y.installed=!0;(L=e).version&&Number(L.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 a=this.$i18n;return a._t.apply(a,[e,a.locale,a._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],a=arguments.length-2;a-- >0;)n[a]=arguments[a+2];var r=this.$i18n;return r._tc.apply(r,[e,r.locale,r._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=[],a=arguments.length-1;a-- >0;)n[a]=arguments[a+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],a=arguments.length-1;a-- >0;)n[a]=arguments[a+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}})(L),L.mixin(k),L.directive("t",{bind:O,update:E,unbind:j}),L.component(D.name,D),L.component(T.name,T),L.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,a="";for(;n<e.length;){var r=e[n++];if("{"===r){a&&t.push({type:"text",value:a}),a="";var i="";for(r=e[n++];void 0!==r&&"}"!==r;)i+=r,r=e[n++];var o="}"===r,s=N.test(i)?"list":o&&I.test(i)?"named":"unknown";t.push({value:i,type:s})}else"%"===r?"{"!==e[n]&&(a+=r):a+=r}return a&&t.push({type:"text",value:a}),t}(e),this._caches[e]=n),function(e,t){var n=[],a=0,r=Array.isArray(t)?"list":c(t)?"named":"unknown";if("unknown"===r)return n;for(;a<e.length;){var i=e[a];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===r&&n.push(t[i.value]);break;case"unknown":0}a++}return n}(n,t)};var N=/^(?:\d)+/,I=/^(?:\w)+/;var F=[];F[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},F[1]={ws:[1],".":[2],"[":[4],eof:[7]},F[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},F[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},F[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},F[5]={"'":[4,0],eof:8,else:[5,0]},F[6]={'"':[4,0],eof:8,else:[6,0]};var H=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function R(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 B(e){var t,n,a,r=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(a=r,H.test(a)?(n=(t=r).charCodeAt(0))!==t.charCodeAt(t.length-1)||34!==n&&39!==n?t:t.slice(1,-1):"*"+r)}var q=function(){this._cache=Object.create(null)};q.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=function(e){var t,n,a,r,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++,a="\\"+t,p[0](),!0}for(p[1]=function(){void 0!==n&&(l.push(n),n=void 0)},p[0]=function(){void 0===n?n=a:n+=a},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=B(n)))return!1;p[1]()}};null!==u;)if(c++,"\\"!==(t=e[c])||!m()){if(r=R(t),8===(i=(s=F[u])[r]||s.else||8))return;if(u=i[0],(o=p[i[1]])&&(a=void 0===(a=i[2])?t:a,!1===o()))return;if(7===u)return l}}(e))&&(this._cache[e]=t),t||[]},q.prototype.getPathValue=function(e,t){if(!c(e))return null;var n=this.parsePath(t);if(0===n.length)return null;for(var a=n.length,r=e,i=0;i<a;){var o=r[n[i]];if(void 0===o)return null;r=o,i++}return r};var V,W=/<\/?[\w\s="/.':;#-\/]+>/,U=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,K=/^@(?:\.([a-z]+))?:/,Z=/[()]/g,G={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},J=new z,X=function(e){var t=this;void 0===e&&(e={}),!L&&"undefined"!=typeof window&&window.Vue&&Y(window.Vue);var n=e.locale||"en-US",a=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),r=e.messages||{},i=e.dateTimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||J,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 q,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 a=Object.getPrototypeOf(t);if(a&&a.getChoiceIndex)return a.getChoiceIndex.call(t,e,n);var r,i;return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):(r=e,i=n,r=Math.abs(r),2===i?r?r>1?1:0:1:r?Math.min(r,2):0)},this._exist=function(e,n){return!(!e||!n)&&(!m(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])})),this._initVM({locale:n,fallbackLocale:a,messages:r,dateTimeFormats:i,numberFormats:o})},Q={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}};X.prototype._checkLocaleMessage=function(e,t,n){var a=function(e,t,n,r){if(p(n))Object.keys(n).forEach((function(i){var o=n[i];p(o)?(r.push(i),r.push("."),a(e,t,o,r),r.pop(),r.pop()):(r.push(i),a(e,t,o,r),r.pop())}));else if(l(n))n.forEach((function(n,i){p(n)?(r.push("["+i+"]"),r.push("."),a(e,t,n,r),r.pop(),r.pop()):(r.push("["+i+"]"),a(e,t,n,r),r.pop())}));else if(u(n)){if(W.test(n)){var i="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?s(i):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(i)}}};a(t,e,n,[])},X.prototype._initVM=function(e){var t=L.config.silent;L.config.silent=!0,this._vm=new L({data:e}),L.config.silent=t},X.prototype.destroyVM=function(){this._vm.$destroy()},X.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},X.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)},X.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t=e._dataListeners.length;t--;)L.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},X.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})},X.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},Q.vm.get=function(){return this._vm},Q.messages.get=function(){return _(this._getMessages())},Q.dateTimeFormats.get=function(){return _(this._getDateTimeFormats())},Q.numberFormats.get=function(){return _(this._getNumberFormats())},Q.availableLocales.get=function(){return Object.keys(this.messages).sort()},Q.locale.get=function(){return this._vm.locale},Q.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},Q.fallbackLocale.get=function(){return this._vm.fallbackLocale},Q.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},Q.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Q.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},Q.missing.get=function(){return this._missing},Q.missing.set=function(e){this._missing=e},Q.formatter.get=function(){return this._formatter},Q.formatter.set=function(e){this._formatter=e},Q.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Q.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},Q.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Q.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},Q.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Q.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},Q.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Q.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var a=this._getMessages();Object.keys(a).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,a[e])}))}},Q.postTranslation.get=function(){return this._postTranslation},Q.postTranslation.set=function(e){this._postTranslation=e},X.prototype._getMessages=function(){return this._vm.messages},X.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},X.prototype._getNumberFormats=function(){return this._vm.numberFormats},X.prototype._warnDefault=function(e,t,n,a,r,i){if(!m(n))return n;if(this._missing){var o=this._missing.apply(null,[e,t,a,r]);if(u(o))return o}else 0;if(this._formatFallbackMessages){var s=h.apply(void 0,r);return this._render(t,i,s.params,t)}return t},X.prototype._isFallbackRoot=function(e){return!e&&!m(this._root)&&this._fallbackRoot},X.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},X.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},X.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},X.prototype._interpolate=function(e,t,n,a,r,i,o){if(!t)return null;var s,c=this._path.getPathValue(t,n);if(l(c)||p(c))return c;if(m(c)){if(!p(t))return null;if(!u(s=t[n])&&!f(s))return null}else{if(!u(c)&&!f(c))return null;s=c}return u(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(e,t,s,a,"raw",i,o)),this._render(s,r,i,n)},X.prototype._link=function(e,t,n,a,r,i,o){var s=n,c=s.match(U);for(var u in c)if(c.hasOwnProperty(u)){var d=c[u],p=d.match(K),m=p[0],f=p[1],h=d.replace(m,"").replace(Z,"");if(v(o,h))return s;o.push(h);var _=this._interpolate(e,t,h,a,"raw"===r?"string":r,"raw"===r?void 0:i,o);if(this._isFallbackRoot(_)){if(!this._root)throw Error("unexpected error");var g=this._root.$i18n;_=g._translate(g._getMessages(),g.locale,g.fallbackLocale,h,a,r,i)}_=this._warnDefault(e,h,_,a,l(i)?i:[i],r),this._modifiers.hasOwnProperty(f)?_=this._modifiers[f](_):G.hasOwnProperty(f)&&(_=G[f](_)),o.pop(),s=_?s.replace(d,_):s}return s},X.prototype._createMessageContext=function(e){var t=l(e)?e:[],n=c(e)?e:{};return{list:function(e){return t[e]},named:function(e){return n[e]}}},X.prototype._render=function(e,t,n,a){if(f(e))return e(this._createMessageContext(n));var r=this._formatter.interpolate(e,n,a);return r||(r=J.interpolate(e,n,a)),"string"!==t||u(r)?r:r.join("")},X.prototype._appendItemToChain=function(e,t,n){var a=!1;return v(e,t)||(a=!0,t&&(a="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(a=n[t]))),a},X.prototype._appendLocaleToChain=function(e,t,n){var a,r=t.split("-");do{var i=r.join("-");a=this._appendItemToChain(e,i,n),r.splice(-1,1)}while(r.length&&!0===a);return a},X.prototype._appendBlockToChain=function(e,t,n){for(var a=!0,r=0;r<t.length&&"boolean"==typeof a;r++){var i=t[r];u(i)&&(a=this._appendLocaleToChain(e,i,n))}return a},X.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 a,r=[e];l(r);)r=this._appendBlockToChain(n,r,t);(r=u(a=l(t)?t:c(t)?t.default?t.default:null:t)?[a]:a)&&this._appendBlockToChain(n,r,null),this._localeChainCache[e]=n}return n},X.prototype._translate=function(e,t,n,a,r,i,o){for(var s,l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(!m(s=this._interpolate(u,e[u],a,r,i,o,[a])))return s}return null},X.prototype._t=function(e,t,n,a){for(var r,i=[],o=arguments.length-4;o-- >0;)i[o]=arguments[o+4];if(!e)return"";var s=h.apply(void 0,i);this._escapeParameterHtml&&(s.params=x(s.params));var l=s.locale||t,c=this._translate(n,l,this.fallbackLocale,e,a,"string",s.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[e].concat(i))}return c=this._warnDefault(l,e,c,a,i,"string"),this._postTranslation&&null!=c&&(c=this._postTranslation(c,e)),c},X.prototype.t=function(e){for(var t,n=[],a=arguments.length-1;a-- >0;)n[a]=arguments[a+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},X.prototype._i=function(e,t,n,a,r){var i=this._translate(n,t,this.fallbackLocale,e,a,"raw",r);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,r)}return this._warnDefault(t,e,i,a,[r],"raw")},X.prototype.i=function(e,t,n){return e?(u(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},X.prototype._tc=function(e,t,n,a,r){for(var i,o=[],s=arguments.length-5;s-- >0;)o[s]=arguments[s+5];if(!e)return"";void 0===r&&(r=1);var l={count:r,n:r},c=h.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,a].concat(o)),r)},X.prototype.fetchChoice=function(e,t){if(!e||!u(e))return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},X.prototype.tc=function(e,t){for(var n,a=[],r=arguments.length-2;r-- >0;)a[r]=arguments[r+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(a))},X.prototype._te=function(e,t,n){for(var a=[],r=arguments.length-3;r-- >0;)a[r]=arguments[r+3];var i=h.apply(void 0,a).locale||t;return this._exist(n[i],e)},X.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},X.prototype.getLocaleMessage=function(e){return _(this._vm.messages[e]||{})},X.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)},X.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,b({},this._vm.messages[e]||{},t))},X.prototype.getDateTimeFormat=function(e){return _(this._vm.dateTimeFormats[e]||{})},X.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},X.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,b(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},X.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var a=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(a)&&delete this._dateTimeFormatters[a]}},X.prototype._localizeDateTime=function(e,t,n,a,r){for(var i=t,o=a[i],s=this._getLocaleChain(t,n),l=0;l<s.length;l++){var c=s[l];if(i=c,!m(o=a[c])&&!m(o[r]))break}if(m(o)||m(o[r]))return null;var u=o[r],d=i+"__"+r,p=this._dateTimeFormatters[d];return p||(p=this._dateTimeFormatters[d]=new Intl.DateTimeFormat(i,u)),p.format(e)},X.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var a=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return a||""},X.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var a=this.locale,r=null;return 1===t.length?u(t[0])?r=t[0]:c(t[0])&&(t[0].locale&&(a=t[0].locale),t[0].key&&(r=t[0].key)):2===t.length&&(u(t[0])&&(r=t[0]),u(t[1])&&(a=t[1])),this._d(e,a,r)},X.prototype.getNumberFormat=function(e){return _(this._vm.numberFormats[e]||{})},X.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},X.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,b(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},X.prototype._clearNumberFormat=function(e,t){for(var n in t){var a=e+"__"+n;this._numberFormatters.hasOwnProperty(a)&&delete this._numberFormatters[a]}},X.prototype._getNumberFormatter=function(e,t,n,a,r,i){for(var o=t,s=a[o],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(o=u,!m(s=a[u])&&!m(s[r]))break}if(m(s)||m(s[r]))return null;var d,p=s[r];if(i)d=new Intl.NumberFormat(o,Object.assign({},p,i));else{var f=o+"__"+r;(d=this._numberFormatters[f])||(d=this._numberFormatters[f]=new Intl.NumberFormat(o,p))}return d},X.prototype._n=function(e,t,n,a){if(!X.availabilities.numberFormat)return"";if(!n)return(a?new Intl.NumberFormat(t,a):new Intl.NumberFormat(t)).format(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,a),i=r&&r.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},a))}return i||""},X.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var a=this.locale,r=null,i=null;return 1===t.length?u(t[0])?r=t[0]:c(t[0])&&(t[0].locale&&(a=t[0].locale),t[0].key&&(r=t[0].key),i=Object.keys(t[0]).reduce((function(e,n){var a;return v(o,n)?Object.assign({},e,((a={})[n]=t[0][n],a)):e}),null)):2===t.length&&(u(t[0])&&(r=t[0]),u(t[1])&&(a=t[1])),this._n(e,a,r,i)},X.prototype._ntp=function(e,t,n,a){if(!X.availabilities.numberFormat)return[];if(!n)return(a?new Intl.NumberFormat(t,a):new Intl.NumberFormat(t)).formatToParts(e);var r=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,a),i=r&&r.formatToParts(e);if(this._isFallbackRoot(i)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,a)}return i||[]},Object.defineProperties(X.prototype,Q),Object.defineProperty(X,"availabilities",{get:function(){if(!V){var e="undefined"!=typeof Intl;V={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return V}}),X.install=Y,X.version="8.22.2";const ee=X,te=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!","no_contact":"No contact","no_contact_name":"No contact name","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","not_selected":"No item selected","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","rejected":"Rejected","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","viewed":"Viewed","overdue":"Overdue","completed":"Completed","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!","not_selected":"Not selected","no_invoice":"No invoice","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","not_selected":"Not selected","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","invoice_number_length":"Invoice number length","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. Please note that \'View Invoice\' button in emails will not be displayed anymore when enabled.","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","estimate_number_length":"Estimate number length","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. Please note that \'View Estimate\' button in emails will not be displayed anymore when enabled.","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","payment_number_length":"Payment number lenght","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. Please note that \'View Payment\' button in emails will not be displayed anymore when enabled.","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","number_length_minvalue":"Number lenght should be greater than 0"},"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_label":"Payment","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_sales_customers_label":"Sales Customer Report","pdf_sales_items_label":"Sales Item Report","pdf_tax_summery_label":"Tax Summary 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:"}'),ne=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 !","no_contact":"No contact","no_contact_name":"No contact name","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","not_selected":"No item selected","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é","rejected":"Rejected","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é","viewed":"Viewed","overdue":"Overdue","completed":"Completed","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 !","not_selected":"Not selected","no_invoice":"No invoice","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","not_selected":"Not selected","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_label":"Payment","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_sales_customers_label":"Sales Customer Report","pdf_sales_items_label":"Sales Item Report","pdf_tax_summery_label":"Tax Summary Report","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!","no_contact":"No contact","no_contact_name":"No contact name","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","not_selected":"No item selected","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","rejected":"Rejected","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","viewed":"Viewed","overdue":"Overdue","completed":"Completed","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!","not_selected":"Not selected","no_invoice":"No invoice","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","not_selected":"Not selected","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_label":"Payment","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_sales_customers_label":"Sales Customer Report","pdf_sales_items_label":"Sales Item Report","pdf_tax_summery_label":"Tax Summary Report","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:"}'),re=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":"لم يتم الحصول على عملاء!","no_contact":"No contact","no_contact_name":"No contact name","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":"تاريخ الإنشاء","not_selected":"No item selected","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":"مقبول","rejected":"Rejected","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":"غير مدفوع","viewed":"Viewed","overdue":"Overdue","completed":"Completed","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":"لا يوجد مدفوعات حتى الآن!","not_selected":"Not selected","no_invoice":"No invoice","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":"إجراء","not_selected":"Not selected","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_label":"Payment","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_sales_customers_label":"Sales Customer Report","pdf_sales_items_label":"Sales Item Report","pdf_tax_summery_label":"Tax Summary 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:"}'),ie=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!","no_contact":"Kein Kontakt","no_contact_name":"Kein Kontaktname","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","not_selected":"Keine ausgewählt","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","rejected":"Abgelehnt","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":"Unbezahlt","viewed":"Gesehen","overdue":"Überfällig","completed":"Abgeschlossen","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!","not_selected":"Nicht ausgewählt","no_invoice":"Keine Rechnung","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","not_selected":"Nicht ausgewählt","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","invoice_number_length":"Rechnungsnummerlänge","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","estimate_number_length":"Angebotsnummerlänge","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","payment_number_length":"Zahlungsnummerlänge","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","number_length_minvalue":"Nummernlänge sollte größer als 0 sein"},"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_label":"Zahlung","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_sales_customers_label":"Kundenverkaufs Bericht","pdf_sales_items_label":"Artikelverkaufs Bericht","pdf_tax_summery_label":"Steuer 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:"}'),oe=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!","no_contact":"No contact","no_contact_name":"No contact name","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","not_selected":"No item selected","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","rejected":"Rejected","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","viewed":"Viewed","overdue":"Overdue","completed":"Completed","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!","not_selected":"Not selected","no_invoice":"No invoice","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","not_selected":"Not selected","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."}}'),se=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!","no_contact":"No contact","no_contact_name":"No contact name","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","not_selected":"No item selected","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","rejected":"Rejected","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","viewed":"Viewed","overdue":"Overdue","completed":"Completed","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!","not_selected":"Not selected","no_invoice":"No invoice","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","not_selected":"Not selected","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_label":"Payment","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_sales_customers_label":"Sales Customer Report","pdf_sales_items_label":"Sales Item Report","pdf_tax_summery_label":"Tax Summary 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:"}'),le=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!","no_contact":"No contact","no_contact_name":"No contact name","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","not_selected":"No item selected","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","rejected":"Rejected","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","viewed":"Viewed","overdue":"Overdue","completed":"Completed","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!","not_selected":"Not selected","no_invoice":"No invoice","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","not_selected":"Not selected","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_label":"Payment","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_sales_customers_label":"Sales Customer Report","pdf_sales_items_label":"Sales Item Report","pdf_tax_summery_label":"Tax Summary Report","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:"}'),ce=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!","no_contact":"No contact","no_contact_name":"No contact name","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","not_selected":"No item selected","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","rejected":"Rejected","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","viewed":"Viewed","overdue":"Overdue","completed":"Completed","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!","not_selected":"Not selected","no_invoice":"No invoice","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","not_selected":"Not selected","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_label":"Payment","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_sales_customers_label":"Sales Customer Report","pdf_sales_items_label":"Sales Item Report","pdf_tax_summery_label":"Tax Summary Report","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:"}'),ue=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!","no_contact":"No contact","no_contact_name":"No contact name","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","not_selected":"No item selected","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","rejected":"Rejected","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","viewed":"Viewed","overdue":"Overdue","completed":"Completed","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!","not_selected":"Not selected","no_invoice":"No invoice","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","not_selected":"Not selected","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_label":"Payment","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_sales_customers_label":"Sales Customer Report","pdf_sales_items_label":"Sales Item Report","pdf_tax_summery_label":"Tax Summary Report","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:"}'),de=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!","no_contact":"No contact","no_contact_name":"No contact name","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","not_selected":"No item selected","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","rejected":"Rejected","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","viewed":"Viewed","overdue":"Overdue","completed":"Completed","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!","not_selected":"Not selected","no_invoice":"No invoice","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","not_selected":"Not selected","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_label":"Payment","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_sales_customers_label":"Sales Customer Report","pdf_sales_items_label":"Sales Item Report","pdf_tax_summery_label":"Tax Summary Report","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:"}'),pe=JSON.parse('{"navigation":{"dashboard":"Hlavný Panel","customers":"Zákazníci","items":"Položky","invoices":"Faktúry","expenses":"Výdaje","estimates":"Cenové odhady","payments":"Platby","reports":"Reporty","settings":"Nastavenia","logout":"Odhlásiť sa","users":"Uživatelia"},"general":{"add_company":"Pridať firmu","view_pdf":"Zobraziť PDF","copy_pdf_url":"Kopírovať PDF adresu","download_pdf":"Stiahnuť PDF","save":"Uložiť","create":"Vytvoriť","cancel":"Zrušiť","update":"Aktualizovať","deselect":"Zrušiť výber","download":"Stiahnuť","from_date":"Od dátumu","to_date":"Do dátumu","from":"Od","to":"Pre","sort_by":"Zoradiť podľa","ascending":"Vzostupne","descending":"Zostupne","subject":"Predmet","body":"Telo textu","message":"Správa","send":"Odoslať","go_back":"Späť","back_to_login":"Späť na prihlásenie?","home":"Domov","filter":"Filtrovať","delete":"Odstrániť","edit":"Upraviť","view":"Zobraziť","add_new_item":"Pridať novú položku","clear_all":"Vyčistiť všetko","showing":"Zobrazuje sa","of":"z","actions":"Akcie","subtotal":"MEDZISÚČET","discount":"ZĽAVA","fixed":"Pevné","percentage":"Percento","tax":"DAŇ","total_amount":"SUMA SPOLU","bill_to":"Fakturačná adresa","ship_to":"Adresa doručenia","due":"Termín","draft":"Koncept","sent":"Odoslané","all":"Všetko","select_all":"Vybrať všetky","choose_file":"Kliknite sem pre vybratie súboru","choose_template":"Vybrať vzhľad","choose":"Vybrať","remove":"Odstrániť","powered_by":"Beží na","bytefury":"Bytefury","select_a_status":"Vyberte stav","select_a_tax":"Vyberte daň","search":"Hľadať","are_you_sure":"Ste si istý?","list_is_empty":"Zoznam je prázdny.","no_tax_found":"Žiadna daň nebola nájdená!","four_zero_four":"404","you_got_lost":"Ups! Stratili ste sa!","go_home":"Ísť domov","test_mail_conf":"Otestovať e-mailovú konfiguráciu","send_mail_successfully":"E-Mail odoslaný úspešne","setting_updated":"Nastavenia boli úspešne aktualizované","select_state":"Vyberte štát","select_country":"Vyberte krajinu","select_city":"Vyberte mesto","street_1":"Prvý riadok ulice","street_2":"Druhý riadok ulice","action_failed":"Akcia neúspešná","retry":"Skúsiť znova","choose_note":"Vyberte poznámku","no_note_found":"Neboli nájdené žiadne poznámky","insert_note":"Vlož poznámku"},"dashboard":{"select_year":"Vyberte rok","cards":{"due_amount":"Čiastka k zaplateniu","customers":"Zákazníci","invoices":"Faktúry","estimates":"Cenové odhady"},"chart_info":{"total_sales":"Predaje","total_receipts":"Doklady o zaplatení","total_expense":"Výdaje","net_income":"Čistý príjem","year":"Vyberte rok"},"weekly_invoices":{"title":"Týždenné Faktúry"},"monthly_chart":{"title":"Predaje a Výdaje"},"recent_invoices_card":{"title":"Splatné faktúry","due_on":"Termín splatenia","customer":"Zákazník","amount_due":"Čiastka k zaplateniu","actions":"Akcie","view_all":"Zobraziť všetko"},"recent_estimate_card":{"title":"Nedávne cenové odhady","date":"Dátum","customer":"Zákazník","amount_due":"Cena","actions":"Akcie","view_all":"Zobraziť všetky"}},"tax_types":{"name":"Meno","description":"Popis","percent":"Percento","compound_tax":"Zložená daň"},"global_search":{"search":"Hľadať...","customers":"Zákazníci","users":"Uživatelia","no_results_found":"Neboli nájdené žiadne výsledky"},"customers":{"title":"Zákazníci","add_customer":"Pridať Zákazníka","contacts_list":"Zoznam zákazníkov","name":"Meno","mail":"E-mail | E-maily","statement":"Výpis","display_name":"Zobrazované meno","primary_contact_name":"Meno Primárneho Kontaktu","contact_name":"Meno Kontaktu","amount_due":"Čiastka k zaplateniu","email":"E-mail","address":"Adresa","phone":"Telefón","website":"Webové stránky","overview":"Prehľad","enable_portal":"Aktivovať portál","country":"Krajina","state":"Štát","city":"Mesto","zip_code":"PSČ","added_on":"Pridané Dňa","action":"Akcia","password":"Heslo","street_number":"Číslo Ulice","primary_currency":"Hlavná Mena","description":"Popis","add_new_customer":"Pridať Nového Zákazníka","save_customer":"Uložiť Zákazníka","update_customer":"Aktualizovať Zakázníka","customer":"Zákazník | Zákazníci","new_customer":"Nový Zákazník","edit_customer":"Upraviť Zákazníka","basic_info":"Základné Informácie","billing_address":"Fakturačná Adresa","shipping_address":"Doručovacia Adresa","copy_billing_address":"Kopírovať podľa Fakturačnej adresy","no_customers":"Zatiaľ nebol pridaný žiadny zákazník!","no_customers_found":"Nenájdení žiadni zákazníci!","list_of_customers":"Táto sekcia bude obsahovať zoznam zákazníkov.","primary_display_name":"Hlavné meno pre zobrazenie","select_currency":"Vyberte menu","select_a_customer":"Vyberte zákazníka","type_or_click":"Začnite písať alebo kliknite pre vybratie","new_transaction":"Nová Transakcia","no_matching_customers":"Nenašli sa žiadny zákazníci spĺňajúce Vaše podmienky!","phone_number":"Telefónne Číslo","create_date":"Dátum Vytvorenia","confirm_delete":"Nebudete môcť obnoviť tohto zákazníka ani žiadne faktúry, cenové odhady alebo platby s ním spojené. | Nebudete môcť obnoviť týchto zákazníkov ani žiadne faktúry, cenové odhady alebo platby s nimi spojené.","created_message":"Zákazník úspešne vytvorený","updated_message":"Zákazník úspešne aktualizovaný","deleted_message":"Zákazník úspešne odstránený | Zákazníci úspešne odstránení"},"items":{"title":"Položky","items_list":"Zoznam Položiek","name":"Meno","unit":"Jednotka","description":"Popis","added_on":"Pridané Dňa","price":"Cena","date_of_creation":"Dátum Vytvorenia","action":"Akcia","add_item":"Pridať Položku","save_item":"Uložiť Položku","update_item":"Aktualizovať Položku","item":"Položka | Položky","add_new_item":"Pridať Novú Položku","new_item":"Nová položka","edit_item":"Upraviť Položku","no_items":"Zatiaľ žiadné položky!","list_of_items":"Táto sekcia bude obsahovať zoznam zákazníkov.","select_a_unit":"vyberte jednotku","taxes":"Dane","item_attached_message":"Nie je možné vymazať položku, ktorá sa používa","confirm_delete":"Nebudete môcť obnoviť túto Položku | Nebudete môcť obnoviť tieto Položky","created_message":"Položka úspešne vytvorená","updated_message":"Položka úspešne aktualizovaná","deleted_message":"Položka úspešne odstránená | Položky úspešne odstránené"},"estimates":{"title":"Cenové odhady","estimate":"Cenový odhad | Cenové odhady","estimates_list":"Zoznam Cenových odhadov","days":"{days} Dní","months":"{months} Mesiac","years":"{years} Rok","all":"Všetko","paid":"Zaplatené","unpaid":"Nezaplatené","customer":"ZÁKAZNÍK","ref_no":"REF Č.","number":"ČÍSLO","amount_due":"Dlžná suma","partially_paid":"Čiastočne Zaplatené","total":"Spolu","discount":"Zľava","sub_total":"Medzisúčet","estimate_number":"Číslo Cenového odhadu","ref_number":"Ref. Číslo","contact":"Kontakt","add_item":"Pridať Položku","date":"Dátum","due_date":"Dátum Splatnosti","expiry_date":"Dátum Ukončenia Platnosti","status":"Stav","add_tax":"Pridať Daň","amount":"Suma","action":"Akcia","notes":"Poznámky","tax":"Daň","estimate_template":"Vzhľad","convert_to_invoice":"Konvertovať do Faktúry","mark_as_sent":"Označiť ako odoslané","send_estimate":"Odoslať Cenový odhad","resend_estimate":"Znovu Odoslať Cenový odhad","record_payment":"Zaznamenať Platbu","add_estimate":"Vytvoriť Cenový odhad","save_estimate":"Uložiť Cenový odhad","confirm_conversion":"Tento cenový odhad bude použitý k vytvoreniu novej Faktúry.","conversion_message":"Faktúra úspešne vytvorená","confirm_send_estimate":"Tento Cenový odhad bude odoslaný zákazníkovi prostredníctvom e-mailu","confirm_mark_as_sent":"Tento Cenový odhad bude označený ako odoslaný","confirm_mark_as_accepted":"Tento Cenový odhad bude označený ako Prijatý","confirm_mark_as_rejected":"Tento Cenový odhad bude označený ako Odmietnutý","no_matching_estimates":"Nenašli sa žiadne Cenové odhady spĺňajúce Vaše podmienky!","mark_as_sent_successfully":"Cenový odhad úspešne označený ako odoslaný","send_estimate_successfully":"Cenový odhad úspešne odoslaný","errors":{"required":"Pole je povinné"},"accepted":"Prijátá","sent":"Odoslaná","draft":"Koncept","declined":"Zrušený","new_estimate":"Nový Cenový odhad","add_new_estimate":"Pridať nový Cenový odhad","update_Estimate":"Aktualizovať Cenový odhad","edit_estimate":"Upraviť Cenový odhad","items":"položky","Estimate":"Cenový odhad | Cenové odhady","add_new_tax":"Pridať Novú Daň","no_estimates":"Zatiaľ žiadne cenové odhady","list_of_estimates":"Táto sekcia bude obsahovať zoznam cenových odhadov.","mark_as_rejected":"Označiť ako odmietnutú","mark_as_accepted":"Označený ako prijatú","marked_as_accepted_message":"Cenový odhad označený ako schválený","marked_as_rejected_message":"Cenový odhad označený ako odmietnutý","confirm_delete":"Nebude možné obnoviť cenový odhad | Nebude možné obnoviť cenové odhady","created_message":"Cenový odhad úspešné vytvorený","updated_message":"Cenový odhad úspešné aktualizovaný","deleted_message":"Cenový odhad úspešné vymazaný | Cenové odhady úspešné vymazané","user_email_does_not_exist":"Neexistujúca emailová adresa","something_went_wrong":"Niečo neprebehlo v poriadku, odskúšajte prosím znova.","item":{"title":"Názov Položky","description":"Popis","quantity":"Množstvo","price":"Cena","discount":"Zľava","total":"Celkom","total_discount":"Celková zľava","sub_total":"Medzisúčet","tax":"Daň","amount":"Suma","select_an_item":"Začnite písať alebo kliknite pre vybratie položky","type_item_description":"Zadajte Popis Položky (voliteľné)"}},"invoices":{"title":"Faktúry","invoices_list":"Zoznam Faktúr","days":"{days} Ďeň","months":"{months} Mesiac","years":"{years} Rok","all":"Všetko","paid":"Zaplatené","unpaid":"Nezaplatené","customer":"ZÁKAZNÍK","paid_status":"Stav platby","ref_no":"REF Č.","number":"ČÍSLO","amount_due":"Dlžná suma","partially_paid":"Čiastočne Zaplatené","total":"Spolu","discount":"Zľava","sub_total":"Medzisúčet","invoice":"Faktúra | Faktúry","invoice_number":"Číslo Faktúry","ref_number":"Ref. Číslo","contact":"Kontakt","add_item":"Pridať Položku","date":"Dátum","due_date":"Dátum Splatnosti","status":"Stav","add_tax":"Pridať Daň","amount":"Suma","action":"Akcia","notes":"Poznámky","view":"Zobraziť","send_invoice":"Odoslať Faktúru","resend_invoice":"Odoslať Faktúru Znovu","invoice_template":"Vzhľad faktúry","template":"Vzhľad","mark_as_sent":"Označiť ako odoslanú","confirm_send_invoice":"Táto faktúra bude odoslaná zákazníkovi prostredníctvom e-mailu","invoice_mark_as_sent":"Táto faktúra bude označená ako odoslaná","confirm_send":"Táto faktúra bude odoslaná zákazníkovi prostredníctvom e-mailu","invoice_date":"Dátum Vystavenia","record_payment":"Zaznamenať Platbu","add_new_invoice":"Nová Faktúra","update_expense":"Update Expense","edit_invoice":"Upraviť Faktúru","new_invoice":"Nová Faktúra","save_invoice":"Uložiť Faktúru","update_invoice":"Upraviť Faktúru","add_new_tax":"Pridať Novú Daň","no_invoices":"Zatiaľ nemáte žiadné faktúry!","list_of_invoices":"Táto sekcia bude obsahovať zoznam faktúr","select_invoice":"Vybrať Faktúru","no_matching_invoices":"Nenašli sa žiadne faktúry!","mark_as_sent_successfully":"Faktúra označená ako úspešne odoslaná","send_invoice_successfully":"Faktúra bola úspešne odoslaná","cloned_successfully":"Faktúra bola úspešne okopírovaná","clone_invoice":"Kopírovať faktúru","confirm_clone":"Faktúra bude okopírovaná do novej","item":{"title":"Názov položky","description":"Popis","quantity":"Množstvo","price":"Cena","discount":"Zľava","total":"Celkom","total_discount":"Celková zľava","sub_total":"Medzisúčet","tax":"Daň","amount":"Čiastka","select_an_item":"Napíšte alebo vyberte položku","type_item_description":"Popis položky (voliteľné)"},"payment_attached_message":"K jednej z vybraných faktúr už je pripojená platba. Nezabudnite najskôr vymazať priložené platby, aby ste mohli pokračovať v odstránení","confirm_delete":"Túto faktúru nebude možné obnoviť | Tieto faktúry nebude možné obnoviť","created_message":"Faktúra úspešne vytvorená","updated_message":"Faktúra úspešne aktualizovaná","deleted_message":"Faktúra úspešne vymazaná | Faktúry úspešne vymazané","marked_as_sent_message":"Faktúra úspešne označená ako odoslaná","user_email_does_not_exist":"Emailová adresa neexistuje","something_went_wrong":"Niečo neprebehlo v poriadku, odskúšajte prosím znova.","invalid_due_amount_message":"Celková suma faktúry nemôže byť nižšia ako celková suma zaplatená za túto faktúru. Ak chcete pokračovať, aktualizujte faktúru alebo odstráňte súvisiace platby."},"credit_notes":{"title":"Dobropisy","credit_notes_list":"Zoznam dobropisov","credit_notes":"Poznámky k dobropisom","contact":"Kontakt","date":"Dátum","amount":"Suma","action":"Akcia","credit_number":"Číslo dobropisu","notes":"Poznámky","confirm_delete":"Chcete zmazat tento dobropis?","item":{"title":"Názov Položky","description":"Popis","quantity":"Množstvo","price":"Cena","discount":"Zľava","total":"Celkom","total_discount":"Celková Zľava","sub_total":"Medzisúčet","tax":"Daň"}},"payments":{"title":"Platby","payments_list":"Zoznam Platieb","record_payment":"Zaznamenať Platbu","customer":"Zákazník","date":"Dátum","amount":"Suma","action":"Akcia","payment_number":"Číslo Platby","payment_mode":"Spôsob Platby","invoice":"Faktúra","note":"Poznámka","add_payment":"Pridať Platbu","new_payment":"Nová Platba","edit_payment":"Úpraviť Platbu","view_payment":"Zobraziť Platbu","add_new_payment":"Nová Platba","send_payment_receipt":"Poslať Doklad o Zaplatení","send_payment":"Odoslať Platbu","save_payment":"Uložiť Platbu","update_payment":"Úpraviť Platbu","payment":"Platba | Platby","no_payments":"Zatiaľ nemáte žiadne platby!","no_matching_payments":"Nenašli sa žiadne platby spĺňajúce Vaše podmienky!","list_of_payments":"Táto sekcia bude obsahovať zoznam platieb.","select_payment_mode":"Vyberte spôsob platby","confirm_mark_as_sent":"Tento cenový odhad bude označený ako odoslaný","confirm_send_payment":"Tento cenový odhad bude odoslaný zákazníkovi prostredníctvom e-mailu","send_payment_successfully":"Platba úspešne odoslaná","user_email_does_not_exist":"Používateľ s týmto e-mailom neexistuje","something_went_wrong":"Niečo neprebehlo v poriadku, odskúšajte prosím znova.","confirm_delete":"Nebudete môcť obnoviť túto Platbu | Nebudete môcť obnoviť tieto Platby","created_message":"Platba úspešne vytvorená","updated_message":"Platba úspešne upravena","deleted_message":"Platba úspešne odstránená | Platby úspešne odstránené","invalid_amount_message":"Suma platby nie je správna"},"expenses":{"title":"Výdaje","expenses_list":"Zoznam Výdajov","select_a_customer":"Vyberte zákazníka","expense_title":"Nadpis","customer":"Zákazník","contact":"Kontakt","category":"Kategória","from_date":"Od dátumu","to_date":"Do dátumu","expense_date":"Dátum","description":"Popis","receipt":"Doklad o zaplatení","amount":"Suma","action":"Akcia","note":"Poznámka","category_id":"ID kategórie","date":"Dátum","add_expense":"Pridať Výdaj","add_new_expense":"Pridať Nový Výdaj","save_expense":"Uložiť Výdaj","update_expense":"Aktualizovať Výdaj","download_receipt":"Stiahnuť doklad o zaplatení","edit_expense":"Upraviť Výdaj","new_expense":"Nový Výdaj","expense":"Výdaj | Výdaje","no_expenses":"Zatiaľ nemáte žiadne výdaje!","list_of_expenses":"Táto sekcia bude obsahovať zoznam výdajov.","confirm_delete":"Nebudete môcť obnoviť tento Výdaj | Nebudete môcť obnoviť tieto Výdaje","created_message":"Výdaj úspešne vytvorený","updated_message":"Výdaj úspešne aktualizovaný","deleted_message":"Výdaj úspešne odstránený | Výdaje úspešne odstránené","categories":{"categories_list":"Zoznam kategórií","title":"Nadpis","name":"Názov","description":"Popis","amount":"Suma","actions":"Akcie","add_category":"Pridať Kategóriu","new_category":"Nová Kategória","category":"Kategória | Kategórie","select_a_category":"Vyberte kategóriu"}},"login":{"email":"E-mail","password":"Heslo","forgot_password":"Zabudol som heslo","or_signIn_with":"alebo sa prihlásiť pomocou","login":"Prihlásiť sa","register":"Registrovať sa","reset_password":"Obnoviť heslo","password_reset_successfully":"Heslo Úspešne Obnovené","enter_email":"Zadajte e-mail","enter_password":"Zadajte heslo","retype_password":"Znova zadajte heslo","login_placeholder":"email@priklad.sk"},"users":{"title":"Uživatelia","users_list":"Zoznam Užívateľov","name":"Meno","description":"Popis","added_on":"Pridané Dňa","date_of_creation":"Dátum Vytvorenia","action":"Akcia","add_user":"Pridať používateľa","save_user":"Uložiť používateľa","update_user":"Aktualizovať používateľa","user":"Užívateľ | Užívatelia","add_new_user":"Pridať Nového Užívateľa","new_user":"Nový užívateľ","edit_user":"Upraviť Užívateľa","no_users":"Zatiaľ nebol pridaný žiadny užívateľ!","list_of_users":"Táto sekcia bude obsahovať zoznam užívateľov.","email":"E-mail","phone":"Telefón","password":"Heslo","user_attached_message":"Nie je možné vymazať aktívneho užívateľa","confirm_delete":"Nebude možné obnoviť tohto používateľa | Nebude možné obnoviť týchto používateľov","created_message":"Užívateľ úspešne vytvorený","updated_message":"Užívateľ úspešne aktualizovaná","deleted_message":"Užívateľ úspešne odstránený | Užívatelia úspešne odstránení"},"reports":{"title":"Reporty","from_date":"Od dátumu","to_date":"Do dátumu","status":"Stav","paid":"Zaplatená","unpaid":"Nezaplatená","download_pdf":"Stiahnuť PDF","view_pdf":"Zobraziť PDF","update_report":"Aktualizovať Report","report":"Report | Reporty","profit_loss":{"profit_loss":"Ziskt a Straty","to_date":"Do dátumu","from_date":"Od dátumu","date_range":"Vybrať rozsah dátumu"},"sales":{"sales":"Predaje","date_range":"Vybrať rozsah dátumu","to_date":"Do dátumu","from_date":"Od dátumu","report_type":"Typ Reportu"},"taxes":{"taxes":"Dane","to_date":"Do dátumu","from_date":"Od dátumu","date_range":"Vybrať Rozsah Dátumu"},"errors":{"required":"Pole je povinné"},"invoices":{"invoice":"Faktúra","invoice_date":"Dátum Vystavenia","due_date":"Dátum Splatnosti","amount":"Suma","contact_name":"Kontaktná Osoba","status":"Stav"},"estimates":{"estimate":"Cenový odhad","estimate_date":"Dátum cenového odhadu","due_date":"Dátum platnosti cenového odhadu","estimate_number":"Číslo cenového odhadu","ref_number":"Ref. Číslo","amount":"Suma","contact_name":"Kontaktná Osoba","status":"Stav"},"expenses":{"expenses":"Výdaje","category":"Kategória","date":"Dátum","amount":"Suma","to_date":"Do dátumu","from_date":"Od dátumu","date_range":"Vybrať Rozsah Dátumu"}},"settings":{"menu_title":{"account_settings":"Nastavenia účtu","company_information":"Informácie o Firme","customization":"Prispôsobenie","preferences":"Preferencie","notifications":"Upozornenia","tax_types":"Typy Daní","expense_category":"Kategórie cenových odhadov","update_app":"Aktualizovať Aplikáciu","backup":"Záloha","file_disk":"Súborový disk","custom_fields":"Vlastné Polia","payment_modes":"Spôsoby Platby","notes":"Poznámky"},"title":"Nastavenia","setting":"Nastavenia | Nastavenia","general":"Všeobecné","language":"Jazyk","primary_currency":"Hlavná Mena","timezone":"Časové Pásmo","date_format":"Formát Dátumu","currencies":{"title":"Meny","currency":"Mena | Meny","currencies_list":"Zoznam Mien","select_currency":"Vyberte Menu","name":"Meno","code":"Kód","symbol":"Symbol","precision":"Presnosť","thousand_separator":"Oddelovač Tisíciek","decimal_separator":"Oddelovač Desatinných Miest","position":"Pozícia","position_of_symbol":"Pozícia Symbolu","right":"Vpravo","left":"Vľavo","action":"Akcia","add_currency":"Pridať novú Menu"},"mail":{"host":"Host E-mailu","port":"Port E-mailu","driver":"Driver E-mailu","secret":"Tajný Kľúč (secret)","mailgun_secret":"Tajný kľúč Mailgun (secret)","mailgun_domain":"Doména","mailgun_endpoint":"Endpoint Mailgun","ses_secret":"SES Tajný Kľúč (secret)","ses_key":"SES kľúč (key)","password":"E-mailové heslo","username":"E-mailové meno (username)","mail_config":"Konfigurácia E-mailov","from_name":"Meno odosielateľa","from_mail":"E-mail odosielateľa","encryption":"E-mailová Enkrypcia","mail_config_desc":"Nižšie nájdete konfiguráciu E-mailu použitého k odosielaniu E-mailov z aplikácie Crater. Môžete taktiež nastaviť spojenie so službami tretích strán ako napríklad Sendgrid, SES a pod."},"pdf":{"title":"Nastavenia PDF","footer_text":"Text v pätičke","pdf_layout":"Rozloženie PDF"},"company_info":{"company_info":"Informácie o spoločnosti","company_name":"Názov spoločnosti","company_logo":"Logo spoločnosti","section_description":"Informácie o Vašej firme, ktoré budú zobrazené na faktúrach, cenových odhadoch a iných dokumentoch vytvorených vďaka Creater.","phone":"Telefón","country":"Krajina","state":"Štát","city":"Mesto","address":"Adresa","zip":"PSČ","save":"Uložiť","updated_message":"Informácie o firme úspešne aktualizované"},"custom_fields":{"title":"Vlastné Polia","section_description":"Personalizujte si Faktúry, Cenové Odhady a Potvrdenia o platbe pomocou vlastných polí. Uistite sa, že ste nižšie vytvorené polia použili v formáte adresy na stránke nastavení personalizácie.","add_custom_field":"Pridať Vlastné Pole","edit_custom_field":"Upraviť Vlastné Pole","field_name":"Meno Poľa","label":"Značka","type":"Typ","name":"Názov","required":"Povinné","placeholder":"Umiestnenie","help_text":"Pomocný Text","default_value":"Predvolená hodnota","prefix":"Predpona","starting_number":"Počiatočné Číslo","model":"Model","help_text_description":"Napíšte popis aby užívatelia lepšie pochopili význam tohto poľa.","suffix":"Prípona","yes":"Áno","no":"Nie","order":"Objednať","custom_field_confirm_delete":"Nebudete môcť obnovit toto vlastné pole","already_in_use":"Toto vlastne pole sa už používa","deleted_message":"Vlastné pole úspešne vymazané","options":"možnosti","add_option":"Pridať Možnosti","add_another_option":"Pridať ďaľšiu možnostť","sort_in_alphabetical_order":"Zoradiť v abecednom poradí","add_options_in_bulk":"Pridať hromadné možnosti","use_predefined_options":"Použiť predvolené možnosti","select_custom_date":"Vybrat vlastný dátum","select_relative_date":"Vybrať Relatívny Dátum","ticked_by_default":"Predvolene označené","updated_message":"Vlastné pole úspešne aktualizované","added_message":"Vlastne pole úspešne pridané"},"customization":{"customization":"Prispôsobenie","save":"Uložiť","addresses":{"title":"Adresy","section_description":"Môžete nastaviť formát fakturačnej a dodacej adresy zákazníka (Zobrazuje sa iba v PDF). ","customer_billing_address":"Zákazník - fakturačná adresa","customer_shipping_address":"Zákazník - doručovacia adresa","company_address":"Firemná adresa","insert_fields":"Vložiť polia","contact":"Kontakt","address":"Adresa","display_name":"Zobrazované Meno","primary_contact_name":"Meno Primárneho Kontaktu","email":"Email","website":"Webové stránky","name":"Názov","country":"Krajina","state":"Štát","city":"Mesto","company_name":"Názov firmy","address_street_1":"Adresa ulica 1","address_street_2":"Adresa ulica 2","phone":"Telefón","zip_code":"PSČ","address_setting_updated":"Nastavenia adresy úspešne aktualizované"},"updated_message":"Informácie o firme úspešne aktualizované","invoices":{"title":"Faktúry","notes":"Poznámky","invoice_prefix":"Predpona Faktúry","default_invoice_email_body":"Prednastavené telo e-mailu faktúry","invoice_settings":"Nastavenia Faktúry","autogenerate_invoice_number":"Automaticky Vygenerovať Číslo Faktúry","invoice_setting_description":"Ak si neprajete automaticky generovať číslo novej faktúry, vypnite túto možnosť.","enter_invoice_prefix":"Zadajte predponu faktúry","terms_and_conditions":"Podmienky používania","company_address_format":"Formát firemnej adresy","shipping_address_format":"Formát doručovacej adresy","billing_address_format":"Formát fakturačnej adresy","invoice_setting_updated":"Nastavenia faktúr boli úspešne aktualizované"},"estimates":{"title":"Cenový odhad","estimate_prefix":"Predpona cenového odhadu","default_estimate_email_body":"Prednastavené telo e-mailu cenového dohadu","estimate_settings":"Nastavenia cenových odhadov","autogenerate_estimate_number":"Automaticky generovať číslo cenového odhadu","estimate_setting_description":"Zakážte to, ak si neprajete automaticky generovať čísla cenovych odhadov zakaždým, keď vytvoríte nový odhad.","enter_estimate_prefix":"Vložte prepdonu cenového odhadu","estimate_setting_updated":"Nastavenia cenových odhadov úspešne aktualizované","company_address_format":"Formát firemnej adresy","billing_address_format":"Formát fakturačnej adresy","shipping_address_format":"Formát fakturačnej adresy"},"payments":{"title":"Platby","description":"Možnosti platieb","payment_prefix":"Predpona platby","default_payment_email_body":"Prednastavené telo e-mailu platby","payment_settings":"Nastavenia Platieb","autogenerate_payment_number":"Automaticky generovať číslo platby","payment_setting_description":"Zakážte to, ak si neprajete automaticky generovať čísla platieb zakaždým, keď vytvoríte novú platbu.","enter_payment_prefix":"Vložit Predponu Platby","payment_setting_updated":"Nastavenia platieb úspešne aktualizované","payment_modes":"Typy Platieb","add_payment_mode":"Pridať typ Platby","edit_payment_mode":"Upraviť typ Platby","mode_name":"Názov platby","payment_mode_added":"Typ Platby pridaný","payment_mode_updated":"Typ Platby aktualizovaný","payment_mode_confirm_delete":"Nebude môcť obnoviť typ platby","already_in_use":"Tento typ platby sa už používa","deleted_message":"Typ platby úspešne odstránený","company_address_format":"Formát firemnej adresy","from_customer_address_format":"Z formátu adresy zákazníka"},"items":{"title":"Položky","units":"Jednotky","add_item_unit":"Pridať Jednotku","edit_item_unit":"Upraviť Jednotku","unit_name":"Názov Jednotky","item_unit_added":"Jednotka úspešne pridaná","item_unit_updated":"Jednotka úspešne aktualizovaná","item_unit_confirm_delete":"Nebudete môcť obnoviť túto Jednotku","already_in_use":"Jednotká sa práve používa","deleted_message":"Jednotka úspešne odstránena"},"notes":{"title":"Poznámky","description":"Ušetrite čas vytváraním poznámok a ich opätovným použitím vo svojich faktúrach, odhadoch a platbách.","notes":"Poznámky","type":"Typ","add_note":"Pridať poznámku","add_new_note":"Pridať Novú Poznámku","name":"Názov","edit_note":"Upraviť poznámku","note_added":"Poznámka úspešne pridaná","note_updated":"Poznámka úspešne aktualizovaná","note_confirm_delete":"Nebudete môcť obnoviť túto Poznámku","already_in_use":"Poznámka sa práve používa","deleted_message":"Poznámka úspešne odstránena"}},"account_settings":{"profile_picture":"Profilová Fotka","name":"Meno","email":"Email","password":"Heslo","confirm_password":"Potvrdiť heslo","account_settings":"Nastavenie účtu","save":"Uložiť","section_description":"Svoje meno, e-mail a heslo môžete aktualizovať pomocou formulára nižšie.","updated_message":"Nastavenia účtu boli úspešne aktualizované"},"user_profile":{"name":"Meno","email":"Email","password":"Heslo","confirm_password":"Potvrdiť heslo"},"notification":{"title":"Upozornenia","email":"Odoslať upozornenie","description":"Ktoré e-mailové upozornenia chcete dostávať keď sa niečo zmení?","invoice_viewed":"Faktúra zobrazená","invoice_viewed_desc":"Keď si váš zákazník prezerá faktúru odoslanú cez Hlavný Panel.","estimate_viewed":"Cenový odhad zobrazený","estimate_viewed_desc":"Keď si váš zákazník prezerá cenový odhad odoslaný cez Hlavný Panel.","save":"Uložiť","email_save_message":"E-mail bol úspešne uložený","please_enter_email":"Zadajte e-mail"},"tax_types":{"title":"Typ daní","add_tax":"Pridať daň","edit_tax":"Upraviť Daň","description":"Môžete pridať alebo odobrať dane. Crater podporuje dane jednotlivých položiek aj na faktúre.","add_new_tax":"Pridať Novú Daň","tax_settings":"Nastavenia daní","tax_per_item":"Daň pre každú Položku zvlášť","tax_name":"Názov Dane","compound_tax":"Zložená daň","percent":"Percento","action":"Akcia","tax_setting_description":"Túto možnosť povoľte, ak chcete pridať dane k jednotlivým položkám faktúr. Štandardne sa dane pripočítavajú priamo k faktúre.","created_message":"Daň úspešne vytvorená","updated_message":"Daň úspešne aktualizovaná","deleted_message":"Daň úspešne odstránená","confirm_delete":"Nebudete môcť obnoviť daň","already_in_use":"Daň už sa už požíva"},"expense_category":{"title":"Kategórie výdajov","action":"Akcia","description":"Na pridanie položiek výdavkov sú povinné kategórie. Tieto kategórie môžete pridať alebo odstrániť podľa svojich preferencií.","add_new_category":"Pridať Novú Kategóriu","add_category":"Pridať Kategóriu","edit_category":"Upraviť Kategóriu","category_name":"Názov Kategórie","category_description":"Popis","created_message":"Kategória cenového odhadu úspešne vytvorená","deleted_message":"Kategória cenového odhadu úspešne odstránena","updated_message":"Kategória cenového odhadu úspešne aktualizovaná","confirm_delete":"Nebudete môcť obnoviť túto kategóriu cenových odhadov","already_in_use":"Kategória sa už používa"},"preferences":{"currency":"Mena","default_language":"Predvolený Jazyk","time_zone":"Časové Pásmo","fiscal_year":"Fiškálny Rok","date_format":"Formát Dátumu","discount_setting":"Nastavenia Zľavy","discount_per_item":"Zľava pre každú Položku zvlášť","discount_setting_description":"Túto možnosť povoľte, ak chcete pridať zľavu k jednotlivým položkám faktúry. Štandardne sa zľava pripočítava priamo k faktúre.","save":"Uložiť","preference":"Preferencie | Preferencie","general_settings":"Systémovo predvolené preferencie.","updated_message":"Preferencie úspešne aktualizované","select_language":"Vyberte Jazyk","select_time_zone":"Vyberte Časové Pásmo","select_date_format":"Vybrať Formát Dátumu","select_financial_year":"Vyberte Fiškálny Rok"},"update_app":{"title":"Aktualizovať Aplikáciu","description":"Aplikáciu môžte jednoducho aktualizovať tlačitkom nižšie","check_update":"Skontrolovať Aktualizácie","avail_update":"Nová aktualizácia je k dispozícii","next_version":"Ďalšia Verzia","requirements":"Požiadavky","update":"Aktualizovať","update_progress":"Aktualizácia prebieha...","progress_text":"Bude to trvať len pár minút. Pred dokončením aktualizácie neobnovujte obrazovku ani nezatvárajte okno.","update_success":"App bola aktualizovaná! Počkajte, kým sa okno vášho prehliadača načíta automaticky.","latest_message":"Nie je k dispozícii žiadna aktualizácia! Používate najnovšiu verziu.","current_version":"Aktuálna verzia","download_zip_file":"Stiahnuť ZIP súbor","unzipping_package":"Rozbaliť balík","copying_files":"Kopírovanie súborov","running_migrations":"Prebieha Migrácia","finishing_update":"Ukončovanie Aktualizácie","update_failed":"Aktualizácia zlyhala!","update_failed_text":"Aktualizácia zlyhala na : {step} kroku"},"backup":{"title":"Záloha | Zálohy","description":"Záloha je vo formáte zip ktorý obsahuje všetky súbory v adresároch vrátane výpisu z databázy.","new_backup":"Vytvoriť zálohu","create_backup":"Vytvoriť zálohu","select_backup_type":"Vybrať typ zálohy","backup_confirm_delete":"Nebude možné obnoviť túto zálohu","path":"cesta","new_disk":"Nový Disk","created_at":"vytvorené","size":"velkost","dropbox":"dropbox","local":"local","healthy":"v poriadku","amount_of_backups":"počet záloh","newest_backups":"najnovšie zálohy","used_storage":"využité miesto na disku","select_disk":"Vybrať disk","action":"Akcia","deleted_message":"Záloha úspešne vymazaná","created_message":"Záloha úspešne vytvorená","invalid_disk_credentials":"Nesprávne prihlasovacie údaje na disk"},"disk":{"title":"File Disk | File Disks","description":"V predvolenom nastavení použije Crater váš lokálny disk na ukladanie záloh, avatarov a iných obrazových súborov. Môžete nakonfigurovať viac ako jeden disku ako napr. DigitalOcean, S3 a Dropbox podľa vašich preferencií.","created_at":"vytvorené","dropbox":"Dropbox","name":"Názov","driver":"Driver","disk_type":"Typ","disk_name":"Názov Disku","new_disk":"Pridať Nový Disk","filesystem_driver":"Driver systémových súborov","local_driver":"lokálny Driver","local_root":"Lokálka Cesta (root)","public_driver":"Verejný Driver","public_root":"Verejná Cesta (root)","public_url":"Verejná URL","public_visibility":"Viditeľné pre Verejnosť","media_driver":"Driver médií","media_root":"Root médií","aws_driver":"AWS Driver","aws_key":"AWS Kľúč (key)","aws_secret":"AWS Tajný Kľúč (secret)","aws_region":"AWS Región","aws_bucket":"AWP Bucket","aws_root":"AWP Cesta (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":"Predvolený Driver","is_default":"Je predvolený","set_default_disk":"Nastaviť predvolený disk","success_set_default_disk":"Disk úspešne nastavený ako predvolený","save_pdf_to_disk":"Ulož PDFs na Disk","disk_setting_description":"Túto možnosť povoľte ak si chcete automaticky uložiť kópiu každého súboru PDF s fakturami, odhadmi a príjmami na predvolený disk. Použitím tejto možnosti skrátite dobu načítania pri prezeraní súborov PDF.","select_disk":"Vybrať Disk","disk_settings":"Nastavenie Disku","confirm_delete":"Vaše existujúce súbory a priečinky na zadanom disku nebudú ovplyvnené ale konfigurácia vášho disku bude odstránená z Crateru","action":"Akcia","edit_file_disk":"Upravit Disk","success_create":"Disk úspešne pridaný","success_update":"Disk úspešne aktualizovaný","error":"Pridanie disku zlyhalo","deleted_message":"Disk bol úspešne odstránený","disk_variables_save_successfully":"Disk bol úspešne pridaný","disk_variables_save_error":"Konfigurácia disku zlyhala.","invalid_disk_credentials":"Neplatné prihlasovacie údaje pre Disk"}},"wizard":{"account_info":"Informácie o účte","account_info_desc":"Nižšie uvedené podrobnosti sa použijú na vytvorenie hlavného účtu správcu. Tie môžete kedykoľvek zmeniť po prihlásení.","name":"Meno","email":"Email","password":"Heslo","confirm_password":"Potvrdiť heslo","save_cont":"Uložiť a pokračovať","company_info":"Firemné údaje","company_info_desc":"Tieto informácie sa zobrazia na faktúrach. Neskôr ich však môžete upraviť.","company_name":"Názov firmy","company_logo":"Firemné logo","logo_preview":"Náhľad loga","preferences":"Preferencie","preferences_desc":"Predvolené nastavenie systému.","country":"Krajina","state":"Štát","city":"Mesto","address":"Adresa","street":"Ulica1 | Ulica2","phone":"Telefón","zip_code":"PSČ","go_back":"Naspäť","currency":"Mena","language":"Jazyk","time_zone":"Časové pásmo","fiscal_year":"Fiškálny rok","date_format":"Formát dátumu","from_address":"Z adresy","username":"Prihlasovacie meno","next":"Ďaľší","continue":"Pokračovať","skip":"Vynechať","database":{"database":"URL Adresa Aplikácie a Databáza","connection":"Pripojenie k databáze","host":"Databáza - Host","port":"Databáza - Port","password":"Heslo do databázy","app_url":"URL Adresa Aplikácie","app_domain":"Doména aplikácie","username":"Prihlasovacie meno do databázy","db_name":"Názov databázy","db_path":"Databázá - cesta (path)","desc":"Vytvorte databázu na svojom serveri a pomocou nasledujúceho formulára nastavte poverenia."},"permissions":{"permissions":"Oprávnenia","permission_confirm_title":"Ste si istý že chcete pokračovať?","permission_confirm_desc":"Nedostatočné oprávnenia na priečinky inštalácie","permission_desc":"Nižšie je uvedený zoznam povolení priečinkov ktoré sú potrebné na fungovanie aplikácie. Ak kontrola povolení zlyhá nezabudnite aktualizovať povolenia priečinka."},"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":"Nižšie je uvedený formulár na konfiguráciu ovládača e-mailu na odosielanie e-mailov z aplikácie. Môžete tiež nakonfigurovať aj externých poskytovateľov napríklad Sendgrid apod."},"req":{"system_req":"Systémové požiadavky","php_req_version":"Php (verzia {version} požadovaná)","check_req":"Skontrolujte požiadavky","system_req_desc":"Crater má niekoľko požiadaviek na server. Skontrolujte či má váš server požadovanú verziu php a všetky moduly uvedené nižšie."},"errors":{"migrate_failed":"Migráci zlyhala","database_variables_save_error":"Nie je možné zapísať konfiguráciu do .env file. Skontrolujte oprávnenia","mail_variables_save_error":"Konfigurácia emailu zlyhala.","connection_failed":"Pripojenie k databáze zlyhalo","database_should_be_empty":"Databáza musí byť prázdna"},"success":{"mail_variables_save_successfully":"Email úspešne nakonfigurovaný","database_variables_save_successfully":"Databáza úspešne nakonfigurovaná."}},"layout_login":{"copyright_crater":"Autorské práva @ Crater - 2020","super_simple_invoicing":"Super jednoduchá fakturácia","for_freelancer":"pre freelancerov a","small_businesses":"Malé firmy","crater_help":"Crater vám pomôže sledovať výdavky zaznamenávať platby a generovať prekrásne","invoices_and_estimates":"faktúry a cenové odhady s možnosťou výberu viacerých vzhľadov."},"validation":{"invalid_phone":"Zlé telefónné číslo","invalid_url":"Nesprávna URL adresa (ex: http://www.crater.com)","invalid_domain_url":"Nesprávna URL (ex: crater.com)","required":"Povinné pole","email_incorrect":"Zlý email.","email_already_taken":"Email sa uz používa.","email_does_not_exist":"Používateľ s týmto emailom neexistuje.","item_unit_already_taken":"Názov tejto položky sa už používa","payment_mode_already_taken":"Názov tohto typu platby sa už používa","send_reset_link":"Odoslať resetovací link","not_yet":"Email ešte neprišiel? Znova odoslať","password_min_length":"Heslo musí obsahovať {count} znaky","name_min_length":"Meno musí mať minimálne {count} písmen.","enter_valid_tax_rate":"Zadajte platnú sadzbu dane","numbers_only":"Iba čísla.","characters_only":"Iba znaky.","password_incorrect":"Heslá musia byť rovnaké","password_length":"Heslo musi obsahovať minimálne {count} znakov.","qty_must_greater_than_zero":"Množstvo musí byť viac ako 0.","price_greater_than_zero":"Cena musí byť viac ako 0.","payment_greater_than_zero":"Platba musí byť viac ako 0.","payment_greater_than_due_amount":"Zadaná platba je vyššia ako suma na faktúre.","quantity_maxlength":"Množstvo by nemalo obsahovať ako 20 číslic.","price_maxlength":"Cena by nemala obsahovať viac ako 20 číslic.","price_minvalue":"Suma musi byť vyššia ako 0.","amount_maxlength":"Čiastka by nemala obsahovať viac ako 20 číslic.","amount_minvalue":"Čiastka musí byť vačšia ako 0.","description_maxlength":"Popis nesmie obsahovať viac ako 255 znaokv.","subject_maxlength":"Predmet nesmie obsahovať viac ako 100 znakov.","message_maxlength":"Správa nesmie obsahovať viac ako 255 znakov.","maximum_options_error":"Maximálny počet z {max} možnosti vybraný. Najprv odstránte aspoň jednu možnost a následne vyberte inú.","notes_maxlength":"Poznámky nesmú obsahovať viac ako 100 znakov.","address_maxlength":"Adresa nesmie obsahovať viac ako 255 znakov","ref_number_maxlength":"Referenčné čislo nesmie obsahovať viac ako 255 znakov","prefix_maxlength":"Predpona nesmie mať viac ako 5 znakov.","something_went_wrong":"Niečo neprebehlo v poriadku, odskúšajte prosím znova."},"pdf_estimate_label":"Cenový odhad","pdf_estimate_number":"Číslo cenového odhadu","pdf_estimate_date":"Dátum cenového odhadu","pdf_estimate_expire_date":"Platnosť cenového odhadu","pdf_invoice_label":"Faktúra","pdf_invoice_number":"Číslo faktúry","pdf_invoice_date":"Dátum vystavenia","pdf_invoice_due_date":"Dátum splatnosti","pdf_notes":"Poznámky","pdf_items_label":"Položky","pdf_quantity_label":"Počet","pdf_price_label":"Cena","pdf_discount_label":"Zľava","pdf_amount_label":"Celkom","pdf_subtotal":"Medzisúčet","pdf_total":"Súčet","pdf_payment_receipt_label":"Doklad o zaplatení","pdf_payment_date":"Dátum platby","pdf_payment_number":"Číslo platby","pdf_payment_mode":"Spôsob platby","pdf_payment_amount_received_label":"Prijatá suma","pdf_expense_report_label":"Report výdajov","pdf_total_expenses_label":"Celkové výdaje","pdf_profit_loss_label":"Zisky a straty","pdf_income_label":"Príjem","pdf_net_profit_label":"Čistý príjem","pdf_customer_sales_report":"Report predajov: Podľa zákazníkov","pdf_total_sales_label":"Celkové predaje","pdf_item_sales_label":"Report predajov: Podľa položky","pdf_tax_report_label":"Report daní","pdf_total_tax_label":"Celkové dane","pdf_tax_types_label":"Typy daní","pdf_expenses_label":"Výdaje","pdf_bill_to":"Fakturovať,","pdf_ship_to":"Doručiť,","pdf_received_from":"Prijaté od:"}'),me=JSON.parse('{"navigation":{"dashboard":"Bảng điều khiển","customers":"Khách hàng","items":"Mặt hàng","invoices":"Hóa đơn","expenses":"Chi phí","estimates":"Ước tính","payments":"Thanh toán","reports":"Báo cáo","settings":"Cài đặt","logout":"Đăng xuất","users":"Người dùng"},"general":{"add_company":"Thêm công ty","view_pdf":"Xem PDF","copy_pdf_url":"Sao chép Url PDF","download_pdf":"tải PDF","save":"Tiết kiệm","create":"Tạo nên","cancel":"Huỷ bỏ","update":"Cập nhật","deselect":"Bỏ chọn","download":"Tải xuống","from_date":"Từ ngày","to_date":"Đến nay","from":"Từ","to":"Đến","sort_by":"Sắp xếp theo","ascending":"Tăng dần","descending":"Giảm dần","subject":"Môn học","body":"Thân hình","message":"Thông điệp","send":"Gửi","go_back":"Quay lại","back_to_login":"Quay lại đăng nhập?","home":"Trang Chủ","filter":"Bộ lọc","delete":"Xóa bỏ","edit":"Biên tập","view":"Lượt xem","add_new_item":"Thêm mục mới","clear_all":"Làm sạch tất cả","showing":"Hiển thị","of":"của","actions":"Hành động","subtotal":"TIÊU ĐỀ","discount":"GIẢM GIÁ","fixed":"đã sửa","percentage":"Phần trăm","tax":"THUẾ","total_amount":"TỔNG CỘNG","bill_to":"Hoa đơn để","ship_to":"Tàu","due":"Đến hạn","draft":"Bản nháp","sent":"Gởi","all":"Tất cả","select_all":"Chọn tất cả","choose_file":"Bấm vào đây để chọn một tập tin","choose_template":"Chọn một mẫu","choose":"Chọn","remove":"Tẩy","powered_by":"Được cung cấp bởi","bytefury":"Bytefury","select_a_status":"Chọn một trạng thái","select_a_tax":"Chọn thuế","search":"Tìm kiếm","are_you_sure":"Bạn có chắc không?","list_is_empty":"Danh sách trống.","no_tax_found":"Không tìm thấy thuế!","four_zero_four":"404","you_got_lost":"Rất tiếc! Bạn bị lạc rồi!","go_home":"Về nhà","test_mail_conf":"Kiểm tra cấu hình thư","send_mail_successfully":"Thư đã được gửi thành công","setting_updated":"Đã cập nhật cài đặt thành công","select_state":"Chọn trạng thái","select_country":"Chọn quốc gia","select_city":"Lựa chọn thành phố","street_1":"đường số 1","street_2":"Đường 2","action_failed":"Diễn: Đã thất bại","retry":"Thử lại","choose_note":"Chọn Ghi chú","no_note_found":"Không tìm thấy ghi chú","insert_note":"Chèn ghi chú","copied_pdf_url_clipboard":"Đã sao chép url PDF vào khay nhớ tạm!"},"dashboard":{"select_year":"Chọn năm","cards":{"due_amount":"Số tiền đến hạn","customers":"Khách hàng","invoices":"Hóa đơn","estimates":"Ước tính"},"chart_info":{"total_sales":"Bán hàng","total_receipts":"Biên lai","total_expense":"Chi phí","net_income":"Thu nhập ròng","year":"Chọn năm"},"weekly_invoices":{"title":"Hóa đơn hàng tuần"},"monthly_chart":{"title":"Bán hàng"},"recent_invoices_card":{"title":"Hóa đơn đến hạn","due_on":"Đến hạn vào","customer":"khách hàng","amount_due":"Số tiền đến hạn","actions":"Hành động","view_all":"Xem tất cả"},"recent_estimate_card":{"title":"Các ước tính gần đây","date":"Ngày","customer":"khách hàng","amount_due":"Số tiền đến hạn","actions":"Hành động","view_all":"Xem tất cả"}},"tax_types":{"name":"Tên","description":"Sự miêu tả","percent":"Phần trăm","compound_tax":"Thuế tổng hợp"},"global_search":{"search":"Tìm kiếm...","customers":"Khách hàng","users":"Người dùng","no_results_found":"Không tìm thấy kết quả nào"},"customers":{"title":"Khách hàng","add_customer":"Thêm khách hàng","contacts_list":"Danh sách khách hàng","name":"Tên","mail":"Thư tín | Thư","statement":"Tuyên bố","display_name":"Tên hiển thị","primary_contact_name":"Tên liên hệ chính","contact_name":"Tên Liên lạc","amount_due":"Số tiền đến hạn","email":"E-mail","address":"Địa chỉ","phone":"Điện thoại","website":"Trang mạng","overview":"Tổng quat","enable_portal":"Bật Cổng thông tin","country":"Quốc gia","state":"Tiểu bang","city":"Tp.","zip_code":"Mã Bưu Chính","added_on":"Đã thêm vào","action":"Hoạt động","password":"Mật khẩu","street_number":"Số đường","primary_currency":"Tiền tệ chính","description":"Sự miêu tả","add_new_customer":"Thêm khách hàng mới","save_customer":"Lưu khách hàng","update_customer":"Cập nhật khách hàng","customer":"Khách hàng | Khách hàng","new_customer":"Khách hàng mới","edit_customer":"Chỉnh sửa khách hàng","basic_info":"Thông tin cơ bản","billing_address":"Địa chỉ thanh toán","shipping_address":"Địa chỉ giao hàng","copy_billing_address":"Sao chép từ thanh toán","no_customers":"Chưa có khách hàng!","no_customers_found":"Không tìm thấy khách hàng nào!","no_contact":"Không có liên lạc","no_contact_name":"Không có tên liên hệ","list_of_customers":"Phần này sẽ chứa danh sách các khách hàng.","primary_display_name":"Tên hiển thị chính","select_currency":"Chọn đơn vị tiền tệ","select_a_customer":"Chọn một khách hàng","type_or_click":"Nhập hoặc nhấp để chọn","new_transaction":"Giao dịch mới","no_matching_customers":"Không có khách hàng phù hợp!","phone_number":"Số điện thoại","create_date":"Tạo ngày","confirm_delete":"Bạn sẽ không thể khôi phục khách hàng này và tất cả các Hóa đơn, Ước tính và Thanh toán có liên quan. | Bạn sẽ không thể khôi phục những khách hàng này và tất cả các Hóa đơn, Ước tính và Thanh toán có liên quan.","created_message":"Khách hàng được tạo thành công","updated_message":"Đã cập nhật khách hàng thành công","deleted_message":"Đã xóa khách hàng thành công | Đã xóa khách hàng thành công"},"items":{"title":"Mặt hàng","items_list":"Danh sách mặt hàng","name":"Tên","unit":"Đơn vị","description":"Sự miêu tả","added_on":"Đã thêm vào","price":"Giá bán","date_of_creation":"Ngày tạo","not_selected":"Không có mục nào được chọn","action":"Hoạt động","add_item":"Thêm mặt hàng","save_item":"Lưu mục","update_item":"Cập nhật mặt hàng","item":"Mặt hàng | Mặt hàng","add_new_item":"Thêm mục mới","new_item":"Vật phẩm mới","edit_item":"Chỉnh sửa mục","no_items":"Chưa có mặt hàng nào!","list_of_items":"Phần này sẽ chứa danh sách các mục.","select_a_unit":"chọn đơn vị","taxes":"Thuế","item_attached_message":"Không thể xóa một mục đã được sử dụng","confirm_delete":"Bạn sẽ không thể khôi phục Vật phẩm này | Bạn sẽ không thể khôi phục các Mục này","created_message":"Mục được tạo thành công","updated_message":"Đã cập nhật mặt hàng thành công","deleted_message":"Đã xóa mục thành công | Các mục đã được xóa thành công"},"estimates":{"title":"Ước tính","estimate":"Ước tính | Ước tính","estimates_list":"Danh sách ước tính","days":"{days} Ngày","months":"{tháng} tháng","years":"{năm} Năm","all":"Tất cả","paid":"Đã thanh toán","unpaid":"Chưa thanh toán","customer":"KHÁCH HÀNG","ref_no":"REF KHÔNG.","number":"CON SỐ","amount_due":"SỐ TIỀN ĐÚNG","partially_paid":"Thanh toán một phần","total":"Toàn bộ","discount":"Giảm giá","sub_total":"Tổng phụ","estimate_number":"Số ước tính","ref_number":"Số REF","contact":"Tiếp xúc","add_item":"Thêm một mặt hàng","date":"Ngày","due_date":"Ngày đáo hạn","expiry_date":"Ngày hết hạn","status":"Trạng thái","add_tax":"Thêm thuế","amount":"Số tiền","action":"Hoạt động","notes":"Ghi chú","tax":"Thuế","estimate_template":"Bản mẫu","convert_to_invoice":"Chuyển đổi sang hóa đơn","mark_as_sent":"Đánh dấu là Đã gửi","send_estimate":"Gửi ước tính","resend_estimate":"Gửi lại ước tính","record_payment":"Ghi lại Thanh toán","add_estimate":"Thêm ước tính","save_estimate":"Lưu ước tính","confirm_conversion":"Ước tính này sẽ được sử dụng để tạo Hóa đơn mới.","conversion_message":"Hóa đơn được tạo thành công","confirm_send_estimate":"Ước tính này sẽ được gửi qua email cho khách hàng","confirm_mark_as_sent":"Ước tính này sẽ được đánh dấu là đã gửi","confirm_mark_as_accepted":"Ước tính này sẽ được đánh dấu là Đã chấp nhận","confirm_mark_as_rejected":"Ước tính này sẽ được đánh dấu là Bị từ chối","no_matching_estimates":"Không có ước tính phù hợp!","mark_as_sent_successfully":"Ước tính được đánh dấu là đã gửi thành công","send_estimate_successfully":"Ước tính đã được gửi thành công","errors":{"required":"Lĩnh vực được yêu cầu"},"accepted":"Đã được chấp nhận","rejected":"Từ chối","sent":"Gởi","draft":"Bản nháp","declined":"Suy giảm","new_estimate":"Ước tính mới","add_new_estimate":"Thêm ước tính mới","update_Estimate":"Cập nhật ước tính","edit_estimate":"Chỉnh sửa ước tính","items":"mặt hàng","Estimate":"Ước tính | Ước tính","add_new_tax":"Thêm thuế mới","no_estimates":"Chưa có ước tính nào!","list_of_estimates":"Phần này sẽ chứa danh sách các ước tính.","mark_as_rejected":"Đánh dấu là bị từ chối","mark_as_accepted":"Đánh dấu là đã chấp nhận","marked_as_accepted_message":"Ước tính được đánh dấu là được chấp nhận","marked_as_rejected_message":"Ước tính được đánh dấu là bị từ chối","confirm_delete":"Bạn sẽ không thể khôi phục Ước tính này | Bạn sẽ không thể khôi phục các Ước tính này","created_message":"Ước tính được tạo thành công","updated_message":"Đã cập nhật ước tính thành công","deleted_message":"Đã xóa ước tính thành công | Đã xóa ước tính thành công","user_email_does_not_exist":"Email người dùng không tồn tại","something_went_wrong":"có gì đó không ổn","item":{"title":"Danh mục","description":"Sự miêu tả","quantity":"Định lượng","price":"Giá bán","discount":"Giảm giá","total":"Toàn bộ","total_discount":"Tổng khấu trừ","sub_total":"Tổng phụ","tax":"Thuế","amount":"Số tiền","select_an_item":"Nhập hoặc nhấp để chọn một mục","type_item_description":"Loại Mục Mô tả (tùy chọn)"}},"invoices":{"title":"Hóa đơn","invoices_list":"Danh sách hóa đơn","days":"{days} Ngày","months":"{tháng} tháng","years":"{năm} Năm","all":"Tất cả","paid":"Đã thanh toán","unpaid":"Chưa thanh toán","viewed":"Đã xem","overdue":"Quá hạn","completed":"Đã hoàn thành","customer":"KHÁCH HÀNG","paid_status":"TRẠNG THÁI ĐÃ TRẢ TIỀN","ref_no":"REF KHÔNG.","number":"CON SỐ","amount_due":"SỐ TIỀN ĐÚNG","partially_paid":"Thanh toán một phần","total":"Toàn bộ","discount":"Giảm giá","sub_total":"Tổng phụ","invoice":"Hóa đơn | Hóa đơn","invoice_number":"Số hóa đơn","ref_number":"Số REF","contact":"Tiếp xúc","add_item":"Thêm một mặt hàng","date":"Ngày","due_date":"Ngày đáo hạn","status":"Trạng thái","add_tax":"Thêm thuế","amount":"Số tiền","action":"Hoạt động","notes":"Ghi chú","view":"Lượt xem","send_invoice":"Gửi hóa đơn","resend_invoice":"Gửi lại hóa đơn","invoice_template":"Mẫu hóa đơn","template":"Bản mẫu","mark_as_sent":"Đánh dấu là đã gửi","confirm_send_invoice":"Hóa đơn này sẽ được gửi qua email cho khách hàng","invoice_mark_as_sent":"Hóa đơn này sẽ được đánh dấu là đã gửi","confirm_send":"Hóa đơn này sẽ được gửi qua email cho khách hàng","invoice_date":"Ngày lập hóa đơn","record_payment":"Ghi lại Thanh toán","add_new_invoice":"Thêm hóa đơn mới","update_expense":"Cập nhật chi phí","edit_invoice":"Chỉnh sửa hóa đơn","new_invoice":"Hóa đơn mới","save_invoice":"Lưu hóa đơn","update_invoice":"Cập nhật hóa đơn","add_new_tax":"Thêm thuế mới","no_invoices":"Chưa có hóa đơn!","list_of_invoices":"Phần này sẽ chứa danh sách các hóa đơn.","select_invoice":"Chọn hóa đơn","no_matching_invoices":"Không có hóa đơn phù hợp!","mark_as_sent_successfully":"Hóa đơn được đánh dấu là đã gửi thành công","send_invoice_successfully":"Hóa đơn đã được gửi thành công","cloned_successfully":"Hóa đơn được sao chép thành công","clone_invoice":"Hóa đơn nhân bản","confirm_clone":"Hóa đơn này sẽ được sao chép vào một Hóa đơn mới","item":{"title":"Danh mục","description":"Sự miêu tả","quantity":"Định lượng","price":"Giá bán","discount":"Giảm giá","total":"Toàn bộ","total_discount":"Tổng khấu trừ","sub_total":"Tổng phụ","tax":"Thuế","amount":"Số tiền","select_an_item":"Nhập hoặc nhấp để chọn một mục","type_item_description":"Loại Mục Mô tả (tùy chọn)"},"payment_attached_message":"Một trong các hóa đơn được chọn đã có một khoản thanh toán được đính kèm. Đảm bảo xóa các khoản thanh toán đính kèm trước để tiếp tục xóa","confirm_delete":"Bạn sẽ không thể khôi phục Hóa đơn này | Bạn sẽ không thể khôi phục các Hóa đơn này","created_message":"Hóa đơn đã được tạo thành công","updated_message":"Đã cập nhật hóa đơn thành công","deleted_message":"Hóa đơn đã được xóa thành công | Hóa đơn đã được xóa thành công","marked_as_sent_message":"Hóa đơn được đánh dấu là đã gửi thành công","user_email_does_not_exist":"Email người dùng không tồn tại","something_went_wrong":"có gì đó không ổn","invalid_due_amount_message":"Tổng số tiền trên Hóa đơn không được nhỏ hơn tổng số tiền đã thanh toán cho Hóa đơn này. Vui lòng cập nhật hóa đơn hoặc xóa các khoản thanh toán liên quan để tiếp tục."},"credit_notes":{"title":"Giấy báo có","credit_notes_list":"Danh sách ghi chú tín dụng","credit_notes":"Giấy báo có","contact":"Tiếp xúc","date":"Ngày","amount":"Số tiền","action":"Hoạt động","credit_number":"Số tín dụng","notes":"Ghi chú","confirm_delete":"Bạn có muốn xóa thư tín dụng này không?","item":{"title":"Danh mục","description":"Sự miêu tả","quantity":"Định lượng","price":"Giá bán","discount":"Giảm giá","total":"Toàn bộ","total_discount":"Tổng khấu trừ","sub_total":"Tổng phụ","tax":"Thuế"}},"payments":{"title":"Thanh toán","payments_list":"Danh sách thanh toán","record_payment":"Ghi lại Thanh toán","customer":"khách hàng","date":"Ngày","amount":"Số tiền","action":"Hoạt động","payment_number":"Số tiền phải trả","payment_mode":"Phương thức thanh toán","invoice":"Hóa đơn","note":"Ghi chú","add_payment":"Thêm thanh toán","new_payment":"Thanh toán mới","edit_payment":"Chỉnh sửa Thanh toán","view_payment":"Xem thanh toán","add_new_payment":"Thêm thanh toán mới","send_payment_receipt":"Gửi biên lai thanh toán","send_payment":"Gửi hóa đơn","save_payment":"Lưu thanh toán","update_payment":"Cập nhật thanh toán","payment":"Thanh toán | Thanh toán","no_payments":"Chưa có khoản thanh toán nào!","not_selected":"Không được chọn","no_invoice":"Không có hóa đơn","no_matching_payments":"Không có khoản thanh toán nào phù hợp!","list_of_payments":"Phần này sẽ chứa danh sách các khoản thanh toán.","select_payment_mode":"Chọn phương thức thanh toán","confirm_mark_as_sent":"Ước tính này sẽ được đánh dấu là đã gửi","confirm_send_payment":"Khoản thanh toán này sẽ được gửi qua email cho khách hàng","send_payment_successfully":"Thanh toán đã được gửi thành công","user_email_does_not_exist":"Email người dùng không tồn tại","something_went_wrong":"có gì đó không ổn","confirm_delete":"Bạn sẽ không thể khôi phục Thanh toán này | Bạn sẽ không thể khôi phục các Khoản thanh toán này","created_message":"Thanh toán được tạo thành công","updated_message":"Đã cập nhật thanh toán thành công","deleted_message":"Đã xóa thanh toán thành công | Thanh toán đã được xóa thành công","invalid_amount_message":"Số tiền thanh toán không hợp lệ"},"expenses":{"title":"Chi phí","expenses_list":"Danh sách chi phí","select_a_customer":"Chọn một khách hàng","expense_title":"Tiêu đề","customer":"khách hàng","contact":"Tiếp xúc","category":"thể loại","from_date":"Từ ngày","to_date":"Đến nay","expense_date":"Ngày","description":"Sự miêu tả","receipt":"Biên lai","amount":"Số tiền","action":"Hoạt động","not_selected":"Không được chọn","note":"Ghi chú","category_id":"Thể loại ID","date":"Ngày","add_expense":"Thêm chi phí","add_new_expense":"Thêm chi phí mới","save_expense":"Tiết kiệm chi phí","update_expense":"Cập nhật chi phí","download_receipt":"Biên nhận tải xuống","edit_expense":"Chỉnh sửa chi phí","new_expense":"Chi phí mới","expense":"Chi phí | Chi phí","no_expenses":"Chưa có chi phí!","list_of_expenses":"Phần này sẽ chứa danh sách các chi phí.","confirm_delete":"Bạn sẽ không thể thu hồi Khoản chi phí này | Bạn sẽ không thể thu hồi các Khoản chi phí này","created_message":"Đã tạo thành công chi phí","updated_message":"Đã cập nhật chi phí thành công","deleted_message":"Đã xóa thành công chi phí | Đã xóa thành công chi phí","categories":{"categories_list":"Danh sách hạng mục","title":"Tiêu đề","name":"Tên","description":"Sự miêu tả","amount":"Số tiền","actions":"Hành động","add_category":"thêm thể loại","new_category":"Danh mục mới","category":"Thể loại | Thể loại","select_a_category":"Chọn một danh mục"}},"login":{"email":"E-mail","password":"Mật khẩu","forgot_password":"Quên mật khẩu?","or_signIn_with":"hoặc Đăng nhập bằng","login":"Đăng nhập","register":"Đăng ký","reset_password":"Đặt lại mật khẩu","password_reset_successfully":"Đặt lại mật khẩu thành công","enter_email":"Nhập email","enter_password":"Nhập mật khẩu","retype_password":"Gõ lại mật khẩu","login_placeholder":"mail@example.com"},"users":{"title":"Người dùng","users_list":"Danh sách người dùng","name":"Tên","description":"Sự miêu tả","added_on":"Đã thêm vào","date_of_creation":"Ngày tạo","action":"Hoạt động","add_user":"Thêm người dùng","save_user":"Lưu người dùng","update_user":"Cập nhật người dùng","user":"Người dùng | Người dùng","add_new_user":"Thêm người dùng mới","new_user":"Người dùng mới","edit_user":"Người dùng biên tập","no_users":"Chưa có người dùng nào!","list_of_users":"Phần này sẽ chứa danh sách người dùng.","email":"E-mail","phone":"Điện thoại","password":"Mật khẩu","user_attached_message":"Không thể xóa một mục đã được sử dụng","confirm_delete":"Bạn sẽ không thể khôi phục Người dùng này | Bạn sẽ không thể khôi phục những Người dùng này","created_message":"Người dùng đã được tạo thành công","updated_message":"Đã cập nhật người dùng thành công","deleted_message":"Đã xóa người dùng thành công | Đã xóa người dùng thành công"},"reports":{"title":"Báo cáo","from_date":"Từ ngày","to_date":"Đến nay","status":"Trạng thái","paid":"Đã thanh toán","unpaid":"Chưa thanh toán","download_pdf":"tải PDF","view_pdf":"Xem PDF","update_report":"Cập nhật báo cáo","report":"Báo cáo | Báo cáo","profit_loss":{"profit_loss":"Lợi nhuận","to_date":"Đến nay","from_date":"Từ ngày","date_range":"Chọn phạm vi ngày"},"sales":{"sales":"Bán hàng","date_range":"Chọn phạm vi ngày","to_date":"Đến nay","from_date":"Từ ngày","report_type":"Loại báo cáo"},"taxes":{"taxes":"Thuế","to_date":"Đến nay","from_date":"Từ ngày","date_range":"Chọn phạm vi ngày"},"errors":{"required":"Lĩnh vực được yêu cầu"},"invoices":{"invoice":"Hóa đơn","invoice_date":"Ngày lập hóa đơn","due_date":"Ngày đáo hạn","amount":"Số tiền","contact_name":"Tên Liên lạc","status":"Trạng thái"},"estimates":{"estimate":"Ước tính","estimate_date":"Ngày ước tính","due_date":"Ngày đáo hạn","estimate_number":"Số ước tính","ref_number":"Số REF","amount":"Số tiền","contact_name":"Tên Liên lạc","status":"Trạng thái"},"expenses":{"expenses":"Chi phí","category":"thể loại","date":"Ngày","amount":"Số tiền","to_date":"Đến nay","from_date":"Từ ngày","date_range":"Chọn phạm vi ngày"}},"settings":{"menu_title":{"account_settings":"Cài đặt tài khoản","company_information":"Thông tin công ty","customization":"Tùy biến","preferences":"Sở thích","notifications":"Thông báo","tax_types":"Các loại thuế","expense_category":"Hạng mục Chi phí","update_app":"Cập nhật ứng dụng","backup":"Sao lưu","file_disk":"Đĩa tệp","custom_fields":"Trường tùy chỉnh","payment_modes":"Phương thức thanh toán","notes":"Ghi chú"},"title":"Cài đặt","setting":"Cài đặt | Cài đặt","general":"Chung","language":"Ngôn ngữ","primary_currency":"Tiền tệ chính","timezone":"Múi giờ","date_format":"Định dạng ngày tháng","currencies":{"title":"Tiền tệ","currency":"Tiền tệ | Tiền tệ","currencies_list":"Danh sách tiền tệ","select_currency":"Chọn tiền tệ","name":"Tên","code":"Mã","symbol":"Biểu tượng","precision":"Độ chính xác","thousand_separator":"Hàng ngàn máy tách","decimal_separator":"Phân số thập phân","position":"Chức vụ","position_of_symbol":"Vị trí của biểu tượng","right":"Đúng","left":"Trái","action":"Hoạt động","add_currency":"Thêm tiền tệ"},"mail":{"host":"Máy chủ Thư","port":"Cổng thư","driver":"Trình điều khiển Thư","secret":"Bí mật","mailgun_secret":"Bí mật Mailgun","mailgun_domain":"Miền","mailgun_endpoint":"Điểm cuối của Mailgun","ses_secret":"Bí mật SES","ses_key":"Khóa SES","password":"Mật khẩu thư","username":"Tên người dùng thư","mail_config":"Cấu hình thư","from_name":"Từ tên thư","from_mail":"Từ địa chỉ thư","encryption":"Mã hóa Thư","mail_config_desc":"Dưới đây là biểu mẫu Định cấu hình trình điều khiển Email để gửi email từ ứng dụng. Bạn cũng có thể định cấu hình các nhà cung cấp bên thứ ba như Sendgrid, SES, v.v."},"pdf":{"title":"Cài đặt PDF","footer_text":"Văn bản chân trang","pdf_layout":"Bố cục PDF"},"company_info":{"company_info":"Thông tin công ty","company_name":"Tên công ty","company_logo":"Logo công ty","section_description":"Thông tin về công ty của bạn sẽ được hiển thị trên hóa đơn, ước tính và các tài liệu khác do Crater tạo.","phone":"Điện thoại","country":"Quốc gia","state":"Tiểu bang","city":"Tp.","address":"Địa chỉ","zip":"Zip","save":"Tiết kiệm","updated_message":"Thông tin công ty được cập nhật thành công"},"custom_fields":{"title":"Trường tùy chỉnh","section_description":"Tùy chỉnh hóa đơn, ước tính của bạn","add_custom_field":"Thêm trường tùy chỉnh","edit_custom_field":"Chỉnh sửa trường tùy chỉnh","field_name":"Tên trường","label":"Nhãn","type":"Kiểu","name":"Tên","required":"Cần thiết","placeholder":"Trình giữ chỗ","help_text":"Văn bản trợ giúp","default_value":"Giá trị mặc định","prefix":"Tiếp đầu ngữ","starting_number":"Số bắt đầu","model":"Mô hình","help_text_description":"Nhập một số văn bản để giúp người dùng hiểu mục đích của trường tùy chỉnh này.","suffix":"Hậu tố","yes":"Đúng","no":"Không","order":"Đặt hàng","custom_field_confirm_delete":"Bạn sẽ không thể khôi phục Trường tùy chỉnh này","already_in_use":"Trường tùy chỉnh đã được sử dụng","deleted_message":"Trường Tùy chỉnh đã được xóa thành công","options":"các tùy chọn","add_option":"Thêm tùy chọn","add_another_option":"Thêm một tùy chọn khác","sort_in_alphabetical_order":"Sắp xếp theo thứ tự bảng chữ cái","add_options_in_bulk":"Thêm hàng loạt tùy chọn","use_predefined_options":"Sử dụng các tùy chọn được xác định trước","select_custom_date":"Chọn ngày tùy chỉnh","select_relative_date":"Chọn ngày tương đối","ticked_by_default":"Được đánh dấu theo mặc định","updated_message":"Đã cập nhật trường tùy chỉnh thành công","added_message":"Trường tùy chỉnh đã được thêm thành công"},"customization":{"customization":"sự tùy biến","save":"Tiết kiệm","addresses":{"title":"Địa chỉ","section_description":"Bạn có thể đặt Định dạng Địa chỉ Thanh toán của Khách hàng và Địa chỉ Giao hàng của Khách hàng (Chỉ hiển thị dưới dạng PDF).","customer_billing_address":"Địa chỉ thanh toán của khách hàng","customer_shipping_address":"Địa chỉ giao hàng của khách hàng","company_address":"địa chỉ công ty","insert_fields":"Chèn trường","contact":"Tiếp xúc","address":"Địa chỉ","display_name":"Tên hiển thị","primary_contact_name":"Tên liên hệ chính","email":"E-mail","website":"Trang mạng","name":"Tên","country":"Quốc gia","state":"Tiểu bang","city":"Tp.","company_name":"Tên công ty","address_street_1":"Địa chỉ Đường 1","address_street_2":"Địa chỉ Đường 2","phone":"Điện thoại","zip_code":"Mã Bưu Chính","address_setting_updated":"Đã cập nhật cài đặt địa chỉ thành công"},"updated_message":"Thông tin công ty được cập nhật thành công","invoices":{"title":"Hóa đơn","notes":"Ghi chú","invoice_prefix":"Tiền tố hóa đơn","default_invoice_email_body":"Nội dung email hóa đơn mặc định","invoice_settings":"Cài đặt hóa đơn","autogenerate_invoice_number":"Tự động tạo số hóa đơn","invoice_setting_description":"Tắt tính năng này, Nếu bạn không muốn tự động tạo số hóa đơn mỗi khi bạn tạo hóa đơn mới.","invoice_email_attachment":"Gửi hóa đơn dưới dạng tệp đính kèm","invoice_email_attachment_setting_description":"Bật tính năng này nếu bạn muốn gửi hóa đơn dưới dạng tệp đính kèm email. Xin lưu ý rằng nút &#39;Xem Hóa đơn&#39; trong email sẽ không được hiển thị nữa khi được bật.","enter_invoice_prefix":"Nhập tiền tố hóa đơn","terms_and_conditions":"Các điều khoản và điều kiện","company_address_format":"Định dạng địa chỉ công ty","shipping_address_format":"Định dạng địa chỉ giao hàng","billing_address_format":"Định dạng địa chỉ thanh toán","invoice_setting_updated":"Đã cập nhật cài đặt hóa đơn thành công"},"estimates":{"title":"Ước tính","estimate_prefix":"Tiền tố ước tính","default_estimate_email_body":"Nội dung Email Ước tính Mặc định","estimate_settings":"Cài đặt ước tính","autogenerate_estimate_number":"Tự động tạo số ước tính","estimate_setting_description":"Tắt tính năng này, nếu bạn không muốn tự động tạo số ước tính mỗi khi bạn tạo ước tính mới.","estimate_email_attachment":"Gửi ước tính dưới dạng tệp đính kèm","estimate_email_attachment_setting_description":"Bật tính năng này nếu bạn muốn gửi ước tính dưới dạng tệp đính kèm email. Xin lưu ý rằng nút &#39;Xem Ước tính&#39; trong email sẽ không được hiển thị nữa khi được bật.","enter_estimate_prefix":"Nhập tiền tố estmiate","estimate_setting_updated":"Đã cập nhật cài đặt ước tính thành công","company_address_format":"Định dạng địa chỉ công ty","billing_address_format":"Định dạng địa chỉ thanh toán","shipping_address_format":"Định dạng địa chỉ giao hàng"},"payments":{"title":"Thanh toán","description":"Các phương thức giao dịch thanh toán","payment_prefix":"Tiền tố thanh toán","default_payment_email_body":"Nội dung Email Thanh toán Mặc định","payment_settings":"Cài đặt thanh toán","autogenerate_payment_number":"Tự động tạo số thanh toán","payment_setting_description":"Tắt tính năng này, nếu bạn không muốn tự động tạo số thanh toán mỗi khi bạn tạo một khoản thanh toán mới.","payment_email_attachment":"Gửi thanh toán dưới dạng tệp đính kèm","payment_email_attachment_setting_description":"Bật tính năng này nếu bạn muốn gửi biên nhận thanh toán dưới dạng tệp đính kèm email. Xin lưu ý rằng nút &#39;Xem Thanh toán&#39; trong email sẽ không được hiển thị nữa khi được bật.","enter_payment_prefix":"Nhập tiền tố thanh toán","payment_setting_updated":"Đã cập nhật cài đặt thanh toán thành công","payment_modes":"Phương thức thanh toán","add_payment_mode":"Thêm phương thức thanh toán","edit_payment_mode":"Chỉnh sửa Phương thức Thanh toán","mode_name":"Tên chế độ","payment_mode_added":"Phương thức thanh toán đã được thêm","payment_mode_updated":"Đã cập nhật phương thức thanh toán","payment_mode_confirm_delete":"Bạn sẽ không thể khôi phục Phương thức thanh toán này","already_in_use":"Phương thức thanh toán đã được sử dụng","deleted_message":"Phương thức thanh toán đã được xóa thành công","company_address_format":"Định dạng địa chỉ công ty","from_customer_address_format":"Từ định dạng địa chỉ khách hàng"},"items":{"title":"Mặt hàng","units":"Các đơn vị","add_item_unit":"Thêm đơn vị mặt hàng","edit_item_unit":"Chỉnh sửa đơn vị mặt hàng","unit_name":"Tên bài","item_unit_added":"Đơn vị mặt hàng đã được thêm","item_unit_updated":"Đã cập nhật đơn vị mặt hàng","item_unit_confirm_delete":"Bạn sẽ không thể khôi phục đơn vị Mặt hàng này","already_in_use":"Đơn vị vật phẩm đã được sử dụng","deleted_message":"Đơn vị mặt hàng đã được xóa thành công"},"notes":{"title":"Ghi chú","description":"Tiết kiệm thời gian bằng cách tạo ghi chú và sử dụng lại chúng trên hóa đơn, ước tính của bạn","notes":"Ghi chú","type":"Kiểu","add_note":"Thêm ghi chú","add_new_note":"Thêm ghi chú mới","name":"Tên","edit_note":"Chỉnh sửa ghi chú","note_added":"Đã thêm ghi chú thành công","note_updated":"Đã cập nhật ghi chú thành công","note_confirm_delete":"Bạn sẽ không thể khôi phục Ghi chú này","already_in_use":"Ghi chú đã được sử dụng","deleted_message":"Đã xóa ghi chú thành công"}},"account_settings":{"profile_picture":"Ảnh đại diện","name":"Tên","email":"E-mail","password":"Mật khẩu","confirm_password":"Xác nhận mật khẩu","account_settings":"Cài đặt tài khoản","save":"Tiết kiệm","section_description":"Bạn có thể cập nhật tên, email của mình","updated_message":"Đã cập nhật cài đặt tài khoản thành công"},"user_profile":{"name":"Tên","email":"E-mail","password":"Mật khẩu","confirm_password":"Xác nhận mật khẩu"},"notification":{"title":"Thông báo","email":"Gửi thông báo tới","description":"Bạn muốn nhận thông báo email nào khi có điều gì đó thay đổi?","invoice_viewed":"Hóa đơn đã xem","invoice_viewed_desc":"Khi khách hàng của bạn xem hóa đơn được gửi qua bảng điều khiển miệng núi lửa.","estimate_viewed":"Ước tính đã xem","estimate_viewed_desc":"Khi khách hàng của bạn xem ước tính được gửi qua bảng điều khiển miệng núi lửa.","save":"Tiết kiệm","email_save_message":"Email đã được lưu thành công","please_enter_email":"Vui lòng nhập Email"},"tax_types":{"title":"Các loại thuế","add_tax":"Thêm thuế","edit_tax":"Chỉnh sửa thuế","description":"Bạn có thể thêm hoặc bớt thuế tùy ý. Crater hỗ trợ Thuế đối với các mặt hàng riêng lẻ cũng như trên hóa đơn.","add_new_tax":"Thêm thuế mới","tax_settings":"Cài đặt thuế","tax_per_item":"Thuế mỗi mặt hàng","tax_name":"Tên thuế","compound_tax":"Thuế tổng hợp","percent":"Phần trăm","action":"Hoạt động","tax_setting_description":"Bật tính năng này nếu bạn muốn thêm thuế vào các mục hóa đơn riêng lẻ. Theo mặc định, thuế được thêm trực tiếp vào hóa đơn.","created_message":"Loại thuế đã được tạo thành công","updated_message":"Đã cập nhật thành công loại thuế","deleted_message":"Đã xóa thành công loại thuế","confirm_delete":"Bạn sẽ không thể khôi phục Loại thuế này","already_in_use":"Thuế đã được sử dụng"},"expense_category":{"title":"Hạng mục Chi phí","action":"Hoạt động","description":"Các danh mục được yêu cầu để thêm các mục chi phí. Bạn có thể Thêm hoặc Xóa các danh mục này tùy theo sở thích của mình.","add_new_category":"Thêm danh mục mới","add_category":"thêm thể loại","edit_category":"Chỉnh sửa danh mục","category_name":"tên danh mục","category_description":"Sự miêu tả","created_message":"Danh mục Chi phí đã được tạo thành công","deleted_message":"Đã xóa thành công danh mục chi phí","updated_message":"Đã cập nhật danh mục chi phí thành công","confirm_delete":"Bạn sẽ không thể khôi phục Danh mục Chi phí này","already_in_use":"Danh mục đã được sử dụng"},"preferences":{"currency":"Tiền tệ","default_language":"Ngôn ngữ mặc định","time_zone":"Múi giờ","fiscal_year":"Năm tài chính","date_format":"Định dạng ngày tháng","discount_setting":"Cài đặt chiết khấu","discount_per_item":"Giảm giá cho mỗi mặt hàng","discount_setting_description":"Bật tính năng này nếu bạn muốn thêm Giảm giá vào các mặt hàng hóa đơn riêng lẻ. Theo mặc định, Giảm giá được thêm trực tiếp vào hóa đơn.","save":"Tiết kiệm","preference":"Sở thích | Sở thích","general_settings":"Tùy chọn mặc định cho hệ thống.","updated_message":"Đã cập nhật thành công các tùy chọn","select_language":"Chọn ngôn ngữ","select_time_zone":"Chọn múi giờ","select_date_format":"Chọn định dạng ngày","select_financial_year":"Chọn năm tài chính"},"update_app":{"title":"Cập nhật ứng dụng","description":"Bạn có thể dễ dàng cập nhật Crater bằng cách kiểm tra bản cập nhật mới bằng cách nhấp vào nút bên dưới","check_update":"Kiểm tra cập nhật","avail_update":"Cập nhật mới có sẵn","next_version":"Phiên bản tiếp theo","requirements":"Yêu cầu","update":"Cập nhật bây giờ","update_progress":"Đang cập nhật ...","progress_text":"Nó sẽ chỉ mất một vài phút. Vui lòng không làm mới màn hình hoặc đóng cửa sổ trước khi cập nhật kết thúc","update_success":"Ứng dụng đã được cập nhật! Vui lòng đợi trong khi cửa sổ trình duyệt của bạn được tải lại tự động.","latest_message":"Không có bản cập nhật nào! Bạn đang sử dụng phiên bản mới nhất.","current_version":"Phiên bản hiện tại","download_zip_file":"Tải xuống tệp ZIP","unzipping_package":"Gói giải nén","copying_files":"Sao chép các tập tin","deleting_files":"Xóa các tệp không sử dụng","running_migrations":"Chạy di cư","finishing_update":"Cập nhật kết thúc","update_failed":"Cập nhật không thành công","update_failed_text":"Lấy làm tiếc! Cập nhật của bạn không thành công vào: bước {step}"},"backup":{"title":"Sao lưu | Sao lưu","description":"Bản sao lưu là một tệp zip chứa tất cả các tệp trong thư mục bạn chỉ định cùng với một kết xuất cơ sở dữ liệu của bạn","new_backup":"Thêm bản sao lưu mới","create_backup":"Tạo bản sao","select_backup_type":"Chọn loại sao lưu","backup_confirm_delete":"Bạn sẽ không thể khôi phục Bản sao lưu này","path":"con đường","new_disk":"Đĩa mới","created_at":"được tạo ra tại","size":"kích thước","dropbox":"dropbox","local":"địa phương","healthy":"khỏe mạnh","amount_of_backups":"lượng sao lưu","newest_backups":"bản sao lưu mới nhất","used_storage":"lưu trữ đã sử dụng","select_disk":"Chọn đĩa","action":"Hoạt động","deleted_message":"Đã xóa bản sao lưu thành công","created_message":"Đã tạo thành công bản sao lưu","invalid_disk_credentials":"Thông tin đăng nhập không hợp lệ của đĩa đã chọn"},"disk":{"title":"Đĩa tập tin | Đĩa Tệp","description":"Theo mặc định, Crater sẽ sử dụng đĩa cục bộ của bạn để lưu các bản sao lưu, ảnh đại diện và các tệp hình ảnh khác. Bạn có thể định cấu hình nhiều hơn một trình điều khiển đĩa như DigitalOcean, S3 và Dropbox theo sở thích của mình.","created_at":"được tạo ra tại","dropbox":"dropbox","name":"Tên","driver":"Người lái xe","disk_type":"Kiểu","disk_name":"Tên đĩa","new_disk":"Thêm đĩa mới","filesystem_driver":"Trình điều khiển hệ thống tập tin","local_driver":"Trình điều khiển địa phương","local_root":"Gốc cục bộ","public_driver":"Tài xế công cộng","public_root":"Gốc công khai","public_url":"URL công khai","public_visibility":"Hiển thị công khai","media_driver":"Trình điều khiển phương tiện","media_root":"Gốc phương tiện","aws_driver":"Trình điều khiển AWS","aws_key":"Khóa AWS","aws_secret":"Bí mật AWS","aws_region":"Khu vực AWS","aws_bucket":"Nhóm AWS","aws_root":"Gốc AWS","do_spaces_type":"Làm kiểu Spaces","do_spaces_key":"Do phím Spaces","do_spaces_secret":"Làm bí mật về không gian","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":"Loại hộp chứa","dropbox_token":"Mã thông báo Dropbox","dropbox_key":"Khóa Dropbox","dropbox_secret":"Bí mật Dropbox","dropbox_app":"Ứng dụng Dropbox","dropbox_root":"Gốc Dropbox","default_driver":"Trình điều khiển mặc định","is_default":"LÀ ĐỊNH NGHĨA","set_default_disk":"Đặt đĩa mặc định","set_default_disk_confirm":"Đĩa này sẽ được đặt làm mặc định và tất cả các tệp PDF mới sẽ được lưu trên đĩa này","success_set_default_disk":"Đĩa được đặt làm mặc định thành công","save_pdf_to_disk":"Lưu PDF vào đĩa","disk_setting_description":"Bật tính năng này, nếu bạn muốn lưu một bản sao của mỗi Hóa đơn, Ước tính","select_disk":"Chọn đĩa","disk_settings":"Cài đặt đĩa","confirm_delete":"Tệp hiện có của bạn","action":"Hoạt động","edit_file_disk":"Chỉnh sửa Đĩa Tệp","success_create":"Đã thêm đĩa thành công","success_update":"Đã cập nhật đĩa thành công","error":"Thêm đĩa không thành công","deleted_message":"Đĩa Tệp đã được xóa thành công","disk_variables_save_successfully":"Đã cấu hình đĩa thành công","disk_variables_save_error":"Cấu hình đĩa không thành công.","invalid_disk_credentials":"Thông tin đăng nhập không hợp lệ của đĩa đã chọn"}},"wizard":{"account_info":"thông tin tài khoản","account_info_desc":"Thông tin chi tiết dưới đây sẽ được sử dụng để tạo tài khoản Quản trị viên chính. Ngoài ra, bạn có thể thay đổi thông tin chi tiết bất cứ lúc nào sau khi đăng nhập.","name":"Tên","email":"E-mail","password":"Mật khẩu","confirm_password":"Xác nhận mật khẩu","save_cont":"Tiết kiệm","company_info":"Thông tin công ty","company_info_desc":"Thông tin này sẽ được hiển thị trên hóa đơn. Lưu ý rằng bạn có thể chỉnh sửa điều này sau trên trang cài đặt.","company_name":"Tên công ty","company_logo":"Logo công ty","logo_preview":"Xem trước Logo","preferences":"Sở thích","preferences_desc":"Tùy chọn mặc định cho hệ thống.","country":"Quốc gia","state":"Tiểu bang","city":"Tp.","address":"Địa chỉ","street":"Phố1 | Street2","phone":"Điện thoại","zip_code":"Mã Bưu Chính","go_back":"Quay lại","currency":"Tiền tệ","language":"Ngôn ngữ","time_zone":"Múi giờ","fiscal_year":"Năm tài chính","date_format":"Định dạng ngày tháng","from_address":"Từ địa chỉ","username":"tên tài khoản","next":"Kế tiếp","continue":"Tiếp tục","skip":"Nhảy","database":{"database":"URL trang web","connection":"Kết nối cơ sở dữ liệu","host":"Máy chủ cơ sở dữ liệu","port":"Cổng cơ sở dữ liệu","password":"Mật khẩu cơ sở dữ liệu","app_url":"URL ứng dụng","app_domain":"Miền ứng dụng","username":"Tên người dùng cơ sở dữ liệu","db_name":"Tên cơ sở dữ liệu","db_path":"Đường dẫn cơ sở dữ liệu","desc":"Tạo cơ sở dữ liệu trên máy chủ của bạn và đặt thông tin đăng nhập bằng biểu mẫu bên dưới."},"permissions":{"permissions":"Quyền","permission_confirm_title":"Bạn có chắc chắn muốn tiếp tục không?","permission_confirm_desc":"Kiểm tra quyền thư mục không thành công","permission_desc":"Dưới đây là danh sách các quyền đối với thư mục được yêu cầu để ứng dụng hoạt động. Nếu kiểm tra quyền không thành công, hãy đảm bảo cập nhật quyền thư mục của bạn."},"mail":{"host":"Máy chủ Thư","port":"Cổng thư","driver":"Trình điều khiển Thư","secret":"Bí mật","mailgun_secret":"Bí mật Mailgun","mailgun_domain":"Miền","mailgun_endpoint":"Điểm cuối của Mailgun","ses_secret":"Bí mật SES","ses_key":"Khóa SES","password":"Mật khẩu thư","username":"Tên người dùng thư","mail_config":"Cấu hình thư","from_name":"Từ tên thư","from_mail":"Từ địa chỉ thư","encryption":"Mã hóa Thư","mail_config_desc":"Dưới đây là biểu mẫu Định cấu hình trình điều khiển Email để gửi email từ ứng dụng. Bạn cũng có thể định cấu hình các nhà cung cấp bên thứ ba như Sendgrid, SES, v.v."},"req":{"system_req":"yêu cầu hệ thống","php_req_version":"Php (bắt buộc phải có phiên bản {version})","check_req":"Kiểm tra yêu cầu","system_req_desc":"Crater có một số yêu cầu máy chủ. Đảm bảo rằng máy chủ của bạn có phiên bản php bắt buộc và tất cả các phần mở rộng được đề cập bên dưới."},"errors":{"migrate_failed":"Di chuyển không thành công","database_variables_save_error":"Không thể ghi cấu hình vào tệp .env. Vui lòng kiểm tra quyền đối với tệp của nó","mail_variables_save_error":"Cấu hình email không thành công.","connection_failed":"Kết nối cơ sở dữ liệu không thành công","database_should_be_empty":"Cơ sở dữ liệu phải trống"},"success":{"mail_variables_save_successfully":"Email được định cấu hình thành công","database_variables_save_successfully":"Đã cấu hình thành công cơ sở dữ liệu."}},"layout_login":{"copyright_crater":"Bản quyền @ Crater - 2020","super_simple_invoicing":"Lập hóa đơn siêu đơn giản","for_freelancer":"dành cho những người làm nghề tự do","small_businesses":"Tiểu thương","crater_help":"Crater giúp bạn theo dõi chi phí, ghi lại các khoản thanh toán","invoices_and_estimates":"hóa đơn"},"validation":{"invalid_phone":"Số điện thoại không hợp lệ","invalid_url":"Url không hợp lệ (ví dụ: http://www.crater.com)","invalid_domain_url":"Url không hợp lệ (ví dụ: crater.com)","required":"Lĩnh vực được yêu cầu","email_incorrect":"Email không chính xác.","email_already_taken":"Lá thư đã được lấy đi.","email_does_not_exist":"Người dùng có email đã cho không tồn tại","item_unit_already_taken":"Tên đơn vị mặt hàng này đã được sử dụng","payment_mode_already_taken":"Tên phương thức thanh toán này đã được sử dụng","send_reset_link":"Gửi liên kết đặt lại","not_yet":"Chưa? Gửi lại","password_min_length":"Mật khẩu phải chứa {count} ký tự","name_min_length":"Tên phải có ít nhất {count} chữ cái.","enter_valid_tax_rate":"Nhập thuế suất hợp lệ","numbers_only":"Chỉ số.","characters_only":"Chỉ nhân vật.","password_incorrect":"Mật khẩu phải giống hệt nhau","password_length":"Mật khẩu phải dài {count} ký tự.","qty_must_greater_than_zero":"Số lượng phải lớn hơn không.","price_greater_than_zero":"Giá phải lớn hơn 0.","payment_greater_than_zero":"Khoản thanh toán phải lớn hơn 0.","payment_greater_than_due_amount":"Thanh toán đã nhập nhiều hơn số tiền đến hạn của hóa đơn này.","quantity_maxlength":"Số lượng không được lớn hơn 20 chữ số.","price_maxlength":"Giá không được lớn hơn 20 chữ số.","price_minvalue":"Giá phải lớn hơn 0.","amount_maxlength":"Số tiền không được lớn hơn 20 chữ số.","amount_minvalue":"Số tiền phải lớn hơn 0.","description_maxlength":"Mô tả không được lớn hơn 65.000 ký tự.","subject_maxlength":"Chủ đề không được lớn hơn 100 ký tự.","message_maxlength":"Tin nhắn không được lớn hơn 255 ký tự.","maximum_options_error":"Đã chọn tối đa {max} tùy chọn. Đầu tiên, hãy xóa một tùy chọn đã chọn để chọn một tùy chọn khác.","notes_maxlength":"Ghi chú không được lớn hơn 65.000 ký tự.","address_maxlength":"Địa chỉ không được lớn hơn 255 ký tự.","ref_number_maxlength":"Số tham chiếu không được lớn hơn 255 ký tự.","prefix_maxlength":"Tiền tố không được lớn hơn 5 ký tự.","something_went_wrong":"có gì đó không ổn"},"pdf_estimate_label":"Ước tính","pdf_estimate_number":"Số ước tính","pdf_estimate_date":"Ngày ước tính","pdf_estimate_expire_date":"Ngày hết hạn","pdf_invoice_label":"Hóa đơn","pdf_invoice_number":"Số hóa đơn","pdf_invoice_date":"Ngày lập hóa đơn","pdf_invoice_due_date":"Ngày đáo hạn","pdf_notes":"Ghi chú","pdf_items_label":"Mặt hàng","pdf_quantity_label":"Định lượng","pdf_price_label":"Giá bán","pdf_discount_label":"Giảm giá","pdf_amount_label":"Số tiền","pdf_subtotal":"Tổng phụ","pdf_total":"Toàn bộ","pdf_payment_label":"Thanh toán","pdf_payment_receipt_label":"HÓA ĐƠN THANH TOÁN","pdf_payment_date":"Ngày thanh toán","pdf_payment_number":"Số tiền phải trả","pdf_payment_mode":"Phương thức thanh toán","pdf_payment_amount_received_label":"Số tiền nhận được","pdf_expense_report_label":"BÁO CÁO CHI PHÍ","pdf_total_expenses_label":"TỔNG CHI PHÍ","pdf_profit_loss_label":"LỢI NHUẬN","pdf_sales_customers_label":"Báo cáo khách hàng bán hàng","pdf_sales_items_label":"Báo cáo mặt hàng bán hàng","pdf_tax_summery_label":"Báo cáo Tóm tắt Thuế","pdf_income_label":"THU NHẬP = EARNINGS","pdf_net_profit_label":"LỢI NHUẬN RÒNG","pdf_customer_sales_report":"Báo cáo bán hàng: Bởi khách hàng","pdf_total_sales_label":"TỔNG DOANH SỐ BÁN HÀNG","pdf_item_sales_label":"Báo cáo bán hàng: Theo mặt hàng","pdf_tax_report_label":"BÁO CÁO THUẾ","pdf_total_tax_label":"TỔNG THUẾ","pdf_tax_types_label":"Các loại thuế","pdf_expenses_label":"Chi phí","pdf_bill_to":"Hoa đơn để,","pdf_ship_to":"Tàu,","pdf_received_from":"Nhận được tư:"}');a.default.use(ee);const fe=new ee({locale:"en",fallbackLocale:"en",messages:{en:te,fr:ne,es:ae,ar:re,de:ie,pt_BR:oe,it:se,sr:le,nl:ce,lv:ue,sv:de,sk:pe,vi:me}}),he={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,a=n.precision,r=n.decimal_separator,i=n.thousand_separator,o=n.symbol,s=n.swap_currency_symbol;try{a=Math.abs(a),a=isNaN(a)?2:a;var l=e<0?"-":"",c=parseInt(e=Math.abs(Number(e)||0).toFixed(a)).toString(),u=c.length>3?c.length%3:0,d='<span style="font-family: sans-serif">'.concat(o,"</span>"),p=u?c.substr(0,u)+i:"",m=c.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+i),f=a?r+Math.abs(e-c).toFixed(a).slice(2):"",h=l+p+m+f;return s?h+" "+d:d+" "+h}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,a=n.precision,r=n.decimal_separator,i=n.thousand_separator,o=n.symbol,s=n.swap_currency_symbol;try{a=Math.abs(a),a=isNaN(a)?2:a;var l=e<0?"-":"",c=parseInt(e=Math.abs(Number(e)||0).toFixed(a)).toString(),u=c.length>3?c.length%3:0,d="".concat(o),p=u?c.substr(0,u)+i:"",m=c.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+i),f=a?r+Math.abs(e-c).toFixed(a).slice(2):"",h=l+p+m+f;return s?h+" "+d:d+" "+h}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"}}},getStatusTranslation:function(e){switch(e){case"DRAFT":return fe.t("general.draft");case"PAID":return fe.t("invoices.paid");case"UNPAID":return fe.t("invoices.unpaid");case"SENT":return fe.t("general.sent");case"REJECTED":return fe.t("estimates.rejected");case"ACCEPTED":return fe.t("estimates.accepted");case"VIEWED":return fe.t("invoices.viewed");case"EXPIRED":return fe.t("estimates.expired");case"PARTIALLY PAID":return fe.t("estimates.partially_paid");case"OVERDUE":return fe.t("invoices.overdue");case"COMPLETED":return fe.t("invoices.completed");case"DUE":return fe.t("general.due");default:return e}},compareVersion:function(e,t,n){var a=n&&n.lexicographical,r=n&&n.zeroExtend,i=e.split("."),o=t.split(".");function s(e){return(a?/^\d+[A-Za-z]*$/:/^\d+$/).test(e)}if(!i.every(s)||!o.every(s))return NaN;if(r){for(;i.length<o.length;)i.push("0");for(;o.length<i.length;)o.push("0")}a||(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}};n(4974),a.default.prototype.$utils=he,window.hub=new a.default,window.i18n=fe,new a.default({router:r.Z,store:i.Z,i18n:fe}).$mount("#app")},4974:(e,t,n)=>{"use strict";n.r(t);var a=n(8345),r=n(7968),i=n.n(r),o=n(1402),s=n(6520),l=n(538),c=n(8620),u=n(9178),d=n.n(u),p="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,m=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(p&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var f=p&&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()}),m))}};function h(e){return e&&"[object Function]"==={}.toString.call(e)}function _(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function v(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function g(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=_(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+a)?e:g(v(e))}function y(e){return e&&e.referenceNode?e.referenceNode:e}var b=p&&!(!window.MSInputMethodContext||!document.documentMode),w=p&&/MSIE 10/.test(navigator.userAgent);function x(e){return 11===e?b:10===e?w:b||w}function k(e){if(!e)return document.documentElement;for(var t=x(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var a=n&&n.nodeName;return a&&"BODY"!==a&&"HTML"!==a?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===_(n,"position")?k(n):n:e?e.ownerDocument.documentElement:document.documentElement}function D(e){return null!==e.parentNode?D(e.parentNode):e}function M(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,a=n?e:t,r=n?t:e,i=document.createRange();i.setStart(a,0),i.setEnd(r,0);var o,s,l=i.commonAncestorContainer;if(e!==l&&t!==l||a.contains(r))return"BODY"===(s=(o=l).nodeName)||"HTML"!==s&&k(o.firstElementChild)!==o?k(l):l;var c=D(e);return c.host?M(c.host,t):M(e,D(t).host)}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",a=e.nodeName;if("BODY"===a||"HTML"===a){var r=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||r;return i[n]}return e[n]}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=S(t,"top"),r=S(t,"left"),i=n?-1:1;return e.top+=a*i,e.bottom+=a*i,e.left+=r*i,e.right+=r*i,e}function L(e,t){var n="x"===t?"Left":"Top",a="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+a+"Width"])}function T(e,t,n,a){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],x(10)?parseInt(n["offset"+e])+parseInt(a["margin"+("Height"===e?"Top":"Left")])+parseInt(a["margin"+("Height"===e?"Bottom":"Right")]):0)}function O(e){var t=e.body,n=e.documentElement,a=x(10)&&getComputedStyle(n);return{height:T("Height",t,n,a),width:T("Width",t,n,a)}}var E=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},j=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),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},P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e};function $(e){return P({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Y(e){var t={};try{if(x(10)){t=e.getBoundingClientRect();var n=S(e,"top"),a=S(e,"left");t.top+=n,t.left+=a,t.bottom+=n,t.right+=a}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?O(e.ownerDocument):{},o=i.width||e.clientWidth||r.width,s=i.height||e.clientHeight||r.height,l=e.offsetWidth-o,c=e.offsetHeight-s;if(l||c){var u=_(e);l-=L(u,"x"),c-=L(u,"y"),r.width-=l,r.height-=c}return $(r)}function z(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=x(10),r="HTML"===t.nodeName,i=Y(e),o=Y(t),s=g(e),l=_(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&r&&(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,!a&&r){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(a&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=C(d,t)),d}function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,a=z(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:S(n),s=t?0:S(n,"left"),l={top:o-a.top+a.marginTop,left:s-a.left+a.marginLeft,width:r,height:i};return $(l)}function I(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===_(e,"position"))return!0;var n=v(e);return!!n&&I(n)}function F(e){if(!e||!e.parentElement||x())return document.documentElement;for(var t=e.parentElement;t&&"none"===_(t,"transform");)t=t.parentElement;return t||document.documentElement}function H(e,t,n,a){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},o=r?F(e):M(e,y(t));if("viewport"===a)i=N(o,r);else{var s=void 0;"scrollParent"===a?"BODY"===(s=g(v(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===a?e.ownerDocument.documentElement:a;var l=z(s,o,r);if("HTML"!==s.nodeName||I(o))i=l;else{var c=O(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 R(e){return e.width*e.height}function B(e,t,n,a,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=H(n,a,i,r),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 P({key:e},s[e],{area:R(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,a=e.height;return t>=n.clientWidth&&a>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function q(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=a?F(t):M(t,y(n));return z(n,r,a)}function V(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),a=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+a,height:e.offsetHeight+n}}function W(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 U(e,t,n){n=n.split("-")[0];var a=V(e),r={width:a.width,height:a.height},i=-1!==["right","left"].indexOf(n),o=i?"top":"left",s=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return r[o]=t[o]+t[l]/2-a[l]/2,r[s]=n===s?t[s]-a[c]:t[W(s)],r}function K(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Z(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 a=K(e,(function(e){return e[t]===n}));return e.indexOf(a)}(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&&h(n)&&(t.offsets.popper=$(t.offsets.popper),t.offsets.reference=$(t.offsets.reference),t=n(t,e))})),t}function G(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=q(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=B(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=U(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Z(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function J(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function X(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),a=0;a<t.length;a++){var r=t[a],i=r?""+r+n:e;if(void 0!==document.body.style[i])return i}return null}function Q(){return this.state.isDestroyed=!0,J(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[X("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ee(e){var t=e.ownerDocument;return t?t.defaultView:window}function te(e,t,n,a){var r="BODY"===e.nodeName,i=r?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),r||te(g(i.parentNode),t,n,a),a.push(i)}function ne(e,t,n,a){n.updateBound=a,ee(e).addEventListener("resize",n.updateBound,{passive:!0});var r=g(e);return te(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function ae(){this.state.eventsEnabled||(this.state=ne(this.reference,this.options,this.state,this.scheduleUpdate))}function re(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return ee(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 ie(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function oe(e,t){Object.keys(t).forEach((function(n){var a="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ie(t[n])&&(a="px"),e.style[n]=t[n]+a}))}var se=p&&/Firefox/i.test(navigator.userAgent);function le(e,t,n){var a=K(e,(function(e){return e.name===t})),r=!!a&&e.some((function(e){return e.name===n&&e.enabled&&e.order<a.order}));if(!r){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 r}var ce=["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"],ue=ce.slice(3);function de(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ue.indexOf(e),a=ue.slice(n+1).concat(ue.slice(0,n));return t?a.reverse():a}var pe="flip",me="clockwise",fe="counterclockwise";function he(e,t,n,a){var r=[0,0],i=-1!==["right","left"].indexOf(a),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(K(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,a){var r=(1===a?!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,a){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],o=r[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=a}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,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,a){ie(n)&&(r[t]+=n*("-"===e[a-1]?-1:1))}))})),r}var _e={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],a=t.split("-")[1];if(a){var r=e.offsets,i=r.reference,o=r.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=P({},o,u[a])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,a=e.placement,r=e.offsets,i=r.popper,o=r.reference,s=a.split("-")[0],l=void 0;return l=ie(+n)?[+n,0]:he(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||k(e.instance.popper);e.instance.reference===n&&(n=k(n));var a=X("transform"),r=e.instance.popper.style,i=r.top,o=r.left,s=r[a];r.top="",r.left="",r[a]="";var l=H(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=o,r[a]=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",a=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(a=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),A({},n,a)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=P({},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,a=t.reference,r=e.placement.split("-")[0],i=Math.floor,o=-1!==["top","bottom"].indexOf(r),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[s]<i(a[l])&&(e.offsets.popper[l]=i(a[l])-n[c]),n[l]>i(a[s])&&(e.offsets.popper[l]=i(a[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!le(e.instance.modifiers,"arrow","keepTogether"))return e;var a=t.element;if("string"==typeof a){if(!(a=e.instance.popper.querySelector(a)))return e}else if(!e.instance.popper.contains(a))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,o=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",m=l?"bottom":"right",f=V(a)[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 h=s[d]+s[c]/2-f/2,v=_(e.instance.popper),g=parseFloat(v["margin"+u]),y=parseFloat(v["border"+u+"Width"]),b=h-e.offsets.popper[d]-g-y;return b=Math.max(Math.min(o[c]-f,b),0),e.arrowElement=a,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(J(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=H(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),a=e.placement.split("-")[0],r=W(a),i=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case pe:o=[a,r];break;case me:o=de(a);break;case fe:o=de(a,!0);break;default:o=t.behavior}return o.forEach((function(s,l){if(a!==s||o.length===l+1)return e;a=e.placement.split("-")[0],r=W(a);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===a&&d(c.right)>d(u.left)||"right"===a&&d(c.left)<d(u.right)||"top"===a&&d(c.bottom)>d(u.top)||"bottom"===a&&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"===a&&m||"right"===a&&f||"top"===a&&h||"bottom"===a&&_,g=-1!==["top","bottom"].indexOf(a),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)&&(a=o[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=a+(i?"-"+i:""),e.offsets.popper=P({},e.offsets.popper,U(e.instance.popper,e.offsets.reference,e.placement)),e=Z(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],a=e.offsets,r=a.popper,i=a.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[o?"left":"top"]=i[n]-(s?r[o?"width":"height"]:0),e.placement=W(t),e.offsets.popper=$(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!le(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=K(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,a=t.y,r=e.offsets.popper,i=K(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=k(e.instance.popper),l=Y(s),c={position:r.position},u=function(e,t){var n=e.offsets,a=n.popper,r=n.reference,i=Math.round,o=Math.floor,s=function(e){return e},l=i(r.width),c=i(a.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?a.left-1:a.left),top:m(a.top),bottom:m(a.bottom),right:p(a.right)}}(e,window.devicePixelRatio<2||!se),d="bottom"===n?"top":"bottom",p="right"===a?"left":"right",m=X("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=P({},g,e.attributes),e.styles=P({},c,e.styles),e.arrowStyles=P({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return oe(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&&oe(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,a,r){var i=q(r,t,e,n.positionFixed),o=B(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),oe(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ve=function(){function e(t,n){var a=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(a.update)},this.update=f(this.update.bind(this)),this.options=P({},e.Defaults,r),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(P({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){a.options.modifiers[t]=P({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return P({name:e},a.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&h(e.onLoad)&&e.onLoad(a.reference,a.popper,a.options,e,a.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return j(e,[{key:"update",value:function(){return G.call(this)}},{key:"destroy",value:function(){return Q.call(this)}},{key:"enableEventListeners",value:function(){return ae.call(this)}},{key:"disableEventListeners",value:function(){return re.call(this)}}]),e}();ve.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,ve.placements=ce,ve.Defaults=_e;const ge=ve;var ye=n(8446),be=n.n(ye);let we;function xe(){xe.init||(xe.init=!0,we=-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 a=e.indexOf("Edge/");return a>0?parseInt(e.substring(a+5,e.indexOf(".",a)),10):-1}())}function ke(e,t,n,a,r,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,r&&(d.functional=!0)),a&&(d._scopeId=a),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 De={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){xe(),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",we&&this.$el.appendChild(e),e.data="about:blank",we||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&&(!we&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};var Me=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})};Me._withStripped=!0;const Se=ke({render:Me,staticRenderFns:[]},undefined,De,"data-v-8859cc6c",false,undefined,!1,void 0,void 0,void 0);var Ce={version:"1.0.0",install:function(e){e.component("resize-observer",Se),e.component("ResizeObserver",Se)}},Le=null;"undefined"!=typeof window?Le=window.Vue:void 0!==n.g&&(Le=n.g.Vue),Le&&Le.use(Ce);var Te=n(3857),Oe=n.n(Te);function Ee(e){return(Ee="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 je(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}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 Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $e(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){Ae(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}var Ye=function(){};function ze(e){return"string"==typeof e&&(e=e.split(" ")),e}function Ne(e,t){var n,a=ze(t);n=e.className instanceof Ye?ze(e.className.baseVal):ze(e.className),a.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}function Ie(e,t){var n,a=ze(t);n=e.className instanceof Ye?ze(e.className.baseVal):ze(e.className),a.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&&(Ye=window.SVGAnimatedString);var Fe=!1;if("undefined"!=typeof window){Fe=!1;try{var He=Object.defineProperty({},"passive",{get:function(){Fe=!0}});window.addEventListener("test",null,He)}catch(e){}}var Re={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},Be=[],qe=function(){function e(t,n){var a=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,r){var i=e.relatedreference||e.toElement||e.relatedTarget;return!!a._tooltipNode.contains(i)&&(a._tooltipNode.addEventListener(e.type,(function n(i){var o=i.relatedreference||i.toElement||i.relatedTarget;a._tooltipNode.removeEventListener(e.type,n),t.contains(o)||a._scheduleHide(t,r.delay,r,i)})),!0)})),n=$e($e({},Re),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||Qe.options.defaultClass;be()(this._classes,n)||(this.setClasses(n),t=!0),e=Ke(e);var a=!1,r=!1;for(var i in this.options.offset===e.offset&&this.options.placement===e.placement||(a=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(r=!0),e)this.options[i]=e[i];if(this._tooltipNode)if(r){var o=this._isOpen;this.dispose(),this._init(),o&&this.show()}else a&&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,a=window.document.createElement("div");a.innerHTML=t.trim();var r=a.childNodes[0];return r.id=this.options.ariaId||"tooltip_".concat(Math.random().toString(36).substr(2,10)),r.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(r.addEventListener("mouseenter",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)})),r.addEventListener("click",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)}))),r}},{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(a,r){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&&Ie(o,t.loadingClass),n._applyContent(e,t)})).then(a).catch(r)):n._applyContent(l,t).then(a).catch(r))}i?s.innerHTML=e:s.innerText=e}a()}}))}},{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 a=this._ensureShown(e,t);return n&&this._tooltipNode&&Ne(this._tooltipNode,this._classes),Ne(e,["v-tooltip-open"]),a}}},{key:"_ensureShown",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,Be.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 r=this._create(e,t.template);this._tooltipNode=r,e.setAttribute("aria-describedby",r.id);var i=this._findContainer(t.container,e);this._append(r,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 ge(e,r,o),this._setContent(a,t),requestAnimationFrame((function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame((function(){n._isDisposed?n.dispose():n._isOpen&&r.setAttribute("aria-hidden","false")}))):n.dispose()})),this}},{key:"_noLongerOpen",value:function(){var e=Be.indexOf(this);-1!==e&&Be.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=Qe.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)),Ie(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,a=t.event;e.reference.removeEventListener(a,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 a=this,r=[],i=[];t.forEach((function(e){switch(e){case"hover":r.push("mouseenter"),i.push("mouseleave"),a.options.hideOnTargetClick&&i.push("click");break;case"focus":r.push("focus"),i.push("blur"),a.options.hideOnTargetClick&&i.push("click");break;case"click":r.push("click"),i.push("click")}})),r.forEach((function(t){var r=function(t){!0!==a._isOpen&&(t.usedByTooltip=!0,a._scheduleShow(e,n.delay,n,t))};a._events.push({event:t,func:r}),e.addEventListener(t,r)})),i.forEach((function(t){var r=function(t){!0!==t.usedByTooltip&&a._scheduleHide(e,n.delay,n,t)};a._events.push({event:t,func:r}),e.addEventListener(t,r)}))}},{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 a=this,r=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){return a._show(e,n)}),r)}},{key:"_scheduleHide",value:function(e,t,n,a){var r=this,i=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){if(!1!==r._isOpen&&r._tooltipNode.ownerDocument.body.contains(r._tooltipNode)){if("mouseleave"===a.type&&r._setTooltipNodeEvent(a,e,t,n))return;r._hide(e,n)}}),i)}}])&&je(t.prototype,n),a&&je(t,a),e}();"undefined"!=typeof document&&document.addEventListener("touchstart",(function(e){for(var t=0;t<Be.length;t++)Be[t]._onDocumentTouch(e)}),!Fe||{passive:!0,capture:!0});var Ve={enabled:!0},We=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],Ue={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 Ke(e){var t={placement:void 0!==e.placement?e.placement:Qe.options.defaultPlacement,delay:void 0!==e.delay?e.delay:Qe.options.defaultDelay,html:void 0!==e.html?e.html:Qe.options.defaultHtml,template:void 0!==e.template?e.template:Qe.options.defaultTemplate,arrowSelector:void 0!==e.arrowSelector?e.arrowSelector:Qe.options.defaultArrowSelector,innerSelector:void 0!==e.innerSelector?e.innerSelector:Qe.options.defaultInnerSelector,trigger:void 0!==e.trigger?e.trigger:Qe.options.defaultTrigger,offset:void 0!==e.offset?e.offset:Qe.options.defaultOffset,container:void 0!==e.container?e.container:Qe.options.defaultContainer,boundariesElement:void 0!==e.boundariesElement?e.boundariesElement:Qe.options.defaultBoundariesElement,autoHide:void 0!==e.autoHide?e.autoHide:Qe.options.autoHide,hideOnTargetClick:void 0!==e.hideOnTargetClick?e.hideOnTargetClick:Qe.options.defaultHideOnTargetClick,loadingClass:void 0!==e.loadingClass?e.loadingClass:Qe.options.defaultLoadingClass,loadingContent:void 0!==e.loadingContent?e.loadingContent:Qe.options.defaultLoadingContent,popperOptions:$e({},void 0!==e.popperOptions?e.popperOptions:Qe.options.defaultPopperOptions)};if(t.offset){var n=Ee(t.offset),a=t.offset;("number"===n||"string"===n&&-1===a.indexOf(","))&&(a="0, ".concat(a)),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:a}}return t.trigger&&-1!==t.trigger.indexOf("click")&&(t.hideOnTargetClick=!1),t}function Ze(e,t){for(var n=e.placement,a=0;a<We.length;a++){var r=We[a];t[r]&&(n=r)}return n}function Ge(e){var t=Ee(e);return"string"===t?e:!(!e||"object"!==t)&&e.content}function Je(e){e._tooltip&&(e._tooltip.dispose(),delete e._tooltip,delete e._tooltipOldShow),e._tooltipTargetClasses&&(Ie(e,e._tooltipTargetClasses),delete e._tooltipTargetClasses)}function Xe(e,t){var n,a=t.value,r=(t.oldValue,t.modifiers),i=Ge(a);i&&Ve.enabled?(e._tooltip?((n=e._tooltip).setContent(i),n.setOptions($e($e({},a),{},{placement:Ze(a,r)}))):n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Ge(t),r=void 0!==t.classes?t.classes:Qe.options.defaultClass,i=$e({title:a},Ke($e($e({},"object"===Ee(t)?t:{}),{},{placement:Ze(t,n)}))),o=e._tooltip=new qe(e,i);o.setClasses(r),o._vueEl=e;var s=void 0!==t.targetClasses?t.targetClasses:Qe.options.defaultTargetClass;return e._tooltipTargetClasses=s,Ne(e,s),o}(e,a,r),void 0!==a.show&&a.show!==e._tooltipOldShow&&(e._tooltipOldShow=a.show,a.show?n.show():n.hide())):Je(e)}var Qe={options:Ue,bind:Xe,update:Xe,unbind:function(e){Je(e)}};function et(e){e.addEventListener("click",nt),e.addEventListener("touchstart",at,!!Fe&&{passive:!0})}function tt(e){e.removeEventListener("click",nt),e.removeEventListener("touchstart",at),e.removeEventListener("touchend",rt),e.removeEventListener("touchcancel",it)}function nt(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function at(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",it)}}function rt(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],a=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-a.screenY)<20&&Math.abs(n.screenX-a.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function it(e){e.currentTarget.$_vclosepopover_touch=!1}var ot={bind:function(e,t){var n=t.value,a=t.modifiers;e.$_closePopoverModifiers=a,(void 0===n||n)&&et(e)},update:function(e,t){var n=t.value,a=t.oldValue,r=t.modifiers;e.$_closePopoverModifiers=r,n!==a&&(void 0===n||n?et(e):tt(e))},unbind:function(e){tt(e)}};function st(e){const t=Qe.options.popover[e];return void 0===t?Qe.options[e]:t}let lt=!1;"undefined"!=typeof window&&"undefined"!=typeof navigator&&(lt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const ct=[];let ut=function(){};"undefined"!=typeof window&&(ut=window.Element);var dt={name:"VPopover",components:{ResizeObserver:Se},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:()=>st("defaultPlacement")},delay:{type:[String,Number,Object],default:()=>st("defaultDelay")},offset:{type:[String,Number],default:()=>st("defaultOffset")},trigger:{type:String,default:()=>st("defaultTrigger")},container:{type:[String,Object,ut,Boolean],default:()=>st("defaultContainer")},boundariesElement:{type:[String,ut],default:()=>st("defaultBoundariesElement")},popperOptions:{type:Object,default:()=>st("defaultPopperOptions")},popoverClass:{type:[String,Array],default:()=>st("defaultClass")},popoverBaseClass:{type:[String,Array],default:()=>Qe.options.popover.defaultBaseClass},popoverInnerClass:{type:[String,Array],default:()=>Qe.options.popover.defaultInnerClass},popoverWrapperClass:{type:[String,Array],default:()=>Qe.options.popover.defaultWrapperClass},popoverArrowClass:{type:[String,Array],default:()=>Qe.options.popover.defaultArrowClass},autoHide:{type:Boolean,default:()=>Qe.options.popover.defaultAutoHide},handleResize:{type:Boolean,default:()=>Qe.options.popover.defaultHandleResize},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:()=>Qe.options.popover.defaultOpenClass},ariaId:{default:null}},data:()=>({isOpen:!1,id:Math.random().toString(36).substr(2,10)}),computed:{cssClass(){return{[this.openClass]:this.isOpen}},popoverId(){return`popover_${null!=this.ariaId?this.ariaId:this.id}`}},watch:{open(e){e?this.show():this.hide()},disabled(e,t){e!==t&&(e?this.hide():this.open&&this.show())},container(e){if(this.isOpen&&this.popperInstance){const e=this.$refs.popover,t=this.$refs.trigger,n=this.$_findContainer(this.container,t);if(!n)return void console.warn("No container for popover",this);n.appendChild(e),this.popperInstance.scheduleUpdate()}},trigger(e){this.$_removeEventListeners(),this.$_addEventListeners()},placement(e){this.$_updatePopper((()=>{this.popperInstance.options.placement=e}))},offset:"$_restartPopper",boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted(){const e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e),this.$_init(),this.open&&this.show()},deactivated(){this.hide()},beforeDestroy(){this.dispose()},methods:{show({event:e,skipDelay:t=!1,force:n=!1}={}){!n&&this.disabled||(this.$_scheduleShow(e),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame((()=>{this.$_beingShowed=!1}))},hide({event:e,skipDelay:t=!1}={}){this.$_scheduleHide(e),this.$emit("hide"),this.$emit("update:open",!1)},dispose(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){const e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show(){const e=this.$refs.trigger,t=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),this.isOpen)return;if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){const n=this.$_findContainer(this.container,e);if(!n)return void console.warn("No container for popover",this);n.appendChild(t),this.$_mounted=!0,this.isOpen=!1,this.popperInstance&&requestAnimationFrame((()=>{this.hidden||(this.isOpen=!0)}))}if(!this.popperInstance){const n={...this.popperOptions,placement:this.placement};if(n.modifiers={...n.modifiers,arrow:{...n.modifiers&&n.modifiers.arrow,element:this.$refs.arrow}},this.offset){const e=this.$_getOffset();n.modifiers.offset={...n.modifiers&&n.modifiers.offset,offset:e}}this.boundariesElement&&(n.modifiers.preventOverflow={...n.modifiers&&n.modifiers.preventOverflow,boundariesElement:this.boundariesElement}),this.popperInstance=new ge(e,t,n),requestAnimationFrame((()=>{if(this.hidden)return this.hidden=!1,void this.$_hide();!this.$_isDisposed&&this.popperInstance?(this.popperInstance.scheduleUpdate(),requestAnimationFrame((()=>{if(this.hidden)return this.hidden=!1,void this.$_hide();this.$_isDisposed?this.dispose():this.isOpen=!0}))):this.dispose()}))}const n=this.openGroup;if(n){let e;for(let t=0;t<ct.length;t++)e=ct[t],e.openGroup!==n&&(e.hide(),e.$emit("close-group"))}ct.push(this),this.$emit("apply-show")},$_hide(){if(!this.isOpen)return;const e=ct.indexOf(this);-1!==e&&ct.splice(e,1),this.isOpen=!1,this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this.$_disposeTimer);const t=Qe.options.popover.disposeTimeout||Qe.options.disposeTimeout;null!==t&&(this.$_disposeTimer=setTimeout((()=>{const e=this.$refs.popover;e&&(e.parentNode&&e.parentNode.removeChild(e),this.$_mounted=!1)}),t)),this.$emit("apply-hide")},$_findContainer:(e,t)=>("string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e),$_getOffset(){const e=typeof this.offset;let t=this.offset;return("number"===e||"string"===e&&-1===t.indexOf(","))&&(t=`0, ${t}`),t},$_addEventListeners(){const e=this.$refs.trigger,t=[],n=[];("string"==typeof this.trigger?this.trigger.split(" ").filter((e=>-1!==["click","hover","focus"].indexOf(e))):[]).forEach((e=>{switch(e){case"hover":t.push("mouseenter"),n.push("mouseleave");break;case"focus":t.push("focus"),n.push("blur");break;case"click":t.push("click"),n.push("click")}})),t.forEach((t=>{const n=e=>{this.isOpen||(e.usedByTooltip=!0,!this.$_preventOpen&&this.show({event:e}),this.hidden=!1)};this.$_events.push({event:t,func:n}),e.addEventListener(t,n)})),n.forEach((t=>{const n=e=>{e.usedByTooltip||(this.hide({event:e}),this.hidden=!0)};this.$_events.push({event:t,func:n}),e.addEventListener(t,n)}))},$_scheduleShow(e=null,t=!1){if(clearTimeout(this.$_scheduleTimer),t)this.$_show();else{const e=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),e)}},$_scheduleHide(e=null,t=!1){if(clearTimeout(this.$_scheduleTimer),t)this.$_hide();else{const t=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout((()=>{if(this.isOpen){if(e&&"mouseleave"===e.type){if(this.$_setTooltipNodeEvent(e))return}this.$_hide()}}),t)}},$_setTooltipNodeEvent(e){const t=this.$refs.trigger,n=this.$refs.popover,a=e.relatedreference||e.toElement||e.relatedTarget,r=a=>{const i=a.relatedreference||a.toElement||a.relatedTarget;n.removeEventListener(e.type,r),t.contains(i)||this.hide({event:a})};return!!n.contains(a)&&(n.addEventListener(e.type,r),!0)},$_removeEventListeners(){const e=this.$refs.trigger;this.$_events.forEach((({func:t,event:n})=>{e.removeEventListener(n,t)})),this.$_events=[]},$_updatePopper(e){this.popperInstance&&(e(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper(){if(this.popperInstance){const e=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),e&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose(e,t=!1){this.$_beingShowed||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventOpen=!0,setTimeout((()=>{this.$_preventOpen=!1}),300)))},$_handleResize(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};function pt(e,t=!1){for(let n=0;n<ct.length;n++){let a=ct[n];if(a.$refs.popover){const n=a.$refs.popover.contains(e.target);requestAnimationFrame((()=>{(e.closeAllPopover||e.closePopover&&n||a.autoHide&&!n)&&a.$_handleGlobalClose(e,t)}))}}}function mt(e,t,n,a,r,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,r&&(u.functional=!0)),a&&(u._scopeId=a),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&&(lt?document.addEventListener("touchend",(function(e){pt(e,!0)}),!Fe||{passive:!0,capture:!0}):window.addEventListener("click",(function(e){pt(e)}),!0));const ft=dt;var ht=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})])])])};ht._withStripped=!0;const _t=mt({render:ht,staticRenderFns:[]},undefined,ft,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 a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.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 vt={install:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0;var a={};Oe()(a,Ue,n),vt.options=a,Qe.options=a,t.directive("tooltip",Qe),t.directive("close-popover",ot),t.component("v-popover",_t)}},get enabled(){return Ve.enabled},set enabled(e){Ve.enabled=e}},gt=null;"undefined"!=typeof window?gt=window.Vue:void 0!==n.g&&(gt=n.g.Vue),gt&&gt.use(vt);const yt=vt;var bt={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 a=t.styles[n];a&&(e.style[n]=a)}))},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 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":"fadeIn","move-class":"fade-move","leave-active-class":"fadeOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"fade-transition",mixins:[bt]};!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 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":"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:[bt]};!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 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":"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:[bt]};!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 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,"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:[bt],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 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,"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:[bt],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 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,"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:[bt],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 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,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:[bt],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 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":"slideYDownIn","leave-active-class":"slideYDownOut"}},"component",e.$attrs,!1),e.hooks),[e._t("default")],2)},staticRenderFns:[],name:"slide-y-down-transition",mixins:[bt],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 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":"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:[bt],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 Ot={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:[bt],props:{styles:{type:Object,default:function(){return{animationFillMode:"both",animationTimingFunction:"cubic-bezier(.25,.8,.50,1)"}}}}},Et={};function jt(e,t){t&&t.components?t.components.forEach((function(t){return e.component(t.name,Et[t.name])})):Object.keys(Et).forEach((function(t){e.component(t,Et[t])}))}Et[wt.name]=wt,Et[xt.name]=xt,Et[kt.name]=kt,Et[Dt.name]=Dt,Et[Mt.name]=Mt,Et[St.name]=St,Et[Ct.name]=Ct,Et[Lt.name]=Lt,Et[Tt.name]=Tt,Et[Ot.name]=Ot,"undefined"!=typeof window&&window.Vue&&window.Vue.use({install:jt});const At={install:jt};var Pt=n(9381),$t=n.n(Pt),Yt=n(8764),zt=n.n(Yt),Nt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,r++)a[r]=i[o];return a};const It=function(){function e(){}return e.install=function(e,t){var n;void 0===t&&(t={});var a,r=zt().mixin(t),i=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=r.fire).call.apply(e,Nt([r],t))};for(a in Object.assign(i,zt()),zt())Object.prototype.hasOwnProperty.call(r,a)&&"function"==typeof r[a]&&(i[a]=r[a].bind(r));(null===(n=e.config)||void 0===n?void 0:n.globalProperties)&&!e.config.globalProperties.$swal?(e.config.globalProperties.$swal=i,e.provide("$swal",i)):Object.prototype.hasOwnProperty.call(e,"$swal")||(e.prototype.$swal=i,e.swal=i)},e}();var Ft=n(3379),Ht=n.n(Ft),Rt=n(1323),Bt={insert:"head",singleton:!1};Ht()(Rt.Z,Bt);Rt.Z.locals;const qt={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"}}};l.default.use($t(),{theme:qt}),l.default.use(c.ZP),l.default.use(It,{customClass:{container:"fixed z-50 inset-0 overflow-y-auto bg-black bg-opacity-25 flex justify-center min-h-screen items-center sm:p-0 swal2-container",popup:"flex items-center flex-col justify-center align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6",header:"swal2-header",title:"swal2-title",closeButton:"",icon:"swal2-icon",image:"",content:"swal2-content",input:"",inputLabel:"",validationMessage:"",actions:"swal2-actions",confirmButton:"w-full inline-flex py-2 px-4 text-sm leading-5 rounded 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",denyButton:"",cancelButton:"w-full inline-flex py-2 px-4 text-sm leading-5 rounded 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",loader:"",footer:""},buttonsStyling:!1}),l.default.use(At),window._=n(6486),n(7039),n(8590),window.axios=n(9669),window.axios.defaults.withCredentials=!0,window.Ls=o.Z,window.axios.defaults.headers.common={"X-Requested-With":"XMLHttpRequest"},window.axios.interceptors.request.use((function(e){if(s.Z.getters["auth/isLoggedOut"]){var t=window.axios.CancelToken.source();return e.cancelToken=t.token,setTimeout((function(){s.Z.dispatch("auth/setLogoutFalse")}),200),e}var n=o.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(s.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)s.Z.dispatch("notification/showNotification",{type:"error",message:t[n]})}else s.Z.dispatch("notification/showNotification",{type:"error",message:e.response.data.message?e.response.data.message:e.response.data||"Unknown error occurred"});else s.Z.dispatch("notification/showNotification",{type:"error",message:e.response.data.message?e.response.data.message:"Unauthorized"}),s.Z.dispatch("auth/logout",!0);else s.Z.dispatch("notification/showNotification",{type:"error",message:"Please check your internet connection or wait until servers are back online."});return Promise.reject(e)})),l.default.use(a.Z),l.default.use(i()),l.default.use(yt),l.default.use(d(),{precision:2})},8590:(e,t,n)=>{"use strict";n.r(t);var a=n(538),r=n(1557),i=n(3236),o=n(7757),s=n.n(o),l=n(6564);function c(e,t,n,a,r,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(a,r)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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(a,r){var i=t.apply(e,n);function o(e){c(i,a,r,o,s,"next",e)}function s(e){c(i,a,r,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(7439);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,a=new Array(t);n<t;n++)a[n]=e[n];return a}function b(e,t,n,a,r,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(a,r)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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(a,r){var i=e.apply(t,n);function o(e){b(i,a,r,o,s,"next",e)}function s(e){b(i,a,r,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,a){return n("ul",{key:a,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,a){return n("li",{key:a,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,a,r,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(a,r)}function C(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){S(i,a,r,o,s,"next",e)}function s(e){S(i,a,r,o,s,"throw",e)}o(void 0)}))}}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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 j=n(3379),A=n.n(j),P=n(3042),$={insert:"head",singleton:!1};A()(P.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,a){return n("div",{key:a,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 z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function N(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){I(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 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:N(N({},(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:N(N({},(0,l.nv)("modal",["openModal"])),{},{selectTaxType:function(e){this.$emit("select",N({},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,a){return n("div",{key:a,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(a)}}},[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,a,r,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(a,r)}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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(a,r){var i=e.apply(t,n);function o(e){R(i,a,r,o,s,"next",e)}function s(e){R(i,a,r,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,a){return n("div",{key:a,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(a)}}},[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};A()(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:a}=n;Object.keys(t).forEach((e=>{const n={default:()=>t[e]};a[e]=n})),e.component(n.name,{...n,props:a})})(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 ae=n(381),re=n.n(ae);function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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 re()(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=re()(new Date(this.value),"YYYY-MM-DD").format("YYYY-MM-DD"),!0;this.value&&(this.date=re()(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};A()(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(1520),he=n(3397),_e=n(6486),ve=n.n(_e);function ge(e,t,n,a,r,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(a,r)}function ye(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){ge(i,a,r,o,s,"next",e)}function s(e){ge(i,a,r,o,s,"throw",e)}o(void 0)}))}}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ke={components:{SearchIcon:v.W1M,LoadingIcon:he.Z},data:function(){return{isShow:!1,isLoading:!1,name:""}},computed:we({},(0,l.Se)("search",["getCustomerList","getUserList"])),created:function(){this.searchUsers()},methods:we(we({},(0,l.nv)("search",["searchUsers"])),{},{throttledMethod:ve().debounce(ye(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 De=n(7155),Me={insert:"head",singleton:!1};A()(De.Z,Me);De.Z.locals;const Se=(0,f.Z)(ke,(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 Ce={data:function(){return{toggle:!1}},methods:{checktoggle:function(){var e=this;e.toggle=!0,setTimeout((function(){e.toggle=!1}),300)}}};var Le=n(7107),Te={insert:"head",singleton:!1};A()(Le.Z,Te);Le.Z.locals;const Oe=(0,f.Z)(Ce,(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 Ee=(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 je={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 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 overflow-y-auto",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 Pe(e,t,n,a){return e.filter((e=>{return r=a(e,n),i=t,void 0===r&&(r="undefined"),null===r&&(r="null"),!1===r&&(r="false"),-1!==r.toString().toLowerCase().indexOf(i.trim());var r,i}))}function $e(e){return e.filter((e=>!e.$isLabel))}function Ye(e,t){return n=>n.reduce(((n,a)=>a[e]&&a[e].length?(n.push({$groupLabel:a[t],$isLabel:!0}),n.concat(a[e])):n),[])}const ze=(...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 a;return n=this.internalSearch?this.groupValues?this.filterAndFlat(n,t,this.label):Pe(n,t,this.label,this.customLabel):this.groupValues?Ye(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter((a=this.isSelected,(...e)=>!a(...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 ze(function(e,t,n,a,r){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=Pe(i[n],e,t,r);return o.length?{[a]:i[a],[n]:o}:[]}))}(t,n,this.groupValues,this.groupLabel,this.customLabel),Ye(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return ze(Ye(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:Ie}=je,Fe={data:()=>({pointer:0,pointerDirty:!1}),props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40},classes:{type:Object,default:()=>Ie}},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:He}=je,Re={name:"VueMultiselect",mixins:[Ne,Fe],props:{classes:{type:Object,default:()=>He},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(){let e={maxHeight:this.optimizedHeight+"px"};return e.display=this.options.length?"inline-block":"block",e},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 Be=(0,f.Z)(Re,(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,a){return[e._t("tag",[n("span",{key:a,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,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,a){return n("li",{key:a,class:e.multiselectElementStyle,attrs:{id:e.id+"-"+a,role:t&&(t.$isLabel||t.$isDisabled)?null:"option"}},[t&&(t.$isLabel||t.$isDisabled)?e._e():n("span",{class:e.optionHighlight(a,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(a)}}},[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(a,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(a)},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;a.default.component("base-modal",r.Z),a.default.component("global-search",Se),a.default.component("base-page",me),a.default.component("base-date-picker",ue),a.default.component("base-loader",i.Z),a.default.component("sw-select",Be),a.default.component("base-customer-select",h),a.default.component("base-custom-input",M),a.default.component("customer-select-popup",Y),a.default.component("tax-select-popup",H),a.default.component("note-select-popup",U),a.default.component("base-time-picker",pe),a.default.component("base-notification",fe.Z),a.default.component("dot-icon",Oe),a.default.component("save-icon",Ee)},7039:(e,t,n)=>{"use strict";n.r(t);var a=n(538);a.default.directive("click-outside",{bind:function(e,t,n){e.event=function(a){e===a.target||e.contains(a.target)||n.context[t.expression](a)},document.body.addEventListener("click",e.event)},unbind:function(e){document.body.removeEventListener("click",e.event)}}),a.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)}})},7439:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Q});var a=n(7757),r=n.n(a),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}},created:function(){this.date=this.field&&this.field.defaultAnswer&&this.field.defaultAnswer,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),j=(E.required,E.minLength,E.numeric,E.minValue,E.maxLength,E.requiredIf);const A={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:j("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 P=(0,l.Z)(A,(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 $=n(379),Y=($.required,$.url),z=$.requiredIf;const N={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:z("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)(N,(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,a,r,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(a,r)}function Z(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){K(i,a,r,o,s,"next",e)}function s(e){K(i,a,r,o,s,"throw",e)}o(void 0)}))}}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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:P,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(6564).nv)("customFields",["fetchCustomFields"])),{},{setInitialCustomFields:function(){var e=arguments,t=this;return Z(r().mark((function n(){var a,i;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:null,n.next=3,t.fetchCustomFields({type:a,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 a=t.map((function(e){return e.id})),r=e.map((function(e){return e.custom_field_id}));this.$utils.arrayDifference(a,r).forEach((function(e){var a=t.find((function(t){return t.id==e}));n.customFields.push(J(J({},a),{},{cfid:a.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)}}))}})}},3159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>cp});var a=n(538),r=n(8345),i=n(6564),o=n(3032),s=n(7751);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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,a=new Array(t);n<t;n++)a[n]=e[n];return a}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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)}})};const M=(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,a){return n("sw-list",{key:a,attrs:{variant:"sidebar"}},e._l(t,(function(t,a){return n("sw-list-item",{key:a,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,a){return n("sw-list",{key:a,attrs:{variant:"sidebar"}},e._l(t,(function(t,a){return n("sw-list-item",{key:a,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;var S=n(1557),C=n(1520);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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:{SiteHeader:v,SiteSidebar:M,SiteFooter:g,BaseModal:S.Z,RefreshIcon:o.DuK,BaseNotification:C.Z},computed:T(T(T({},(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:T(T(T({},(0,i.nv)(["bootstrap"])),(0,i.nv)("company",["setSelectedCompany"])),{},{setInitialCompany:function(){this.setSelectedCompany(this.selectedCompany)}})};const j=(0,_.Z)(E,(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("base-notification"),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 A=n(4853),P={insert:"head",singleton:!1};m()(A.Z,P);A.Z.locals;const $=(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("base-notification"),e._v(" "),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"})])],1)}),[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,"11c1cc80",null).exports;const Y={watch:{$route:"onRouteChange"}};const z=(0,_.Z)(Y,(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 N=n(7757),I=n.n(N);const F=(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 H=(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 R=(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 B(e,t,n,a,r,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(a,r)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=n(379),K=U.required,Z=U.email,G=U.minLength;const J={components:{IconFacebook:F,IconTwitter:H,IconGoogle:R,EyeIcon:s.tEF,EyeOffIcon:s.Xl7},data:function(){return{loginData:{email:"",password:"",remember:""},submitted:!1,isLoading:!1,isShowPassword:!1}},validations:{loginData:{email:{required:K,email:Z},password:{required:K,minLength:G(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:V(V(V({},(0,i.nv)("auth",["login"])),(0,i.nv)("notification",["showNotification"])),{},{validateBeforeSubmit:function(){var e,t=this;return(e=I().mark((function e(){return I().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.showNotification({type:"success",message:"Logged in successfully."}),t.isLoading=!1,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(5),t.isLoading=!1;case 16:case"end":return e.stop()}}),e,null,[[5,13]])})),function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){B(i,a,r,o,s,"next",e)}function s(e){B(i,a,r,o,s,"throw",e)}o(void 0)}))})()}})};const X=(0,_.Z)(J,(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;function Q(e,t,n,a,r,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(a,r)}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ae=n(379),re=ae.required;const ie={data:function(){return{formData:{email:""},isSent:!1,isLoading:!1}},validations:{formData:{email:{email:ae.email,required:re}}},methods:te(te({},(0,i.nv)("notification",["showNotification"])),{},{validateBeforeSubmit:function(e){var t,n=this;return(t=I().mark((function e(){return I().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&&n.showNotification({type:"success",message:"Mail sent successfuly!"}),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(a,r){var i=t.apply(e,n);function o(e){Q(i,a,r,o,s,"next",e)}function s(e){Q(i,a,r,o,s,"throw",e)}o(void 0)}))})()}})};const oe=(0,_.Z)(ie,(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 se(e,t,n,a,r,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(a,r)}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(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 de=n(379),pe=de.required,me=de.email,fe=de.sameAs;const he={data:function(){return{formData:{email:"",password:"",password_confirmation:""},isLoading:!1}},validations:{formData:{email:{required:pe,email:me},password:{required:pe,minLength:(0,de.minLength)(8)},password_confirmation:{sameAsPassword:fe("password")}}},methods:ce(ce({},(0,i.nv)("notification",["showNotification"])),{},{validateBeforeSubmit:function(e){var t,n=this;return(t=I().mark((function e(){var t,a;return I().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:a=e.sent,n.isLoading=!1,a.data&&(n.showNotification({type:"success",message:n.$t("login.password_reset_successfully")}),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&&(n.showNotification({type:"error",message: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(a,r){var i=t.apply(e,n);function o(e){se(i,a,r,o,s,"next",e)}function s(e){se(i,a,r,o,s,"throw",e)}o(void 0)}))})()}})};const _e=(0,_.Z)(he,(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 ve={data:function(){return{name:"",email:"",password:"",password_confirmation:""}},methods:{validateBeforeSubmit:function(e){this.$validator.validateAll().then((function(e){e&&alert("Form Submitted!")}))}}};const ge=(0,_.Z)(ve,(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 ye={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 be=(0,_.Z)(ye,(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 we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function xe(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 De={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 xe({},this.$store.state.dashboard)},computed:xe(xe(xe({},(0,i.Se)("user",{user:"currentUser"})),(0,i.Se)("dashboard",["getContacts","getInvoices","getEstimates","getTotalDueAmount","getDashboardDataLoaded"])),(0,i.Se)("company",["defaultCurrency"]))};const Me=(0,_.Z)(De,(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 Se={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 a,r=t[n];a=""==n?e:e.querySelector(n),a.classList.remove(...r),a.classList.add(...r)}}}};var Ce=n(1713),Le={insert:"head",singleton:!1};m()(Ce.Z,Le);Ce.Z.locals;(0,_.Z)(Se,(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 Te={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)(Te,(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 Oe=n(7432),Ee=n.n(Oe);function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}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 Pe={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?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}({},(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}},a={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(Ee())(t,{type:"line",data:a,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 $e=n(434),Ye={insert:"head",singleton:!1};m()($e.Z,Ye);$e.Z.locals;const ze=(0,_.Z)(Pe,(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 Ne(e,t,n,a,r,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(a,r)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Fe(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){He(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 He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Re={components:{LineChart:ze,ChartSquareBarIcon:s.iGq},data:function(){return Fe(Fe({},this.$store.state.dashboard),{},{isLoaded:!1,years:["This year","Previous year"],selectedYear:"This year"})},computed:Fe(Fe(Fe({},(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:Fe(Fe({},(0,i.nv)("dashboard",["loadData"])),{},{loadData:function(e){var t,n=this;return(t=I().mark((function t(){return I().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(a,r){var i=t.apply(e,n);function o(e){Ne(i,a,r,o,s,"next",e)}function s(e){Ne(i,a,r,o,s,"throw",e)}o(void 0)}))})()}})};const Be=(0,_.Z)(Re,(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 qe(e,t,n,a,r,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(a,r)}function Ve(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){qe(i,a,r,o,s,"next",e)}function s(e){qe(i,a,r,o,s,"throw",e)}o(void 0)}))}}function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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:{PencilIcon:o.vdY,EyeIcon:o.tEF,PaperAirplaneIcon:o.Rdq,CheckCircleIcon:o.rE2,TrashIcon:o.XHJ,DocumentTextIcon:o.YHR,XCircleIcon:o.oOx},data:function(){return Ue(Ue({},this.$store.state.dashboard),{},{currency:{precision:2,thousand_separator:",",decimal_separator:".",symbol:"$"},isLoaded:!1,fetching:!1})},computed:Ue(Ue({},(0,i.Se)("user",{user:"currentUser"})),(0,i.Se)("dashboard",["getDashboardDataLoaded","getDueInvoices","getRecentEstimates"])),methods:Ue(Ue(Ue(Ue(Ue(Ue({},(0,i.nv)("dashboard",["loadData"])),(0,i.nv)("invoice",["deleteInvoice","sendEmail","markAsSent"])),(0,i.nv)("estimate",["deleteEstimate","markAsAccepted","markAsRejected","convertToInvoice"])),(0,i.nv)("notification",["showNotification"])),(0,i.nv)("estimate",{sendEstimateEmail:"sendEmail",markEstimateAsSent:"markAsSent"})),{},{loadData:function(e){var t=this;return Ve(I().mark((function n(){return I().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 Ve(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,t.$swal({title:t.$t("general.are_you_sure"),text:t.$tc("estimates.confirm_delete",1),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var e=Ve(I().mark((function e(n){var a;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.value){e.next=5;break}return e.next=3,t.deleteEstimate({ids:[t.id]});case 3:(a=e.sent).data.success?(t.showToaster({type:"success",message:t.$tc("estimates.deleted_message",1)}),t.refreshEstTable()):a.data.error&&t.showToaster({type:"error",message:a.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 Ve(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_conversion"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n viewBox="0 0 384 512"\n class="w-6 h-6"\n data-prefix="fas"\n data-icon="file-alt"\n class="svg-inline--fa fa-file-alt fa-w-12"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill="#55547A"\n d="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Ve(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=6;break}return n.next=3,t.convertToInvoice(e);case 3:r=n.sent,t.selectAllField=!1,r.data?(t.showToaster({type:"success",message:t.$t("estimates.conversion_message")}),t.$router.push("invoices/".concat(r.data.invoice.id,"/edit"))):r.data.error&&t.showToaster({type:"error",message:r.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 Ve(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_sent"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Ve(I().mark((function n(a){var r,i;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=7;break}return r={id:e,status:"SENT"},n.next=4,t.markEstimateAsSent(r);case 4:i=n.sent,t.refreshEstTable(),i.data&&t.showToaster({type:"success",message: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 Ve(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,window,t.$swal({title:t.$t("general.are_you_sure"),text:t.$tc("invoices.confirm_delete"),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var e=Ve(I().mark((function e(n){var a;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.value){e.next=5;break}return e.next=3,t.deleteInvoice({ids:[t.id]});case 3:(a=e.sent).data.success?(t.showToaster({type:"success",message:t.$tc("invoices.deleted_message")}),t.refreshInvTable()):a.data.error&&t.showToaster({type:"error",message:a.data.message});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return n.stop()}}),n)})))()},sendInvoice:function(e){var t=this;return Ve(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("invoices.confirm_send"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n focusable="false"\n class="w-6 h-6"\n data-prefix="fas"\n data-icon="paper-plane"\n class="svg-inline--fa fa-paper-plane fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Ve(I().mark((function n(a){var r,i;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=13;break}return r={id:e},n.next=4,t.sendEmail(r);case 4:if(i=n.sent,t.refreshInvTable(),!i.data.success){n.next=9;break}return t.showToaster({type:"success",message: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 t.showToaster({type:"error",message:t.$tc("invoices.user_email_does_not_exist")}),n.abrupt("return",!1);case 12:t.showToaster({type:"error",message: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 Ve(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("invoices.invoice_mark_as_sent"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Ve(I().mark((function n(a){var r,i;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=7;break}return r={id:e,status:"SENT"},n.next=4,t.markAsSent(r);case 4:i=n.sent,t.refreshInvTable(),i.data&&t.showToaster({type:"success",message: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 Ve(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_accepted"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Ve(I().mark((function n(a){var r,i;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=7;break}return r={id:e},n.next=4,t.markAsAccepted(r);case 4:i=n.sent,t.refreshEstTable(),i.data&&(t.refreshEstTable(),t.showToaster({type:"success",message: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 Ve(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_rejected"),icon:"error",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#DC2626"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Ve(I().mark((function n(a){var r,i;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=7;break}return r={id:e},n.next=4,t.markAsRejected(r);case 4:i=n.sent,t.refreshEstTable(),i.data&&(t.refreshEstTable(),t.showToaster({type:"success",message: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 Ve(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:window,t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_send_estimate"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n focusable="false"\n class="w-6 h-6"\n data-prefix="fas"\n data-icon="paper-plane"\n class="svg-inline--fa fa-paper-plane fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Ve(I().mark((function n(a){var r,i;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=13;break}return r={id:e},n.next=4,t.sendEstimateEmail(r);case 4:if(i=n.sent,t.refreshEstTable(),!i.data.success){n.next=9;break}return t.showToaster({type:"success",message: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 t.showToaster({type:"error",message:t.$tc("estimates.user_email_does_not_exist")}),n.abrupt("return",!0);case 12:t.showToaster({type:"error",message:t.$tc("estimates.something_went_wrong")});case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()}})};const Ge={components:{DashboardStats:Me,DashboardChart:Be,DashboardTable:(0,_.Z)(Ze,(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(e.$utils.getStatusTranslation("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:{to:"invoices/"+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:"invoices/"+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("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:{to:"estimates/"+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:"estimates/"+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.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 Je=(0,_.Z)(Ge,(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 Xe=(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,a,r,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(a,r)}function et(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Qe(i,a,r,o,s,"next",e)}function s(e){Qe(i,a,r,o,s,"throw",e)}o(void 0)}))}}function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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){at(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 at(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:{AstronautIcon:Xe,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:nt(nt({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:nt(nt(nt({},(0,i.nv)("customer",["fetchCustomers","selectAllCustomers","selectCustomer","deleteCustomer","deleteMultipleCustomers","setSelectAllState"])),(0,i.nv)("notification",["showNotification"])),{},{refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return et(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=e.sort,i={display_name:t.filters.display_name,contact_name:t.filters.contact_name,phone:t.filters.phone,orderByField:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a}});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 et(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$tc("customers.confirm_delete"),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=et(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=10;break}return n.next=3,t.deleteCustomer({ids:[e]});case 3:if(!(r=n.sent).data.success){n.next=8;break}return t.showNotification({type:"success",message:t.$tc("customers.deleted_message",1)}),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:return t.showNotification({type:"error",message:t.$tc(r.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 et(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$swal({title:e.$t("general.are_you_sure"),text:e.$tc("customers.confirm_delete",2),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=et(I().mark((function t(n){var a;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.value){t.next=5;break}return t.next=3,e.deleteMultipleCustomers();case 3:(a=t.sent).data.success?(e.showNotification({type:"success",message:e.$tc("customers.deleted_message",2)}),e.refreshTable()):a.data.error&&e.showNotification({type:"error",message:a.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 it=(0,_.Z)(rt,(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:e.$t("customers.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:e.$t("customers.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 ot=n(7113),st=(n(6486),n(7439));function lt(e,t,n,a,r,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(a,r)}function ct(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){lt(i,a,r,o,s,"next",e)}function s(e){lt(i,a,r,o,s,"throw",e)}o(void 0)}))}}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pt(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),ft=mt.required,ht=mt.minLength,_t=mt.email,vt=mt.url,gt=mt.maxLength;const yt={components:{DocumentDuplicateIcon:o.eXB},mixins:[st.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:ft,minLength:ht(3)},email:{email:_t},website:{url:vt}},billing:{address_street_1:{maxLength:gt(255)},address_street_2:{maxLength:gt(255)}},shipping:{address_street_1:{maxLength:gt(255)},address_street_2:{maxLength:gt(255)}}},computed:dt(dt(dt({},(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:dt(dt(dt(dt({},(0,i.nv)("customer",["addCustomer","fetchCustomer","updateCustomer","fetchViewCustomer"])),(0,i.nv)("notification",["showNotification"])),(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 ct(I().mark((function t(){var n,a,r,i;return I().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 a=t.sent,e.formData=dt(dt({},e.formData),a.data.customer),a.data.customer.billing_address&&(e.billing=a.data.customer.billing_address,a.data.customer.billing_address.country_id&&(e.billing_country=a.data.customer.billing_address.country)),a.data.customer.shipping_address&&(e.shipping=a.data.customer.shipping_address,a.data.customer.shipping_address.country_id&&(e.shipping_country=a.data.customer.shipping_address.country)),e.formData.currency_id=a.data.customer.currency_id,e.currency=a.data.customer.currency,t.next=11,e.fetchCustomFields({type:"Customer",limit:"all"});case 11:r=t.sent,i=r.data.customFields.data,e.formData.fields=a.data.customer.fields,e.setEditCustomFields(a.data.customer.fields,i);case 15:case"end":return t.stop()}}),t)})))()},fetchInitData:function(){var e=this;return ct(I().mark((function t(){var n;return I().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=dt(dt({},this.billing),{},{type:"shipping"}),this.shipping_country=this.billing_country,this.shipping_state=this.billing_state,this.shipping_city=this.billing_city):(this.shipping=dt(dt({},ot.Z),{},{type:"shipping"}),this.shipping_country=null,this.shipping_state=null,this.shipping_city=null)},submitCustomerData:function(){var e=this;return ct(I().mark((function t(){var n,a;return I().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=[dt({},e.billing),dt({},e.shipping)]:e.hasBillingAdd?e.formData.addresses=[dt({},e.billing)]:e.hasShippingAdd&&(e.formData.addresses=[dt({},e.shipping)]),t.prev=7,a=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:(a=t.sent).data.success&&(e.$router.push("/admin/customers/".concat(a.data.customer.id,"/view")),e.showNotification({type:"success",message:e.$t("customers.updated_message")})),a.data.error&&e.showNotification({type:"error",message:e.$t("validation.email_already_taken")}),t.next=23;break;case 19:return t.next=21,e.addCustomer(e.formData);case 21:(a=t.sent).data.success&&(e.$router.push("/admin/customers/".concat(a.data.customer.id,"/view")),e.showNotification({type:"success",message: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&&e.showNotification({type:"error",message:e.$t("validation.email_already_taken")});case 31:case"end":return t.stop()}}),t,null,[[7,27]])})))()}})};const bt=(0,_.Z)(yt,(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:{title:e.$t("general.home"),to:"/admin/dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("customers.customer",2),to:"/admin/customers"}}),e._v(" "),"customers.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{title:e.$t("customers.edit_customer"),to:"#",active:""}}):n("sw-breadcrumb-item",{attrs:{title:e.$t("customers.new_customer"),to:"#",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,a){return n("sw-input-group",{key:a,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,"is-edit":e.isEdit,"invalid-fields":e.invalidFields,tabindex:23+a},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 wt(e,t,n,a,r,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(a,r)}function xt(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){wt(i,a,r,o,s,"next",e)}function s(e){wt(i,a,r,o,s,"throw",e)}o(void 0)}))}}function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){Mt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var St=n(6486);const Ct={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:Dt(Dt({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=St.debounce(this.onSearch,500)},methods:Dt(Dt({},(0,i.nv)("customer",["fetchCustomers"])),{},{hasActiveUrl:function(e){return this.$route.params.id==e},loadCustomers:function(){var e=this;return xt(I().mark((function t(){var n;return I().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 xt(I().mark((function t(){return I().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 xt(I().mark((function t(){var n,a;return I().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(Dt({},n));case 8:a=t.sent,e.isSearching=!1,a.data&&(e.customers=a.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 Lt=(0,_.Z)(Ct,(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,a){return n("router-link",{key:a,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 Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ot(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={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?Tt(Object(n),!0).forEach((function(t){Ot(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}({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 jt(e,t,n,a,r,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(a,r)}function At(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){jt(i,a,r,o,s,"next",e)}function s(e){jt(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $t(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){Yt(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 Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zt={components:{LineChart:ze,CustomerInfo:(0,_.Z)(Et,(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,a){return n("div",{key:a,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:$t($t({},(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:$t($t({},(0,i.nv)("customer",["fetchViewCustomer"])),{},{loadCustomer:function(){var e=this;return At(I().mark((function t(){var n;return I().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 At(I().mark((function n(){var a,r;return I().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(a=n.sent).data&&(t.chartData=a.data.chartData),n.abrupt("return",!0);case 6:return n.next=8,t.fetchViewCustomer({id:t.$route.params.id});case 8:return(r=n.sent).data&&(t.chartData=r.data.chartData),n.abrupt("return",!0);case 11:case"end":return n.stop()}}),n)})))()}})};const Nt=(0,_.Z)(zt,(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 It(e,t,n,a,r,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(a,r)}function Ft(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){It(i,a,r,o,s,"next",e)}function s(e){It(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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}const qt={components:{LineChart:ze,DotsHorizontalIcon:o.nWS,CustomerViewSidebar:Lt,DocumentIcon:o.$lS,DocumentTextIcon:o.YHR,CreditCardIcon:o.ciH,CalculatorIcon:o.Xki,CustomerChart:Nt,TrashIcon:o.XHJ},data:function(){return{customer:null}},computed:Rt(Rt({},(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:Rt(Rt(Rt({},(0,i.nv)("customer",["fetchViewCustomer","selectCustomer","deleteMultipleCustomers"])),(0,i.nv)("notification",["showNotification"])),{},{removeCustomer:function(e){var t=this;return Ft(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$tc("customers.confirm_delete"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="trash"\n class="svg-inline--fa fa-trash fa-w-14"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 448 512"\n >\n <path\n fill="#55547A"\n d="M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Ft(I().mark((function n(a){var r,i;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=13;break}return r=[e],t.selectCustomer(r),n.next=5,t.deleteMultipleCustomers();case 5:if(!(i=n.sent).data.success){n.next=12;break}return t.showNotification({type:"success",message:t.$tc("customers.deleted_message")}),t.$router.push("/admin/customers"),n.abrupt("return",!0);case 12:request.data.error&&t.showNotification({type:"error",message: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 Vt=(0,_.Z)(qt,(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:{to:"/admin/customers/"+e.$route.params.id+"/edit","tag-name":"router-link",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:{to:"/admin/estimates/create?customer="+e.$route.params.id,"tag-name":"router-link"}},[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:{to:"/admin/invoices/create?customer="+e.$route.params.id,"tag-name":"router-link"}},[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:{to:"/admin/payments/create?customer="+e.$route.params.id,"tag-name":"router-link"}},[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:{to:"/admin/expenses/create?customer="+e.$route.params.id,"tag-name":"router-link"}},[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 Wt(e,t,n,a,r,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(a,r)}function Ut(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Wt(i,a,r,o,s,"next",e)}function s(e){Wt(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach((function(t){Gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jt={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:Zt(Zt(Zt({},(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:Zt(Zt(Zt({},(0,i.nv)("item",["fetchItems","selectAllItems","selectItem","deleteItem","deleteMultipleItems","setSelectAllState","fetchItemUnits"])),(0,i.nv)("notification",["showNotification"])),{},{refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return Ut(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=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:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a}});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 Ut(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,t.$swal({title:t.$t("general.are_you_sure"),text:t.$tc("items.confirm_delete"),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Ut(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=13;break}return n.next=3,t.deleteItem({ids:[e]});case 3:if(!(r=n.sent).data.success){n.next=8;break}return t.showNotification({type:"success",message:t.$tc("items.deleted_message")}),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:if("item_attached"!==r.data.error){n.next=11;break}return t.showNotification({type:"error",message:(t.$tc("items.item_attached_message"),t.$t("general.action_failed"))}),n.abrupt("return",!0);case 11:return t.showNotification({type:"error",message:r.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 Ut(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$swal({title:e.$t("general.are_you_sure"),text:e.$tc("items.confirm_delete",2),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=Ut(I().mark((function t(n){var a;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.value){t.next=5;break}return t.next=3,e.deleteMultipleItems();case 3:(a=t.sent).data.success||a.data.items?(e.showNotification({type:"success",message:e.$tc("items.deleted_message",2)}),e.$refs.table.refresh()):a.data.error&&e.showNotification({type:"error",message:a.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 Xt=(0,_.Z)(Jt,(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:e.$t("items.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,a,r,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(a,r)}function en(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Qt(i,a,r,o,s,"next",e)}function s(e){Qt(i,a,r,o,s,"throw",e)}o(void 0)}))}}function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){an(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rn=n(379),on=rn.required,sn=rn.minLength,ln=rn.numeric,cn=rn.minValue,un=rn.maxLength;const dn={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:nn(nn(nn(nn(nn({},(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 nn(nn({},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:on,minLength:sn(3)},price:{required:on,numeric:ln,maxLength:un(20),minValue:cn(.1)},description:{maxLength:un(65e3)}}},methods:nn(nn(nn(nn(nn(nn({},(0,i.nv)("item",["addItem","fetchItem","updateItem","fetchItemUnits"])),(0,i.nv)("taxType",["fetchTaxTypes"])),(0,i.nv)("company",["fetchCompanySettings"])),(0,i.nv)("modal",["openModal"])),(0,i.nv)("notification",["showNotification"])),{},{setTaxPerItem:function(){var e=this;return en(I().mark((function t(){var n;return I().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 en(I().mark((function t(){var n;return I().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=nn(nn({},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 nn(nn({},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 en(I().mark((function t(){var n,a;return I().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 a=nn(nn({},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(a);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 e.showNotification({type:"success",message:e.$tc("items.created_message")}),e.$router.push("/admin/items"),t.abrupt("return",!0);case 23:return e.showNotification({type:"success",message:e.$tc("items.updated_message")}),e.$router.push("/admin/items"),t.abrupt("return",!0);case 26:e.showNotification({type:"error",message:n.data.error});case 27:case"end":return t.stop()}}),t)})))()},addItemUnit:function(){var e=this;return en(I().mark((function t(){return I().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 pn=(0,_.Z)(dn,(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 mn=(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 fn=n(381),hn=n.n(fn);function _n(e,t,n,a,r,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(a,r)}function vn(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){_n(i,a,r,o,s,"next",e)}function s(e){_n(i,a,r,o,s,"throw",e)}o(void 0)}))}}function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gn(Object(n),!0).forEach((function(t){bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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={components:{MoonWalkerIcon:mn,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:yn(yn(yn({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:yn(yn(yn(yn(yn({},(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"])),(0,i.nv)("notification",["showNotification"])),{},{sendInvoice:function(e){var t=this;return vn(I().mark((function n(){return I().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 vn(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("invoices.invoice_mark_as_sent"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=vn(I().mark((function n(a){var r,i;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=7;break}return r={id:e,status:"SENT"},n.next=4,t.markAsSent(r);case 4:i=n.sent,t.refreshTable(),i.data&&t.showNotification({type:"success",message: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 vn(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("invoices.confirm_clone"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=vn(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=6;break}return n.next=3,t.cloneInvoice({id:e});case 3:r=n.sent,t.refreshTable(),r.data&&(t.showNotification({type:"success",message:t.$tc("invoices.cloned_successfully")}),t.$router.push("/admin/invoices/".concat(r.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 vn(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=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:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a,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 vn(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,t.$swal({title:t.$t("general.are_you_sure"),text:t.$tc("invoices.confirm_delete"),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=vn(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=13;break}return n.next=3,t.deleteInvoice({ids:[e]});case 3:if(!(r=n.sent).data.success){n.next=8;break}return t.showNotification({type:"success",message:t.$tc("invoices.deleted_message")}),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:if("payment_attached"!==r.data.error){n.next=11;break}return t.showNotification({type:"error",message:(t.$t("invoices.payment_attached_message"),t.$t("general.action_failed"))}),n.abrupt("return",!0);case 11:return t.showNotification({type:"error",message:r.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 vn(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$swal({title:e.$t("general.are_you_sure"),text:e.$tc("invoices.confirm_delete",2),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=vn(I().mark((function t(n){var a;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.value){t.next=8;break}return t.next=3,e.deleteMultipleInvoices();case 3:if("payment_attached"!==(a=t.sent).data.error){t.next=7;break}return e.showNotification({type:"error",message:(e.$t("invoices.payment_attached_message"),e.$t("general.action_failed"))}),t.abrupt("return",!0);case 7:a.data?(e.$refs.table.refresh(),e.resetSelectedInvoices(),e.showNotification({type:"success",message:e.$tc("invoices.deleted_message",2)})):a.data.error&&e.showNotification({type:"error",message:a.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 vn(I().mark((function e(){return I().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 vn(I().mark((function e(){return I().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 xn=(0,_.Z)(wn,(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:{title:e.$t("general.home"),to:"dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("invoices.invoice",2),to:"#",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(e.$utils.getStatusTranslation(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(e.$utils.getStatusTranslation(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:{to:"invoices/"+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:"invoices/"+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("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:{to:"/admin/payments/"+t.id+"/create","tag-name":"router-link"}},[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 kn=n(9980),Dn=n.n(kn),Mn=n(1518),Sn=n.n(Mn);const Cn={name:"",tax_type_id:0,amount:null,percent:null,compound_tax:!1},Ln={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 Tn(e,t,n,a,r,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(a,r)}function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function En(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){jn(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 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 An={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:En({},(0,i.Se)("item",["items"])),watch:{invalidDescription:function(e){console.log(e)}},methods:En(En(En({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("item",["fetchItems"])),{},{searchItems:function(e){var t,n=this;return(t=I().mark((function t(){var a;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={search:e,filter:{name:e,unit:"",price:""},orderByField:"",orderBy:"",page:1},n.item&&(a.item_id=n.item.item_id),n.loading=!0,t.next=5,n.fetchItems(a);case 5:n.loading=!1;case 6:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(e){Tn(i,a,r,o,s,"next",e)}function s(e){Tn(i,a,r,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 Pn=(0,_.Z)(An,(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 $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Yn(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){zn(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 zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nn={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:Yn({},this.taxData),selectedTax:null}},computed:Yn(Yn({},(0,i.Se)("taxType",["taxTypes"])),{},{filteredTypes:function(){var e=this;return this.taxTypes.map((function(e){return Yn({},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:Yn(Yn({},(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:Yn(Yn({},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 In=(0,_.Z)(Nn,(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 Fn=(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 Hn(e){return function(e){if(Array.isArray(e))return Rn(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 Rn(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 Rn(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 Rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){Vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wn=n(379),Un=Wn.required,Kn=Wn.minValue,Zn=Wn.between,Gn=Wn.maxLength;const Jn={components:{Tax:In,ItemSelect:Pn,TrashIcon:o.XHJ,ViewGridIcon:o.XOb,ChevronDownIcon:o.v4q,DragIcon:Fn},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:qn({},this.itemData),maxDiscount:0,money:{decimal:".",thousands:",",prefix:"$ ",precision:2,masked:!1},isSelected:!1}},computed:qn(qn(qn(qn({},(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.quantity):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:Un},quantity:{required:Un,minValue:Kn(0),maxLength:Gn(20)},price:{required:Un,minValue:Kn(1),maxLength:Gn(20)},discount_val:{between:Zn(0,this.maxDiscount)},description:{maxLength:Gn(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(qn(qn({},Cn),{},{id:Sn().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=qn(qn({},Ln),{},{id:this.item.id,taxes:[qn(qn({},Cn),{},{id:Sn().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:qn({},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:qn(qn({},this.item),{},{total:this.total,totalSimpleTax:this.totalSimpleTax,totalCompoundTax:this.totalCompoundTax,totalTax:this.totalTax,tax:this.totalTax,taxes:Hn(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 Xn=(0,_.Z)(Jn,(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,a){return n("tax",{key:t.id,attrs:{index:a,"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 a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ea(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){ta(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 ta(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const na={components:{UserIcon:o.tBG},props:{valid:{type:Object,default:function(){}},customerId:{type:Number,default:null}},computed:ea({},(0,i.Se)("invoice",["getTemplateId","selectedCustomer"])),created:function(){this.resetSelectedCustomer(),this.customerId&&this.selectCustomer(this.customerId)},methods:ea(ea(ea({},(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 aa=(0,_.Z)(na,(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 ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ia(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){oa(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 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 sa={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:ia(ia({},this.tax),{},{amount:this.taxAmount})})}}};const la=(0,_.Z)(sa,(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 ca(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=[],a=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ua(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 ua(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 ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function da(e,t,n,a,r,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(a,r)}function pa(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){da(i,a,r,o,s,"next",e)}function s(e){da(i,a,r,o,s,"throw",e)}o(void 0)}))}}function ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ma(Object(n),!0).forEach((function(t){ha(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ma(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ha(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _a=n(379),va=_a.required,ga=_a.between,ya=_a.maxLength,ba=_a.numeric;const wa={components:{InvoiceItem:Xn,CustomerSelect:aa,Tax:la,draggable:Dn(),PlusSmIcon:s.d2U,ChevronDownIcon:o.v4q,PencilIcon:o.vdY,ShoppingCartIcon:o.Q1y,HashtagIcon:o.jdL},mixins:[st.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:[fa(fa({},Ln),{},{id:Sn().raw(),taxes:[fa(fa({},Cn),{},{id:Sn().raw()})]})],taxes:[]},selectedCurrency:"",taxPerItem:null,discountPerItem:null,isLoadingInvoice:!1,isLoadingData:!0,isLoading:!1,maxDiscount:0,invoicePrefix:null,invoiceNumAttribute:null,InvoiceFields:["customer","customerCustom","company","invoice","invoiceCustom"],customerId:null}},validations:function(){return{newInvoice:{invoice_date:{required:va},due_date:{required:va},discount_val:{between:ga(0,this.subtotal)},reference_number:{maxLength:ya(255)}},selectedCustomer:{required:va},invoiceNumAttribute:{required:va,numeric:ba}}},computed:fa(fa(fa(fa(fa(fa({},(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:fa(fa(fa(fa(fa(fa(fa(fa(fa({},(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"])),(0,i.nv)("notification",["showNotification"])),{},{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],fa({},e.item))},fetchInitialData:function(){var e=this;return pa(I().mark((function t(){var n;return I().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=pa(I().mark((function t(n){var a,r,i;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=ca(n,5),a[0],a[1],a[2],r=a[3],i=a[4],!e.isEdit&&i.data&&"YES"===i.data.invoice_auto_generate?r.data&&(e.invoiceNumAttribute=r.data.nextNumber,e.invoicePrefix=r.data.prefix):e.invoicePrefix=r.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 pa(I().mark((function t(){return I().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=pa(I().mark((function t(n){var a,r,i,o,s;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=ca(n,2),r=a[0],i=a[1],!r.data){t.next=17;break}if(e.customerId=r.data.invoice.user_id,e.newInvoice=r.data.invoice,e.formData=fa(fa({},e.formData),r.data.invoice),e.newInvoice.invoice_date=hn()(r.data.invoice.invoice_date,"YYYY-MM-DD").toString(),e.newInvoice.due_date=hn()(r.data.invoice.due_date,"YYYY-MM-DD").toString(),e.discountPerItem=r.data.invoice.discount_per_item,e.selectedCurrency=e.defaultCurrency,e.invoiceNumAttribute=r.data.nextInvoiceNumber,e.invoicePrefix=r.data.invoicePrefix,e.taxPerItem=r.data.invoice.tax_per_item,o=r.data.invoice.fields,!i.data){t.next=17;break}return s=i.data.customFields.data,t.next=17,e.setEditCustomFields(o,s);case 17:e.isLoadingInvoice=!1;case 18: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=hn()().toString(),e.newInvoice.due_date=hn()().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(fa(fa({},Ln),{},{id:Sn().raw(),taxes:[fa(fa({},Cn),{},{id:Sn().raw()})]}))},removeItem:function(e){this.newInvoice.items.splice(e,1)},updateItem:function(e){Object.assign(this.newInvoice.items[e.index],fa({},e.item))},submitForm:function(){var e=this;return pa(I().mark((function t(){var n,a;return I().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,a=fa(fa(fa({},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&&(a.user_id=e.selectedCustomer.id),"invoices.edit"!==e.$route.name){t.next=12;break}return e.submitUpdate(a),t.abrupt("return");case 12:e.submitCreate(a);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")),t.showNotification({type:"success",message: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")),t.showNotification({type:"success",message:t.$t("invoices.updated_message")})),"invalid_due_amount"===e.data.error&&t.showNotification({type:"error",message: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(fa(fa({},Cn),{},{id:Sn().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 xa=n(9963),ka={insert:"head",singleton:!1};m()(xa.Z,ka);xa.Z.locals;const Da=(0,_.Z)(wa,(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(" "),"invoices.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,a){return n("invoice-item",{key:t.id,attrs:{index:a,"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,a){return n("sw-input-group",{key:a,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,a){return n("tax",{key:t.id,attrs:{index:a,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 Ma(e,t,n,a,r,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(a,r)}function Sa(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Ma(i,a,r,o,s,"next",e)}function s(e){Ma(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ca(Object(n),!0).forEach((function(t){Ta(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ca(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ta(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oa=n(6486);const Ea={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=Oa.debounce(this.onSearch,500)},methods:La(La(La(La({},(0,i.nv)("invoice",["fetchInvoices","getRecord","searchInvoice","markAsSent","sendEmail","deleteInvoice","selectInvoice","fetchInvoice"])),(0,i.nv)("modal",["openModal"])),(0,i.nv)("notification",["showNotification"])),{},{hasActiveUrl:function(e){return this.$route.params.id==e},loadInvoices:function(){var e=this;return Sa(I().mark((function t(){var n;return I().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 Sa(I().mark((function t(){var n;return I().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 Sa(I().mark((function t(){var n,a;return I().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:a=t.sent,e.isSearching=!1,a.data&&(e.invoices=a.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 Sa(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$swal({title:e.$t("general.are_you_sure"),text:e.$t("invoices.invoice_mark_as_sent"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=Sa(I().mark((function t(n){var a;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.value){t.next=7;break}return e.isMarkingAsSent=!0,t.next=4,e.markAsSent({id:e.invoice.id,status:"SENT"});case 4:a=t.sent,e.isMarkingAsSent=!1,a.data&&(e.invoice.status="SENT",e.showToaster({type:"success",message: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 Sa(I().mark((function t(){return I().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);this.showNotification({type:"success",message:this.$t("general.copied_pdf_url_clipboard")})},removeInvoice:function(e){var t=this;return Sa(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:"you will not be able to recover this invoice!",icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Sa(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=5;break}return n.next=3,t.deleteInvoice({ids:[e]});case 3:(r=n.sent).data.success?(t.showToaster({type:"success",message:t.$tc("invoices.deleted_message",1)}),t.$router.push("/admin/invoices")):r.data.error&&t.showToaster({type:"error",message:r.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 ja=(0,_.Z)(Ea,(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,a){return n("router-link",{key:a,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(e.$utils.getStatusTranslation(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 Aa(e,t,n,a,r,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(a,r)}function Pa(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Aa(i,a,r,o,s,"next",e)}function s(e){Aa(i,a,r,o,s,"throw",e)}o(void 0)}))}}function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ya(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){za(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 za(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Na={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:Ya(Ya(Ya({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:Ya(Ya(Ya({},(0,i.nv)("payment",["fetchPayments","selectAllPayments","selectPayment","deletePayment","deleteMultiplePayments","setSelectAllState","fetchPaymentModes"])),(0,i.nv)("notification",["showNotification"])),{},{fetchData:function(e){var t=this;return Pa(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=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:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a,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 Pa(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$tc("payments.confirm_delete"),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Pa(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=10;break}return n.next=3,t.deletePayment({ids:[e]});case 3:if(!(r=n.sent).data.success){n.next=8;break}return t.showNotification({type:"success",message:t.$tc("payments.deleted_message",1)}),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:return t.showNotification({type:"error",message:r.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 Pa(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$swal({title:e.$t("general.are_you_sure"),text:e.$tc("payments.confirm_delete",2),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=Pa(I().mark((function t(n){var a;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.value){t.next=5;break}return t.next=3,e.deleteMultiplePayments();case 3:(a=t.sent).data.success?(e.showNotification({type:"success",message:e.$tc("payments.deleted_message",2)}),e.$refs.table.refresh()):a.data.error&&e.showNotification({type:"error",message:a.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 Pa(I().mark((function e(){return I().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 Pa(I().mark((function t(){return I().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 Ia=(0,_.Z)(Na,(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:{title:e.$t("general.home"),to:"dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("payments.payment",2),to:"#",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:e.$t("payments.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:e.$t("payments.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:{to:"payments/"+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:"payments/"+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.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 Fa(e,t,n,a,r,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(a,r)}function Ha(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Fa(i,a,r,o,s,"next",e)}function s(e){Fa(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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.numeric;const Za={components:{ShoppingCartIcon:o.Q1y},mixins:[st.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:Wa},formData:{payment_date:{required:Wa},amount:{required:Wa,between:Ua(1,this.maxPayableAmount+1)}},paymentNumAttribute:{required:Wa,numeric:Ka}}},computed:Ba(Ba(Ba(Ba({},(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 Ha(I().mark((function t(){return I().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:Ba(Ba(Ba(Ba(Ba(Ba(Ba({},(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"])),(0,i.nv)("notification",["showNotification"])),{},{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 Ha(I().mark((function t(){return I().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 Ha(I().mark((function t(){var n,a;return I().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(a=t.sent,!n.data||"YES"!==n.data.payment_auto_generate){t.next=13;break}if(!a.data){t.next=11;break}return e.paymentNumAttribute=a.data.nextNumber,e.paymentPrefix=a.data.prefix,t.abrupt("return",!0);case 11:t.next=14;break;case 13:e.paymentPrefix=a.data.prefix;case 14:case"end":return t.stop()}}),t)})))()},loadData:function(){var e=this;return Ha(I().mark((function t(){var n,a;return I().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=Ba(Ba({},e.formData),n.data.payment),e.customer=n.data.payment.user,e.formData.payment_date=hn()(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(a=t.sent,e.setEditCustomFields(n.data.payment.fields,a.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=hn()().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 Ha(I().mark((function t(){var n;return I().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 Ha(I().mark((function n(){var a;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.fetchInvoice(e);case 2:a=n.sent,t.formData.amount=a.data.invoice.due_amount,t.maxPayableAmount=a.data.invoice.due_amount;case 5:case"end":return n.stop()}}),n)})))()},fetchCustomerInvoices:function(e){var t=this;return Ha(I().mark((function n(){var a,r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={customer_id:e,status:"UNPAID"},n.next=3,t.fetchInvoices(a);case 3:r=n.sent,t.invoiceList=r.data.invoices.data;case 5:case"end":return n.stop()}}),n)})))()},submitPaymentData:function(){var e=this;return Ha(I().mark((function t(){var n,a,r,i,o;return I().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 a={editData:Ba(Ba({},e.formData),{},{payment_method_id:e.formData.payment_method?e.formData.payment_method.id:null,payment_date:hn()(e.formData.payment_date).format("YYYY-MM-DD")}),id:e.$route.params.id},t.prev=10,e.isLoading=!0,t.next=14,e.updatePayment(a);case 14:if(!(r=t.sent).data.success){t.next=20;break}return e.isLoading=!1,e.$router.push("/admin/payments/".concat(r.data.payment.id,"/view")),e.showNotification({type:"success",message:e.$t("payments.updated_message")}),t.abrupt("return",!0);case 20:if("invalid_amount"!==r.data.error){t.next=23;break}return e.showNotification({type:"error",message:e.$t("invalid_amount_message")}),t.abrupt("return",!1);case 23:e.showNotification({type:"error",message:r.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 e.showNotification({type:"error",message:t.t0.response.data.errors.payment_number}),t.abrupt("return",!0);case 32:e.showNotification({type:"error",message:t.t0.response.data.message});case 33:t.next=59;break;case 35:return i=Ba(Ba({},e.formData),{},{payment_method_id:e.formData.payment_method?e.formData.payment_method.id:null,payment_date:hn()(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")),e.showNotification({type:"success",message: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 e.showNotification({type:"error",message:e.$t("invalid_amount_message")}),t.abrupt("return",!1);case 49:e.showNotification({type:"error",message: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 e.showNotification({type:"error",message:t.t1.response.data.errors.payment_number}),t.abrupt("return",!0);case 58:e.showNotification({type:"error",message: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 Ga=(0,_.Z)(Za,(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,a){return n("sw-input-group",{key:a,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 Ja(e,t,n,a,r,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(a,r)}function Xa(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Ja(i,a,r,o,s,"next",e)}function s(e){Ja(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(n),!0).forEach((function(t){tr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nr=n(6486);const ar={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=nr.debounce(this.onSearch,500)},methods:er(er(er(er({},(0,i.nv)("payment",["fetchPayments","fetchPayment","sendEmail","deletePayment","searchPayment"])),(0,i.nv)("modal",["openModal"])),(0,i.nv)("notification",["showNotification"])),{},{hasActiveUrl:function(e){return this.$route.params.id==e},loadPayments:function(){var e=this;return Xa(I().mark((function t(){var n;return I().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 Xa(I().mark((function t(){var n;return I().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 Xa(I().mark((function t(){var n,a;return I().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:a=t.sent,e.isSearching=!1,a.data&&(e.payments=a.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 Xa(I().mark((function t(){return I().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);this.showNotification({type:"success",message:this.$t("general.copied_pdf_url_clipboard")})},removePayment:function(e){var t=this;return Xa(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,t.$swal({title:t.$t("general.are_you_sure"),text:"you will not be able to recover this payment!",icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Xa(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=5;break}return n.next=3,t.deletePayment({ids:[e]});case 3:(r=n.sent).data.success?(t.showToaster({type:"success",message:t.$tc("payments.deleted_message",1)}),t.$router.push("/admin/payments")):r.data.error&&t.showToaster({type:"error",message:r.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 rr=(0,_.Z)(ar,(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,a){return n("router-link",{key:a,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 ir(e,t,n,a,r,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(a,r)}function or(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){ir(i,a,r,o,s,"next",e)}function s(e){ir(i,a,r,o,s,"throw",e)}o(void 0)}))}}function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function lr(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){cr(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 cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ur={components:{MoonWalkerIcon:mn,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:lr(lr(lr({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:lr(lr(lr(lr({},(0,i.nv)("estimate",["fetchEstimates","resetSelectedEstimates","getRecord","selectEstimate","selectAllEstimates","deleteEstimate","deleteMultipleEstimates","markAsSent","convertToInvoice","setSelectAllState","markAsAccepted","markAsRejected","sendEmail"])),(0,i.nv)("modal",["openModal"])),(0,i.nv)("notification",["showNotification"])),{},{refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return or(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=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:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a,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 or(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_accepted"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=or(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=6;break}return r={id:e,status:"ACCEPTED"},n.next=4,t.markAsAccepted(r);case 4:n.sent.data&&(t.$refs.table.refresh(),t.showNotification({type:"success",message: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 or(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_rejected"),icon:"error",iconHtml:'<svg\n aria-hidden="true"\n focusable="false"\n class="w-6 h-6"\n data-prefix="fas"\n data-icon="times-circle"\n class="svg-inline--fa fa-times-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#DC2626"\n d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=or(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=6;break}return r={id:e,status:"REJECTED"},n.next=4,t.markAsRejected(r);case 4:n.sent.data&&(t.$refs.table.refresh(),t.showNotification({type:"success",message: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 or(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.id=e,t.$swal({title:t.$t("general.are_you_sure"),text:t.$tc("estimates.confirm_delete",1),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var e=or(I().mark((function e(n){var a;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.value){e.next=5;break}return e.next=3,t.deleteEstimate({ids:[t.id]});case 3:(a=e.sent).data.success?(t.$refs.table.refresh(),t.resetSelectedEstimates(),t.showNotification({type:"success",message:t.$tc("estimates.deleted_message",1)})):a.data.error&&t.showNotification({type:"error",message:a.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 or(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_conversion"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n viewBox="0 0 384 512"\n class="w-6 h-6"\n data-prefix="fas"\n data-icon="file-alt"\n class="svg-inline--fa fa-file-alt fa-w-12"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill="#55547A"\n d="M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=or(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=5;break}return n.next=3,t.convertToInvoice(e);case 3:(r=n.sent).data?(t.showNotification({type:"success",message:t.$t("estimates.conversion_message")}),t.$router.push("invoices/".concat(r.data.invoice.id,"/edit"))):r.data.error&&t.showNotification({type:"error",message:r.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 or(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$swal({title:e.$t("general.are_you_sure"),text:e.$tc("estimates.confirm_delete",2),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=or(I().mark((function t(n){var a;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.value){t.next=5;break}return t.next=3,e.deleteMultipleEstimates();case 3:(a=t.sent).data.success?(e.$refs.table.refresh(),e.resetSelectedEstimates(),e.showNotification({type:"success",message:e.$tc("estimates.deleted_message",2)})):a.data.error&&e.showNotification({type:"error",message:a.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 or(I().mark((function e(){return I().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 or(I().mark((function e(){return I().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 or(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("estimates.confirm_mark_as_sent"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=or(I().mark((function n(a){var r,i;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=7;break}return r={id:e,status:"SENT"},n.next=4,t.markAsSent(r);case 4:i=n.sent,t.refreshTable(),i.data&&t.showNotification({type:"success",message: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 or(I().mark((function n(){return I().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 dr=(0,_.Z)(ur,(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:{title:e.$t("general.home"),to:"dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("estimates.estimate",2),to:"#",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(e.$utils.getStatusTranslation(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:{"container-class":"w-56"}},[n("dot-icon",{attrs:{slot:"activator"},slot:"activator"}),e._v(" "),n("sw-dropdown-item",{attrs:{to:"estimates/"+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.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:{to:"estimates/"+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.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 pr={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 mr(e,t,n,a,r,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(a,r)}function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(n),!0).forEach((function(t){_r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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}var vr=n(379).maxLength;const gr={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:vr(255)}}}},computed:hr({},(0,i.Se)("item",["items"])),watch:{invalidDescription:function(e){console.log(e)}},methods:hr(hr(hr({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("item",["fetchItems"])),{},{searchItems:function(e){var t,n=this;return(t=I().mark((function t(){var a;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={search:e,filter:{name:e,unit:"",price:""},orderByField:"",orderBy:"",page:1},n.item&&(a.item_id=n.item.item_id),n.loading=!0,t.next=5,n.fetchItems(a);case 5:n.loading=!1;case 6:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(e){mr(i,a,r,o,s,"next",e)}function s(e){mr(i,a,r,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 yr=(0,_.Z)(gr,(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 br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach((function(t){xr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kr={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:wr({},this.taxData),selectedTax:null}},computed:wr(wr({},(0,i.Se)("taxType",["taxTypes"])),{},{filteredTypes:function(){var e=this;return this.taxTypes.map((function(e){return wr({},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:wr(wr({},(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:wr(wr({},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 Dr=(0,_.Z)(kr,(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 Mr(e){return function(e){if(Array.isArray(e))return Sr(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 Sr(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 Sr(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 Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){Tr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Or=n(379),Er=Or.required,jr=Or.minValue,Ar=Or.between,Pr=Or.maxLength;const $r={components:{Tax:Dr,ItemSelect:yr,TrashIcon:o.XHJ,ChevronDownIcon:o.v4q,DragIcon:Fn},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:Lr({},this.itemData),maxDiscount:0,money:{decimal:".",thousands:",",prefix:"$ ",precision:2,masked:!1},isSelected:!1}},computed:Lr(Lr(Lr(Lr({},(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.quantity):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:Er},quantity:{required:Er,minValue:jr(0),maxLength:Pr(20)},price:{required:Er,minValue:jr(1),maxLength:Pr(20)},discount_val:{between:Ar(0,this.maxDiscount)},description:{maxLength:Pr(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(Lr(Lr({},Cn),{},{id:Sn().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=Lr(Lr({},pr),{},{id:this.item.id,taxes:[Lr(Lr({},Cn),{},{id:Sn().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:Lr({},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:Lr(Lr({},this.item),{},{total:this.total,totalSimpleTax:this.totalSimpleTax,totalCompoundTax:this.totalCompoundTax,totalTax:this.totalTax,tax:this.totalTax,taxes:Mr(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 Yr=(0,_.Z)($r,(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,a){return n("tax",{key:t.id,attrs:{index:a,"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 zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){Ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fr={components:{UserIcon:o.tBG},props:{valid:{type:Object,default:function(){}},customerId:{type:Number,default:null}},computed:Nr({},(0,i.Se)("estimate",["getTemplateId","selectedCustomer"])),created:function(){this.resetSelectedCustomer(),this.customerId&&this.selectCustomer(this.customerId)},methods:Nr(Nr(Nr({},(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 Hr=(0,_.Z)(Fr,(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 Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vr={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:Br(Br({},this.tax),{},{amount:this.taxAmount})})}}};const Wr=(0,_.Z)(Vr,(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 Ur(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=[],a=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kr(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 Kr(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 Kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Zr(e,t,n,a,r,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(a,r)}function Gr(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Zr(i,a,r,o,s,"next",e)}function s(e){Zr(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Xr(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){Qr(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 Qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ei=n(379),ti=ei.required,ni=ei.between,ai=ei.maxLength,ri=ei.numeric;const ii={components:{EstimateItem:Yr,CustomerSelect:Hr,Tax:Wr,draggable:Dn(),ChevronDownIcon:o.v4q,PencilIcon:s.vdY,ShoppingCartIcon:o.Q1y,PlusSmIcon:s.d2U,HashtagIcon:o.jdL},mixins:[st.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:[Xr(Xr({},pr),{},{id:Sn().raw(),taxes:[Xr(Xr({},Cn),{},{id:Sn().raw()})]})],taxes:[]},selectedCurrency:"",taxPerItem:null,discountPerItem:null,isLoadingEstimate:!1,isLoadingData:!1,isLoading:!1,estimateNumAttribute:null,estimatePrefix:null,EstimateFields:["customer","company","customerCustom","estimate","estimateCustom"],customerId:null}},validations:function(){return{newEstimate:{estimate_date:{required:ti},expiry_date:{required:ti},discount_val:{between:ni(0,this.subtotal)},reference_number:{maxLength:ai(255)}},selectedCustomer:{required:ti},estimateNumAttribute:{required:ti,numeric:ri}}},computed:Xr(Xr(Xr(Xr(Xr({},(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:Xr(Xr(Xr(Xr(Xr(Xr(Xr(Xr(Xr({},(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"])),(0,i.nv)("notification",["showNotification"])),{},{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],Xr({},e.item))},fetchInitialItems:function(){var e=this;return Gr(I().mark((function t(){var n;return I().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=Gr(I().mark((function t(n){var a,r,i;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=Ur(n,5),a[0],a[1],a[2],r=a[3],i=a[4],!e.isEdit&&i.data&&"YES"===i.data.estimate_auto_generate?r.data&&(e.estimateNumAttribute=r.data.nextNumber,e.estimatePrefix=r.data.prefix):e.estimatePrefix=r.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 Gr(I().mark((function t(){return I().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=Gr(I().mark((function t(n){var a,r,i,o,s;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=Ur(n,2),r=a[0],i=a[1],r.data&&(e.customerId=r.data.estimate.user_id,e.newEstimate=r.data.estimate,e.formData=Xr(Xr({},e.formData),r.data.estimate),e.newEstimate.estimate_date=hn()(r.data.estimate.estimate_date,"YYYY-MM-DD").toString(),e.newEstimate.expiry_date=hn()(r.data.estimate.expiry_date,"YYYY-MM-DD").toString(),e.discountPerItem=r.data.estimate.discount_per_item,e.taxPerItem=r.data.estimate.tax_per_item,e.selectedCurrency=e.defaultCurrency,e.estimateTemplates=r.data.estimate.estimateTemplates,e.estimateNumAttribute=r.data.nextEstimateNumber,e.estimatePrefix=r.data.estimatePrefix,o=r.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=hn()().toString(),e.newEstimate.expiry_date=hn()().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(Xr(Xr({},pr),{},{id:Sn().raw(),taxes:[Xr(Xr({},Cn),{},{id:Sn().raw()})]}))},removeItem:function(e){this.newEstimate.items.splice(e,1)},updateItem:function(e){Object.assign(this.newEstimate.items[e.index],Xr({},e.item))},submitForm:function(){var e=this;return Gr(I().mark((function t(){var n,a;return I().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,a=Xr(Xr(Xr({},e.formData),e.newEstimate),{},{estimate_date:hn()(e.newEstimate.estimate_date).format("YYYY-MM-DD"),expiry_date:hn()(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&&(a.user_id=e.selectedCustomer.id),"estimates.edit"!==e.$route.name){t.next=12;break}return e.submitUpdate(a),t.abrupt("return");case 12:e.submitCreate(a);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")),t.showNotification({type:"success",message: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")),t.showNotification({type:"success",message: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(Xr(Xr({},Cn),{},{id:Sn().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 oi=n(2828),si={insert:"head",singleton:!1};m()(oi.Z,si);oi.Z.locals;const li=(0,_.Z)(ii,(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,a){return n("estimate-item",{key:t.id,attrs:{index:a,"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,a){return n("sw-input-group",{key:a,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,a){return n("tax",{key:t.id,attrs:{index:a,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 ci;function ui(e,t,n,a,r,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(a,r)}function di(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){ui(i,a,r,o,s,"next",e)}function s(e){ui(i,a,r,o,s,"throw",e)}o(void 0)}))}}function pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pi(Object(n),!0).forEach((function(t){fi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hi=n(6486);const _i={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=hi.debounce(this.onSearched,500)},methods:mi(mi(mi(mi({},(0,i.nv)("estimate",["fetchEstimates","getRecord","searchEstimate","markAsSent","sendEmail","deleteEstimate","selectEstimate","fetchViewEstimate"])),(0,i.nv)("modal",["openModal"])),(0,i.nv)("notification",["showNotification"])),{},(ci={hasActiveUrl:function(e){return this.$route.params.id==e},loadEstimates:function(){var e=this;return di(I().mark((function t(){var n;return I().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 di(I().mark((function t(){var n;return I().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=mi({},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);this.showNotification({type:"success",message:this.$tc("general.copied_pdf_url_clipboard")})},onSearched:function(){var e=this;return di(I().mark((function t(){var n,a;return I().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:a=t.sent,e.isSearching=!1,a.data&&(e.estimates=a.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 di(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$swal({title:e.$t("general.are_you_sure"),text:e.$t("estimates.confirm_mark_as_sent"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=di(I().mark((function t(n){var a;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.value){t.next=7;break}return e.isMarkAsSent=!0,t.next=4,e.markAsSent({id:e.estimate.id,status:"SENT"});case 4:a=t.sent,e.isMarkAsSent=!1,a.data&&(e.estimate.status="SENT",e.showToaster({type:"success",message: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 di(I().mark((function e(){return I().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)})))()}},fi(ci,"copyPdfUrl",(function(){var e="".concat(window.location.origin,"/estimates/pdf/").concat(this.estimate.unique_hash);this.$utils.copyTextToClipboard(e);this.showNotification({type:"success",message:this.$tc("general.copied_pdf_url_clipboard")})})),fi(ci,"removeEstimate",(function(e){var t=this;return di(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:"you will not be able to recover this estimate!",icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=di(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=5;break}return n.next=3,t.deleteEstimate({ids:[e]});case 3:(r=n.sent).data.success?(t.showToaster({type:"success",message:t.$tc("estimates.deleted_message",1)}),t.$router.push("/admin/estimates")):r.data.error&&t.showToaster({type:"error",message:r.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)})))()})),ci))};const vi=(0,_.Z)(_i,(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,a){return n("router-link",{key:a,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(e.$utils.getStatusTranslation(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 gi(e,t,n,a,r,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(a,r)}function yi(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){gi(i,a,r,o,s,"next",e)}function s(e){gi(i,a,r,o,s,"throw",e)}o(void 0)}))}}function bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach((function(t){xi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ki={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:wi(wi(wi(wi(wi({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:wi(wi(wi(wi({},(0,i.nv)("expense",["fetchExpenses","selectExpense","deleteExpense","deleteMultipleExpenses","selectAllExpenses","setSelectAllState"])),(0,i.nv)("category",["fetchCategories"])),(0,i.nv)("notification",["showNotification"])),{},{fetchData:function(e){var t=this;return yi(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=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:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a,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 yi(I().mark((function e(){return I().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 yi(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$tc("expenses.confirm_delete"),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=yi(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=11;break}return n.next=3,t.deleteExpense({ids:[e]});case 3:if(!(r=n.sent).data.success){n.next=10;break}return t.showNotification({type:"success",message:t.$tc("expenses.deleted_message",1)}),t.refreshTable(),n.abrupt("return",!0);case 10:r.data.error&&t.showNotification({type:"success",message:r.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 yi(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$swal({title:e.$t("general.are_you_sure"),text:e.$tc("expenses.confirm_delete",2),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=yi(I().mark((function t(n){var a;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.value){t.next=5;break}return t.next=3,e.deleteMultipleExpenses();case 3:(a=t.sent).data.success?(e.showNotification({type:"success",message:e.$tc("expenses.deleted_message",2)}),e.$refs.table.refresh()):a.data.error&&e.showNotification({type:"error",message:a.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 Di=(0,_.Z)(ki,(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:{title:e.$t("general.home"),to:"dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("expenses.expense",2),to:"#",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("\n "+e._s(t.user_name?t.user_name:e.$t("expenses.not_selected"))+"\n ")])]}}])}),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:{to:"expenses/"+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.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 Mi(e,t,n,a,r,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(a,r)}function Si(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Mi(i,a,r,o,s,"next",e)}function s(e){Mi(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ci(Object(n),!0).forEach((function(t){Ti(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ci(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ti(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(379),Ei=Oi.required,ji=Oi.minValue,Ai=Oi.maxLength;const Pi={components:{CloudUploadIcon:o.s68,ShoppingCartIcon:o.Q1y,DownloadIcon:s._8t},mixins:[st.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:Ei},formData:{expense_date:{required:Ei},amount:{required:Ei,minValue:ji(.1),maxLength:Ai(20)},notes:{maxLength:Ai(65e3)}}},computed:Li(Li(Li(Li(Li({},(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:Li(Li(Li(Li(Li(Li({},(0,i.nv)("expense",["getExpenseReceipt","addExpense","updateExpense","fetchExpense"])),(0,i.nv)("modal",["openModal"])),(0,i.nv)("category",["fetchCategories"])),(0,i.nv)("customer",["fetchCustomers"])),(0,i.nv)("notification",["showNotification"])),{},{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 Si(I().mark((function t(){var n;return I().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 Si(I().mark((function t(){var n,a;return I().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=Li(Li({},e.formData),n.data.expense),e.formData.expense_date=hn()(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 a=t.sent,e.setEditCustomFields(n.data.expense.fields,a.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 Si(I().mark((function t(){var n,a,r,i;return I().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(a=new FormData,e.fileObject&&a.append("attachment_receipt",e.fileObject),a.append("expense_category_id",e.formData.expense_category_id),a.append("expense_date",hn()(e.formData.expense_date).format("YYYY-MM-DD")),a.append("amount",e.formData.amount),a.append("notes",e.formData.notes?e.formData.notes:""),a.append("user_id",e.customer?e.customer.id:""),a.append("customFields",JSON.stringify(e.formData.customFields)),!e.isEdit){t.next=29;break}return e.isLoading=!0,a.append("_method","PUT"),t.next=20,e.updateExpense({id:e.$route.params.id,editData:a});case 20:if(!(r=t.sent).data.success){t.next=26;break}return e.isLoading=!1,e.showNotification({type:"success",message:e.$t("expenses.updated_message")}),e.$router.push("/admin/expenses"),t.abrupt("return",!0);case 26:e.showNotification({type:"error",message:r.data.error}),t.next=39;break;case 29:return e.isLoading=!0,t.next=32,e.addExpense(a);case 32:if(i=t.sent,e.isLoading=!1,!i.data.success){t.next=38;break}return e.showNotification({type:"success",message:e.$t("expenses.created_message")}),e.$router.push("/admin/expenses"),t.abrupt("return",!0);case 38:e.showNotification({type:"success",message:i.data.success});case 39:case"end":return t.stop()}}),t)})))()}})};const $i=(0,_.Z)(Pi,(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,a){return n("sw-input-group",{key:a,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 Yi(e,t,n,a,r,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(a,r)}function zi(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Yi(i,a,r,o,s,"next",e)}function s(e){Yi(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){Fi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hi={components:{AstronautIcon:Xe,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:Ii(Ii(Ii({},(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)}}}),watch:{filters:{handler:"setFilters",deep:!0}},created:function(){this.isSuperAdmin||this.$router.push("/admin/dashboard")},destroyed:function(){this.selectAllField&&this.selectAllUsers()},methods:Ii(Ii(Ii({},(0,i.nv)("users",["fetchUsers","selectAllUsers","selectedUser","deleteUser","deleteMultipleUsers","setSelectAllState"])),(0,i.nv)("notification",["showNotification"])),{},{refreshTable:function(){this.$refs.table.refresh()},fetchData:function(e){var t=this;return zi(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=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:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a}});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 zi(I().mark((function n(){var a;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:(a=[]).push(e),t.$swal({title:t.$t("general.are_you_sure"),text:t.$tc("users.confirm_delete"),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var e=zi(I().mark((function e(n){var r;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.value){e.next=13;break}return e.next=3,t.deleteUser(a);case 3:if(!(r=e.sent).data.success){e.next=8;break}return t.showNotification({type:"success",message:t.$tc("users.deleted_message",1)}),t.$refs.table.refresh(),e.abrupt("return",!0);case 8:if("user_attached"!==r.data.error){e.next=11;break}return t.showNotification({type:"error",message:(t.$tc("users.user_attached_message"),t.$t("general.action_failed"))}),e.abrupt("return",!0);case 11:return t.showNotification({type:"error",message:r.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 zi(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$swal({title:e.$t("general.are_you_sure"),text:e.$tc("users.confirm_delete",2),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=zi(I().mark((function t(n){var a;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.value){t.next=5;break}return t.next=3,e.deleteMultipleUsers();case 3:(a=t.sent).data.success||a.data.users?(e.showNotification({type:"success",message:e.$tc("users.deleted_message",2)}),e.$refs.table.refresh()):a.data.error&&e.showNotification({type:"error",message:a.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 Ri=(0,_.Z)(Hi,(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:{title:e.$t("general.home"),to:"dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("users.title",2),to:"#",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:{to:"users/"+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.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,1466835614)})],1)],1)],1):e._e()}),[],!1,null,null,null).exports;function Bi(e,t,n,a,r,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(a,r)}function qi(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Bi(i,a,r,o,s,"next",e)}function s(e){Bi(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach((function(t){Ui(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ui(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ki=n(379),Zi=Ki.required,Gi=Ki.minLength,Ji=Ki.email,Xi=(Ki.numeric,Ki.minValue,Ki.maxLength,Ki.requiredIf);const Qi={data:function(){return{isLoading:!1,title:"Add User",formData:{name:"",email:null,password:null,phone:null}}},computed:Wi(Wi({},(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:Zi,minLength:Gi(3)},email:{email:Ji,required:Zi},password:{required:Xi((function(){return!this.isEdit})),minLength:Gi(8)}}},methods:Wi(Wi(Wi({},(0,i.nv)("users",["addUser","fetchUser","updateUser"])),(0,i.nv)("notification",["showNotification"])),{},{loadEditData:function(){var e=this;return qi(I().mark((function t(){var n;return I().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=Wi(Wi({},e.formData),n.data.user));case 4:case"end":return t.stop()}}),t)})))()},submitUser:function(){var e=this;return qi(I().mark((function t(){var n;return I().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&&(e.showNotification({type:"success",message:e.$tc("users.updated_message")}),e.$router.push("/admin/users"),e.isLoading=!1),n.data.error&&e.showNotification({type:"error",message: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 e.showNotification({type:"success",message: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 eo=(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:{title:e.$t("general.home"),to:"/admin/dashboard"}}),e._v(" "),n("sw-breadcrumb-item",{attrs:{title:e.$tc("users.user",2),to:"/admin/users"}}),e._v(" "),"users.edit"===e.$route.name?n("sw-breadcrumb-item",{attrs:{title:e.$t("users.edit_user"),to:"#",active:""}}):n("sw-breadcrumb-item",{attrs:{title:e.$t("users.new_user"),to:"#",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 to(e,t,n,a,r,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(a,r)}function no(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){to(i,a,r,o,s,"next",e)}function s(e){to(i,a,r,o,s,"throw",e)}o(void 0)}))}}function ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ao(Object(n),!0).forEach((function(t){io(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ao(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function io(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oo=n(379).required;const so={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:hn()().startOf("month").toString(),to_date:hn()().endOf("month").toString()},url:null,customerSiteURL:null,itemsSiteURL:null}},validations:{range:{required:oo},formData:{from_date:{required:oo},to_date:{required:oo}}},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"):""},customerDateRangeUrl:function(){return"".concat(this.customerSiteURL,"?from_date=").concat(hn()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(hn()(this.formData.to_date).format("YYYY-MM-DD"))},itemDateRangeUrl:function(){return"".concat(this.itemsSiteURL,"?from_date=").concat(hn()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(hn()(this.formData.to_date).format("YYYY-MM-DD"))}}),watch:{range:function(e){this.formData.from_date=hn()(e).startOf("year").toString(),this.formData.to_date=hn()(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:ro(ro({},(0,i.nv)("salesReport",["loadLinkByCustomer","loadLinkByItems"])),{},{getThisDate:function(e,t){return hn()()[e](t).toString()},getPreDate:function(e,t){return hn()().subtract(1,t)[e](t).toString()},onChangeDateRange:function(){switch(this.selectedRange){case"Today":this.formData.from_date=hn()().toString(),this.formData.to_date=hn()().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 no(I().mark((function t(){return I().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 no(I().mark((function t(){var n;return I().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 no(I().mark((function n(){return I().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 lo=(0,_.Z)(so,(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 rounded whitespace-nowrap 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 co(e,t,n,a,r,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(a,r)}function uo(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){co(i,a,r,o,s,"next",e)}function s(e){co(i,a,r,o,s,"throw",e)}o(void 0)}))}}function po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?po(Object(n),!0).forEach((function(t){fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ho=n(379).required;const _o={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:hn()().startOf("month").toString(),to_date:hn()().endOf("month").toString()},url:null,siteURL:null}},validations:{range:{required:ho},formData:{from_date:{required:ho},to_date:{required:ho}}},computed:mo(mo({},(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(hn()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(hn()(this.formData.to_date).format("YYYY-MM-DD"))}}),watch:{range:function(e){this.formData.from_date=hn()(e).startOf("year").toString(),this.formData.to_date=hn()(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 hn()()[e](t).toString()},getPreDate:function(e,t){return hn()().subtract(1,t)[e](t).toString()},onChangeDateRange:function(){switch(this.selectedRange){case"Today":this.formData.from_date=hn()().toString(),this.formData.to_date=hn()().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 uo(I().mark((function t(){var n;return I().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 uo(I().mark((function n(){return I().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 vo=(0,_.Z)(_o,(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 go(e,t,n,a,r,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(a,r)}function yo(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){go(i,a,r,o,s,"next",e)}function s(e){go(i,a,r,o,s,"throw",e)}o(void 0)}))}}function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){xo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ko=n(379).required;const Do={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:hn()().startOf("month").toString(),to_date:hn()().endOf("month").toString()},url:null,siteURL:null}},validations:{range:{required:ko},formData:{from_date:{required:ko},to_date:{required:ko}}},computed:wo(wo({},(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(hn()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(hn()(this.formData.to_date).format("YYYY-MM-DD"))}}),watch:{range:function(e){this.formData.from_date=hn()(e).startOf("year").toString(),this.formData.to_date=hn()(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 hn()()[e](t).toString()},getPreDate:function(e,t){return hn()().subtract(1,t)[e](t).toString()},onChangeDateRange:function(){switch(this.selectedRange){case"Today":this.formData.from_date=hn()().toString(),this.formData.to_date=hn()().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 yo(I().mark((function t(){var n;return I().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 yo(I().mark((function n(){return I().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 Mo=(0,_.Z)(Do,(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 So(e,t,n,a,r,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(a,r)}function Co(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){So(i,a,r,o,s,"next",e)}function s(e){So(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(n),!0).forEach((function(t){Oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eo=n(379).required;const jo={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:hn()().startOf("month").toString(),to_date:hn()().endOf("month").toString()},url:null,siteURL:null}},validations:{range:{required:Eo},formData:{from_date:{required:Eo},to_date:{required:Eo}}},computed:To(To({},(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(hn()(this.formData.from_date).format("YYYY-MM-DD"),"&to_date=").concat(hn()(this.formData.to_date).format("YYYY-MM-DD"))}}),watch:{range:function(e){this.formData.from_date=hn()(e).startOf("year").toString(),this.formData.to_date=hn()(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 hn()()[e](t).toString()},getPreDate:function(e,t){return hn()().subtract(1,t)[e](t).toString()},onChangeDateRange:function(){switch(this.selectedRange){case"Today":this.formData.from_date=hn()().toString(),this.formData.to_date=hn()().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(I().mark((function t(){var n;return I().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(I().mark((function n(){return I().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 Ao=(0,_.Z)(jo,(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 Po={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 $o=n(788),Yo={insert:"head",singleton:!1};m()($o.Z,Yo);$o.Z.locals;const zo=(0,_.Z)(Po,(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 No={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 Io=(0,_.Z)(No,(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,a){return n("sw-list-item",{key:a,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 Fo(e,t,n,a,r,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(a,r)}function Ho(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Fo(i,a,r,o,s,"next",e)}function s(e){Fo(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){qo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vo=n(379),Wo=Vo.required,Uo=Vo.email,Ko=Vo.maxLength;const Zo={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:Wo},country_id:{required:Wo},email:{email:Uo},address_street_1:{maxLength:Ko(255)},address_street_2:{maxLength:Ko(255)}}},computed:Bo(Bo({},(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:Bo(Bo(Bo(Bo({},(0,i.nv)("company",["updateCompany","updateCompanyLogo"])),(0,i.nv)("user",["fetchCurrentUser"])),(0,i.nv)("notification",["showNotification"])),{},{onUploadHandler:function(e){this.previewLogo=e.getCroppedCanvas().toDataURL(this.cropperOutputMime)},onHandleUploadError:function(){this.showNotification({type:"error",message:"Oops! Something went wrong..."})},onChange:function(e){this.cropperOutputMime=e.type,this.fileObject=e},setInitialData:function(){var e=this;return Ho(I().mark((function t(){var n;return I().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 Ho(I().mark((function t(){var n,a;return I().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(a=new FormData).append("company_logo",JSON.stringify({name:e.fileObject.name,data:e.previewLogo})),t.next=14,e.updateCompanyLogo(a);case 14:return e.isLoading=!1,e.showNotification({type:"success",message:e.$t("settings.company_info.updated_message")}),t.abrupt("return",!0);case 17:return e.isLoading=!1,e.showNotification({type:"error",message:n.data.error}),t.abrupt("return",!0);case 20:case"end":return t.stop()}}),t)})))()}})};const Go=(0,_.Z)(Zo,(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:{"preview-avatar":e.previewLogo,trigger:"#logo-box"},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 Jo(e,t,n,a,r,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(a,r)}function Xo(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Jo(i,a,r,o,s,"next",e)}function s(e){Jo(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function es(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){ts(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 ts(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ns=n(379),as=ns.required,rs=ns.maxLength,is=ns.minValue,os=ns.alpha,ss=ns.numeric;const ls={props:{settings:{type:Object,require:!0,default:!1}},data:function(){return{invoiceAutogenerate:!1,invoiceAsAttachment:!1,invoices:{invoice_prefix:null,invoice_number_length: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"):""},invoicenumberLengthError:function(){return this.$v.invoices.invoice_number_length.$error?this.$v.invoices.invoice_number_length.required?this.$v.invoices.invoice_number_length.minValue?this.$v.invoices.invoice_number_length.numeric?void 0:this.$t("validation.numbers_only"):this.$t("validation.number_length_minvalue"):this.$t("validation.required"):""}},watch:{settings:function(e){this.invoices.invoice_prefix=e?e.invoice_prefix:"",this.invoices.invoice_number_length=e?e.invoice_number_length:"",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:as,maxLength:rs(5),alpha:os},invoice_number_length:{required:as,minValue:is(1),numeric:ss}}},methods:es(es(es({},(0,i.nv)("company",["updateCompanySettings"])),(0,i.nv)("notification",["showNotification"])),{},{setInvoiceSetting:function(){var e=this;return Xo(I().mark((function t(){var n;return I().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&&e.showNotification({type:"success",message: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 Xo(I().mark((function t(){var n;return I().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_number_length:e.invoices.invoice_number_length,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)&&e.showNotification({type:"success",message:e.$t("settings.customization.invoices.invoice_setting_updated")});case 5:case"end":return t.stop()}}),t)})))()},updateSetting:function(e){var t=this;return Xo(I().mark((function n(){return I().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.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.invoice_number_length"),error:e.invoicenumberLengthError}},[n("sw-input",{staticStyle:{"max-width":"60px"},attrs:{invalid:e.$v.invoices.invoice_number_length.$error,type:"number"},model:{value:e.invoices.invoice_number_length,callback:function(t){e.$set(e.invoices,"invoice_number_length",t)},expression:"invoices.invoice_number_length"}})],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 us(e,t,n,a,r,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(a,r)}function ds(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){us(i,a,r,o,s,"next",e)}function s(e){us(i,a,r,o,s,"throw",e)}o(void 0)}))}}function ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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.minValue,ys=hs.alpha,bs=hs.numeric;const ws={props:{settings:{type:Object,required:!0}},data:function(){return{estimateAutogenerate:!1,estimateAsAttachment:!1,estimates:{estimate_prefix:null,estimate_number_length: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"):""},estimateNumberLengthError:function(){return this.$v.estimates.estimate_number_length.$error?this.$v.estimates.estimate_number_length.required?this.$v.estimates.estimate_number_length.minValue?this.$v.estimates.estimate_number_length.numeric?void 0:this.$t("validation.numbers_only"):this.$t("validation.number_length_minvalue"):this.$t("validation.required"):""}},validations:{estimates:{estimate_prefix:{required:_s,maxLength:vs(5),alpha:ys},estimate_number_length:{required:_s,minValue:gs(1),numeric:bs}}},watch:{settings:function(e){this.estimates.estimate_prefix=e?e.estimate_prefix:"",this.estimates.estimate_number_length=e?e.estimate_number_length:"",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:ms(ms(ms({},(0,i.nv)("company",["updateCompanySettings"])),(0,i.nv)("notification",["showNotification"])),{},{setEstimateSetting:function(){var e=this;return ds(I().mark((function t(){var n;return I().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&&e.showNotification({type:"success",message: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 ds(I().mark((function t(){var n;return I().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_number_length:e.estimates.estimate_number_length,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)&&e.showNotification({type:"success",message:e.$t("settings.customization.estimates.estimate_setting_updated")});case 5:case"end":return t.stop()}}),t)})))()},updateSetting:function(e){var t=this;return ds(I().mark((function n(){return I().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 xs=(0,_.Z)(ws,(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.estimate_number_length"),error:e.estimateNumberLengthError}},[n("sw-input",{staticStyle:{"max-width":"60px"},attrs:{invalid:e.$v.estimates.estimate_number_length.$error,type:"number"},model:{value:e.estimates.estimate_number_length,callback:function(t){e.$set(e.estimates,"estimate_number_length",t)},expression:"estimates.estimate_number_length"}})],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 ks(e,t,n,a,r,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(a,r)}function Ds(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){ks(i,a,r,o,s,"next",e)}function s(e){ks(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ms(Object(n),!0).forEach((function(t){Cs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ls=n(379),Ts=Ls.required,Os=Ls.maxLength,Es=Ls.minValue,js=Ls.alpha,As=Ls.numeric;const Ps={props:{settings:{type:Object,require:!0,default:!1}},data:function(){return{paymentAutogenerate:!1,paymentAsAttachment:!1,payments:{payment_prefix:null,payment_number_length: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"):""},paymentnumberLengthError:function(){return this.$v.payments.payment_number_length.$error?this.$v.payments.payment_number_length.required?this.$v.payments.payment_number_length.minValue?this.$v.payments.payment_number_length.numeric?void 0:this.$t("validation.numbers_only"):this.$t("validation.number_length_minvalue"):this.$t("validation.required"):""}},validations:{payments:{payment_prefix:{required:Ts,maxLength:Os(5),alpha:js},payment_number_length:{required:Ts,minValue:Es(1),numeric:As}}},watch:{settings:function(e){this.payments.payment_prefix=e?e.payment_prefix:"",this.payments.payment_number_length=e?e.payment_number_length:"",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.paymentAsAttachment=!0:this.paymentAsAttachment=!1}},methods:Ss(Ss(Ss(Ss({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("company",["updateCompanySettings"])),(0,i.nv)("notification",["showNotification"])),{},{changeToUppercase:function(e){if("PAYMENTS"===e)return this.payments.payment_prefix=this.payments.payment_prefix.toUpperCase(),!0},setPaymentSetting:function(){var e=this;return Ds(I().mark((function t(){var n;return I().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&&e.showNotification({type:"success",message:e.$t("general.setting_updated")});case 5:case"end":return t.stop()}}),t)})))()},updatePaymentSetting:function(){var e=this;return Ds(I().mark((function t(){var n;return I().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_number_length:e.payments.payment_number_length,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)&&e.showNotification({type:"success",message:e.$t("settings.customization.payments.payment_setting_updated")});case 5:case"end":return t.stop()}}),t)})))()},updateSetting:function(e){var t=this;return Ds(I().mark((function n(){return I().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 $s=(0,_.Z)(Ps,(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.payment_number_length"),error:e.paymentnumberLengthError}},[n("sw-input",{staticStyle:{"max-width":"60px"},attrs:{invalid:e.$v.payments.payment_number_length.$error,type:"number"},model:{value:e.payments.payment_number_length,callback:function(t){e.$set(e.payments,"payment_number_length",t)},expression:"payments.payment_number_length"}})],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 Ys(e,t,n,a,r,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(a,r)}function zs(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Ys(i,a,r,o,s,"next",e)}function s(e){Ys(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ns(Object(n),!0).forEach((function(t){Fs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(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);Hs.required,Hs.maxLength,Hs.alpha;const Rs={components:{TrashIcon:o.XHJ,PlusIcon:o.pOD,PencilIcon:o.vdY},methods:Is(Is(Is(Is({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("item",["deleteItemUnit","fetchItemUnits"])),(0,i.nv)("notification",["showNotification"])),{},{fetchData:function(e){var t=this;return zs(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=e.sort,i={orderByField:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a,count:o.data.units.count}});case 6:case"end":return n.stop()}}),n)})))()},addItemUnit:function(){var e=this;return zs(I().mark((function t(){return I().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 zs(I().mark((function n(){return I().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 zs(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.customization.items.item_unit_confirm_delete"),icon:"question",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=zs(I().mark((function n(a){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=9;break}return n.next=3,t.deleteItemUnit(e);case 3:if(!n.sent.data.success){n.next=8;break}return t.showNotification({type:"success",message:t.$t("settings.customization.items.deleted_message")}),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:t.showNotification({type:"error",message: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 Bs(e,t,n,a,r,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(a,r)}function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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}const Us={data:function(){return{settings:{},isRequestOnGoing:!1}},components:{InvoicesTab:cs,EstimatesTab:xs,PaymentsTab:$s,ItemsTab:(0,_.Z)(Rs,(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:{data:e.fetchData,"show-filter":!1,variant:"gray"}},[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:Vs(Vs({},(0,i.nv)("company",["fetchCompanySettings"])),{},{fetchSettings:function(){var e,t=this;return(e=I().mark((function e(){var n;return I().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_number_length","payment_mail_body","invoice_auto_generate","invoice_email_attachment","invoice_prefix","invoice_number_length","invoice_mail_body","estimate_auto_generate","estimate_email_attachment","estimate_prefix","estimate_number_length","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(a,r){var i=e.apply(t,n);function o(e){Bs(i,a,r,o,s,"next",e)}function s(e){Bs(i,a,r,o,s,"throw",e)}o(void 0)}))})()}})};const Ks=(0,_.Z)(Us,(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 Zs(e,t,n,a,r,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(a,r)}function Gs(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Zs(i,a,r,o,s,"next",e)}function s(e){Zs(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Js(Object(n),!0).forEach((function(t){Qs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Js(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var el=n(379);const tl={data:function(){return{isLoading:!1,notification_email:null,notify_invoice_viewed:null,notify_estimate_viewed:null,isRequestOnGoing:!1}},validations:{notification_email:{required:el.required,email:el.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:Xs(Xs(Xs({},(0,i.nv)("company",["fetchCompanySettings","updateCompanySettings"])),(0,i.nv)("notification",["showNotification"])),{},{fetchData:function(){var e=this;return Gs(I().mark((function t(){var n;return I().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 Gs(I().mark((function t(){var n;return I().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,e.showNotification({type:"success",message:e.$tc("settings.notification.email_save_message")}));case 9:case"end":return t.stop()}}),t)})))()},setInvoiceViewd:function(e){var t=this;return Gs(I().mark((function e(){var n;return I().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&&t.showNotification({type:"success",message:t.$tc("general.setting_updated")});case 9:case"end":return e.stop()}}),e)})))()},setEstimateViewd:function(e){var t=this;return Gs(I().mark((function e(){var n;return I().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&&t.showNotification({type:"success",message:t.$tc("general.setting_updated")});case 9:case"end":return e.stop()}}),e)})))()}})};const nl=(0,_.Z)(tl,(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 al(e,t,n,a,r,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(a,r)}function rl(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){al(i,a,r,o,s,"next",e)}function s(e){al(i,a,r,o,s,"throw",e)}o(void 0)}))}}function il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?il(Object(n),!0).forEach((function(t){sl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ll=n(379).required;const cl={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:ll},language:{required:ll},dateFormat:{required:ll},timeZone:{required:ll},fiscalYear:{required:ll}}},computed:ol(ol(ol({},(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 rl(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.setInitialData();case 1:case"end":return t.stop()}}),t)})))()},methods:ol(ol(ol(ol({},(0,i.nv)("company",["setDefaultCurrency","fetchCompanySettings","updateCompanySettings"])),(0,i.nv)(["fetchLanguages","fetchFiscalYears","fetchDateFormats","fetchTimeZones"])),(0,i.nv)("notification",["showNotification"])),{},{currencyNameWithCode:function(e){var t=e.name,n=e.code;return"".concat(n," - ").concat(t)},setInitialData:function(){var e=this;return rl(I().mark((function t(){var n;return I().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 rl(I().mark((function t(){var n,a;return I().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(!(a=t.sent).data.success){t.next=13;break}return e.isLoading=!1,e.setDefaultCurrency(e.formData.currency),e.showNotification({type:"success",message:e.$t("settings.preferences.updated_message")}),t.abrupt("return",!0);case 13:return e.showNotification({type:"error",message:a.data.error}),t.abrupt("return",!0);case 15:case"end":return t.stop()}}),t)})))()},setDiscount:function(){var e=this;return rl(I().mark((function t(){var n;return I().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&&e.showNotification({type:"success",message:e.$t("general.setting_updated")});case 5:case"end":return t.stop()}}),t)})))()}})};const ul=(0,_.Z)(cl,(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:{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.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 dl=n(3236);function pl(e,t,n,a,r,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(a,r)}function ml(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){pl(i,a,r,o,s,"next",e)}function s(e){pl(i,a,r,o,s,"throw",e)}o(void 0)}))}}function fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(n),!0).forEach((function(t){_l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vl=n(379),gl=vl.required,yl=(vl.requiredIf,vl.sameAs),bl=vl.email,wl=vl.minLength;const xl={components:{CloudUploadIcon:o.s68,BaseLoader:dl.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:gl},email:{required:gl,email:bl},password:{minLength:wl(8)},confirm_password:{sameAsPassword:yl("password")}},language:{required:gl}},computed:hl(hl({},(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:hl(hl(hl(hl({},(0,i.nv)("user",["fetchCurrentUser","updateCurrentUser","fetchUserSettings","updateUserSettings","uploadAvatar"])),(0,i.nv)(["fetchLanguages"])),(0,i.nv)("notification",["showNotification"])),{},{onUploadHandler:function(e){this.previewAvatar=e.getCroppedCanvas().toDataURL(this.cropperOutputMime)},onHandleUploadError:function(){this.showNotification({type:"error",message:"Oops! Something went wrong..."})},onChange:function(e){this.cropperOutputMime=e.type,this.fileObject=e},setInitialData:function(){var e=this;return ml(I().mark((function t(){var n,a;return I().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:a=t.sent,e.language=e.languages.find((function(e){return e.code==a.data.language})),e.isRequestOnGoing=!1;case 12:case"end":return t.stop()}}),t)})))()},updateUserData:function(){var e=this;return ml(I().mark((function t(){var n,a,r,i;return I().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=hl(hl({},n),{},{password:e.formData.password})),t.next=9,e.updateCurrentUser(n);case 9:return a=t.sent,r={settings:{language:e.language.code}},t.next=13,e.updateUserSettings(r);case 13:t.sent,a.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)),e.showNotification({type:"success",message: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 kl=(0,_.Z)(xl,(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 Dl(e,t,n,a,r,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(a,r)}function Ml(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Dl(i,a,r,o,s,"next",e)}function s(e){Dl(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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},data:function(){return{formData:{tax_per_item:!1},isRequestOnGoing:!1}},computed:Cl({},(0,i.Se)("taxType",["taxTypes","getTaxTypeById"])),mounted:function(){this.getTaxSetting()},methods:Cl(Cl(Cl(Cl(Cl({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("taxType",["indexLoadData","deleteTaxType","fetchTaxType","fetchTaxTypes"])),(0,i.nv)("company",["fetchCompanySettings","updateCompanySettings"])),(0,i.nv)("notification",["showNotification"])),{},{fetchData:function(e){var t=this;return Ml(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=e.sort,i={orderByField:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a,count:o.data.taxTypes.count}});case 6:case"end":return n.stop()}}),n)})))()},getTaxSetting:function(){var e=this;return Ml(I().mark((function t(){var n;return I().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 Ml(I().mark((function e(){var n;return I().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&&t.showNotification({type:"success",message:t.$t("general.setting_updated")});case 5:case"end":return e.stop()}}),e)})))()},removeTax:function(e,t){var n=this;return Ml(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.$swal({title:n.$t("general.are_you_sure"),text:n.$t("settings.tax_types.confirm_delete"),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=Ml(I().mark((function t(a){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a.value){t.next=9;break}return t.next=3,n.deleteTaxType(e);case 3:if(!t.sent.data.success){t.next=8;break}return n.showNotification({type:"success",message:n.$t("settings.tax_types.deleted_message")}),n.$refs.table.refresh(),t.abrupt("return",!0);case 8:n.showNotification({type:"error",message: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 Ml(I().mark((function n(){var a;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.fetchTaxType(e);case 2:a=n.sent,t.openModal({title:t.$t("settings.tax_types.edit_tax"),componentName:"TaxTypeModal",id:e,data:a.data.taxType,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.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 El(e,t,n,a,r,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(a,r)}function jl(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){El(i,a,r,o,s,"next",e)}function s(e){El(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(n),!0).forEach((function(t){$l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yl=n(379);Yl.required,Yl.maxLength,Yl.alpha;const zl={components:{TrashIcon:o.XHJ,PencilIcon:o.vdY,PlusIcon:o.pOD},methods:Pl(Pl(Pl(Pl({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("notes",["fetchNotes","deleteNote"])),(0,i.nv)("notification",["showNotification"])),{},{fetchData:function(e){var t=this;return jl(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=e.sort,i={orderByField:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a,count:o.data.notes.count}});case 6:case"end":return n.stop()}}),n)})))()},removeNote:function(e){var t=this;this.$swal({title:this.$t("general.are_you_sure"),text:this.$t("settings.customization.notes.note_confirm_delete"),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=jl(I().mark((function n(a){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=9;break}return n.next=3,t.deleteNote(e);case 3:if(!n.sent.data.success){n.next=8;break}return t.showNotification({type:"success",message:t.$t("settings.customization.notes.deleted_message")}),t.$refs.table.refresh(),n.abrupt("return",!0);case 8:t.showNotification({type:"error",message: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 Nl=(0,_.Z)(zl,(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:{"show-filter":!1,data:e.fetchData,variant:"gray"}},[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 Il(e,t,n,a,r,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(a,r)}function Fl(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Il(i,a,r,o,s,"next",e)}function s(e){Il(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach((function(t){Bl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(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}const ql={components:{TrashIcon:o.XHJ,PencilIcon:o.vdY,PlusIcon:o.pOD},computed:Rl({},(0,i.Se)("category",["categories","getCategoryById"])),methods:Rl(Rl(Rl(Rl({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("category",["fetchCategories","fetchCategory","deleteCategory"])),(0,i.nv)("notification",["showNotification"])),{},{fetchData:function(e){var t=this;return Fl(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=e.sort,i={orderByField:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a,count:o.data.categories.count}});case 8:case"end":return n.stop()}}),n)})))()},removeExpenseCategory:function(e,t){var n=this;return Fl(I().mark((function t(){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.$swal({title:n.$t("general.are_you_sure"),text:n.$t("settings.expense_category.confirm_delete"),icon:"question",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>s',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=Fl(I().mark((function t(a){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a.value){t.next=10;break}return t.next=3,n.deleteCategory(e);case 3:if(!t.sent.data.success){t.next=9;break}return n.showNotification({type:"success",message:n.$tc("settings.expense_category.deleted_message")}),n.id=null,n.$refs.table.refresh(),t.abrupt("return",!0);case 9:n.showNotification({type:"error",message: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 Fl(I().mark((function n(){var a;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.fetchCategory(e);case 2:a=n.sent,t.openModal({title:t.$t("settings.expense_category.edit_category"),componentName:"CategoryModal",id:e,data:a.data.category,refreshData:t.$refs.table.refresh});case 4:case"end":return n.stop()}}),n)})))()}})};const Vl=(0,_.Z)(ql,(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 Wl(e,t,n,a,r,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(a,r)}var Ul=n(379),Kl=Ul.required,Zl=Ul.email,Gl=Ul.numeric;const Jl={components:{EyeIcon:s.tEF,EyeOffIcon:s.Xl7},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:"",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:Kl},mail_host:{required:Kl},mail_port:{required:Kl,numeric:Gl},mail_encryption:{required:Kl},from_mail:{required:Kl,email:Zl},from_name:{required:Kl}}},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"):""},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=I().mark((function e(){return I().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(a,r){var i=e.apply(t,n);function o(e){Wl(i,a,r,o,s,"next",e)}function s(e){Wl(i,a,r,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 Xl=(0,_.Z)(Jl,(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")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:"text",name:"db_name"},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")}},[n("sw-input",{staticClass:"mt-2",attrs:{type:e.getInputType,name:"password"},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 Ql(e,t,n,a,r,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(a,r)}var ec=n(379),tc=ec.required,nc=ec.email;ec.numeric;const ac={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:tc},mail_mailgun_domain:{required:tc},mail_mailgun_endpoint:{required:tc},mail_mailgun_secret:{required:tc},from_mail:{required:tc,email:nc},from_name:{required:tc}}},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=I().mark((function e(){return I().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(a,r){var i=e.apply(t,n);function o(e){Ql(i,a,r,o,s,"next",e)}function s(e){Ql(i,a,r,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 rc=(0,_.Z)(ac,(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 ic(e,t,n,a,r,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(a,r)}var oc=n(379),sc=oc.required,lc=oc.email,cc=oc.numeric;const uc={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:sc},mail_host:{required:sc},mail_port:{required:sc,numeric:cc},mail_ses_key:{required:sc},mail_ses_secret:{required:sc},mail_encryption:{required:sc},from_mail:{required:sc,email:lc},from_name:{required:sc}}},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=I().mark((function e(){return I().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(a,r){var i=e.apply(t,n);function o(e){ic(i,a,r,o,s,"next",e)}function s(e){ic(i,a,r,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 dc=(0,_.Z)(uc,(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 pc(e,t,n,a,r,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(a,r)}var mc=n(379),fc=mc.required,hc=mc.email;const _c={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:fc},from_mail:{required:fc,email:hc},from_name:{required:fc}}},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=I().mark((function e(){return I().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(a,r){var i=e.apply(t,n);function o(e){pc(i,a,r,o,s,"next",e)}function s(e){pc(i,a,r,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 vc=(0,_.Z)(_c,(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 gc(e,t,n,a,r,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(a,r)}function yc(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){gc(i,a,r,o,s,"next",e)}function s(e){gc(i,a,r,o,s,"throw",e)}o(void 0)}))}}function bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function wc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bc(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kc={components:{Smtp:Xl,Mailgun:rc,Ses:dc,sendmail:vc,mail:vc},data:function(){return{mailConfigData:null,mail_driver:"smtp",isLoading:!1,isRequestOnGoing:!1,mail_drivers:[]}},mounted:function(){this.loadData()},methods:wc(wc(wc(wc({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("company",["fetchMailDrivers","fetchMailConfig","updateMailConfig"])),(0,i.nv)("notification",["showNotification"])),{},{loadData:function(){var e=this;return yc(I().mark((function t(){var n,a;return I().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:a=t.sent,n.data&&(e.mail_drivers=n.data),a.data&&(e.mailConfigData=a.data,e.mail_driver=a.data.mail_driver),e.isRequestOnGoing=!1;case 10:case"end":return t.stop()}}),t)})))()},saveEmailConfig:function(e){var t=this;return yc(I().mark((function n(){var a;return I().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(a=n.sent).data.success?(t.isLoading=!1,t.showNotification({type:"success",message:t.$t("wizard.success."+a.data.success)})):t.showNotification({type:"error",message:t.$t("wizard.errors."+a.data.error)}),n.abrupt("return",!0);case 9:n.prev=9,n.t0=n.catch(0),t.showNotification({type:"error",message:"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 Dc=(0,_.Z)(kc,(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 Mc(e,t,n,a,r,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(a,r)}function Sc(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Mc(i,a,r,o,s,"next",e)}function s(e){Mc(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cc(Object(n),!0).forEach((function(t){Tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oc={components:{LoadingIcon:n(3397).Z},data:function(){var e;return Tc(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),Tc(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:Lc(Lc({},(0,i.nv)("notification",["showNotification"])),{},{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 Sc(I().mark((function t(){var n;return I().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 e.showNotification({title:"Info!",type:"info",message: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,e.showNotification({type:"error",message:"Something went wrong"});case 17:case"end":return t.stop()}}),t,null,[[0,12]])})))()},onUpdateApp:function(){var e=this;return Sc(I().mark((function t(){var n,a,r,i,o;return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=null,e.allowToUpdate){t.next=4;break}return e.showNotification({type:"error",message:"Your current configuration does not match the update requirements. Please try again after all the requirements are fulfilled."}),t.abrupt("return",!0);case 4:a=0;case 5:if(!(a<e.updateSteps.length)){t.next=29;break}return r=e.updateSteps[a],t.prev=7,e.isUpdating=!0,r.started=!0,i={version:e.updateData.version,installed:e.currentVersion,deleted_files:e.deletedFiles,path:n||null},t.next=13,window.axios.post(r.stepUrl,i);case 13:o=t.sent,r.completed=!0,o.data&&o.data.path&&(n=o.data.path),"settings.update_app.finishing_update"==r.translationKey&&(e.isUpdating=!1,e.showNotification({type:"success",message: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),r.started=!1,r.completed=!0,e.showNotification({type:"error",message:e.$t("validation.something_went_wrong")}),e.onUpdateFailed(r.translationKey),t.abrupt("return",!1);case 26:a++,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);this.$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=Sc(I().mark((function e(n){return I().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 Ec=n(3499),jc={insert:"head",singleton:!1};m()(Ec.Z,jc);Ec.Z.locals;const Ac=(0,_.Z)(Oc,(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,a){return n("tr",{key:a,staticClass:"p-2 border-2 border-gray-200"},[n("td",{staticClass:"p-2 text-sm truncate",attrs:{width:"70%"}},[e._v("\n "+e._s(a)+"\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 Pc(e,t,n,a,r,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(a,r)}function $c(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Pc(i,a,r,o,s,"next",e)}function s(e){Pc(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function zc(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){Nc(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 Nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ic={components:{PlusIcon:o.pOD,TrashIcon:o.XHJ,CloudDownloadIcon:o.nMW},data:function(){return{isRequestOngoing:!0,filters:{selected_disk:{driver:"local"}}}},computed:zc({},(0,i.Se)("disks",["getDisks"])),created:function(){this.loadDisksData()},methods:zc(zc(zc(zc(zc({},(0,i.nv)("backup",["fetchBackups","downloadBackup","removeBackup"])),(0,i.nv)("disks",["fetchDisks"])),(0,i.nv)("modal",["openModal"])),(0,i.nv)("notification",["showNotification"])),{},{getCustomLabel:function(e){var t=e.driver,n=e.name;if(n)return"".concat(n," — [").concat(t,"]")},onRemoveBackup:function(e){var t=this;return $c(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.backup.backup_confirm_delete"),icon:"question",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=$c(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=9;break}return r={disk:t.filters.selected_disk.driver,file_disk_id:t.filters.selected_disk.id,path:e.path},n.next=4,t.removeBackup(r);case 4:if(!n.sent.data.success){n.next=9;break}return t.showNotification({type:"success",message: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 $c(I().mark((function t(){var n;return I().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 $c(I().mark((function n(){var a,r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.page,e.filter,e.sort,a={disk:t.filters.selected_disk.driver,file_disk_id:t.filters.selected_disk.id},t.isRequestOngoing=!0,n.next=5,t.fetchBackups(a);case 5:return(r=n.sent).data.error&&t.showNotification({type:"error",message:t.$t("settings.backup."+r.data.error)}),t.isRequestOngoing=!1,n.abrupt("return",{data:r.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 $c(I().mark((function t(){return I().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 $c(I().mark((function n(){return I().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 a=window.URL.createObjectURL(new Blob([n.data])),r=document.createElement("a");r.href=a,r.setAttribute("download",e.path.split("/")[1]),document.body.appendChild(r),r.click(),t.isRequestOngoing=!1})).catch((function(e){t.isRequestOngoing=!1,t.showNotification({type:"error",message:e.response.data.message})}));case 2:case"end":return n.stop()}}),n)})))()}})};const Fc=(0,_.Z)(Ic,(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,"custom-label":e.getCustomLabel,"track-by":"id",label:"name"},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:{"show-filter":!1,data:e.fetchBackupsData,variant:"gray"}},[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 Hc(e,t,n,a,r,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(a,r)}function Rc(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Hc(i,a,r,o,s,"next",e)}function s(e){Hc(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bc(Object(n),!0).forEach((function(t){Vc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wc={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:qc(qc(qc(qc(qc({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("disks",["fetchDisks","updateDisk","deleteFileDisk"])),(0,i.nv)("company",["updateCompanySettings","fetchCompanySettings"])),(0,i.nv)("notification",["showNotification"])),{},{fetchData:function(e){var t=this;return Rc(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=e.sort,i={orderByField:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a,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 Rc(I().mark((function e(){var n;return I().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 Rc(I().mark((function t(){var n;return I().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&&e.showNotification({type:"success",message:e.$t("general.setting_updated")}),e.$refs.table.refresh();case 6:case"end":return t.stop()}}),t)})))()},setDefaultDiskData:function(e){var t=this;return Rc(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.disk.set_default_disk_confirm"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Rc(I().mark((function n(a){var r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=7;break}return t.loading=!0,r={set_as_default:!0,id:e},n.next=5,t.updateDisk(r);case 5:n.sent.data.success&&(t.refreshTable(),t.showNotification({type:"success",message: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 Rc(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.disk.confirm_delete"),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Rc(I().mark((function n(a){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=8;break}return n.next=3,t.deleteFileDisk(e);case 3:if(!n.sent.data.success){n.next=8;break}return t.showNotification({type:"success",message: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 Uc=(0,_.Z)(Wc,(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:{"show-filter":!1,data:e.fetchData,variant:"gray","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 Kc(e,t,n,a,r,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(a,r)}function Zc(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Kc(i,a,r,o,s,"next",e)}function s(e){Kc(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gc(Object(n),!0).forEach((function(t){Xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qc={components:{PencilIcon:o.vdY,TrashIcon:o.XHJ,PlusIcon:o.pOD},methods:Jc(Jc(Jc(Jc({},(0,i.nv)("customFields",["fetchCustomFields","deleteCustomFields"])),(0,i.nv)("modal",["openModal"])),(0,i.nv)("notification",["showNotification"])),{},{fetchData:function(e){var t=this;return Zc(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=e.sort,i={orderByField:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a,count:o.data.customFields.count}});case 6:case"end":return n.stop()}}),n)})))()},removeCustomField:function(e){var t=this;return Zc(I().mark((function n(){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$swal({title:t.$t("general.are_you_sure"),text:t.$t("settings.custom_fields.custom_field_confirm_delete"),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=Zc(I().mark((function n(a){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=10;break}return n.next=3,t.deleteCustomFields(e);case 3:if(!n.sent.data.success){n.next=9;break}return t.showNotification({type:"success",message:t.$t("settings.custom_fields.deleted_message")}),t.id=null,t.$refs.table.refresh(),n.abrupt("return",!0);case 9:t.showNotification({type:"error",message: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 eu=(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.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:{"show-filter":!1,data:e.fetchData,variant:"gray"}},[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 tu(e,t,n,a,r,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(a,r)}function nu(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){tu(i,a,r,o,s,"next",e)}function s(e){tu(i,a,r,o,s,"throw",e)}o(void 0)}))}}function au(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ru(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?au(Object(n),!0).forEach((function(t){iu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ou=n(379);ou.required,ou.maxLength,ou.alpha;const su={components:{TrashIcon:o.XHJ,PencilIcon:o.vdY,PlusIcon:o.pOD},methods:ru(ru(ru(ru({},(0,i.nv)("modal",["openModal"])),(0,i.nv)("payment",["deletePaymentMode","fetchPaymentModes"])),(0,i.nv)("notification",["showNotification"])),{},{fetchData:function(e){var t=this;return nu(I().mark((function n(){var a,r,i,o;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.page,e.filter,r=e.sort,i={orderByField:r.fieldName||"created_at",orderBy:r.order||"desc",page:a},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:a,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;this.$swal({title:this.$t("general.are_you_sure"),text:this.$t("settings.customization.payments.payment_mode_confirm_delete"),icon:"error",iconHtml:'<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 text-red-600"fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var n=nu(I().mark((function n(a){return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!a.value){n.next=10;break}return n.next=3,t.deletePaymentMode(e);case 3:if(!n.sent.data.success){n.next=9;break}return t.showNotification({type:"success",message:t.$t("settings.customization.payments.deleted_message")}),t.id=null,t.$refs.table.refresh(),n.abrupt("return",!0);case 9:t.showNotification({type:"error",message: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 lu=(0,_.Z)(su,(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:{"show-filter":!1,data:e.fetchData,variant:"gray"}},[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 cu(e,t,n,a,r,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(a,r)}function uu(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){cu(i,a,r,o,s,"next",e)}function s(e){cu(i,a,r,o,s,"throw",e)}o(void 0)}))}}const du={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 uu(I().mark((function t(){var n;return I().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 uu(I().mark((function t(){return I().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 pu=(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.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,a){return n("div",{key:a,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(a)+"\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 mu(e,t,n,a,r,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(a,r)}function fu(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){mu(i,a,r,o,s,"next",e)}function s(e){mu(i,a,r,o,s,"throw",e)}o(void 0)}))}}const hu={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 fu(I().mark((function t(){var n,a;return I().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,a=e,e.errors?e.$swal({title:e.$t("wizard.permissions.permission_confirm_title"),text:e.$t("wizard.permissions.permission_confirm_desc"),icon:"warning",showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=fu(I().mark((function t(n){return I().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.value&&(a.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 fu(I().mark((function t(){return I().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 _u=(0,_.Z)(hu,(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,a){return n("div",{key:a,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 vu(e,t,n,a,r,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(a,r)}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=I().mark((function e(){return I().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(a,r){var i=e.apply(t,n);function o(e){vu(i,a,r,o,s,"next",e)}function s(e){vu(i,a,r,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 xu=(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,"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 ku(e,t,n,a,r,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(a,r)}var Du=n(379),Mu=Du.required,Su=Du.numeric;Du.url;const Cu={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:Mu},database_hostname:{required:Mu},database_port:{required:Mu,numeric:Su},database_name:{required:Mu},database_username:{required:Mu},app_url:{required:Mu,isUrl:function(e){return this.$utils.checkValidUrl(e)}},app_domain:{required:Mu,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=I().mark((function e(){return I().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(a,r){var i=e.apply(t,n);function o(e){ku(i,a,r,o,s,"next",e)}function s(e){ku(i,a,r,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 Lu=(0,_.Z)(Cu,(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 Tu(e,t,n,a,r,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(a,r)}var Ou=n(379),Eu=Ou.required;Ou.numeric,Ou.url;const ju={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:Eu},database_name:{required:Eu},app_url:{required:Eu,isUrl:function(e){return this.$utils.checkValidUrl(e)}},app_domain:{required:Eu,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=I().mark((function e(){return I().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(a,r){var i=e.apply(t,n);function o(e){Tu(i,a,r,o,s,"next",e)}function s(e){Tu(i,a,r,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 Au=(0,_.Z)(ju,(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 Pu(e,t,n,a,r,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(a,r)}var $u=n(379),Yu=$u.required,zu=$u.numeric;$u.url;const Nu={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:zu},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=I().mark((function e(){return I().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(a,r){var i=e.apply(t,n);function o(e){Pu(i,a,r,o,s,"next",e)}function s(e){Pu(i,a,r,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 Iu(e,t,n,a,r,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(a,r)}function Fu(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Iu(i,a,r,o,s,"next",e)}function s(e){Iu(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ru(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(n),!0).forEach((function(t){Bu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qu={components:{Mysql:xu,Pgsql:Lu,Sqlite:Au,Sqlsrv:(0,_.Z)(Nu,(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:Ru(Ru({},(0,i.nv)("notification",["showNotification"])),{},{getDatabaseConfig:function(e){var t=this;return Fu(I().mark((function n(){var a,r;return I().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.isLoading=t.isFetching=!0,a={connection:e},n.next=4,window.axios.get("/api/v1/onboarding/database/config",{params:a});case 4:(r=n.sent).data.success&&(t.databaseData=r.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 Fu(I().mark((function n(){var a;return I().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 a=n.sent,n.next=9,window.axios.get("/sanctum/csrf-cookie");case 9:if(!a.data.success){n.next=17;break}return n.next=12,window.axios.post("/api/v1/onboarding/finish");case 12:return t.$emit("next",3),t.showNotification({type:"success",message:t.$t("wizard.success."+a.data.success)}),n.abrupt("return",!0);case 17:a.data.error?t.showNotification({type:"error",message:t.$t("wizard.errors."+a.data.error)}):a.data.error_message&&t.showNotification({type:"error",message:a.data.error_message});case 18:n.next=23;break;case 20:n.prev=20,n.t0=n.catch(1),t.showNotification({type:"error",message: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 Vu=(0,_.Z)(qu,(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 Wu(e,t,n,a,r,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(a,r)}var Uu=n(379),Ku=Uu.required,Zu=Uu.email,Gu=Uu.numeric;const Ju={components:{EyeIcon:s.tEF,EyeOffIcon:s.Xl7},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{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:Ku},mail_host:{required:Ku},mail_port:{required:Ku,numeric:Gu},mail_encryption:{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"):""},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"):""},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=I().mark((function e(){return I().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(a,r){var i=e.apply(t,n);function o(e){Wu(i,a,r,o,s,"next",e)}function s(e){Wu(i,a,r,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 Xu=(0,_.Z)(Ju,(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")}},[n("sw-input",{attrs:{type:"text",name:"db_name"},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")}},[n("sw-input",{attrs:{type:e.getInputType,name:"password"},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 Qu(e,t,n,a,r,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(a,r)}var ed=n(379),td=ed.required,nd=ed.email;const ad={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:td},mail_mailgun_domain:{required:td},mail_mailgun_endpoint:{required:td},mail_mailgun_secret:{required:td},from_mail:{required:td,email:nd},from_name:{required:td}}},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=I().mark((function e(){return I().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(a,r){var i=e.apply(t,n);function o(e){Qu(i,a,r,o,s,"next",e)}function s(e){Qu(i,a,r,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 rd=(0,_.Z)(ad,(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 id(e,t,n,a,r,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(a,r)}var od=n(379),sd=od.required,ld=od.email,cd=od.numeric;const ud={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:sd},mail_host:{required:sd},mail_port:{required:sd,numeric:cd},mail_ses_key:{required:sd},mail_ses_secret:{required:sd},mail_encryption:{required:sd},from_mail:{required:sd,email:ld},from_name:{required:sd}}},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=I().mark((function e(){return I().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(a,r){var i=e.apply(t,n);function o(e){id(i,a,r,o,s,"next",e)}function s(e){id(i,a,r,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 dd=(0,_.Z)(ud,(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 pd(e,t,n,a,r,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(a,r)}var md=n(379),fd=md.required,hd=md.email;const _d={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:fd},from_mail:{required:fd,email:hd},from_name:{required:fd}}},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=I().mark((function e(){return I().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(a,r){var i=e.apply(t,n);function o(e){pd(i,a,r,o,s,"next",e)}function s(e){pd(i,a,r,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 vd=(0,_.Z)(_d,(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 gd(e,t,n,a,r,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(a,r)}function yd(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){gd(i,a,r,o,s,"next",e)}function s(e){gd(i,a,r,o,s,"throw",e)}o(void 0)}))}}function bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bd(Object(n),!0).forEach((function(t){xd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kd={components:{Smtp:Xu,Mailgun:rd,Ses:dd,sendmail:vd,mail:vd},data:function(){return{mailConfigData:{mail_driver:"mail"},mail_driver:"mail",isLoading:!1,isFetching:!1,mail_drivers:[]}},created:function(){this.getMailDrivers()},methods:wd(wd({},(0,i.nv)("notification",["showNotification"])),{},{getMailDrivers:function(){var e=this;return yd(I().mark((function t(){var n;return I().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 yd(I().mark((function n(){var a;return I().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(a=n.sent).data.success?(t.$emit("next",4),t.showNotification({type:"success",message:t.$t("wizard.success."+a.data.success)})):t.showNotification({type:"error",message:t.$t("wizard.errors."+a.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,t.showNotification({type:"error",message:"Something went wrong"});case 14:case"end":return n.stop()}}),n,null,[[1,10]])})))()}})};const Dd=(0,_.Z)(kd,(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 Md(e,t,n,a,r,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(a,r)}function Sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sd(Object(n),!0).forEach((function(t){Ld(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ld(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Td=n(379),Od=Td.required,Ed=Td.requiredIf,jd=Td.sameAs,Ad=Td.minLength,Pd=Td.email;const $d={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:Od,minLength:Ad(3)},email:{email:Pd,required:Od},password:{required:Od,minLength:Ad(8)},confirm_password:{required:Ed("isRequired"),sameAsPassword:jd("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:Cd(Cd(Cd({},(0,i.nv)("user",["uploadAvatar"])),(0,i.nv)("notification",["showNotification"])),{},{onUploadHandler:function(e){this.previewAvatar=e.getCroppedCanvas().toDataURL(this.cropperOutputMime)},onHandleUploadError:function(){this.showNotification({type:"error",message:"Oops! Something went wrong..."})},onChange:function(e){this.cropperOutputMime=e.type,this.fileObject=e},next:function(){var e,t=this;return(e=I().mark((function e(){var n,a;return I().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&&((a=new FormData).append("admin_avatar",JSON.stringify({name:t.fileObject.name,data:t.previewAvatar,id:n.data.user.id})),t.uploadAvatar(a)),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(a,r){var i=e.apply(t,n);function o(e){Md(i,a,r,o,s,"next",e)}function s(e){Md(i,a,r,o,s,"throw",e)}o(void 0)}))})()}})};var Yd=n(6691),zd={insert:"head",singleton:!1};m()(Yd.Z,zd);Yd.Z.locals;const Nd=(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.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 Id(e,t,n,a,r,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(a,r)}function Fd(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Id(i,a,r,o,s,"next",e)}function s(e){Id(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hd(Object(n),!0).forEach((function(t){Bd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hd(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 qd=n(379),Vd=qd.required,Wd=qd.maxLength;const Ud={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:Vd},country_id:{required:Vd},address_street_1:{maxLength:Wd(255)},address_street_2:{maxLength:Wd(255)}}},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"):""}},watch:{country:function(e){var t=e.id;return this.companyData.country_id=t,!0}},mounted:function(){this.fetchCountries()},methods:Rd(Rd(Rd({},(0,i.nv)("company",["setSelectedCompany"])),(0,i.nv)("notification",["showNotification"])),{},{onUploadHandler:function(e){this.previewLogo=e.getCroppedCanvas().toDataURL(this.cropperOutputMime)},onHandleUploadError:function(){this.showNotification({type:"error",message:"Oops! Something went wrong..."})},onChange:function(e){this.cropperOutputMime=e.type,this.fileObject=e},next:function(){var e=this;return Fd(I().mark((function t(){var n,a;return I().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(a=new FormData).append("company_logo",JSON.stringify({name:e.fileObject.name,data:e.previewLogo})),t.next=14,axios.post("/api/v1/company/upload-logo",a,{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 a=new FileReader;a.onload=function(e){t.previewLogo=e.target.result},a.readAsDataURL(n.files[0])}},fetchCountries:function(){var e=this;return Fd(I().mark((function t(){var n;return I().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 Kd=(0,_.Z)(Ud,(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:{"preview-avatar":e.previewLogo,trigger:"#logo-box"},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 Zd=n(1402);function Gd(e,t,n,a,r,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(a,r)}function Jd(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Gd(i,a,r,o,s,"next",e)}function s(e){Gd(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Qd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xd(Object(n),!0).forEach((function(t){ep(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ep(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tp=n(379),np=tp.required;tp.minLength,tp.email;const ap={data:function(){return{settingData:{language:null,currency:null,timeZone:null,dateFormat:null,fiscalYear:null},isLoading:!1,isFetching:!1,step:1}},validations:{settingData:{currency:{required:np},language:{required:np},dateFormat:{required:np},timeZone:{required:np},fiscalYear:{required:np}}},computed:Qd(Qd(Qd({},(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:Qd(Qd(Qd(Qd({},(0,i.nv)("company",["updateCompanySettings","setSelectedCompany"])),(0,i.nv)("notification",["showNotification"])),(0,i.nv)(["fetchLanguages","fetchCurrencies","fetchFiscalYears","fetchDateFormats","fetchTimeZones"])),{},{setInitialData:function(){var e=this;return Jd(I().mark((function t(){return I().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 Jd(I().mark((function t(){var n,a;return I().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:(a=t.sent).data&&(e.isLoading=!1,e.updateUserSettings(),Zd.Z.set("auth.token",a.data.token));case 9:case"end":return t.stop()}}),t)})))()},updateUserSettings:function(){var e=this;return Jd(I().mark((function t(){var n;return I().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"),e.showNotification({type:"success",message:"Login Successful"}),e.$router.push("/admin/dashboard"));case 5:case"end":return t.stop()}}),t)})))()}})};function rp(e,t,n,a,r,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(a,r)}function ip(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){rp(i,a,r,o,s,"next",e)}function s(e){rp(i,a,r,o,s,"throw",e)}o(void 0)}))}}const op={components:{step_1:pu,step_2:_u,step_3:Vu,step_4:Dd,step_5:Nd,step_6:Kd,step_7:(0,_.Z)(ap,(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 ip(I().mark((function t(){var n,a;return I().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:(a=parseInt(n.data.profile_complete))&&(e.step=a+1,e.tab="step_".concat(a+1));case 8:case"end":return t.stop()}}),t)})))()},setProfileComplete:function(e){return ip(I().mark((function t(){var n;return I().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 ip(I().mark((function n(){return I().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 sp=(0,_.Z)(op,(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,"current-step":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;a.default.use(r.Z);var lp=[{path:"/",component:$,meta:{redirectIfAuthenticated:!0},children:[{path:"/",component:X},{path:"login",component:X,name:"login"},{path:"/forgot-password",component:oe,name:"forgot-password"},{path:"/reset-password/:token",component:_e,name:"reset-password"},{path:"register",component:ge,name:"register"}]},{path:"/on-boarding",component:z,children:[{path:"/",component:sp,name:"wizard"}]},{path:"/admin",component:j,meta:{requiresAuth:!0},children:[{path:"/",component:Je,name:"dashboard"},{path:"dashboard",component:Je},{path:"customers",component:it},{path:"customers/create",name:"customers.create",component:bt},{path:"customers/:id/edit",name:"customers.edit",component:bt},{path:"customers/:id/view",name:"customers.view",component:Vt},{path:"items",component:Xt},{path:"items/create",name:"items.create",component:pn},{path:"items/:id/edit",name:"items.edit",component:pn},{path:"estimates",name:"estimates.index",component:dr},{path:"estimates/create",name:"estimates.create",component:li},{path:"estimates/:id/view",name:"estimates.view",component:vi},{path:"estimates/:id/edit",name:"estimates.edit",component:li},{path:"invoices",name:"invoices.index",component:xn},{path:"invoices/create",name:"invoices.create",component:Da},{path:"invoices/:id/view",name:"invoices.view",component:ja},{path:"invoices/:id/edit",name:"invoices.edit",component:Da},{path:"payments",name:"payments.index",component:Ia},{path:"payments/create",name:"payments.create",component:Ga},{path:"payments/:id/create",name:"invoice.payments.create",component:Ga},{path:"payments/:id/edit",name:"payments.edit",component:Ga},{path:"payments/:id/view",name:"payments.view",component:rr},{path:"expenses",component:Di},{path:"expenses/create",name:"expenses.create",component:$i},{path:"expenses/:id/edit",name:"expenses.edit",component:$i},{path:"users",component:Ri},{path:"users/create",name:"users.create",component:eo},{path:"users/:id/edit",name:"users.edit",component:eo},{path:"reports",component:zo,children:[{path:"sales",component:lo},{path:"expenses",component:vo},{path:"profit-loss",component:Mo},{path:"taxes",component:Ao}]},{path:"settings",component:Io,children:[{path:"company-info",name:"company.info",component:Go},{path:"customization",name:"customization",component:Ks},{path:"payment-mode",name:"payment.mode",component:lu},{path:"custom-fields",name:"custom.fields",component:eu},{path:"user-profile",name:"user.profile",component:kl},{path:"preferences",name:"preferences",component:ul},{path:"tax-types",name:"tax.types",component:Ol},{path:"notes",name:"notes",component:Nl},{path:"expense-category",name:"expense.category",component:Vl},{path:"mail-configuration",name:"mailconfig",component:Dc},{path:"notifications",name:"notifications",component:nl},{path:"update-app",name:"updateapp",component:Ac},{path:"backup",name:"backup",component:Fc},{path:"file-disk",name:"file-disk",component:Uc}]}]},{path:"*",component:be}];const cp=new r.Z({routes:lp,mode:"history",linkActiveClass:"active"})},1402:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const a={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)}}},6520:(e,t,n)=>{"use strict";n.d(t,{Z:()=>au});var a={};n.r(a),n.d(a,{countries:()=>re,currencies:()=>ee,dateFormats:()=>ne,fiscalYears:()=>ae,isAppLoaded:()=>X,isSidebarOpen:()=>ie,languages:()=>Q,timeZones:()=>te});var r={};n.r(r),n.d(r,{login:()=>$e,logout:()=>ze,setLogoutFalse:()=>Ye});var i={};n.r(i),n.d(i,{isLoggedOut:()=>Ne});var o={};n.r(o),n.d(o,{fetchCurrentUser:()=>qe,fetchUserSettings:()=>We,updateCurrentUser:()=>Be,updateUserSettings:()=>Ue,uploadAvatar:()=>Ve});var s={};n.r(s),n.d(s,{currentUser:()=>Ke});var l={};n.r(l),n.d(l,{addCategory:()=>ot,deleteCategory:()=>lt,fetchCategories:()=>rt,fetchCategory:()=>it,updateCategory:()=>st});var c={};n.r(c),n.d(c,{categories:()=>ct,getCategoryById:()=>ut});var u={};n.r(u),n.d(u,{addCustomer:()=>Ot,deleteCustomer:()=>jt,deleteMultipleCustomers:()=>At,fetchCustomer:()=>Lt,fetchCustomers:()=>Ct,fetchViewCustomer:()=>Tt,resetSelectedCustomer:()=>zt,selectAllCustomers:()=>$t,selectCustomer:()=>Yt,setSelectAllState:()=>Pt,updateCustomer:()=>Et});var d={};n.r(d),n.d(d,{customers:()=>Nt,getCustomer:()=>Rt,selectAllField:()=>It,selectedCustomers:()=>Ft,selectedViewCustomer:()=>Bt,totalCustomers:()=>Ht});var p={};n.r(p),n.d(p,{fetchCompanySettings:()=>Xt,fetchMailConfig:()=>nn,fetchMailDrivers:()=>tn,sendTestMail:()=>rn,setDefaultCurrency:()=>on,setItemDiscount:()=>en,setSelectedCompany:()=>Zt,updateCompany:()=>Gt,updateCompanyLogo:()=>Jt,updateCompanySettings:()=>Qt,updateMailConfig:()=>an});var m={};n.r(m),n.d(m,{defaultCurrency:()=>mn,defaultCurrencyForInput:()=>fn,defaultFiscalYear:()=>dn,defaultTimeZone:()=>pn,getCarbonDateFormat:()=>cn,getMomentDateFormat:()=>ln,getSelectedCompany:()=>sn,itemDiscount:()=>un});var f={};n.r(f),n.d(f,{loadData:()=>Mn});var h={};n.r(h),n.d(h,{getChartExpenses:()=>Fn,getChartInvoices:()=>In,getChartMonths:()=>Nn,getContacts:()=>Sn,getDashboardDataLoaded:()=>$n,getDueInvoices:()=>An,getEstimates:()=>Ln,getExpenses:()=>Tn,getInvoices:()=>Cn,getNetProfit:()=>Wn,getNetProfits:()=>Hn,getNewContacts:()=>En,getReceiptTotals:()=>Rn,getRecentEstimates:()=>Pn,getRecentInvoices:()=>On,getTotalDueAmount:()=>jn,getTotalExpenses:()=>Vn,getTotalReceipts:()=>qn,getTotalSales:()=>Bn,getWeeklyInvoicesCounter:()=>Yn,getWeeklyInvoicesDays:()=>zn});var _={};n.r(_),n.d(_,{addEstimate:()=>Da,convertToInvoice:()=>Ea,deleteEstimate:()=>Ma,deleteMultipleEstimates:()=>Sa,fetchCreateEstimate:()=>ya,fetchEstimate:()=>wa,fetchEstimates:()=>va,fetchViewEstimate:()=>xa,getEstimateNumber:()=>ba,getRecord:()=>ga,markAsAccepted:()=>La,markAsRejected:()=>Ta,markAsSent:()=>Oa,resetCustomer:()=>Ia,resetItem:()=>Fa,resetSelectedCustomer:()=>Ba,resetSelectedEstimates:()=>Ya,resetSelectedNote:()=>Va,searchEstimate:()=>ja,selectAllEstimates:()=>$a,selectCustomer:()=>Ra,selectEstimate:()=>Aa,selectNote:()=>qa,sendEmail:()=>ka,setCustomer:()=>za,setItem:()=>Na,setSelectAllState:()=>Pa,setTemplate:()=>Ha,updateEstimate:()=>Ca});var v={};n.r(v),n.d(v,{estimates:()=>Wa,getEstimate:()=>Qa,getTemplateId:()=>Ka,selectAllField:()=>Ua,selectedCustomer:()=>Ja,selectedEstimates:()=>Za,selectedNote:()=>Xa,totalEstimates:()=>Ga});var g={};n.r(g),n.d(g,{addExpense:()=>_r,deleteExpense:()=>gr,deleteMultipleExpenses:()=>yr,fetchExpense:()=>mr,fetchExpenses:()=>pr,getExpenseReceipt:()=>fr,selectAllExpenses:()=>wr,selectExpense:()=>xr,setSelectAllState:()=>br,updateExpense:()=>vr,uploadExpenseReceipt:()=>hr});var y={};n.r(y),n.d(y,{expenses:()=>kr,selectAllField:()=>Dr,selectedExpenses:()=>Mr,totalExpenses:()=>Sr});var b={};n.r(b),n.d(b,{addInvoice:()=>Xr,cloneInvoice:()=>ai,deleteInvoice:()=>Qr,deleteMultipleInvoices:()=>ei,fetchInvoice:()=>Gr,fetchInvoices:()=>Zr,getInvoiceNumber:()=>ii,markAsSent:()=>ni,resetCustomer:()=>di,resetItem:()=>_i,resetSelectedCustomer:()=>fi,resetSelectedInvoices:()=>ci,resetSelectedNote:()=>gi,searchInvoice:()=>ri,selectAllInvoices:()=>li,selectCustomer:()=>mi,selectInvoice:()=>oi,selectNote:()=>vi,sendEmail:()=>Jr,setCustomer:()=>ui,setItem:()=>hi,setSelectAllState:()=>si,setTemplate:()=>pi,updateInvoice:()=>ti});var w={};n.r(w),n.d(w,{getInvoice:()=>Ci,getTemplateId:()=>wi,invoices:()=>yi,selectAllField:()=>bi,selectedCustomer:()=>Di,selectedInvoices:()=>xi,selectedItem:()=>Si,selectedNote:()=>Mi,totalInvoices:()=>ki});var x={};n.r(x),n.d(x,{addPayment:()=>Ki,addPaymentMode:()=>to,deleteMultiplePayments:()=>Xi,deletePayment:()=>Qi,deletePaymentMode:()=>io,fetchPayment:()=>Ui,fetchPaymentMode:()=>ro,fetchPaymentModes:()=>ao,fetchPayments:()=>Wi,resetSelectedNote:()=>co,searchPayment:()=>so,selectAllPayments:()=>eo,selectNote:()=>lo,selectPayment:()=>Gi,sendEmail:()=>oo,setSelectAllState:()=>Zi,updatePayment:()=>Ji,updatePaymentMode:()=>no});var k={};n.r(k),n.d(k,{paymentModes:()=>ho,payments:()=>uo,selectAllField:()=>mo,selectedNote:()=>_o,selectedPayments:()=>po,totalPayments:()=>fo});var D={};n.r(D),n.d(D,{addItem:()=>$o,addItemUnit:()=>Ro,deleteItem:()=>zo,deleteItemUnit:()=>Wo,deleteMultipleItems:()=>No,fatchItemUnit:()=>Vo,fetchItem:()=>Po,fetchItemUnits:()=>qo,fetchItems:()=>Ao,selectAllItems:()=>Fo,selectItem:()=>Ho,setSelectAllState:()=>Io,updateItem:()=>Yo,updateItemUnit:()=>Bo});var M={};n.r(M),n.d(M,{itemUnits:()=>Jo,items:()=>Uo,selectAllField:()=>Ko,selectedItems:()=>Zo,totalItems:()=>Go});var S={};n.r(S),n.d(S,{closeModal:()=>ms,openModal:()=>ps,resetModalData:()=>fs});var C={};n.r(C),n.d(C,{componentName:()=>vs,modalActive:()=>hs,modalData:()=>ys,modalDataID:()=>gs,modalSize:()=>bs,modalTitle:()=>_s,refreshData:()=>ws,variant:()=>xs});var L={};n.r(L),n.d(L,{addCustomField:()=>Is,deleteCustomFields:()=>Hs,fetchCustomField:()=>Ns,fetchCustomFields:()=>Ys,fetchNoteCustomFields:()=>zs,updateCustomField:()=>Fs});var T={};n.r(T),n.d(T,{getCustomFields:()=>Rs});var O={};n.r(O),n.d(O,{addTaxType:()=>el,deleteTaxType:()=>al,fetchTaxType:()=>tl,fetchTaxTypes:()=>Xs,fetchTaxTypesList:()=>Qs,updateTaxType:()=>nl});var E={};n.r(E),n.d(E,{getTaxTypeById:()=>il,taxTypes:()=>rl});var j={};n.r(j),n.d(j,{addUser:()=>bl,deleteMultipleUsers:()=>kl,deleteUser:()=>xl,fetchUser:()=>yl,fetchUsers:()=>gl,selectAllUsers:()=>Ml,selectedUser:()=>Sl,setSelectAllState:()=>Dl,updateUser:()=>wl});var A={};n.r(A),n.d(A,{selectAllField:()=>Ll,selectedUsers:()=>Tl,totalUsers:()=>Ol,users:()=>Cl});var P={};n.r(P),n.d(P,{createBackup:()=>zl,fetchBackups:()=>Yl,removeBackup:()=>Nl});var $={};n.r($),n.d($,{getBackupDisks:()=>Fl,getBackupDisksInfo:()=>Hl,getBackups:()=>Il});var Y={};n.r(Y),n.d(Y,{createDisk:()=>Xl,deleteFileDisk:()=>ec,fetchDiskDrivers:()=>Gl,fetchDiskEnv:()=>Jl,fetchDisks:()=>Zl,updateDisk:()=>Ql});var z={};n.r(z),n.d(z,{getDiskDrivers:()=>nc,getDisks:()=>tc});var N={};n.r(N),n.d(N,{fetchEstimateTemplates:()=>cc});var I={};n.r(I),n.d(I,{getEstimateTemplates:()=>uc});var F={};n.r(F),n.d(F,{fetchInvoiceTemplates:()=>fc});var H={};n.r(H),n.d(H,{getInvoiceTemplates:()=>hc});var R={};n.r(R),n.d(R,{searchUsers:()=>bc});var B={};n.r(B),n.d(B,{getCustomerList:()=>wc,getUserList:()=>xc});var q={};n.r(q),n.d(q,{addNote:()=>Ac,deleteNote:()=>$c,fetchNote:()=>jc,fetchNotes:()=>Ec,updateNote:()=>Pc});var V={};n.r(V),n.d(V,{notes:()=>Yc});var W={};n.r(W),n.d(W,{hideNotification:()=>Zc,resetNotificationData:()=>Gc,showNotification:()=>Kc});var U={};n.r(U),n.d(U,{notificationActive:()=>Jc,notificationAutoHide:()=>eu,notificationMessage:()=>Qc,notificationTitle:()=>Xc,notificationType:()=>tu});var K,Z=n(538),G=n(7968),J=n.n(G),X=function(e){return e.isAppLoaded},Q=function(e){return e.languages},ee=function(e){return e.currencies},te=function(e){return e.timeZones},ne=function(e){return e.dateFormats},ae=function(e){return e.fiscalYears},re=function(e){return e.countries},ie=function(e){return e.isSidebarOpen},oe="UPDATE_APP_LOADING_STATUS",se="SET_LANGUAGES",le="SET_CURRENCIES",ce="SET_DATE_FORMATS",ue="SET_TIMEZONES",de="SET_FISCAL_YEARS",pe="SET_COUNTRIES",me="TOGGLE_SIDEBAR";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=(fe(K={},oe,(function(e,t){e.isAppLoaded=t})),fe(K,se,(function(e,t){e.languages=t})),fe(K,le,(function(e,t){e.currencies=t})),fe(K,ue,(function(e,t){e.timeZones=t})),fe(K,ce,(function(e,t){e.dateFormats=t})),fe(K,de,(function(e,t){e.fiscalYears=t})),fe(K,pe,(function(e,t){e.countries=t})),fe(K,me,(function(e){e.isSidebarOpen=!e.isSidebarOpen})),K);var _e="RESET_CURRENT_USER",ve="BOOTSTRAP_CURRENT_USER",ge="UPDATE_CURRENT_USER",ye="UPDATE_USER_AVATAR",be="SET_DEFAULT_LANGUAGE",we="SET_SELECTED_COMPANY",xe="SET_MOMENT_DATE_FORMAT",ke="SET_CARBON_DATE_FORMAT",De="SET_DEFAULT_FISCAL_YEAR",Me="SET_DEFAULT_TIME_ZONE",Se="SET_ITEM_DISCOUNT",Ce="SET_DEFAULT_CURRENCY";const Le={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(le,n.data.currencies),t(pe,n.data.countries),t(oe,!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(se,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(le,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(ce,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(de,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(ue,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(pe,n.data.countries),e(n)})).catch((function(e){n(e)}))}))},toggleSidebar:function(e){(0,e.commit)(me)}};var Te,Oe="AUTH_ERROR",Ee="SET_LOGOUT";function je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ae=(je(Te={},"AUTH_SUCCESS",(function(e,t){e.token=t,e.status="success"})),je(Te,Ee,(function(e,t){e.isLoggedOut=t})),je(Te,Oe,(function(e,t){e.token=null,e.status="error"})),je(Te,"REFRESH_SUCCESS",(function(e,t){e.token=t,e.status="success"})),Te);var Pe=n(3159),$e=function(e,t){var n=e.commit;return new Promise((function(e,a){window.axios.get("/sanctum/csrf-cookie").then((function(r){window.axios.post("/login",t).then((function(t){n(Ee,!1),n("user/RESET_CURRENT_USER",null,{root:!0}),n(oe,!1,{root:!0}),e(t)})).catch((function(e){n(Oe,e.response),a(e)}))}))}))},Ye=function(e){e.state;(0,e.commit)(Ee,!1)},ze=function(e){var t=e.state,n=e.commit,a=e.dispatch;return new Promise((function(e,r){if(t.isLoggedOut)return e(),!0;n(Ee,!0),window.axios.get("/auth/logout").then((function(){Pe.Z.push("/login"),a("notification/showNotification",{type:"success",message:"Logged out successfully."},{root:!0})})).catch((function(e){Pe.Z.push("/login"),r(e)}))}))},Ne=function(e){return e.isLoggedOut};const Ie={namespaced:!0,state:{status:"",isLoggedOut:!1},getters:i,actions:r,mutations:Ae};var Fe;function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Re=(He(Fe={},_e,(function(e,t){e.currentUser=null})),He(Fe,ve,(function(e,t){e.currentUser=t})),He(Fe,ge,(function(e,t){e.currentUser=t})),He(Fe,ye,(function(e,t){e.currentUser&&(e.currentUser.avatar=t.avatar)})),He(Fe,be,(function(e,t){window.i18n.locale=t})),Fe);n(6486);var Be=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){axios.put("/api/v1/me",t).then((function(t){n(ge,t.data.user),e(t)})).catch((function(e){a(e)}))}))},qe=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/me",t).then((function(t){n(ve,t.data.user),e(t)})).catch((function(e){a(e)}))}))},Ve=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/me/upload-avatar",t).then((function(t){n(ye,t.data.user),e(t)})).catch((function(e){a(e)}))}))},We=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)}))}))},Ue=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.put("/api/v1/me/settings",t).then((function(a){n(be,t.settings.language),e(a)})).catch((function(e){a(e)}))}))},Ke=function(e){return e.currentUser};const Ze={namespaced:!0,state:{currentUser:null},getters:s,actions:o,mutations:Re};var Ge,Je="SET_CATEGORIES",Xe="ADD_CATEGORY",Qe="UPDATE_CATEGORY",et="DELETE_CATEGORY";function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const at=(nt(Ge={},Je,(function(e,t){e.categories=t})),nt(Ge,Xe,(function(e,t){e.categories.push(t.category)})),nt(Ge,Qe,(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?tt(Object(n),!0).forEach((function(t){nt(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}({},t.category))})),nt(Ge,et,(function(e,t){var n=e.categories.findIndex((function(e){return e.id===t}));e.categories.splice(n,1)})),Ge);var rt=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/categories",{params:t}).then((function(t){n(Je,t.data.categories.data),e(t)})).catch((function(e){a(e)}))}))},it=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)}))}))},ot=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/categories",t).then((function(t){n(Xe,t.data),e(t)})).catch((function(e){a(e)}))}))},st=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.put("/api/v1/categories/".concat(t.id),t).then((function(t){n(Qe,t.data),e(t)})).catch((function(e){a(e)}))}))},lt=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.delete("/api/v1/categories/".concat(t)).then((function(a){a.data.success&&n(et,t),e(a)})).catch((function(e){a(e)}))}))},ct=function(e){return e.categories},ut=function(e){return function(t){return e.categories.find((function(e){return e.id===t}))}};const dt={namespaced:!0,state:{categories:[]},getters:c,actions:l,mutations:at};var pt,mt="BOOTSTRAP_CUSTOMERS",ft="ADD_CUSTOMER",ht="UPDATE_CUSTOMER",_t="DELETE_CUSTOMER",vt="DELETE_MULTIPLE_CUSTOMERS",gt="SET_SELECTED_CUSTOMERS",yt="SET_TOTAL_CUSTOMERS",bt="RESET_SELECTED_CUSTOMER",wt="SET_SELECT_ALL_STATE",xt="SET_SELECTED_VIEW_CUSTOMER";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}const Dt=(kt(pt={},mt,(function(e,t){e.customers=t})),kt(pt,yt,(function(e,t){e.totalCustomers=t})),kt(pt,ft,(function(e,t){e.customers.push(t.customer)})),kt(pt,ht,(function(e,t){var n=e.customers.findIndex((function(e){return e.id===t.customer.id}));e.customers[n]=t.customer})),kt(pt,_t,(function(e,t){var n=e.customers.findIndex((function(e){return e.id===t}));e.customers.splice(n,1)})),kt(pt,vt,(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=[]})),kt(pt,gt,(function(e,t){e.selectedCustomers=t})),kt(pt,bt,(function(e,t){e.selectedCustomer=null})),kt(pt,wt,(function(e,t){e.selectAllField=t})),kt(pt,xt,(function(e,t){e.selectedViewCustomer=t})),pt);var Mt="SET_CUSTOMER_LISTS",St="SET_USER_LISTS",Ct=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/customers",{params:t}).then((function(t){n(mt,t.data.customers.data),n(yt,t.data.customerTotalCount),n("search/SET_CUSTOMER_LISTS",t.data.customers.data,{root:!0}),e(t)})).catch((function(e){a(e)}))}))},Lt=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)}))}))},Tt=function(e,t){var n=e.commit;e.dispatch;return new Promise((function(e,a){window.axios.get("/api/v1/customers/".concat(t.id,"/stats"),{params:t}).then((function(t){n(xt,t.data),e(t)})).catch((function(e){a(e)}))}))},Ot=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/customers",t).then((function(t){n(ft,t.data),e(t)})).catch((function(e){a(e)}))}))},Et=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.put("/api/v1/customers/".concat(t.id),t).then((function(t){t.data.success&&n(ht,t.data),e(t)})).catch((function(e){a(e)}))}))},jt=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/customers/delete",t).then((function(a){n(_t,t),e(a)})).catch((function(e){a(e)}))}))},At=function(e,t){var n=e.commit,a=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/customers/delete",{ids:a.selectedCustomers}).then((function(t){n(vt,a.selectedCustomers),e(t)})).catch((function(e){t(e)}))}))},Pt=function(e,t){var n=e.commit;e.dispatch,e.state;n(wt,t)},$t=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedCustomers.length===n.customers.length)t(gt,[]),t(wt,!1);else{var a=n.customers.map((function(e){return e.id}));t(gt,a),t(wt,!0)}},Yt=function(e,t){var n=e.commit,a=(e.dispatch,e.state);n(gt,t),a.selectedCustomers.length===a.customers.length?n(wt,!0):n(wt,!1)},zt=function(e,t){var n=e.commit;e.dispatch,e.state;n(bt)},Nt=function(e){return e.customers},It=function(e){return e.selectAllField},Ft=function(e){return e.selectedCustomers},Ht=function(e){return e.totalCustomers},Rt=function(e){return function(t){var n=parseInt(t);return e.customers.find((function(e){return e.id===n}))}},Bt=function(e){return e.selectedViewCustomer};const qt={namespaced:!0,state:{customers:[],totalCustomers:0,selectAllField:!1,selectedCustomers:[],selectedViewCustomer:{}},getters:d,actions:u,mutations:Dt};var Vt,Wt=n(1402);function Ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kt=(Ut(Vt={},we,(function(e,t){Wt.Z.set("selectedCompany",t.id),e.selectedCompany=t})),Ut(Vt,xe,(function(e,t){e.momentDateFormat=t})),Ut(Vt,ke,(function(e,t){e.carbonDateFormat=t})),Ut(Vt,Se,(function(e){e.item_discount=!0})),Ut(Vt,De,(function(e,t){e.defaultFiscalYear=t})),Ut(Vt,Me,(function(e,t){e.defaultTimeZone=t})),Ut(Vt,Ce,(function(e,t){e.defaultCurrency=t.default_currency})),Vt);var Zt=function(e,t){var n=e.commit;e.dispatch,e.state;n(we,t)},Gt=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)}))}))},Jt=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)}))}))},Xt=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)}))}))},Qt=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/company/settings",t).then((function(a){n(ke,t.settings.carbon_date_format),n(xe,t.settings.moment_date_format),e(a)})).catch((function(e){a(e)}))}))},en=function(e){var t=e.commit;e.dispatch,e.state;t(Se)},tn=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)}))}))},nn=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)}))}))},an=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)}))}))},rn=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)}))}))},on=function(e,t){var n=e.commit;e.dispatch,e.state;n(Ce,{default_currency:t})},sn=function(e){return e.selectedCompany},ln=function(e){return e.momentDateFormat},cn=function(e){return e.carbonDateFormat},un=function(e){return e.item_discount},dn=function(e){return e.defaultFiscalYear},pn=function(e){return e.defaultTimeZone},mn=function(e){return e.defaultCurrency},fn=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 hn={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:Kt};var _n,vn="SET_INITIAL_DATA",gn="SET_DASHBOARD_DATA_LOADED_STATE",yn="DELETE_INVOICE",bn="UPDATE_INVOICE_STATUS",wn="DELETE_ESTIMATE",xn="UPDATE_ESTIMATE_STATUS";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=(kn(_n={},vn,(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})),kn(_n,gn,(function(e,t){e.isDashboardDataLoaded=t})),kn(_n,bn,(function(e,t){var n=e.dueInvoices.findIndex((function(e){return e.id===t.id}));e.dueInvoices[n]&&(e.dueInvoices[n].status=t.status)})),kn(_n,yn,(function(e,t){var n=e.dueInvoices.findIndex((function(e){return e.id===t.ids[0]}));e.dueInvoices.splice(n,1)})),kn(_n,wn,(function(e,t){var n=e.recentEstimates.findIndex((function(e){return e.id===t.ids[0]}));e.recentEstimates.splice(n,1)})),kn(_n,xn,(function(e,t){var n=e.recentEstimates.findIndex((function(e){return e.id===t.id}));e.recentEstimates[n]&&(e.recentEstimates[n].status=t.status)})),_n);var Mn=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/dashboard",{params:t}).then((function(t){n(vn,t.data),n(gn,!0),e(t)})).catch((function(e){a(e)}))}))},Sn=function(e){return e.contacts},Cn=function(e){return e.invoices},Ln=function(e){return e.estimates},Tn=function(e){return e.expenses},On=function(e){return e.recentInvoices},En=function(e){return e.newContacts},jn=function(e){return e.totalDueAmount},An=function(e){return e.dueInvoices},Pn=function(e){return e.recentEstimates},$n=function(e){return e.isDashboardDataLoaded},Yn=function(e){return e.weeklyInvoices.counter},zn=function(e){return e.weeklyInvoices.days},Nn=function(e){return e.chartData.months},In=function(e){return e.chartData.invoiceTotals},Fn=function(e){return e.chartData.expenseTotals},Hn=function(e){return e.chartData.netProfits},Rn=function(e){return e.chartData.receiptTotals},Bn=function(e){return e.salesTotal},qn=function(e){return e.totalReceipts},Vn=function(e){return e.totalExpenses},Wn=function(e){return e.netProfit};const Un={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:Dn};var Kn,Zn="SET_ESTIMATES",Gn="ADD_ESTIMATE",Jn="UPDATE_ESTIMATE",Xn="DELETE_ESTIMATE",Qn="DELETE_MULTIPLE_ESTIMATES",ea="SET_SELECTED_ESTIMATES",ta="SET_TOTAL_ESTIMATES",na="RESET_CUSTOMER",aa="RESET_ITEM",ra="SET_TEMPLATE_ID",ia="SELECT_CUSTOMER",oa="RESET_SELECTED_CUSTOMER",sa="SET_SELECT_ALL_STATE",la="RESET_SELECTED_ESTIMATES",ca="UPDATE_ESTIMATE_STATUS",ua="VIEW_ESTIMATE",da="SET_SELECTED_NOTE",pa="RESET_SELECTED_NOTE";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}function fa(e){return function(e){if(Array.isArray(e))return ha(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 ha(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 ha(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 ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}const _a=(ma(Kn={},Zn,(function(e,t){e.estimates=t})),ma(Kn,ta,(function(e,t){e.totalEstimates=t})),ma(Kn,Gn,(function(e,t){e.estimates=[].concat(fa(e.estimates),[t])})),ma(Kn,Xn,(function(e,t){var n=e.estimates.findIndex((function(e){return e.id===t}));e.estimates.splice(n,1)})),ma(Kn,ea,(function(e,t){e.selectedEstimates=t})),ma(Kn,Qn,(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=[]})),ma(Kn,Jn,(function(e,t){var n=e.estimates.findIndex((function(e){return e.id===t.estimate.id}));e.estimates[n]=t.estimate})),ma(Kn,ca,(function(e,t){var n=e.estimates.findIndex((function(e){return e.id===t.id}));e.estimates[n]&&(e.estimates[n].status=t.status)})),ma(Kn,la,(function(e,t){e.selectedEstimates=[],e.selectAllField=!1})),ma(Kn,ra,(function(e,t){e.estimateTemplateId=t})),ma(Kn,ia,(function(e,t){e.selectedCustomer=t})),ma(Kn,oa,(function(e,t){e.selectedCustomer=null})),ma(Kn,sa,(function(e,t){e.selectAllField=t})),ma(Kn,ua,(function(e,t){e.selectedEstimate=t})),ma(Kn,da,(function(e,t){e.selectedNote=t})),ma(Kn,pa,(function(e,t){e.selectedNote=null})),Kn);var va=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/estimates",{params:t}).then((function(t){n(Zn,t.data.estimates.data),n(ta,t.data.estimateTotalCount),e(t)})).catch((function(e){a(e)}))}))},ga=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)}))}))},ya=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)}))}))},ba=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)}))}))},wa=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/estimates/".concat(t)).then((function(t){n(ra,t.data.estimate.estimate_template_id),e(t)})).catch((function(e){a(e)}))}))},xa=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/estimates/".concat(t)).then((function(t){n(ua,t.data.estimate),e(t)})).catch((function(e){a(e)}))}))},ka=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/estimates/".concat(t.id,"/send"),t).then((function(a){a.data.success&&(n(ca,{id:t.id,status:"SENT"}),n(ua),n("dashboard/UPDATE_ESTIMATE_STATUS",{id:t.id,status:"SENT"},{root:!0})),e(a)})).catch((function(e){a(e)}))}))},Da=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/estimates",t).then((function(t){n(Gn,t.data.estimate),e(t)})).catch((function(e){a(e)}))}))},Ma=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/estimates/delete",t).then((function(a){n(Xn,t),n("dashboard/DELETE_ESTIMATE",t,{root:!0}),e(a)})).catch((function(e){a(e)}))}))},Sa=function(e,t){var n=e.commit,a=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/estimates/delete",{ids:a.selectedEstimates}).then((function(t){n(Qn,a.selectedEstimates),e(t)})).catch((function(e){t(e)}))}))},Ca=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.put("/api/v1/estimates/".concat(t.id),t).then((function(t){n(Jn,t.data),e(t)})).catch((function(e){a(e)}))}))},La=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/estimates/".concat(t.id,"/status"),t).then((function(a){n("dashboard/UPDATE_ESTIMATE_STATUS",{id:t.id,status:"ACCEPTED"},{root:!0}),e(a)})).catch((function(e){a(e)}))}))},Ta=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/estimates/".concat(t.id,"/status"),t).then((function(a){n("dashboard/UPDATE_ESTIMATE_STATUS",{id:t.id,status:"REJECTED"},{root:!0}),e(a)})).catch((function(e){a(e)}))}))},Oa=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/estimates/".concat(t.id,"/status"),t).then((function(a){n(ca,{id:t.id,status:"SENT"}),n("dashboard/UPDATE_ESTIMATE_STATUS",{id:t.id,status:"SENT"},{root:!0}),e(a)})).catch((function(e){a(e)}))}))},Ea=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)}))}))},ja=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)}))}))},Aa=function(e,t){var n=e.commit,a=(e.dispatch,e.state);n(ea,t),a.selectedEstimates.length===a.estimates.length?n(sa,!0):n(sa,!1)},Pa=function(e,t){var n=e.commit;e.dispatch,e.state;n(sa,t)},$a=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedEstimates.length===n.estimates.length)t(ea,[]),t(sa,!1);else{var a=n.estimates.map((function(e){return e.id}));t(ea,a),t(sa,!0)}},Ya=function(e){var t=e.commit;e.dispatch,e.state;t(la)},za=function(e,t){var n=e.commit;e.dispatch,e.state;n(na),n("SET_CUSTOMER",t)},Na=function(e,t){var n=e.commit;e.dispatch,e.state;n(aa),n("SET_ITEM",t)},Ia=function(e){var t=e.commit;e.dispatch,e.state;t(na)},Fa=function(e){var t=e.commit;e.dispatch,e.state;t(aa)},Ha=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){n(ra,t),e({})}))},Ra=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/customers/".concat(t)).then((function(t){n(oa),n(ia,t.data.customer),e(t)})).catch((function(e){a(e)}))}))},Ba=function(e,t){var n=e.commit;e.dispatch,e.state;n(oa)},qa=function(e,t){var n=e.commit;e.dispatch,e.state;n(pa),n(da,t.notes)},Va=function(e,t){var n=e.commit;e.dispatch,e.state;n(pa)},Wa=function(e){return e.estimates},Ua=function(e){return e.selectAllField},Ka=function(e){return e.estimateTemplateId},Za=function(e){return e.selectedEstimates},Ga=function(e){return e.totalEstimates},Ja=function(e){return e.selectedCustomer},Xa=function(e){return e.selectedNote},Qa=function(e){return function(t){var n=parseInt(t);return e.estimates.find((function(e){return e.id===n}))}};const er={namespaced:!0,state:{estimates:[],estimateTemplateId:1,selectAllField:!1,selectedEstimates:[],totalEstimates:0,selectedCustomer:null,selectedEstimate:null,selectedNote:null},getters:v,actions:_,mutations:_a};var tr,nr="SET_EXPENSES",ar="ADD_EXPENSE",rr="UPDATE_EXPENSE",ir="DELETE_EXPENSE",or="DELETE_MULTIPLE_EXPENSES",sr="SET_SELECTED_EXPENSES",lr="SET_TOTAL_EXPENSES",cr="SET_SELECT_ALL_STATE";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}const dr=(ur(tr={},nr,(function(e,t){e.expenses=t})),ur(tr,ar,(function(e,t){e.expenses.push(t)})),ur(tr,rr,(function(e,t){var n=e.expenses.findIndex((function(e){return e.id===t.expense.id}));e.expenses[n]=t.expense})),ur(tr,ir,(function(e,t){var n=e.expenses.findIndex((function(e){return e.id===t}));e.expenses.splice(n,1)})),ur(tr,"SET_SELECT_ALL",(function(e,t){t?e.expenses.filter((function(t){e.selectedRow.push(t.id)})):e.selectedRow=[]})),ur(tr,lr,(function(e,t){e.totalExpenses=t})),ur(tr,ir,(function(e,t){var n=e.expenses.findIndex((function(e){return e.id===t}));e.expenses.splice(n,1)})),ur(tr,or,(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=[]})),ur(tr,sr,(function(e,t){e.selectedExpenses=t})),ur(tr,cr,(function(e,t){e.selectAllField=t})),tr);var pr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/expenses",{params:t}).then((function(t){n(nr,t.data.expenses.data),n(lr,t.data.expenseTotalCount),e(t)})).catch((function(e){a(e)}))}))},mr=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)}))}))},fr=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)}))}))},hr=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)}))}))},_r=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/expenses",t).then((function(t){n(ar,t.data),e(t)})).catch((function(e){a(e)}))}))},vr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/expenses/".concat(t.id),t.editData).then((function(t){n(rr,t.data),e(t)})).catch((function(e){a(e)}))}))},gr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/expenses/delete",t).then((function(a){n(ir,t),e(a)})).catch((function(e){a(e)}))}))},yr=function(e,t){var n=e.commit,a=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/expenses/delete",{ids:a.selectedExpenses}).then((function(t){n(or,a.selectedExpenses),e(t)})).catch((function(e){t(e)}))}))},br=function(e,t){var n=e.commit;e.dispatch,e.state;n(cr,t)},wr=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedExpenses.length===n.expenses.length)t(sr,[]),t(cr,!1);else{var a=n.expenses.map((function(e){return e.id}));t(sr,a),t(cr,!0)}},xr=function(e,t){var n=e.commit,a=(e.dispatch,e.state);n(sr,t),a.selectedExpenses.length===a.expenses.length?n(cr,!0):n(cr,!1)},kr=function(e){return e.expenses},Dr=function(e){return e.selectAllField},Mr=function(e){return e.selectedExpenses},Sr=function(e){return e.totalExpenses};const Cr={namespaced:!0,state:{expenses:[],totalExpenses:0,selectAllField:!1,selectedExpenses:[]},getters:y,actions:g,mutations:dr};var Lr,Tr="SET_INVOICES",Or="ADD_INVOICE",Er="UPDATE_INVOICE",jr="DELETE_INVOICE",Ar="DELETE_MULTIPLE_INVOICES",Pr="SET_SELECTED_INVOICES",$r="SET_TOTAL_INVOICES",Yr="RESET_CUSTOMER",zr="RESET_ITEM",Nr="SET_ITEM",Ir="SET_TEMPLATE_ID",Fr="SELECT_CUSTOMER",Hr="RESET_SELECTED_CUSTOMER",Rr="SET_SELECT_ALL_STATE",Br="RESET_SELECTED_INVOICES",qr="UPDATE_INVOICE_STATUS",Vr="RESET_SELECTED_NOTE",Wr="SET_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}const Kr=(Ur(Lr={},Tr,(function(e,t){e.invoices=t})),Ur(Lr,$r,(function(e,t){e.totalInvoices=t})),Ur(Lr,Or,(function(e,t){e.invoices.push(t)})),Ur(Lr,jr,(function(e,t){var n=e.invoices.findIndex((function(e){return e.id===t.id}));e.invoices.splice(n,1)})),Ur(Lr,Pr,(function(e,t){e.selectedInvoices=t})),Ur(Lr,Er,(function(e,t){var n=e.invoices.findIndex((function(e){return e.id===t.invoice.id}));e.invoices[n]=t.invoice})),Ur(Lr,qr,(function(e,t){var n=e.invoices.findIndex((function(e){return e.id===t.id}));e.invoices[n]&&(e.invoices[n].status=t.status)})),Ur(Lr,Br,(function(e,t){e.selectedInvoices=[],e.selectAllField=!1})),Ur(Lr,Ar,(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=[]})),Ur(Lr,Ir,(function(e,t){e.invoiceTemplateId=t})),Ur(Lr,Fr,(function(e,t){e.selectedCustomer=t})),Ur(Lr,Hr,(function(e,t){e.selectedCustomer=null})),Ur(Lr,Rr,(function(e,t){e.selectAllField=t})),Ur(Lr,Vr,(function(e,t){e.selectedNote=null})),Ur(Lr,Wr,(function(e,t){e.selectedNote=t})),Ur(Lr,zr,(function(e,t){e.selectedItem=null})),Ur(Lr,Nr,(function(e,t){e.selectedItem=t})),Lr);var Zr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/invoices",{params:t}).then((function(t){n(Tr,t.data.invoices.data),n($r,t.data.invoiceTotalCount),e(t)})).catch((function(e){a(e)}))}))},Gr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/invoices/".concat(t)).then((function(t){n(Ir,t.data.invoice.invoice_template_id),e(t)})).catch((function(e){a(e)}))}))},Jr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/invoices/".concat(t.id,"/send"),t).then((function(a){a.data.success&&(n(qr,{id:t.id,status:"SENT"}),n("dashboard/UPDATE_INVOICE_STATUS",{id:t.id,status:"SENT"},{root:!0})),e(a)})).catch((function(e){a(e)}))}))},Xr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/invoices",t).then((function(t){n(Or,t.data),e(t)})).catch((function(e){a(e)}))}))},Qr=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/invoices/delete",t).then((function(a){a.data.error||(n(jr,t),n("dashboard/DELETE_INVOICE",t,{root:!0})),e(a)})).catch((function(e){a(e)}))}))},ei=function(e,t){var n=e.commit,a=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/invoices/delete",{ids:a.selectedInvoices}).then((function(t){t.data.error||n(Ar,a.selectedInvoices),e(t)})).catch((function(e){t(e)}))}))},ti=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.put("/api/v1/invoices/".concat(t.id),t).then((function(t){t.data.invoice&&n(Er,t.data),e(t)})).catch((function(e){a(e)}))}))},ni=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/invoices/".concat(t.id,"/status"),t).then((function(a){n(qr,{id:t.id,status:"SENT"}),n("dashboard/UPDATE_INVOICE_STATUS",{id:t.id,status:"SENT"},{root:!0}),e(a)})).catch((function(e){a(e)}))}))},ai=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)}))}))},ri=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)}))}))},ii=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)}))}))},oi=function(e,t){var n=e.commit,a=(e.dispatch,e.state);n(Pr,t),a.selectedInvoices.length===a.invoices.length?n(Rr,!0):n(Rr,!1)},si=function(e,t){var n=e.commit;e.dispatch,e.state;n(Rr,t)},li=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedInvoices.length===n.invoices.length)t(Pr,[]),t(Rr,!1);else{var a=n.invoices.map((function(e){return e.id}));t(Pr,a),t(Rr,!0)}},ci=function(e){var t=e.commit;e.dispatch,e.state;t(Br)},ui=function(e,t){var n=e.commit;e.dispatch,e.state;n(Yr),n("SET_CUSTOMER",t)},di=function(e){var t=e.commit;e.dispatch,e.state;t(Yr)},pi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){n(Ir,t),e({})}))},mi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/customers/".concat(t)).then((function(t){n(Hr),n(Fr,t.data.customer),e(t)})).catch((function(e){a(e)}))}))},fi=function(e,t){var n=e.commit;e.dispatch,e.state;n(Hr)},hi=function(e,t){var n=e.commit;e.dispatch,e.state;n(zr),n(Nr,t)},_i=function(e){var t=e.commit;e.dispatch,e.state;t(zr)},vi=function(e,t){var n=e.commit;e.dispatch,e.state;n(Vr),n(Wr,t.notes)},gi=function(e,t){var n=e.commit;e.dispatch,e.state;n(Vr)},yi=function(e){return e.invoices},bi=function(e){return e.selectAllField},wi=function(e){return e.invoiceTemplateId},xi=function(e){return e.selectedInvoices},ki=function(e){return e.totalInvoices},Di=function(e){return e.selectedCustomer},Mi=function(e){return e.selectedNote},Si=function(e){return e.selectedItem},Ci=function(e){return function(t){var n=parseInt(t);return e.invoices.find((function(e){return e.id===n}))}};const Li={namespaced:!0,state:{invoices:[],invoiceTemplateId:1,selectedInvoices:[],selectAllField:!1,totalInvoices:0,selectedCustomer:null,selectedNote:null,selectedItem:null},getters:w,actions:b,mutations:Kr};var Ti,Oi="SET_PAYMENTS",Ei="DELETE_PAYMENT",ji="DELETE_MULTIPLE_PAYMENTS",Ai="SET_SELECTED_PAYMENTS",Pi="SET_TOTAL_PAYMENTS",$i="SET_SELECT_ALL_STATE",Yi="ADD_PAYMENT_MODE",zi="DELETE_PAYMENT_MODE",Ni="SET_PAYMENT_MODES",Ii="UPDATE_PAYMENT_MODE",Fi="RESET_SELECTED_NOTE",Hi="SET_SELECTED_NOTE";function Ri(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bi(e){return function(e){if(Array.isArray(e))return qi(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 qi(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 qi(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 qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}const Vi=(Ri(Ti={},Oi,(function(e,t){e.payments=t})),Ri(Ti,Pi,(function(e,t){e.totalPayments=t})),Ri(Ti,"ADD_PAYMENT",(function(e,t){e.payments.push(t)})),Ri(Ti,Ei,(function(e,t){var n=e.payments.findIndex((function(e){return e.id===t}));e.payments.splice(n,1)})),Ri(Ti,ji,(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=[]})),Ri(Ti,Ai,(function(e,t){e.selectedPayments=t})),Ri(Ti,$i,(function(e,t){e.selectAllField=t})),Ri(Ti,Ni,(function(e,t){e.paymentModes=t})),Ri(Ti,Yi,(function(e,t){e.paymentModes=[t.paymentMethod].concat(Bi(e.paymentModes))})),Ri(Ti,zi,(function(e,t){var n=e.paymentModes.findIndex((function(e){return e.id===t}));e.paymentModes.splice(n,1)})),Ri(Ti,Ii,(function(e,t){var n=e.paymentModes.findIndex((function(e){return e.id===t.paymentMethod.id}));e.paymentModes[n]=t.paymentMethod})),Ri(Ti,Fi,(function(e,t){e.selectedNote=null})),Ri(Ti,Hi,(function(e,t){e.selectedNote=t})),Ti);var Wi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/payments",{params:t}).then((function(t){n(Oi,t.data.payments.data),n(Pi,t.data.paymentTotalCount),e(t)})).catch((function(e){a(e)}))}))},Ui=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)}))}))},Ki=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)}))}))},Zi=function(e,t){var n=e.commit;e.dispatch,e.state;n($i,t)},Gi=function(e,t){var n=e.commit,a=(e.dispatch,e.state);n(Ai,t),a.selectedPayments.length===a.payments.length?n($i,!0):n($i,!1)},Ji=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)}))}))},Xi=function(e,t){var n=e.commit,a=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/payments/delete",{ids:a.selectedPayments}).then((function(t){n(ji,a.selectedPayments),e(t)})).catch((function(e){t(e)}))}))},Qi=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/payments/delete",t).then((function(a){n(Ei,t),e(a)})).catch((function(e){a(e)}))}))},eo=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedPayments.length===n.payments.length)t(Ai,[]),t($i,!1);else{var a=n.payments.map((function(e){return e.id}));t(Ai,a),t($i,!0)}},to=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/payment-methods",t).then((function(t){n(Yi,t.data),e(t)})).catch((function(e){a(e)}))}))},no=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.put("/api/v1/payment-methods/".concat(t.id),t).then((function(t){n(Ii,t.data),e(t)})).catch((function(e){a(e)}))}))},ao=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/payment-methods",{params:t}).then((function(t){n(Ni,t.data.paymentMethods.data),e(t)})).catch((function(e){a(e)}))}))},ro=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)}))}))},io=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.delete("/api/v1/payment-methods/".concat(t)).then((function(a){a.data.error||n(zi,t),e(a)})).catch((function(e){a(e)}))}))},oo=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)}))}))},so=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)}))}))},lo=function(e,t){var n=e.commit;e.dispatch,e.state;n(Fi),n(Hi,t.notes)},co=function(e,t){var n=e.commit;e.dispatch,e.state;n(Fi)},uo=function(e){return e.payments},po=function(e){return e.selectedPayments},mo=function(e){return e.selectAllField},fo=function(e){return e.totalPayments},ho=function(e){return e.paymentModes},_o=function(e){return e.selectedNote};const vo={namespaced:!0,state:{payments:[],totalPayments:0,selectAllField:!1,selectedPayments:[],paymentModes:[],selectedNote:null},getters:k,actions:x,mutations:Vi};var go,yo="BOOTSTRAP_ITEMS",bo="ADD_ITEM",wo="UPDATE_ITEM",xo="DELETE_ITEM",ko="DELETE_MULTIPLE_ITEMS",Do="SET_SELECTED_ITEMS",Mo="SET_TOTAL_ITEMS",So="SET_SELECT_ALL_STATE",Co="ADD_ITEM_UNIT",Lo="SET_ITEM_UNITS",To="UPDATE_ITEM_UNIT",Oo="DELETE_ITEM_UNIT";function Eo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jo=(Eo(go={},yo,(function(e,t){e.items=t})),Eo(go,Mo,(function(e,t){e.totalItems=t})),Eo(go,bo,(function(e,t){e.items.push(t.item)})),Eo(go,wo,(function(e,t){var n=e.items.findIndex((function(e){return e.id===t.item.id}));e.items[n]=t.item})),Eo(go,xo,(function(e,t){var n=e.items.findIndex((function(e){return e.id===t}));e.items.splice(n,1)})),Eo(go,ko,(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=[]})),Eo(go,Do,(function(e,t){e.selectedItems=t})),Eo(go,So,(function(e,t){e.selectAllField=t})),Eo(go,Co,(function(e,t){e.itemUnits.push(t.unit)})),Eo(go,Lo,(function(e,t){e.itemUnits=t})),Eo(go,Oo,(function(e,t){var n=e.itemUnits.findIndex((function(e){return e.id===t}));e.itemUnits.splice(n,1)})),Eo(go,To,(function(e,t){var n=e.itemUnits.findIndex((function(e){return e.id==e.id}));e.itemUnits[n]=t})),go);var Ao=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/items",{params:t}).then((function(t){n(yo,t.data.items.data),n(Mo,t.data.itemTotalCount),e(t)})).catch((function(e){a(e)}))}))},Po=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)}))}))},$o=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/items",t).then((function(t){n(bo,t.data),e(t)})).catch((function(e){a(e)}))}))},Yo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.put("/api/v1/items/".concat(t.id),t).then((function(t){n(wo,t.data),e(t)})).catch((function(e){a(e)}))}))},zo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/items/delete",t).then((function(a){n(xo,t),e(a)})).catch((function(e){a(e)}))}))},No=function(e,t){var n=e.commit,a=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/items/delete",{ids:a.selectedItems}).then((function(t){n(ko,a.selectedItems),e(t)})).catch((function(e){t(e)}))}))},Io=function(e,t){var n=e.commit;e.dispatch,e.state;n(So,t)},Fo=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedItems.length===n.items.length)t(Do,[]),t(So,!1);else{var a=n.items.map((function(e){return e.id}));t(Do,a),t(So,!0)}},Ho=function(e,t){var n=e.commit,a=(e.dispatch,e.state);n(Do,t),a.selectedItems.length===a.items.length?n(So,!0):n(So,!1)},Ro=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/units",t).then((function(t){n(Co,t.data),e(t)})).catch((function(e){a(e)}))}))},Bo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.put("/api/v1/units/".concat(t.id),t).then((function(t){n(To,t.data.unit),e(t)})).catch((function(e){a(e)}))}))},qo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/units",{params:t}).then((function(t){n(Lo,t.data.units.data),e(t)})).catch((function(e){a(e)}))}))},Vo=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)}))}))},Wo=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.delete("/api/v1/units/".concat(t)).then((function(a){a.data.error||n(Oo,t),e(a)})).catch((function(e){a(e)}))}))},Uo=function(e){return e.items},Ko=function(e){return e.selectAllField},Zo=function(e){return e.selectedItems},Go=function(e){return e.totalItems},Jo=function(e){return e.itemUnits};const Xo={namespaced:!0,state:{items:[],totalItems:0,selectAllField:!1,selectedItems:[],itemUnits:[]},getters:M,actions:D,mutations:jo};var Qo,es="SHOW_MODAL",ts="SET_TITLE",ns="SET_COMPONENT_NAME",as="HIDE_MODAL",rs="SET_ID",is="SET_SIZE",os="SET_DATA",ss="RESET_DATA",ls="SET_REFRESH_DATA",cs="SET_VARIANT";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 ds=(us(Qo={},es,(function(e,t){e.active=t})),us(Qo,as,(function(e,t){e.active=t})),us(Qo,ts,(function(e,t){e.title=t})),us(Qo,ns,(function(e,t){e.componentName=t})),us(Qo,rs,(function(e,t){e.id=t})),us(Qo,os,(function(e,t){e.data=t})),us(Qo,is,(function(e,t){e.size=t})),us(Qo,ls,(function(e,t){e.refreshData=t})),us(Qo,ss,(function(e){e.content="",e.title="",e.componentName="",e.id="",e.data=null,e.refreshData=null})),us(Qo,cs,(function(e,t){e.variant=t})),Qo);var ps=function(e,t){var n=e.commit;e.dispatch,e.state;n(ns,t.componentName),n(es,!0),t.id&&n(rs,t.id),n(ts,t.title),t.data&&n(os,t.data),t.refreshData&&n(ls,t.refreshData),t.variant&&n(cs,t.variant),t.size&&n(is,t.size)},ms=function(e){var t=e.commit;e.dispatch,e.state;t(ss),t(as,!1)},fs=function(e){var t=e.commit;e.dispatch,e.state;t(ss)},hs=function(e){return e.active},_s=function(e){return e.title},vs=function(e){return e.componentName},gs=function(e){return e.id},ys=function(e){return e.data},bs=function(e){return e.size},ws=function(e){return e.refreshData},xs=function(e){return e.variant};const ks={namespaced:!0,state:{active:!1,content:"",title:"",componentName:"",id:"",size:"md",data:null,refreshData:null,variant:""},getters:C,actions:S,mutations:ds};var Ds,Ms="SET_CUSTOM_FIELDS",Ss="ADD_CUSTOM_FIELDS",Cs="UPDATE_CUSTOM_FIELDS",Ls="DELETE_CUSTOM_FIELDS",Ts="SET_REQUEST_STATE";function Os(e){return function(e){if(Array.isArray(e))return Es(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 Es(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 Es(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 Es(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function As(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?js(Object(n),!0).forEach((function(t){Ps(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ps(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $s=(Ps(Ds={},Ms,(function(e,t){e.customFields=t})),Ps(Ds,Ss,(function(e,t){t=As(As({},t),{},{options:t.options.map((function(e){return{name:e||""}}))}),e.customFields=[].concat(Os(e.customFields),[t])})),Ps(Ds,Cs,(function(e,t){t=As(As({},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)})),Ps(Ds,Ls,(function(e,t){var n=e.customFields.findIndex((function(e){return e.id===t}));e.customFields.splice(n,1)})),Ps(Ds,Ts,(function(e,t){e.isRequestOngoing=t})),Ds);var Ys=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/custom-fields",{params:t}).then((function(t){n(Ms,t.data.customFields.data),e(t)})).catch((function(e){a(e)}))}))},zs=function(e,t){var n=e.commit,a=(e.dispatch,e.state);return new Promise((function(e,r){if(a.isRequestOngoing)return e({requestOnGoing:!0}),!0;n(Ts,!0),window.axios.get("/api/v1/custom-fields",{params:t}).then((function(t){n(Ms,t.data.customFields.data),n(Ts,!1),e(t)})).catch((function(e){n(Ts,!1),r(e)}))}))},Ns=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)}))}))},Is=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/custom-fields",t).then((function(t){n(Ss,t.data.customField),e(t)})).catch((function(e){a(e)}))}))},Fs=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.put("/api/v1/custom-fields/".concat(t.id),t).then((function(a){n(Cs,t),e(a)})).catch((function(e){a(e)}))}))},Hs=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.delete("/api/v1/custom-fields/".concat(t)).then((function(a){n(Ls,t),e(a)})).catch((function(e){a(e)}))}))},Rs=function(e){return e.customFields};const Bs={namespaced:!0,state:{customFields:[],isRequestOngoing:!1},getters:T,actions:L,mutations:$s};var qs,Vs="SET_TAX_TYPES",Ws="ADD_TAX_TYPE",Us="UPDATE_TAX_TYPE",Ks="DELETE_TAX_TYPE";function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Js=(Gs(qs={},Vs,(function(e,t){e.taxTypes=t})),Gs(qs,Ws,(function(e,t){e.taxTypes.push(t.taxType)})),Gs(qs,Us,(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?Zs(Object(n),!0).forEach((function(t){Gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t.taxType))})),Gs(qs,Ks,(function(e,t){var n=e.taxTypes.findIndex((function(e){return e.id===t}));e.taxTypes.splice(n,1)})),qs);var Xs=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/tax-types",{params:t}).then((function(t){n(Vs,t.data.taxTypes.data),e(t)})).catch((function(e){a(e)}))}))},Qs=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(Vs,n.data.taxTypes),e(n)})).catch((function(e){n(e)}))}))},el=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/tax-types",t).then((function(t){n(Ws,t.data),e(t)})).catch((function(e){a(e)}))}))},tl=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)}))}))},nl=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.put("/api/v1/tax-types/".concat(t.id),t).then((function(t){n(Us,t.data),e(t)})).catch((function(e){a(e)}))}))},al=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.delete("/api/v1/tax-types/".concat(t)).then((function(a){a.data.success&&n(Ks,t),e(a)})).catch((function(e){a(e)}))}))},rl=function(e){return e.taxTypes},il=function(e){return function(t){return e.taxTypes.find((function(e){return e.id===t}))}};const ol={namespaced:!0,state:{taxTypes:[]},getters:E,actions:O,mutations:Js};var sl,ll="BOOTSTRAP_USERS",cl="ADD_USER",ul="UPDATE_USER",dl="DELETE_USER",pl="DELETE_MULTIPLE_USERS",ml="SET_SELECTED_USERS",fl="SET_TOTAL_USERS",hl="SET_SELECT_ALL_STATE";function _l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vl=(_l(sl={},ll,(function(e,t){e.users=t})),_l(sl,fl,(function(e,t){e.totalUsers=t})),_l(sl,cl,(function(e,t){e.users.push(t.user)})),_l(sl,ul,(function(e,t){var n=e.users.findIndex((function(e){return e.id===t.user.id}));e.users[n]=t.user})),_l(sl,dl,(function(e,t){var n=e.users.findIndex((function(e){return e.id===t[0]}));e.users.splice(n,1)})),_l(sl,pl,(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=[]})),_l(sl,ml,(function(e,t){e.selectedUsers=t})),_l(sl,hl,(function(e,t){e.selectAllField=t})),sl);var gl=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/users",{params:t}).then((function(t){n(ll,t.data.users.data),n(fl,t.data.users.total),n("search/SET_USER_LISTS",t.data.users.data,{root:!0}),e(t)})).catch((function(e){a(e)}))}))},yl=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)}))}))},bl=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/users",t).then((function(t){n(cl,t.data),e(t)})).catch((function(e){a(e)}))}))},wl=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.put("/api/v1/users/".concat(t.id),t).then((function(t){t.data.success&&n(ul,t.data),e(t)})).catch((function(e){a(e)}))}))},xl=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/users/delete",{users:t}).then((function(a){n(dl,t),e(a)})).catch((function(e){a(e)}))}))},kl=function(e,t){var n=e.commit,a=(e.dispatch,e.state);return new Promise((function(e,t){window.axios.post("/api/v1/users/delete",{users:a.selectedUsers}).then((function(t){n(pl,a.selectedUsers),e(t)})).catch((function(e){t(e)}))}))},Dl=function(e,t){var n=e.commit;e.dispatch,e.state;n(hl,t)},Ml=function(e){var t=e.commit,n=(e.dispatch,e.state);if(n.selectedUsers.length===n.users.length)t(ml,[]),t(hl,!1);else{var a=n.users.map((function(e){return e.id}));t(ml,a),t(hl,!0)}},Sl=function(e,t){var n=e.commit,a=(e.dispatch,e.state);n(ml,t),a.selectedUsers.length===a.users.length?n(hl,!0):n(hl,!1)},Cl=function(e){return e.users},Ll=function(e){return e.selectAllField},Tl=function(e){return e.selectedUsers},Ol=function(e){return e.totalUsers};const El={namespaced:!0,state:{users:[],totalUsers:0,selectAllField:!1,selectedUsers:[]},getters:A,actions:j,mutations:vl};var jl,Al="SET_BACKUPS";function Pl(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=(Pl(jl={},Al,(function(e,t){e.backups=t.backups,e.backupDisks=t.disks})),Pl(jl,"SET_BACKUP_DISKS",(function(e,t){e.backupDisksInfo=t.disks})),Pl(jl,"ADD_BACKUPS",(function(e,t){e.backups.push(t.backup)})),Pl(jl,"DELETE_BACKUPS",(function(e,t){var n=e.backups.findIndex((function(e){return e.id===t}));e.backups.splice(n,1)})),jl);var Yl=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/backups",{params:t}).then((function(t){n(Al,t.data),e(t)})).catch((function(e){a(e)}))}))},zl=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)}))}))},Nl=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)}))}))},Il=function(e){return e.backups},Fl=function(e){return e.backupDisks},Hl=function(e){return e.backupDisksInfo};const Rl={namespaced:!0,state:{backups:[],backupDisks:[],backupDisksInfo:[]},getters:$,actions:P,mutations:$l};var Bl,ql="SET_DISKS",Vl="SET_DISK_DRIVER",Wl="DELETE_DISK";function Ul(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kl=(Ul(Bl={},ql,(function(e,t){e.disks=t})),Ul(Bl,Vl,(function(e,t){e.diskDrivers=t.drivers})),Ul(Bl,"ADD_DISKS",(function(e,t){e.disks.push(t.disk)})),Ul(Bl,Wl,(function(e,t){var n=e.disks.findIndex((function(e){return e.id===t}));e.disks.splice(n,1)})),Bl);var Zl=function(e,t){var n=e.commit;return new Promise((function(e,a){window.axios.get("/api/v1/disks",{params:t}).then((function(t){n(ql,t.data.disks.data),e(t)})).catch((function(e){a(e)}))}))},Gl=function(e){var t=e.commit;return new Promise((function(e,n){window.axios.get("/api/v1/disk/drivers").then((function(n){t(Vl,n.data),e(n)})).catch((function(e){n(e)}))}))},Jl=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)}))}))},Xl=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)}))}))},Ql=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)}))}))},ec=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.delete("/api/v1/disks/".concat(t)).then((function(a){a.data.success&&n(Wl,t),e(a)})).catch((function(e){a(e)}))}))},tc=function(e){return e.disks},nc=function(e){return e.diskDrivers};const ac={namespaced:!0,state:{disks:[],diskDrivers:[]},getters:z,actions:Y,mutations:Kl};var rc="SET_ESTIMATE_TEMPLATES";const ic=(lc=function(e,t){e.estimateTemplates=t},(sc=rc)in(oc={})?Object.defineProperty(oc,sc,{value:lc,enumerable:!0,configurable:!0,writable:!0}):oc[sc]=lc,oc);var oc,sc,lc,cc=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/estimates/templates",{params:t}).then((function(t){n(rc,t.data.templates),e(t)})).catch((function(e){a(e)}))}))},uc=function(e){return e.estimateTemplates};const dc={namespaced:!0,state:{estimateTemplates:[]},getters:I,actions:N,mutations:ic};var pc="SET_INVOICE_TEMPLATES";const mc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},pc,(function(e,t){e.invoiceTemplates=t}));var fc=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/invoices/templates",{params:t}).then((function(t){n(pc,t.data.invoiceTemplates),e(t)})).catch((function(e){a(e)}))}))},hc=function(e){return e.invoiceTemplates};const _c={namespaced:!0,state:{invoiceTemplates:[]},getters:H,actions:F,mutations:mc};var vc;function gc(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=(gc(vc={},Mt,(function(e,t){e.customerList=t})),gc(vc,St,(function(e,t){e.userList=t})),vc);var bc=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/search",{params:t}).then((function(t){n(Mt,t.data.customers.data),n(St,t.data.users.data),e(t)})).catch((function(e){a(e)}))}))},wc=function(e){return e.customerList?e.customerList:[]},xc=function(e){return e.userList?e.userList:[]};const kc={namespaced:!0,state:{userList:[],customerList:[]},getters:B,actions:R,mutations:yc};var Dc,Mc="BOOTSTRAP_NOTES",Sc="ADD_NOTE",Cc="UPDATE_NOTE",Lc="DELETE_NOTE";function Tc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oc=(Tc(Dc={},Mc,(function(e,t){e.notes=t})),Tc(Dc,Sc,(function(e,t){e.notes.push(t.note)})),Tc(Dc,Cc,(function(e,t){var n=e.notes.findIndex((function(e){return e.id===t.note.id}));e.notes[n]=t.note})),Tc(Dc,Lc,(function(e,t){var n=e.notes.findIndex((function(e){return e.id===t}));e.notes.splice(n,1)})),Dc);var Ec=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.get("/api/v1/notes",{params:t}).then((function(t){n(Mc,t.data.notes.data),e(t)})).catch((function(e){a(e)}))}))},jc=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)}))}))},Ac=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.post("/api/v1/notes",t).then((function(t){n(Sc,t.data),e(t)})).catch((function(e){a(e)}))}))},Pc=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.put("/api/v1/notes/".concat(t.id),t).then((function(t){n(Cc,t.data),e(t)})).catch((function(e){a(e)}))}))},$c=function(e,t){var n=e.commit;e.dispatch,e.state;return new Promise((function(e,a){window.axios.delete("/api/v1/notes/".concat(t)).then((function(a){n(Lc,t),e(a)})).catch((function(e){a(e)}))}))},Yc=function(e){return e.notes};const zc={namespaced:!0,state:{notes:[]},getters:V,actions:q,mutations:Oc};var Nc,Ic="SHOW_NOTIFICATION",Fc="HIDE_NOTIFICATION",Hc="SET_TITLE",Rc="SET_AUTO_HIDE",Bc="SET_MESSAGE",qc="SET_NOTIFICATION_TYPE",Vc="RESET_DATA";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 Uc=(Wc(Nc={},Ic,(function(e,t){e.active=t})),Wc(Nc,Fc,(function(e,t){e.active=t})),Wc(Nc,Hc,(function(e,t){e.title=t})),Wc(Nc,Rc,(function(e,t){e.autoHide=t})),Wc(Nc,Bc,(function(e,t){e.message=t})),Wc(Nc,qc,(function(e,t){e.type=t})),Wc(Nc,Vc,(function(e){e.active=!1,e.description="",e.title=""})),Nc);var Kc=function(e,t){var n=e.commit;e.dispatch,e.state;n(Ic,!0),t.type&&n(qc,t.type),t.title&&n(Hc,t.title),t.autoHide&&n(Rc,t.autoHide),t.message&&n(Bc,t.message)},Zc=function(e){var t=e.commit;e.dispatch,e.state;t(Vc),t(Fc,!1)},Gc=function(e){var t=e.commit;e.dispatch,e.state;t(Vc)},Jc=function(e){return e.active},Xc=function(e){return e.title},Qc=function(e){return e.message},eu=function(e){return e.autoHide},tu=function(e){return e.type};const nu={namespaced:!0,state:{active:!1,autoHide:!0,title:"",message:"",type:""},getters:U,actions:W,mutations:Uc};Z.default.use(J());const au=new(J().Store)({strict:!0,state:{languages:[],timeZones:[],dateFormats:[],fiscalYears:[],currencies:[],countries:[],isAppLoaded:!1,isSidebarOpen:!1},getters:a,mutations:he,actions:Le,modules:{auth:Ie,user:Ze,category:dt,company:hn,customer:qt,dashboard:Un,estimate:er,item:Xo,invoice:Li,expense:Cr,modal:ks,customFields:Bs,payment:vo,taxType:ol,users:El,backup:Rl,disks:ac,estimateTemplate:dc,invoiceTemplate:_c,search:kc,notes:zc,notification:nu}})},7113:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const a={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 a={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]},r=t((function(e){var t={};for(var n in a)a.hasOwnProperty(n)&&(t[a[n]]=n);var r=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 r)if(r.hasOwnProperty(i)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=r[i].channels,s=r[i].labels;delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:o}),Object.defineProperty(r[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)}r.rgb.hsl=function(e){var t,n,a=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.min(a,r,i),s=Math.max(a,r,i),l=s-o;return s===o?t=0:a===s?t=(r-i)/l:r===s?t=2+(i-a)/l:i===s&&(t=4+(a-r)/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]},r.rgb.hsv=function(e){var t,n,a,r,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?r=i=0:(i=u/c,t=d(o),n=d(s),a=d(l),o===c?r=a-n:s===c?r=1/3+t-a:l===c&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*i,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],a=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,a))*100,100*(a=1-1/255*Math.max(t,Math.max(n,a)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,a=e[1]/255,r=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-a,1-r)))/(1-t)||0),100*((1-a-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,i=1/0;for(var o in a)if(a.hasOwnProperty(o)){var s=l(e,a[o]);s<i&&(i=s,r=o)}return r},r.keyword.rgb=function(e){return a[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,a=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*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)),100*(.2126*t+.7152*n+.0722*a),100*(.0193*t+.1192*n+.9505*a)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],a=t[1],i=t[2];return a/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(n-a),200*(a-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.hsl.rgb=function(e){var t,n,a,r,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),r=[0,0,0];for(var c=0;c<3;c++)(a=o+1/3*-(c-1))<0&&a++,a>1&&a--,i=6*a<1?t+6*(n-t)*a:2*a<1?n:3*a<2?t+(n-t)*(2/3-a)*6:t,r[c]=255*i;return r},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,a=e[2]/100,r=n,i=Math.max(a,.01);return n*=(a*=2)<=1?a:2-a,r*=i<=1?i:2-i,[t,100*(0===a?2*r/(i+r):2*n/(a+n)),(a+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,a=e[2]/100,r=Math.floor(t)%6,i=t-Math.floor(t),o=255*a*(1-n),s=255*a*(1-n*i),l=255*a*(1-n*(1-i));switch(a*=255,r){case 0:return[a,l,o];case 1:return[s,a,o];case 2:return[o,a,l];case 3:return[o,s,a];case 4:return[l,o,a];case 5:return[a,o,s]}},r.hsv.hsl=function(e){var t,n,a,r=e[0],i=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return a=(2-i)*o,n=i*s,[r,100*(n=(n/=(t=(2-i)*s)<=1?t:2-t)||0),100*(a/=2)]},r.hwb.rgb=function(e){var t,n,a,r,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),a=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(a=1-a),r=c+a*((n=1-u)-c),t){default:case 6:case 0:i=n,o=r,s=c;break;case 1:i=r,o=n,s=c;break;case 2:i=c,o=n,s=r;break;case 3:i=c,o=r,s=n;break;case 4:i=r,o=c,s=n;break;case 5:i=n,o=c,s=r}return[255*i,255*o,255*s]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r))]},r.xyz.rgb=function(e){var t,n,a,r=e[0]/100,i=e[1]/100,o=e[2]/100;return n=-.9689*r+1.8758*i+.0415*o,a=.0557*r+-.204*i+1.057*o,t=(t=3.2406*r+-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,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(a=Math.min(Math.max(0,a),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],a=e[2];return n/=100,a/=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-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},r.lab.xyz=function(e){var t,n,a,r=e[0];t=e[1]/500+(n=(r+16)/116),a=n-e[2]/200;var i=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(a,3);return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,[t*=95.047,n*=100,a*=108.883]},r.lab.lch=function(e){var t,n=e[0],a=e[1],r=e[2];return(t=360*Math.atan2(r,a)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(a*a+r*r),t]},r.lch.lab=function(e){var t,n=e[0],a=e[1];return t=e[2]/360*2*Math.PI,[n,a*Math.cos(t),a*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],a=e[2],i=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],a=e[2];return t===n&&n===a?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(a/255*5)},r.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]},r.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]},r.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},r.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 a=parseInt(n,16);return[a>>16&255,a>>8&255,255&a]},r.rgb.hcg=function(e){var t,n=e[0]/255,a=e[1]/255,r=e[2]/255,i=Math.max(Math.max(n,a),r),o=Math.min(Math.min(n,a),r),s=i-o;return t=s<=0?0:i===n?(a-r)/s%6:i===a?2+(r-n)/s:4+(n-a)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=1,r=0;return(a=n<.5?2*t*n:2*t*(1-n))<1&&(r=(n-.5*a)/(1-a)),[e[0],100*a,100*r]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,a=t*n,r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,a=e[2]/100;if(0===n)return[255*a,255*a,255*a];var r=[0,0,0],i=t%1*6,o=i%1,s=1-o,l=0;switch(Math.floor(i)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return l=(1-n)*a,[255*(n*r[0]+l),255*(n*r[1]+l),255*(n*r[2]+l)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},r.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)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,a=n-t,r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.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},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function i(){for(var e={},t=Object.keys(r),n=t.length,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}function o(e){var t=i(),n=[e];for(t[e].distance=0;n.length;)for(var a=n.pop(),o=Object.keys(r[a]),s=o.length,l=0;l<s;l++){var c=o[l],u=t[c];-1===u.distance&&(u.distance=t[a].distance+1,u.parent=a,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],a=r[t[e].parent][e],i=t[e].parent;t[i].parent;)n.unshift(t[i].parent),a=s(r[t[i].parent][i],a),i=t[i].parent;return a.conversion=n,a}r.rgb,r.hsl,r.hsv,r.hwb,r.cmyk,r.xyz,r.lab,r.lch,r.hex,r.keyword,r.ansi16,r.ansi256,r.hcg,r.apple,r.gray;var c=function(e){for(var t=o(e),n={},a=Object.keys(t),r=a.length,i=0;i<r;i++){var s=a[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 a=n.length,r=0;r<a;r++)n[r]=Math.round(n[r]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}Object.keys(r).forEach((function(e){u[e]={},Object.defineProperty(u[e],"channels",{value:r[e].channels}),Object.defineProperty(u[e],"labels",{value:r[e].labels});var t=c(e);Object.keys(t).forEach((function(n){var a=t[n];u[e][n]=p(a),u[e][n].raw=d(a)}))}));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,a=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,r=/^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(a)){for(u=0;u<o.length;u++)o[u]=parseInt(l[u+1]);s=parseFloat(l[4])}else if(l=e.match(r)){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 a=parseFloat(n[4]);return[E(parseInt(n[1]),0,360),E(parseFloat(n[2]),0,100),E(parseFloat(n[3]),0,100),E(isNaN(a)?1:a,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 a=parseFloat(n[4]);return[E(parseInt(n[1]),0,360),E(parseFloat(n[2]),0,100),E(parseFloat(n[3]),0,100),E(isNaN(a)?1:a,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],"#"+j(e[0])+j(e[1])+j(e[2])+(t>=0&&t<1?j(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 A[e.slice(0,3)]}function E(e,t,n){return Math.min(Math.max(t,e),n)}function j(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var A={};for(var P in f)A[f[P]]=P;var $=function(e){return e instanceof $?e:this instanceof $?(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 $(e);var t};$.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 a=e[n]/255;t[n]=a<=.03928?a/12.92:Math.pow((a+.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,a=e,r=void 0===t?.5:t,i=2*r-1,o=n.alpha()-a.alpha(),s=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*a.red(),s*n.green()+l*a.green(),s*n.blue()+l*a.blue()).alpha(n.alpha()*r+a.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new $,a=this.values,r=n.values;for(var i in a)a.hasOwnProperty(i)&&(e=a[i],"[object Array]"===(t={}.toString.call(e))?r[i]=e.slice(0):"[object Number]"===t?r[i]=e:console.error("unexpected color value:",e));return n}},$.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},$.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},$.prototype.getValues=function(e){for(var t=this.values,n={},a=0;a<e.length;a++)n[e.charAt(a)]=t[e][a];return 1!==t.alpha&&(n.a=t.alpha),n},$.prototype.setValues=function(e,t){var n,a,r=this.values,i=this.spaces,o=this.maxes,s=1;if(this.valid=!0,"alpha"===e)s=t;else if(t.length)r[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++)r[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++)r[e][n]=t[l[n]];s=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===s?r.alpha:s)),"alpha"===e)return!1;for(n=0;n<e.length;n++)a=Math.max(0,Math.min(o[e][n],r[e][n])),r[e][n]=Math.round(a);for(var c in i)c!==e&&(r[c]=m[e][c](r[e]));return!0},$.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)},$.prototype.setChannel=function(e,t,n){var a=this.values[e];return void 0===n?a[t]:(n===a[t]||(a[t]=n,this.setValues(e,a)),this)},"undefined"!=typeof window&&(window.Color=$);var Y=$;function z(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var N={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 N.valueOrDefault(N.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,a){var r,i,o;if(N.isArray(e))if(i=e.length,a)for(r=i-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<i;r++)t.call(n,e[r],r);else if(N.isObject(e))for(i=(o=Object.keys(e)).length,r=0;r<i;r++)t.call(n,e[o[r]],o[r])},arrayEquals:function(e,t){var n,a,r,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,a=e.length;n<a;++n)if(r=e[n],i=t[n],r instanceof Array&&i instanceof Array){if(!N.arrayEquals(r,i))return!1}else if(r!==i)return!1;return!0},clone:function(e){if(N.isArray(e))return e.map(N.clone);if(N.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),a=n.length,r=0;r<a;++r)t[n[r]]=N.clone(e[n[r]]);return t}return e},_merger:function(e,t,n,a){if(z(e)){var r=t[e],i=n[e];N.isObject(r)&&N.isObject(i)?N.merge(r,i,a):t[e]=N.clone(i)}},_mergerIf:function(e,t,n){if(z(e)){var a=t[e],r=n[e];N.isObject(a)&&N.isObject(r)?N.mergeIf(a,r):t.hasOwnProperty(e)||(t[e]=N.clone(r))}},merge:function(e,t,n){var a,r,i,o,s,l=N.isArray(t)?t:[t],c=l.length;if(!N.isObject(e))return e;for(a=(n=n||{}).merger||N._merger,r=0;r<c;++r)if(t=l[r],N.isObject(t))for(s=0,o=(i=Object.keys(t)).length;s<o;++s)a(i[s],e,t,n);return e},mergeIf:function(e,t){return N.merge(e,t,{merger:N._mergerIf})},extend:Object.assign||function(e){return N.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)},a=function(){this.constructor=n};return a.prototype=t.prototype,n.prototype=new a,n.extend=N.inherits,e&&N.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,a){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+a+'" instead')}},I=N;N.callCallback=N.callback,N.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},N.getValueOrDefault=N.valueOrDefault,N.getValueAtIndexOrDefault=N.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,a=1;return 0===e?0:1===e?1:(n||(n=.3),a<1?(a=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/a),-a*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,a=1;return 0===e?0:1===e?1:(n||(n=.3),a<1?(a=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/a),a*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,a=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),a<1?(a=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/a),e<1?a*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:a*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,a,r,i){if(i){var o=Math.min(i,r/2,a/2),s=t+o,l=n+o,c=t+a-o,u=n+r-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,a,r)},drawPoint:function(e,t,n,a,r,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(a,r),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(a,r,n,0,q),e.closePath();break;case"triangle":e.moveTo(a+Math.sin(d)*n,r-Math.cos(d)*n),d+=U,e.lineTo(a+Math.sin(d)*n,r-Math.cos(d)*n),d+=U,e.lineTo(a+Math.sin(d)*n,r-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(a-s,r-l,u,d-R,d-V),e.arc(a+l,r-s,u,d-V,d),e.arc(a+s,r+l,u,d,d+V),e.arc(a-l,r+s,u,d+V,d+R),e.closePath();break;case"rect":if(!i){c=Math.SQRT1_2*n,e.rect(a-c,r-c,2*c,2*c);break}d+=W;case"rectRot":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(a-s,r-l),e.lineTo(a+l,r-s),e.lineTo(a+s,r+l),e.lineTo(a-l,r+s),e.closePath();break;case"crossRot":d+=W;case"cross":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(a-s,r-l),e.lineTo(a+s,r+l),e.moveTo(a+l,r-s),e.lineTo(a-l,r+s);break;case"star":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(a-s,r-l),e.lineTo(a+s,r+l),e.moveTo(a+l,r-s),e.lineTo(a-l,r+s),d+=W,s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(a-s,r-l),e.lineTo(a+s,r+l),e.moveTo(a+l,r-s),e.lineTo(a-l,r+s);break;case"line":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(a-s,r-l),e.lineTo(a+s,r+l);break;case"dash":e.moveTo(a,r),e.lineTo(a+Math.cos(d)*n,r+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,a){var r=n.steppedLine;if(r){if("middle"===r){var i=(t.x+n.x)/2;e.lineTo(i,a?n.y:t.y),e.lineTo(i,a?t.y:n.y)}else"after"===r&&!a||"after"!==r&&a?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(a?t.controlPointPreviousX:t.controlPointNextX,a?t.controlPointPreviousY:t.controlPointNextY,a?n.controlPointNextX:n.controlPointPreviousX,a?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,a,r;return I.isObject(e)?(t=+e.top||0,n=+e.right||0,a=+e.bottom||0,r=+e.left||0):t=n=a=r=+e||0,{top:t,right:n,bottom:a,left:r,height:t+a,width:r+n}},_parseFont:function(e){var t=J.global,n=X(e.fontSize,t.defaultFontSize),a={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 a.string=Q(a),a},resolve:function(e,t,n,a){var r,i,o,s=!0;for(r=0,i=e.length;r<i;++r)if(void 0!==(o=e[r])&&(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 a&&!s&&(a.cacheable=!1),o}},te={_factorize:function(e){var t,n=[],a=Math.sqrt(e);for(t=1;t<a;t++)e%t==0&&(n.push(t),n.push(e/t));return a===(0|a)&&n.push(a),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 ae=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}}},re=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?ae(t,n):re()},overrideTextDirection:function(e,t){var n,a;"ltr"!==t&&"rtl"!==t||(a=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=a)},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,a){var r,i,o,s,l,c,u,d,p,m=Object.keys(n);for(r=0,i=m.length;r<i;++r)if(c=n[o=m[r]],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,a).rgbString();continue}}else if(ie.isFinite(l)&&ie.isFinite(c)){t[o]=l+(c-l)*a;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,a=t._start,r=t._view;return n&&1!==e?(r||(r=t._view={}),a||(a=t._start={}),de(a,r,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,a){var r,i,o=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,a||(e.animating=!0),r=0,i=o.length;r<i;++r)if(o[r].chart===e)return void(o[r]=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,a,r=this.animations,i=0;i<r.length;)t=(e=r[i]).chart,n=e.numSteps,a=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(a,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,r.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),a=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),r=a.apply(this,t);return ie.each(e._chartjs.listeners,(function(e){"function"==typeof e[n]&&e[n].apply(e,t)})),r}})})))}function be(e,t){var n=e._chartjs;if(n){var a=n.listeners,r=a.indexOf(t);-1!==r&&a.splice(r,1),a.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,a=n.scales,r=e.getDataset(),i=n.options.scales;null!==t.xAxisID&&t.xAxisID in a&&!r.xAxisID||(t.xAxisID=r.xAxisID||i.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in a&&!r.yAxisID||(t.yAxisID=r.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,a=n.getMeta(),r=n.getDataset().data||[],i=a.data;for(e=0,t=r.length;e<t;++e)i[e]=i[e]||n.createMetaData(e);a.dataset=a.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||[],a=n.length,r=0;r<a;++r)n[r].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,a=0;for(e.dataset&&e.dataset.draw();a<n;++a)t[a].draw()},getStyle:function(e){var t,n=this,a=n.getMeta(),r=a.dataset;return n._configure(),r&&void 0===e?t=n._resolveDatasetElementOptions(r||{}):(e=e||0,t=n._resolveDataElementOptions(a.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,a,r,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,a=d.length;n<a;++n)r=d[n],i=t?"hover"+r.charAt(0).toUpperCase()+r.slice(1):r,p[r]=ve([c[i],l[i],u[i]],m);return p},_resolveDataElementOptions:function(e,t){var n=this,a=e&&e.custom,r=n._cachedDataOpts;if(r&&!a)return r;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:!a};if(a=a||{},ie.isArray(p))for(o=0,s=p.length;o<s;++o)m[l=p[o]]=ve([a[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([a[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,a=e.custom||{},r=e._model,i=ie.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=ve([a.hoverBackgroundColor,t.hoverBackgroundColor,i(r.backgroundColor)],void 0,n),r.borderColor=ve([a.hoverBorderColor,t.hoverBorderColor,i(r.borderColor)],void 0,n),r.borderWidth=ve([a.hoverBorderWidth,t.hoverBorderWidth,r.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,a,r,i,o=this.getMeta().dataset,s={};if(o){for(i=o._model,r=this._resolveDatasetElementOptions(o,!0),e=0,t=(a=Object.keys(r)).length;e<t;++e)s[n=a[e]]=i[n],i[n]=r[n];o.$previousStyle=s}},resyncElements:function(){var e=this,t=e.getMeta(),n=e.getDataset().data,a=t.data.length,r=n.length;r<a?t.data.splice(r,a-r):r>a&&e.insertElements(a,r-a)},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,a=t.endAngle,r=t.pixelMargin,i=r/t.outerRadius,o=t.x,s=t.y;e.beginPath(),e.arc(o,s,t.outerRadius,n-i,a+i),t.innerRadius>r?(i=r/t.innerRadius,e.arc(o,s,t.innerRadius-r,a+i,n-i,!0)):e.arc(o,s,r,a+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function Me(e,t,n,a){var r,i=n.endAngle;for(a&&(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),r=0;r<n.fullCircles;++r)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+ke),r=0;r<n.fullCircles;++r)e.stroke()}function Se(e,t,n){var a="inner"===t.borderAlign;a?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&Me(e,t,n,a),a&&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 a=ie.getAngleFromPoint(n,{x:e,y:t}),r=a.angle,i=a.distance,o=n.startAngle,s=n.endAngle;s<o;)s+=ke;for(;r>s;)r-=ke;for(;r<o;)r+=ke;var l=r>=o&&r<=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,a="inner"===n.borderAlign?.33:0,r={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-a,0),pixelMargin:a,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/ke)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+ke,t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),e=0;e<r.fullCircles;++e)t.fill();r.endAngle=r.startAngle+n.circumference%ke}t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&Se(t,n,r),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,a=this,r=a._view,i=a._chart.ctx,o=r.spanGaps,s=a._children.slice(),l=J.global,c=l.elements.line,u=-1,d=a._loop;if(s.length){if(a._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=r.borderCapStyle||c.borderCapStyle,i.setLineDash&&i.setLineDash(r.borderDash||c.borderDash),i.lineDashOffset=Le(r.borderDashOffset,c.borderDashOffset),i.lineJoin=r.borderJoinStyle||c.borderJoinStyle,i.lineWidth=Le(r.borderWidth,c.borderWidth),i.strokeStyle=r.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,je=J.global.defaultColor;function Ae(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}function Pe(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:je,borderColor:je,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var $e=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:Ae,inXRange:Ae,inYRange:Pe,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,a=t.pointStyle,r=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,a,i,o,s,r))}}),Ye=J.global.defaultColor;function ze(e){return e&&void 0!==e.width}function Ne(e){var t,n,a,r,i;return ze(e)?(i=e.width/2,t=e.x-i,n=e.x+i,a=Math.min(e.y,e.base),r=Math.max(e.y,e.base)):(i=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),a=e.y-i,r=e.y+i),{left:t,top:a,right:n,bottom:r}}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 a,r,i,o,s=e.borderWidth,l=Fe(e);return ie.isObject(s)?(a=+s.top||0,r=+s.right||0,i=+s.bottom||0,o=+s.left||0):a=r=i=o=+s||0,{t:l.top||a<0?0:a>n?n:a,r:l.right||r<0?0:r>t?t:r,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=Ne(e),n=t.right-t.left,a=t.bottom-t.top,r=He(e,n/2,a/2);return{outer:{x:t.left,y:t.top,w:n,h:a},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:a-r.t-r.b}}}function Be(e,t,n){var a=null===t,r=null===n,i=!(!e||a&&r)&&Ne(e);return i&&(a||t>=i.left&&t<=i.right)&&(r||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),a=n.outer,r=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(a.x,a.y,a.w,a.h),a.w===r.w&&a.h===r.h||(e.save(),e.beginPath(),e.rect(a.x,a.y,a.w,a.h),e.clip(),e.fillStyle=t.borderColor,e.rect(r.x,r.y,r.w,r.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 ze(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 ze(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 ze(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=$e,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,a,r,i,o=e._length;for(r=1,i=t.length;r<i;++r)o=Math.min(o,Math.abs(t[r]-t[r-1]));for(r=0,i=e.getTicks().length;r<i;++r)a=e.getPixelForTick(r),o=r>0?Math.min(o,Math.abs(a-n)):o,n=a;return o}function Qe(e,t,n){var a,r,i=n.barThickness,o=t.stackCount,s=t.pixels[e],l=ie.isNullOrUndef(i)?Xe(t.scale,t.pixels):-1;return ie.isNullOrUndef(i)?(a=l*n.categoryPercentage,r=n.barPercentage):(a=i*o,r=1),{chunk:a/o,ratio:r,start:s-a/2}}function et(e,t,n){var a,r=t.pixels,i=r[e],o=e>0?r[e-1]:null,s=e<r.length-1?r[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),a=i-(i-Math.min(o,s))/2*l,{chunk:Math.abs(s-o)/2*l/t.stackCount,ratio:n.barPercentage,start:a}}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,a=this,r=a.getMeta().data;for(a._ruler=a.getRuler(),t=0,n=r.length;t<n;++t)a.updateElement(r[t],t,e)},updateElement:function(e,t,n){var a=this,r=a.getMeta(),i=a.getDataset(),o=a._resolveDataElementOptions(e,t);e._xScale=a.getScaleForId(r.xAxisID),e._yScale=a.getScaleForId(r.yAxisID),e._datasetIndex=a.index,e._index=t,e._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:i.label,label:a.chart.data.labels[t]},ie.isArray(i.data[t])&&(e._model.borderSkipped=null),a._updateElementGeometry(e,t,n,o),e.pivot()},_updateElementGeometry:function(e,t,n,a){var r=this,i=e._model,o=r._getValueScale(),s=o.getBasePixel(),l=o.isHorizontal(),c=r._ruler||r.getRuler(),u=r.calculateBarValuePixels(r.index,t,a),d=r.calculateBarIndexPixels(r.index,t,c,a);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,a=this,r=a._getIndexScale(),i=r._getMatchingVisibleMetas(a._type),o=r.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),a=void 0!==t?n.indexOf(t):-1;return-1===a?n.length-1:a},getRuler:function(){var e,t,n=this,a=n._getIndexScale(),r=[];for(e=0,t=n.getMeta().data.length;e<t;++e)r.push(a.getPixelForValue(null,e,n.index));return{pixels:r,start:a._startPixel,end:a._endPixel,stackCount:n.getStackCount(),scale:a}},calculateBarValuePixels:function(e,t,n){var a,r,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(a=0;a<x&&(r=h[a]).index!==e;++a)r.stack===y&&(i=void 0===(c=p._parseValue(f[r.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,a){var r=this,i="flex"===a.barThickness?et(t,n,a):Qe(t,n,a),o=r.getStackIndex(e,r.getMeta().stack),s=i.start+i.chunk*o+i.chunk/2,l=Math.min(Je(a.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(),a=e.getMeta().data,r=e.getDataset(),i=a.length,o=0;for(ie.canvas.clipArea(t.ctx,t.chartArea);o<i;++o){var s=n._parseValue(r.data[o]);isNaN(s.min)||isNaN(s.max)||a[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,a=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(a.minBarLength,t.minBarLength),t}}),nt=ie.valueOrDefault,at=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||"",a=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+a.r+")"}}}});var rt=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,a){t.updateElement(n,a,e)}))},updateElement:function(e,t,n){var a=this,r=a.getMeta(),i=e.custom||{},o=a.getScaleForId(r.xAxisID),s=a.getScaleForId(r.yAxisID),l=a._resolveDataElementOptions(e,t),c=a.getDataset().data[t],u=a.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,a=ie.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=nt(n.hoverBackgroundColor,a(n.backgroundColor)),t.borderColor=nt(n.hoverBorderColor,a(n.borderColor)),t.borderWidth=nt(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,a=n.chart,r=n.getDataset(),i=e.custom||{},o=r.data[t]||{},s=xe.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:a,dataIndex:t,dataset:r,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=ie.extend({},s)),s.radius=at([i.radius,o.r,n._config.radius,a.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,a,r=document.createElement("ul"),i=e.data,o=i.datasets,s=i.labels;if(r.setAttribute("class",e.id+"-legend"),o.length)for(t=0,n=o[0].data.length;t<n;++t)(a=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&a.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,a){var r=e.getDatasetMeta(0),i=r.controller.getStyle(a);return{text:n,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(t.datasets[0].data[a])||r.data[a].hidden,index:a}})):[]}},onClick:function(e,t){var n,a,r,i=t.index,o=this.chart;for(n=0,a=(o.data.datasets||[]).length;n<a;++n)(r=o.getDatasetMeta(n)).data[i]&&(r.data[i].hidden=!r.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],a=": "+t.datasets[e.datasetIndex].data[e.index];return ie.isArray(n)?(n=n.slice())[0]+=a:n+=a,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,a,r,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(a=0,r=f.length;a<r;++a)f[a]._options=i._resolveDataElementOptions(f[a],a);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),a=0,r=f.length;a<r;++a)i.updateElement(f[a],a,e)},updateElement:function(e,t,n){var a=this,r=a.chart,i=r.chartArea,o=r.options,s=o.animation,l=(i.left+i.right)/2,c=(i.top+i.bottom)/2,u=o.rotation,d=o.rotation,p=a.getDataset(),m=n&&s.animateRotate||e.hidden?0:a.calculateCircumference(p.data[t])*(o.circumference/st),f=n&&s.animateScale?0:a.innerRadius,h=n&&s.animateScale?0:a.outerRadius,_=e._options||{};ie.extend(e,{_datasetIndex:a.index,_index:t,_model:{backgroundColor:_.backgroundColor,borderColor:_.borderColor,borderWidth:_.borderWidth,borderAlign:_.borderAlign,x:l+r.offsetX,y:c+r.offsetY,startAngle:u,endAngle:d,circumference:m,outerRadius:h,innerRadius:f,label:ie.valueAtIndexOrDefault(p.label,t,r.data.labels[t])}});var v=e._model;n&&s.animateRotate||(v.startAngle=0===t?o.rotation:a.getMeta().data[t-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),a=0;return ie.each(n.data,(function(n,r){e=t.data[r],isNaN(e)||n.hidden||(a+=Math.abs(e))})),a},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,a,r,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=(a=d.getDatasetMeta(t)).data,t!==c.index&&(i=a.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)r=e[t],i?(i._configure(),o=i._resolveDataElementOptions(r,t)):o=r._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,a=ie.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=it(n.hoverBackgroundColor,a(n.backgroundColor)),t.borderColor=it(n.hoverBorderColor,a(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||{},a=n.reverse,r=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:a?i:r,end:a?r:i}}function ht(e,t,n){var a=n/2,r=ft(e,a),i=ft(t,a);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function _t(e){var t,n,a,r;return ie.isObject(e)?(t=e.top,n=e.right,a=e.bottom,r=e.left):t=n=a=r=e,{top:t,right:n,bottom:a,left:r}}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,a=this,r=a.getMeta(),i=r.dataset,o=r.data||[],s=a.chart.options,l=a._config,c=a._showLine=dt(l.showLine,s.showLines);for(a._xScale=a.getScaleForId(r.xAxisID),a._yScale=a.getScaleForId(r.yAxisID),c&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),i._scale=a._yScale,i._datasetIndex=a.index,i._children=o,i._model=a._resolveDatasetElementOptions(i),i.pivot()),t=0,n=o.length;t<n;++t)a.updateElement(o[t],t,e);for(c&&0!==i._model.tension&&a.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var a,r,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);a=d.getPixelForValue("object"==typeof u?u:NaN,t,c),r=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:a,y:r,skip:s.skip||isNaN(a)||isNaN(r),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,a=e.custom||{},r=t.chart.options,i=r.elements.line,o=xe.prototype._resolveDatasetElementOptions.apply(t,arguments);return o.spanGaps=dt(n.spanGaps,r.spanGaps),o.tension=dt(n.lineTension,i.tension),o.steppedLine=pt([a.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 a,r,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,a=0;a<c&&(i=l[a]).index!==n;++a)r=d.data.datasets[i.index],"line"===i.type&&i.yAxisID===p.id&&((o=+p.getRightValue(r.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,a,r=this,i=r.chart,o=r.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,a=ie.splineCurve(ie.previousItem(c,e)._model,n,ie.nextItem(c,e)._model,s.tension),n.controlPointPreviousX=a.previous.x,n.controlPointPreviousY=a.previous.y,n.controlPointNextX=a.next.x,n.controlPointNextY=a.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,a=t.getMeta(),r=a.data||[],i=n.chartArea,o=n.canvas,s=0,l=r.length;for(t._showLine&&(e=a.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}),a.dataset.draw(),ie.canvas.unclipArea(n.ctx));s<l;++s)r[s].draw(i)},setHoverStyle:function(e){var t=e._model,n=e._options,a=ie.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=dt(n.hoverBackgroundColor,a(n.backgroundColor)),t.borderColor=dt(n.hoverBorderColor,a(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,a,r=document.createElement("ul"),i=e.data,o=i.datasets,s=i.labels;if(r.setAttribute("class",e.id+"-legend"),o.length)for(t=0,n=o[0].data.length;t<n;++t)(a=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&a.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,a){var r=e.getDatasetMeta(0),i=r.controller.getStyle(a);return{text:n,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(t.datasets[0].data[a])||r.data[a].hidden,index:a}})):[]}},onClick:function(e,t){var n,a,r,i=t.index,o=this.chart;for(n=0,a=(o.data.datasets||[]).length;n<a;++n)(r=o.getDatasetMeta(n)).data[i].hidden=!r.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,a,r=this,i=r.getDataset(),o=r.getMeta(),s=r.chart.options.startAngle||0,l=r._starts=[],c=r._angles=[],u=o.data;for(r._updateRadius(),o.count=r.countVisibleElements(),t=0,n=i.data.length;t<n;t++)l[t]=s,a=r._computeAngle(t),c[t]=a,s+=a;for(t=0,n=u.length;t<n;++t)u[t]._options=r._resolveDataElementOptions(u[t],t),r.updateElement(u[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,a=t.options,r=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(r/2,0),t.innerRadius=Math.max(a.cutoutPercentage?t.outerRadius/100*a.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 a=this,r=a.chart,i=a.getDataset(),o=r.options,s=o.animation,l=r.scale,c=r.data.labels,u=l.xCenter,d=l.yCenter,p=o.startAngle,m=e.hidden?0:l.getDistanceFromCenterForValue(i.data[t]),f=a._starts[t],h=f+(e.hidden?0:a._angles[t]),_=s.animateScale?0:l.getDistanceFromCenterForValue(i.data[t]),v=e._options||{};ie.extend(e,{_datasetIndex:a.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,a){isNaN(e.data[a])||t.hidden||n++})),n},setHoverStyle:function(e){var t=e._model,n=e._options,a=ie.getHoverColor,r=ie.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=r(n.hoverBackgroundColor,a(n.backgroundColor)),t.borderColor=r(n.hoverBorderColor,a(n.borderColor)),t.borderWidth=r(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,a=t.getDataset(),r=t.getMeta();if(isNaN(a.data[e])||r.data[e].hidden)return 0;var i={chart:t.chart,dataIndex:e,dataset:a,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,a=this,r=a.getMeta(),i=r.dataset,o=r.data||[],s=a.chart.scale,l=a._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),i._scale=s,i._datasetIndex=a.index,i._children=o,i._loop=!0,i._model=a._resolveDatasetElementOptions(i),i.pivot(),t=0,n=o.length;t<n;++t)a.updateElement(o[t],t,e);for(a.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var a=this,r=e.custom||{},i=a.getDataset(),o=a.chart.scale,s=o.getPointPositionForValue(t,i.data[t]),l=a._resolveDataElementOptions(e,t),c=a.getMeta().dataset._model,u=n?o.xCenter:s.x,d=n?o.yCenter:s.y;e._scale=o,e._options=l,e._datasetIndex=a.index,e._index=t,e._model={x:u,y:d,skip:r.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(r.tension,c?c.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,a=xe.prototype._resolveDatasetElementOptions.apply(e,arguments);return a.spanGaps=wt(t.spanGaps,n.spanGaps),a.tension=wt(t.lineTension,n.elements.line.tension),a},updateBezierControlPoints:function(){var e,t,n,a,r=this,i=r.getMeta(),o=r.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,a=ie.splineCurve(ie.previousItem(s,e,!0)._model,n,ie.nextItem(s,e,!0)._model,n.tension),n.controlPointPreviousX=l(a.previous.x,o.left,o.right),n.controlPointPreviousY=l(a.previous.y,o.top,o.bottom),n.controlPointNextX=l(a.next.x,o.left,o.right),n.controlPointNextY=l(a.next.y,o.top,o.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,a=ie.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=wt(n.hoverBackgroundColor,a(n.backgroundColor)),t.borderColor=wt(n.hoverBorderColor,a(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:rt,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,a,r,i,o,s,l=e._getSortedVisibleDatasetMetas();for(a=0,i=l.length;a<i;++a)for(r=0,o=(n=l[a].data).length;r<o;++r)(s=n[r])._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,a){var r=Number.POSITIVE_INFINITY,i=[];return Mt(e,(function(e){if(!n||e.inRange(t.x,t.y)){var o=e.getCenterPoint(),s=a(t,o);s<r?(i=[e],r=s):s===r&&i.push(e)}})),i}function Lt(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,a){var r=t?Math.abs(e.x-a.x):0,i=n?Math.abs(e.y-a.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}function Tt(e,t,n){var a=Dt(t,e);n.axis=n.axis||"x";var r=Lt(n.axis),i=n.intersect?St(e,a):Ct(e,a,!1,r),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),a=[];return Mt(e,(function(e){if(e.inRange(n.x,n.y))return a.push(e),a})),a.slice(0,1)},label:Tt,index:Tt,dataset:function(e,t,n){var a=Dt(t,e);n.axis=n.axis||"xy";var r=Lt(n.axis),i=n.intersect?St(e,a):Ct(e,a,!1,r);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 a=Dt(t,e);n.axis=n.axis||"xy";var r=Lt(n.axis);return Ct(e,a,n.intersect,r)},x:function(e,t,n){var a=Dt(t,e),r=[],i=!1;return Mt(e,(function(e){e.inXRange(a.x)&&r.push(e),e.inRange(a.x,a.y)&&(i=!0)})),n.intersect&&!i&&(r=[]),r},y:function(e,t,n){var a=Dt(t,e),r=[],i=!1;return Mt(e,(function(e){e.inYRange(a.y)&&r.push(e),e.inRange(a.x,a.y)&&(i=!0)})),n.intersect&&!i&&(r=[]),r}}},Et=ie.extend;function jt(e,t){return ie.where(e,(function(e){return e.pos===t}))}function At(e,t){return e.sort((function(e,n){var a=t?n:e,r=t?e:n;return a.weight===r.weight?a.index-r.index:a.weight-r.weight}))}function Pt(e){var t,n,a,r=[];for(t=0,n=(e||[]).length;t<n;++t)a=e[t],r.push({index:t,box:a,pos:a.position,horizontal:a.isHorizontal(),weight:a.weight});return r}function $t(e,t){var n,a,r;for(n=0,a=e.length;n<a;++n)(r=e[n]).width=r.horizontal?r.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,r.height=r.horizontal&&t.hBoxMaxHeight}function Yt(e){var t=Pt(e),n=At(jt(t,"left"),!0),a=At(jt(t,"right")),r=At(jt(t,"top"),!0),i=At(jt(t,"bottom"));return{leftAndTop:n.concat(r),rightAndBottom:a.concat(i),chartArea:jt(t,"chartArea"),vertical:n.concat(a),horizontal:r.concat(i)}}function zt(e,t,n,a){return Math.max(e[n],t[n])+Math.max(e[a],t[a])}function Nt(e,t,n){var a,r,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(a=t.outerWidth-zt(o,e,"left","right"),r=t.outerHeight-zt(o,e,"top","bottom"),a!==e.w||r!==e.h){e.w=a,e.h=r;var l=n.horizontal?[a,e.w]:[r,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function It(e){var t=e.maxPadding;function n(n){var a=Math.max(t[n]-e[n],0);return e[n]+=a,a}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Ft(e,t){var n=t.maxPadding;function a(e){var a={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){a[e]=Math.max(t[e],n[e])})),a}return a(e?["left","right"]:["top","bottom"])}function Ht(e,t,n){var a,r,i,o,s,l,c=[];for(a=0,r=e.length;a<r;++a)(o=(i=e[a]).box).update(i.width||t.w,i.height||t.h,Ft(i.horizontal,t)),Nt(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 a,r,i,o,s=n.padding,l=t.x,c=t.y;for(a=0,r=e.length;a<r;++a)o=(i=e[a]).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 a,r=["fullWidth","position","weight"],i=r.length,o=0;o<i;++o)a=r[o],n.hasOwnProperty(a)&&(t[a]=n[a])},update:function(e,t,n){if(e){var a=e.options.layout||{},r=ie.options.toPadding(a.padding),i=t-r.width,o=n-r.height,s=Yt(e.boxes),l=s.vertical,c=s.horizontal,u=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:i,vBoxMaxWidth:i/2/l.length,hBoxMaxHeight:o/2}),d=Et({maxPadding:Et({},r),w:i,h:o,x:r.left,y:r.top},r);$t(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),a=n&&n.match(/^(\d+)(\.\d+)?px$/);return a?Number(a[1]):void 0}function tn(e,t){var n=e.style,a=e.getAttribute("height"),r=e.getAttribute("width");if(e[Ut]={initial:{height:a,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var i=en(e,"width");void 0!==i&&(e.width=i)}if(null===a||""===a)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 an(e,t,n){e.addEventListener(t,n,nn)}function rn(e,t,n){e.removeEventListener(t,n,nn)}function on(e,t,n,a,r){return{type:e,chart:t,native:r||null,x:void 0!==n?n:null,y:void 0!==a?a:null}}function sn(e,t){var n=Qt[e.type]||e.type,a=ie.getRelativePosition(e,t);return on(n,t,a.x,a.y,e)}function ln(e,t){var n=!1,a=[];return function(){a=Array.prototype.slice.call(arguments),t=t||this,n||(n=!0,ie.requestAnimFrame.call(window,(function(){n=!1,e.apply(t,a)})))}}function cn(e){var t=document.createElement("div");return t.className=e||"",t}function un(e){var t=1e6,n=cn(Zt),a=cn(Zt+"-expand"),r=cn(Zt+"-shrink");a.appendChild(cn()),r.appendChild(cn()),n.appendChild(a),n.appendChild(r),n._reset=function(){a.scrollLeft=t,a.scrollTop=t,r.scrollLeft=t,r.scrollTop=t};var i=function(){n._reset(),e()};return an(a,"scroll",i.bind(a,"expand")),an(r,"scroll",i.bind(r,"shrink")),n}function dn(e,t){var n=e[Ut]||(e[Ut]={}),a=n.renderProxy=function(e){e.animationName===Jt&&t()};ie.each(Xt,(function(t){an(e,t,a)})),n.reflow=!!e.offsetParent,e.classList.add(Gt)}function pn(e){var t=e[Ut]||{},n=t.renderProxy;n&&(ie.each(Xt,(function(t){rn(e,t,n)})),delete t.renderProxy),e.classList.remove(Gt)}function mn(e,t,n){var a=e[Ut]||(e[Ut]={}),r=a.resizer=un(ln((function(){if(a.resizer){var r=n.options.maintainAspectRatio&&e.parentNode,i=r?r.clientWidth:0;t(on("resize",n)),r&&r.clientWidth<i&&n.canvas&&t(on("resize",n))}})));dn(e,(function(){if(a.resizer){var t=e.parentNode;t&&t!==r.parentNode&&t.insertBefore(r,t.firstChild),r._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 a=document.createElement("style");a.setAttribute("type","text/css"),a.appendChild(document.createTextNode(t)),e.appendChild(a)}}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 a=n[e];ie.isNullOrUndef(a)?t.removeAttribute(e):t.setAttribute(e,a)})),ie.each(n.style||{},(function(e,n){t.style[n]=e})),t.width=t.width,delete t[Ut]}},addEventListener:function(e,t,n){var a=e.canvas;if("resize"!==t){var r=n[Ut]||(n[Ut]={});an(a,t,(r.proxies||(r.proxies={}))[e.id+"_"+t]=function(t){n(sn(t,e))})}else mn(a,n,e)},removeEventListener:function(e,t,n){var a=e.canvas;if("resize"!==t){var r=((n[Ut]||{}).proxies||{})[e.id+"_"+t];r&&rn(a,t,r)}else fn(a)}};ie.addEvent=an,ie.removeEvent=rn;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 a,r,i,o,s,l=this.descriptors(e),c=l.length;for(a=0;a<c;++a)if("function"==typeof(s=(i=(r=l[a]).plugin)[t])&&((o=[e].concat(n||[])).push(r.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=[],a=[],r=e&&e.config||{},i=r.options&&r.options.plugins||{};return this._plugins.concat(r.plugins||[]).forEach((function(e){if(-1===n.indexOf(e)){var t=e.id,r=i[t];!1!==r&&(!0===r&&(r=ie.clone(J.global.plugins[t])),n.push(e),a.push({plugin:e,options:r||{}}))}})),t.descriptors=a,t.id=this._cacheId,a},_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="",a=t.labels,r=a?a.length:0;if(e.length>0){var i=e[0];i.label?n=i.label:i.xLabel?n=i.xLabel:r>0&&i.index<r&&(n=a[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,a=0,r=0,i=0;for(t=0,n=e.length;t<n;++t){var o=e[t];if(o&&o.hasValue()){var s=o.tooltipPosition();a+=s.x,r+=s.y,++i}}return{x:a/i,y:r/i}},nearest:function(e,t){var n,a,r,i=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,a=e.length;n<a;++n){var l=e[n];if(l&&l.hasValue()){var c=l.getCenterPoint(),u=ie.distanceBetweenPoints(t,c);u<s&&(s=u,r=l)}}if(r){var d=r.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,a=e._index,r=e._datasetIndex,i=e._chart.getDatasetMeta(r).controller,o=i._getIndexScale(),s=i._getValueScale();return{xLabel:t?t.getLabelForIndex(a,r):"",yLabel:n?n.getLabelForIndex(a,r):"",label:o?""+o.getLabelForIndex(a,r):"",value:s?""+s.getLabelForIndex(a,r):"",index:a,datasetIndex:r,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,a=2*t.yPadding,r=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;a+=s*c,a+=s?(s-1)*t.titleSpacing:0,a+=s?t.titleMarginBottom:0,a+=o*u,a+=o?(o-1)*t.bodySpacing:0,a+=l?t.footerMarginTop:0,a+=l*d,a+=l?(l-1)*t.footerSpacing:0;var p=0,m=function(e){r=Math.max(r,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:r+=2*t.xPadding,height:a}}function Tn(e,t){var n,a,r,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},a=function(e){return e>p}):(n=function(e){return e<=t.width/2},a=function(e){return e>=l.width-t.width/2}),r=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",r(s.x)&&(u="center",d=o(s.y))):a(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,a){var r=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?r-=t.width:"center"===c&&((r-=t.width/2)+t.width>a.width&&(r=a.width-t.width),r<0&&(r=0)),"top"===u?i+=d:i-="bottom"===u?t.height+d:t.height/2,"center"===u?"left"===c?r+=d:"right"===c&&(r-=d):"left"===c?r-=p:"right"===c&&(r+=p),{x:r,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 jn(e){return Dn([],Mn(e))}var An=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),a=t.title.apply(e,arguments),r=t.afterTitle.apply(e,arguments),i=[];return i=Dn(i,Mn(n)),i=Dn(i,Mn(a)),i=Dn(i,Mn(r))},getBeforeBody:function(){return jn(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,a=n._options.callbacks,r=[];return ie.each(e,(function(e){var i={before:[],lines:[],after:[]};Dn(i.before,Mn(a.beforeLabel.call(n,e,t))),Dn(i.lines,a.label.call(n,e,t)),Dn(i.after,Mn(a.afterLabel.call(n,e,t))),r.push(i)})),r},getAfterBody:function(){return jn(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),a=t.footer.apply(e,arguments),r=t.afterFooter.apply(e,arguments),i=[];return i=Dn(i,Mn(n)),i=Dn(i,Mn(a)),i=Dn(i,Mn(r))},update:function(e){var t,n,a=this,r=a._options,i=a._model,o=a._model=Cn(r),s=a._active,l=a._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[r.position].call(a,s,a._eventPosition);var h=[];for(t=0,n=s.length;t<n;++t)h.push(Sn(s[t]));r.filter&&(h=h.filter((function(e){return r.filter(e,l)}))),r.itemSort&&(h=h.sort((function(e,t){return r.itemSort(e,t,l)}))),ie.each(h,(function(e){m.push(r.callbacks.labelColor.call(a,e,a._chart)),f.push(r.callbacks.labelTextColor.call(a,e,a._chart))})),o.title=a.getTitle(h,l),o.beforeBody=a.getBeforeBody(h,l),o.body=a.getBody(h,l),o.afterBody=a.getAfterBody(h,l),o.footer=a.getFooter(h,l),o.x=p.x,o.y=p.y,o.caretPadding=r.caretPadding,o.labelColors=m,o.labelTextColors=f,o.dataPoints=h,u=On(o,d=Ln(this,o),c=Tn(this,d),a._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,a._model=o,e&&r.custom&&r.custom.call(a,o),a},drawCaret:function(e,t){var n=this._chart.ctx,a=this._view,r=this.getCaretPosition(e,t,a);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)},getCaretPosition:function(e,t,n){var a,r,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?(r=(a=m)-c,i=a,o=s+c,l=s-c):(r=(a=m+h)+c,i=a,o=s-c,l=s+c);else if("left"===d?(a=(r=m+u+c)-c,i=r+c):"right"===d?(a=(r=m+h-u-c)-c,i=r+c):(a=(r=n.caretX)-c,i=r+c),"top"===p)s=(o=f)-c,l=o;else{s=(o=f+_)+c,l=o;var v=i;i=a,a=v}return{x1:a,x2:r,x3:i,y1:o,y2:s,y3:l}},drawTitle:function(e,t,n){var a,r,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",a=t.titleFontSize,r=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=ie.fontString(a,t._titleFontStyle,t._titleFontFamily),i=0;i<s;++i)n.fillText(o[i],l.x(e.x),e.y+a/2),e.y+=a+r,i+1===s&&(e.y+=t.titleMarginBottom-r)}},drawBody:function(e,t,n){var a,r,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(a=f[s],r=t.labelTextColors[s],i=t.labelColors[s],n.fillStyle=r,ie.each(a.before,y),l=0,u=(o=a.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=r}y(o[l])}ie.each(a.after,y)}_=0,ie.each(t.afterBody,y),e.y-=p},drawFooter:function(e,t,n){var a,r,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",a=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=ie.fontString(a,t._footerFontStyle,t._footerFontFamily),r=0;r<o;++r)n.fillText(i[r],s.x(e.x),e.y+a/2),e.y+=a+t.footerSpacing}},drawBackground:function(e,t,n,a){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var r=t.xAlign,i=t.yAlign,o=e.x,s=e.y,l=a.width,c=a.height,u=t.cornerRadius;n.beginPath(),n.moveTo(o+u,s),"top"===i&&this.drawCaret(e,a),n.lineTo(o+l-u,s),n.quadraticCurveTo(o+l,s,o+l,s+u),"center"===i&&"right"===r&&this.drawCaret(e,a),n.lineTo(o+l,s+c-u),n.quadraticCurveTo(o+l,s+c,o+l-u,s+c),"bottom"===i&&this.drawCaret(e,a),n.lineTo(o+u,s+c),n.quadraticCurveTo(o,s+c,o,s+c-u),"center"===i&&"left"===r&&this.drawCaret(e,a),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},a={x:t.x,y:t.y},r=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=r,this.drawBackground(a,t,e,n),a.y+=t.yPadding,ie.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(a,t,e),this.drawBody(a,t,e),this.drawFooter(a,t,e),ie.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t=this,n=t._options,a=!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()),(a=!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())),a}}),Pn=kn,$n=An;$n.positioners=Pn;var Yn=ie.valueOrDefault;function zn(){return ie.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,a){if("xAxes"===e||"yAxes"===e){var r,i,o,s=n[e].length;for(t[e]||(t[e]=[]),r=0;r<s;++r)o=n[e][r],i=Yn(o.type,"xAxes"===e?"category":"linear"),r>=t[e].length&&t[e].push({}),!t[e][r].type||o.type&&o.type!==t[e][r].type?ie.merge(t[e][r],[bn.getScaleDefaults(i),o]):ie.merge(t[e][r],o)}else ie._merger(e,t,n,a)}})}function Nn(){return ie.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,a){var r=t[e]||Object.create(null),i=n[e];"scales"===e?t[e]=zn(r,i):"scale"===e?t[e]=ie.merge(r,[bn.getScaleDefaults(i.type),i]):ie._merger(e,t,n,a)}})}function In(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Nn(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=Nn(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 a,r=function(e){return e.id===a};do{a=t+n++}while(ie.findIndex(e,r)>=0);return a}function Rn(e){return"top"===e||"bottom"===e}function Bn(e,t){return function(n,a){return n[e]===a[e]?n[t]-a[t]:n[e]-a[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 a=gn.acquireContext(e,t),r=a&&a.canvas,i=r&&r.height,o=r&&r.width;n.id=ie.uid(),n.ctx=a,n.canvas=r,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}}),a&&r?(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,a=t.canvas,r=n.maintainAspectRatio&&t.aspectRatio||null,i=Math.max(0,Math.floor(ie.getMaximumWidth(a))),o=Math.max(0,Math.floor(r?i/r:ie.getMaximumHeight(a)));if((t.width!==i||t.height!==o)&&(a.width=t.width=i,a.height=t.height=o,a.style.width=i+"px",a.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||{},a=[],r=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(a=a.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&&a.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ie.each(a,(function(t){var a=t.options,i=a.id,o=Yn(a.type,t.dtype);Rn(a.position)!==Rn(t.dposition)&&(a.position=t.dposition),r[i]=!0;var s=null;if(i in n&&n[i].type===o)(s=n[i]).options=a,s.ctx=e.ctx,s.chart=e;else{var l=bn.getScaleConstructor(o);if(!l)return;s=new l({id:i,type:o,options:a,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),ie.each(r,(function(e,t){e||delete n[t]})),e.scales=n,bn.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,a=[],r=n.data.datasets;for(e=0,t=r.length;e<t;e++){var i=r[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),a.push(o.controller)}}return a},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,a=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),Fn(a),yn._invalidate(a),!1!==yn.notify(a,"beforeUpdate")){a.tooltip._data=a.data;var r=a.buildOrUpdateControllers();for(t=0,n=a.data.datasets.length;t<n;t++)a.getDatasetMeta(t).controller.buildOrUpdateElements();a.updateLayout(),a.options.animation&&a.options.animation.duration&&ie.each(r,(function(e){e.reset()})),a.updateDatasets(),a.tooltip.initialize(),a.lastActive=[],yn.notify(a,"afterUpdate"),a._layers.sort(Bn("z","_idx")),a._bufferedRender?a._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:a.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),a={meta:n,index:e};!1!==yn.notify(t,"beforeDatasetUpdate",[a])&&(n.controller._update(),yn.notify(t,"afterDatasetUpdate",[a]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,a=Yn(e.duration,n&&n.duration),r=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&&a){var o=new he({numSteps:a/16.66,easing:e.easing||n.easing,render:function(e,t){var n=ie.easing.effects[t.easing],a=t.currentStep,r=a/t.numSteps;e.draw(n(r),r,a)},onAnimationProgress:n.onProgress,onAnimationComplete:i});_e.addAnimation(t,o,a,r)}else t.draw(),i(new he({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,a=this;if(a.clear(),ie.isNullOrUndef(e)&&(e=1),a.transition(e),!(a.width<=0||a.height<=0)&&!1!==yn.notify(a,"beforeDraw",[e])){for(n=a._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(a.chartArea);for(a.drawDatasets(e);t<n.length;++t)n[t].draw(a.chartArea);a._drawTooltip(e),yn.notify(a,"afterDraw",[e])}},transition:function(e){for(var t=this,n=0,a=(t.data.datasets||[]).length;n<a;++n)t.isDatasetVisible(n)&&t.getDatasetMeta(n).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,a=this,r=[];for(t=0,n=(a.data.datasets||[]).length;t<n;++t)e&&!a.isDatasetVisible(t)||r.push(a.getDatasetMeta(t));return r.sort(Bn("order","index")),r},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n,a=this;if(!1!==yn.notify(a,"beforeDatasetsDraw",[e])){for(n=(t=a._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)a.drawDataset(t[n],e);yn.notify(a,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this,a={meta:e,index:e.index,easingValue:t};!1!==yn.notify(n,"beforeDatasetDraw",[a])&&(e.controller.draw(t),yn.notify(n,"afterDatasetDraw",[a]))},_drawTooltip:function(e){var t=this,n=t.tooltip,a={tooltip:n,easingValue:e};!1!==yn.notify(t,"beforeTooltipDraw",[a])&&(n.draw(),yn.notify(t,"afterTooltipDraw",[a]))},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 a=Ot.modes[t];return"function"==typeof a?a(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 a=n._meta[t.id];return a||(a=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),a},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],a=n._meta&&n._meta[t];a&&(a.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,a=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);a&&(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 $n({_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(a){gn.addEventListener(e,a,n),t[a]=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 a,r,i,o=n?"set":"remove";for(r=0,i=e.length;r<i;++r)(a=e[r])&&this.getDatasetMeta(a._datasetIndex).controller[o+"HoverStyle"](a);"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 a=t.handleEvent(e);n&&(a=n._start?n.handleEvent(e):a|n.handleEvent(e)),yn.notify(t,"afterEvent",[e]);var r=t._bufferedRequest;return r?t.render(r):a&&!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||{},a=n.hover,r=!1;return t.lastActive=t.lastActive||[],"mouseout"===e.type?t.active=[]:t.active=t.getElementsAtEventForMode(e,a.mode,a),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,a.mode,!1),t.active.length&&a.mode&&t.updateHoverStyle(t.active,a.mode,!0),r=!ie.arrayEquals(t.active,t.lastActive),t.lastActive=t.active,r}}),qn.instances={};var Vn=qn;qn.Controller=qn,qn.types={},ie.configMerge=Nn,ie.scaleMerge=zn;var Wn=function(){function e(e,t,n){var a;return"string"==typeof e?(a=parseInt(e,10),-1!==e.indexOf("%")&&(a=a/100*t.parentNode[n])):a=e,a}function t(e){return null!=e&&"none"!==e}function n(n,a,r){var i=document.defaultView,o=ie._getParentNode(n),s=i.getComputedStyle(n)[a],l=i.getComputedStyle(o)[a],c=t(s),u=t(l),d=Number.POSITIVE_INFINITY;return c||u?Math.min(c?e(s,n,r):d,u?e(l,o,r):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 a=0,r=e.length;a<r;++a)if(t.call(n,e[a],a,e))return a;return-1},ie.findNextWhere=function(e,t,n){ie.isNullOrUndef(n)&&(n=-1);for(var a=n+1;a<e.length;a++){var r=e[a];if(t(r))return r}},ie.findPreviousWhere=function(e,t,n){ie.isNullOrUndef(n)&&(n=e.length);for(var a=n-1;a>=0;a--){var r=e[a];if(t(r))return r}},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,a=t.y-e.y,r=Math.sqrt(n*n+a*a),i=Math.atan2(a,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:r}},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 a=e.currentDevicePixelRatio,r=n/2;return Math.round((t-r)*a)/a+r},ie.splineCurve=function(e,t,n,a){var r=e.skip?t:e,i=t,o=n.skip?t:n,s=Math.sqrt(Math.pow(i.x-r.x,2)+Math.pow(i.y-r.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=a*(c=isNaN(c)?0:c),p=a*(u=isNaN(u)?0:u);return{previous:{x:i.x-d*(o.x-r.x),y:i.y-d*(o.y-r.y)},next:{x:i.x+p*(o.x-r.x),y:i.y+p*(o.y-r.y)}}},ie.EPSILON=Number.EPSILON||1e-14,ie.splineCurveMonotone=function(e){var t,n,a,r,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(!(a=u[t]).model.skip){if(n=t>0?u[t-1]:null,(r=t<d-1?u[t+1]:null)&&!r.model.skip){var p=r.model.x-a.model.x;a.deltaK=0!==p?(r.model.y-a.model.y)/p:0}!n||n.model.skip?a.mK=a.deltaK:!r||r.model.skip?a.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(a.deltaK)?a.mK=0:a.mK=(n.deltaK+a.deltaK)/2}for(t=0;t<d-1;++t)a=u[t],r=u[t+1],a.model.skip||r.model.skip||(ie.almostEquals(a.deltaK,0,this.EPSILON)?a.mK=r.mK=0:(i=a.mK/a.deltaK,o=r.mK/a.deltaK,(l=Math.pow(i,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(l),a.mK=i*s*a.deltaK,r.mK=o*s*a.deltaK)));for(t=0;t<d;++t)(a=u[t]).model.skip||(n=t>0?u[t-1]:null,r=t<d-1?u[t+1]:null,n&&!n.model.skip&&(c=(a.model.x-n.model.x)/3,a.model.controlPointPreviousX=a.model.x-c,a.model.controlPointPreviousY=a.model.y-c*a.mK),r&&!r.model.skip&&(c=(r.model.x-a.model.x)/3,a.model.controlPointNextX=a.model.x+c,a.model.controlPointNextY=a.model.y+c*a.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)),a=e/Math.pow(10,n);return(t?a<1.5?1:a<3?2:a<7?5:10:a<=1?1:a<=2?2:a<=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,a,r=e.originalEvent||e,i=e.target||e.srcElement,o=i.getBoundingClientRect(),s=r.touches;s&&s.length>0?(n=s[0].clientX,a=s[0].clientY):(n=r.clientX,a=r.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:a=Math.round((a-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,a=n-ie._calculatePadding(t,"padding-left",n)-ie._calculatePadding(t,"padding-right",n),r=ie.getConstraintWidth(e);return isNaN(r)?a:Math.min(a,r)},ie.getMaximumHeight=function(e){var t=ie._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,a=n-ie._calculatePadding(t,"padding-top",n)-ie._calculatePadding(t,"padding-bottom",n),r=ie.getConstraintHeight(e);return isNaN(r)?a:Math.min(a,r)},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 a=e.canvas,r=e.height,i=e.width;a.height=r*n,a.width=i*n,e.ctx.scale(n,n),a.style.height||a.style.width||(a.style.height=r+"px",a.style.width=i+"px")}},ie.fontString=function(e,t,n){return t+" "+e+"px "+n},ie.longestText=function(e,t,n,a){var r=(a=a||{}).data=a.data||{},i=a.garbageCollect=a.garbageCollect||[];a.font!==t&&(r=a.data={},i=a.garbageCollect=[],a.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,r,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,r,i,d,u));var m=i.length/2;if(m>n.length){for(o=0;o<m;o++)delete r[i[o]];i.splice(0,m)}return d},ie.measureText=function(e,t,n,a,r){var i=t[r];return i||(i=t[r]=e.measureText(r).width,n.push(r)),i>a&&(a=i),a},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 a=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&e!==Math.floor(e)&&(a=e-Math.floor(e));var r=ie.log10(Math.abs(a)),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(r);s=Math.max(Math.min(s,20),0),i=e.toExponential(s)}else{var l=-1*Math.floor(r);l=Math.max(Math.min(l,20),0),i=e.toFixed(l)}else i="0";return i},logarithmic:function(e,t,n){var a=e/Math.pow(10,Math.floor(ie.log10(e)));return 0===e?"0":1===a||2===a||5===a||0===t||t===n.length-1?e.toExponential():""}}},Jn=ie.isArray,Xn=ie.isNullOrUndef,Qn=ie.valueOrDefault,ea=ie.valueAtIndexOrDefault;function ta(e,t){for(var n=[],a=e.length/t,r=0,i=e.length;r<i;r+=a)n.push(e[Math.floor(r)]);return n}function na(e,t,n){var a,r=e.getTicks().length,i=Math.min(t,r-1),o=e.getPixelForTick(i),s=e._startPixel,l=e._endPixel,c=1e-6;if(!(n&&(a=1===r?Math.max(o-s,l-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(i-1))/2,(o+=i<t?a:-a)<s-c||o>l+c)))return o}function aa(e,t){ie.each(e,(function(e){var n,a=e.gc,r=a.length/2;if(r>t){for(n=0;n<r;++n)delete e.data[a[n]];a.splice(0,r)}}))}function ra(e,t,n,a){var r,i,o,s,l,c,u,d,p,m,f,h,_,v=n.length,g=[],y=[],b=[],w=0,x=0;for(r=0;r<v;++r){if(s=n[r].label,l=n[r].major?t.major:t.minor,e.font=c=l.string,u=a[c]=a[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 aa(a,v),h=g.indexOf(w),_=y.indexOf(x),{first:k(0),last:k(v-1),widest:k(h),highest:k(_)}}function ia(e){return e.drawTicks?e.tickMarkLength:0}function oa(e){var t,n;return e.display?(t=ie.options._parseFont(e),n=ie.options.toPadding(e.padding),t.lineHeight+n.height):0}function sa(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 la(e){var t=sa(e,e.minor);return{minor:t,major:e.major.enabled?sa(e,e.major):t}}function ca(e){var t,n,a,r=[];for(n=0,a=e.length;n<a;++n)void 0!==(t=e[n])._index&&r.push(t);return r}function ua(e){var t,n,a=e.length;if(a<2)return!1;for(n=e[0],t=1;t<a;++t)if(e[t]-e[t-1]!==n)return!1;return n}function da(e,t,n,a){var r,i,o,s,l=ua(e),c=(t.length-1)/a;if(!l)return Math.max(c,1);for(o=0,s=(r=ie.math._factorize(l)).length-1;o<s;o++)if((i=r[o])>c)return i;return Math.max(c,1)}function pa(e){var t,n,a=[];for(t=0,n=e.length;t<n;t++)e[t].major&&a.push(t);return a}function ma(e,t,n){var a,r,i=0,o=t[0];for(n=Math.ceil(n),a=0;a<e.length;a++)r=e[a],a===o?(r._index=a,o=t[++i*n]):delete r.label}function fa(e,t,n,a){var r,i,o,s,l=Qn(n,0),c=Math.min(Qn(a,e.length),e.length),u=0;for(t=Math.ceil(t),a&&(t=(r=a-n)/Math.floor(r/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 ha=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 a,r,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=[],a=0,r=l.ticks.length;a<r;++a)o.push({value:l.ticks[a],major:!1});return l._ticks=o,s=u<o.length,i=l._convertTicksToLabels(s?ta(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,a=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,a=!a),n._startPixel=e,n._endPixel=t,n._reversePixels=a,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,a,r,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,a=Math.min(s.maxWidth,s.chart.width-t),t+6>(r=l.offset?s.maxWidth/u:a/(u-1))&&(r=a/(u-(l.offset?.5:1)),i=s.maxHeight-ia(l.gridLines)-c.padding-oa(l.scaleLabel),o=Math.sqrt(t*t+n*n),m=ie.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/r,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,a=e.options,r=a.ticks,i=a.scaleLabel,o=a.gridLines,s=e._isVisible(),l="bottom"===a.position,c=e.isHorizontal();if(c?t.width=e.maxWidth:s&&(t.width=ia(o)+oa(i)),c?s&&(t.height=ia(o)+oa(i)):t.height=e.maxHeight,r.display&&s){var u=la(r),d=e._getLabelSizes(),p=d.first,m=d.last,f=d.widest,h=d.highest,_=.4*u.minor.lineHeight,v=r.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=r.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,a,r=this;for(r.ticks=e.map((function(e){return e.value})),r.beforeTickToLabelConversion(),t=r.convertTicksToLabels(e)||r.ticks,r.afterTickToLabelConversion(),n=0,a=e.length;n<a;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=ra(e.ctx,la(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,a,r;return Jn(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),a=Math.min(t,n),r=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),a=e,r=e),{min:a,max:r,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,a=t._ticks.length,r=1/Math.max(a-(n?0:1),1);return e<0||e>a-1?null:t.getPixelForDecimal(e*r+(n?r/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,a,r,i=this,o=i.options.ticks,s=i._length,l=o.maxTicksLimit||s/i._tickSize()+1,c=o.major.enabled?pa(e):[],u=c.length,d=c[0],p=c[u-1];if(u>l)return ma(e,c,u/l),ca(e);if(a=da(c,e,s,l),u>0){for(t=0,n=u-1;t<n;t++)fa(e,a,c[t],c[t+1]);return r=u>1?(p-d)/(u-1):null,fa(e,a,ie.isNullOrUndef(r)?0:d-r,d),fa(e,a,p,ie.isNullOrUndef(r)?e.length:p+r),ca(e)}return fa(e,a),ca(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=ie.toRadians(e.labelRotation),a=Math.abs(Math.cos(n)),r=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*a>s*r?s/a:l/r:l*r<s*a?l/a:s/r},_isVisible:function(){var e,t,n,a=this,r=a.chart,i=a.options.display;if("auto"!==i)return!!i;for(e=0,t=r.data.datasets.length;e<t;++e)if(r.isDatasetVisible(e)&&((n=r.getDatasetMeta(e)).xAxisID===a.id||n.yAxisID===a.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,a,r,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=ia(w),L=[],T=w.drawBorder?ea(w.lineWidth,0,0):0,O=T/2,E=ie._alignPixel,j=function(e){return E(y,e,T)};for("top"===x?(t=j(g.bottom),s=g.bottom-C,c=t-O,d=j(e.top)+O,m=e.bottom):"bottom"===x?(t=j(g.top),d=e.top,m=j(e.bottom)-O,s=t+O,c=g.top+C):"left"===x?(t=j(g.right),o=g.right-C,l=t-O,u=j(e.left)+O,p=e.right):(t=j(g.left),u=e.left,p=j(e.right)-O,o=t+O,l=g.left+C),n=0;n<S;++n)a=M[n]||{},Xn(a.label)&&n<M.length||(n===g.zeroLineIndex&&b.offset===k?(f=w.zeroLineWidth,h=w.zeroLineColor,_=w.zeroLineBorderDash||[],v=w.zeroLineBorderDashOffset||0):(f=ea(w.lineWidth,n,1),h=ea(w.color,n,"rgba(0,0,0,0.1)"),_=w.borderDash||[],v=w.borderDashOffset||0),void 0!==(r=na(g,a._index||n,k))&&(i=E(y,r,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,a,r,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=la(f),b=f.padding,w=ia(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?(r=p.right-(_?0:w)-b,o=_?"left":"right"):(r=p.left+(_?0:w)+b,o=_?"right":"left"),e=0,t=g.length;e<t;++e)a=(n=g[e]).label,Xn(a)||(s=p.getPixelForTick(n._index||e)+f.labelOffset,c=(l=n.major?y.major:y.minor).lineHeight,u=Jn(a)?a.length:1,v?(r=s,d="top"===h?((x?1:.5)-u)*c:(x?0:.5)*c):(i=s,d=(1-u)*c/2),k.push({x:r,y:i,rotation:x,label:a,font:l,textOffset:d,textAlign:o}));return k},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var a,r,i,o,s,l=t.ctx,c=t.chart,u=ie._alignPixel,d=n.drawBorder?ea(n.lineWidth,0,0):0,p=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(i=0,o=p.length;i<o;++i)a=(s=p[i]).width,r=s.color,a&&r&&(l.save(),l.lineWidth=a,l.strokeStyle=r,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=ea(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=ea(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,a,r,i,o,s,l,c=e.ctx,u=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,a=u.length;t<a;++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,r=s.length;n<r;++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,a=n.scaleLabel;if(a.display){var r,i,o=Qn(a.fontColor,J.global.defaultFontColor),s=ie.options._parseFont(a),l=ie.options.toPadding(a.padding),c=s.lineHeight/2,u=n.position,d=0;if(e.isHorizontal())r=e.left+e.width/2,i="bottom"===u?e.bottom-c-l.bottom:e.top+c+l.top;else{var p="left"===u;r=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(r,i),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=o,t.font=s.string,t.fillText(a.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,a=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==a&&e.draw===e._draw?[{z:a,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(a){return(!e||a.type===e)&&(n?a.xAxisID===t.id:a.yAxisID===t.id)}))}});ha.prototype._draw=ha.prototype.draw;var _a=ha,va=ie.isNullOrUndef,ga={position:"bottom"},ya=_a.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),a=t.options.ticks,r=a.min,i=a.max,o=0,s=n.length-1;void 0!==r&&(e=n.indexOf(r))>=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,a=e.maxIndex;e.ticks=0===n&&a===t.length-1?t:t.slice(n,a+1)},getLabelForIndex:function(e,t){var n=this,a=n.chart;return a.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(a.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;_a.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 a,r,i,o=this;return va(t)||va(n)||(e=o.chart.data.datasets[n].data[t]),va(e)||(a=o.isHorizontal()?e.x:e.y),(void 0!==a||void 0!==e&&isNaN(t))&&(r=o._getLabels(),e=ie.valueOrDefault(a,e),t=-1!==(i=r.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}}),ba=ga;ya._defaults=ba;var wa=ie.noop,xa=ie.isNullOrUndef;function ka(e,t){var n,a,r,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&&xa(d)&&xa(p))return[f,h];(i=Math.ceil(h/_)-Math.floor(f/_))>u&&(_=ie.niceNum(i*_/u/c)*c),l||xa(m)?n=Math.pow(10,ie._decimalPlaces(_)):(n=Math.pow(10,m),_=Math.ceil(_*n)/n),a=Math.floor(f/_)*_,r=Math.ceil(h/_)*_,l&&(!xa(d)&&ie.almostWhole(d/_,_/1e3)&&(a=d),!xa(p)&&ie.almostWhole(p/_,_/1e3)&&(r=p)),i=(r-a)/_,i=ie.almostEquals(i,Math.round(i),_/1e3)?Math.round(i):Math.ceil(i),a=Math.round(a*n)/n,r=Math.round(r*n)/n,o.push(xa(d)?a:d);for(var v=1;v<i;++v)o.push(Math.round((a+v*_)*n)/n);return o.push(xa(p)?r:p),o}var Da=_a.extend({getRightValue:function(e){return"string"==typeof e?+e:_a.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=ie.sign(e.min),a=ie.sign(e.max);n<0&&a<0?e.max=0:n>0&&a>0&&(e.min=0)}var r=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)),r!==i&&e.min>=e.max&&(r?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,a=n.stepSize,r=n.maxTicksLimit;return a?e=Math.ceil(t.max/a)-Math.floor(t.min/a)+1:(e=t._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:wa,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),a={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:ie.valueOrDefault(t.fixedStepSize,t.stepSize)},r=e.ticks=ka(a,e);e.handleDirectionalChanges(),e.max=ie.max(r),e.min=ie.min(r),t.reverse?(r.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),_a.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),a=t.min,r=t.max;_a.prototype._configure.call(t),t.options.offset&&n.length&&(a-=e=(r-a)/Math.max(n.length-1,1)/2,r+=e),t._startValue=a,t._endValue=r,t._valueRange=r-a}}),Ma={position:"left",ticks:{callback:Gn.formatters.linear}},Sa=0,Ca=1;function La(e,t,n){var a=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[a]&&(e[a]={pos:[],neg:[]}),e[a]}function Ta(e,t,n,a){var r,i,o=e.options,s=La(t,o.stacked,n),l=s.pos,c=s.neg,u=a.length;for(r=0;r<u;++r)i=e._parseValue(a[r]),isNaN(i.min)||isNaN(i.max)||n.data[r].hidden||(l[r]=l[r]||0,c[r]=c[r]||0,o.relativePoints?l[r]=100:i.min<0||i.max<0?c[r]+=i.min:l[r]+=i.max)}function Oa(e,t,n){var a,r,i=n.length;for(a=0;a<i;++a)r=e._parseValue(n[a]),isNaN(r.min)||isNaN(r.max)||t.data[a].hidden||(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}var Ea=Da.extend({determineDataLimits:function(){var e,t,n,a,r=this,i=r.options,o=r.chart.data.datasets,s=r._getMatchingVisibleMetas(),l=i.stacked,c={},u=s.length;if(r.min=Number.POSITIVE_INFINITY,r.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?Ta(r,c,t,n):Oa(r,t,n);ie.each(c,(function(e){a=e.pos.concat(e.neg),r.min=Math.min(r.min,ie.min(a)),r.max=Math.max(r.max,ie.max(a))})),r.min=ie.isFinite(r.min)&&!isNaN(r.min)?r.min:Sa,r.max=ie.isFinite(r.max)&&!isNaN(r.max)?r.max:Ca,r.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])}}),ja=Ma;Ea._defaults=ja;var Aa=ie.valueOrDefault,Pa=ie.math.log10;function $a(e,t){var n,a,r=[],i=Aa(e.min,Math.pow(10,Math.floor(Pa(t.min)))),o=Math.floor(Pa(t.max)),s=Math.ceil(t.max/Math.pow(10,o));0===i?(n=Math.floor(Pa(t.minNotZero)),a=Math.floor(t.minNotZero/Math.pow(10,n)),r.push(i),i=a*Math.pow(10,n)):(n=Math.floor(Pa(i)),a=Math.floor(i/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{r.push(i),10==++a&&(a=1,l=++n>=0?1:l),i=Math.round(a*Math.pow(10,n)*l)/l}while(n<o||n===o&&a<s);var c=Aa(e.max,i);return r.push(c),r}var Ya={position:"left",ticks:{callback:Gn.formatters.logarithmic}};function za(e,t){return ie.isFinite(e)&&e>=0?e:t}var Na=_a.extend({determineDataLimits:function(){var e,t,n,a,r,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]=[]),r=0,i=(a=c[e].data).length;r<i;r++){var h=m[f];n=o._parseValue(a[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(h[r]=h[r]||0,h[r]+=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(r=0,i=(a=c[e].data).length;r<i;r++)n=o._parseValue(a[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].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,a=10;e.min=za(t.min,e.min),e.max=za(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Pa(e.min))-1),e.max=Math.pow(10,Math.floor(Pa(e.max))+1)):(e.min=n,e.max=a)),null===e.min&&(e.min=Math.pow(10,Math.floor(Pa(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Pa(e.min))+1):a),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Pa(e.max))):e.minNotZero=n)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),a={min:za(t.min),max:za(t.max)},r=e.ticks=$a(a,e);e.max=ie.max(r),e.min=ie.min(r),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),_a.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(Pa(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;_a.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Aa(e.options.ticks.fontSize,J.global.defaultFontSize)/e._length),e._startValue=Pa(t),e._valueOffset=n,e._valueRange=(Pa(e.max)-Pa(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Pa(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)}}),Ia=Ya;Na._defaults=Ia;var Fa=ie.valueOrDefault,Ha=ie.valueAtIndexOrDefault,Ra=ie.options.resolve,Ba={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 qa(e){var t=e.ticks;return t.display&&e.display?Fa(t.fontSize,J.global.defaultFontSize)+2*t.backdropPaddingY:0}function Va(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 Wa(e,t,n,a,r){return e===a||e===r?{start:t-n/2,end:t+n/2}:e<a||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function Ua(e){var t,n,a,r=ie.options._parseFont(e.options.pointLabels),i={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=r.string,e._pointLabelSizes=[];var s=e.chart.data.labels.length;for(t=0;t<s;t++){a=e.getPointPosition(t,e.drawingArea+5),n=Va(e.ctx,r.lineHeight,e.pointLabels[t]),e._pointLabelSizes[t]=n;var l=e.getIndexAngle(t),c=ie.toDegrees(l)%360,u=Wa(c,a.x,n.w,0,180),d=Wa(c,a.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 Ka(e){return 0===e||180===e?"center":e<180?"left":"right"}function Za(e,t,n,a){var r,i,o=n.y+a/2;if(ie.isArray(t))for(r=0,i=t.length;r<i;++r)e.fillText(t[r],n.x,o),o+=a;else e.fillText(t,n.x,o)}function Ga(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Ja(e){var t=e.ctx,n=e.options,a=n.pointLabels,r=qa(n),i=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),o=ie.options._parseFont(a);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?r/2:0,c=e.getPointPosition(s,i+l+5),u=Ha(a.fontColor,s,J.global.defaultFontColor);t.fillStyle=u;var d=e.getIndexAngle(s),p=ie.toDegrees(d);t.textAlign=Ka(p),Ga(p,e._pointLabelSizes[s],c),Za(t,e.pointLabels[s],c,o.lineHeight)}t.restore()}function Xa(e,t,n,a){var r,i=e.ctx,o=t.circular,s=e.chart.data.labels.length,l=Ha(t.color,a-1),c=Ha(t.lineWidth,a-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{r=e.getPointPosition(0,n),i.moveTo(r.x,r.y);for(var u=1;u<s;u++)r=e.getPointPosition(u,n),i.lineTo(r.x,r.y)}i.closePath(),i.stroke(),i.restore()}}function Qa(e){return ie.isNumber(e)?e:0}var er=Da.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=qa(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,a=Number.NEGATIVE_INFINITY;ie.each(t.data.datasets,(function(r,i){if(t.isDatasetVisible(i)){var o=t.getDatasetMeta(i);ie.each(r.data,(function(t,r){var i=+e.getRightValue(t);isNaN(i)||o.data[r].hidden||(n=Math.min(i,n),a=Math.max(i,a))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=a===Number.NEGATIVE_INFINITY?0:a,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/qa(this.options))},convertTicksToLabels:function(){var e=this;Da.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?Ua(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var a=this,r=t.l/Math.sin(n.l),i=Math.max(t.r-a.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),s=-Math.max(t.b-(a.height-a.paddingTop),0)/Math.cos(n.b);r=Qa(r),i=Qa(i),o=Qa(o),s=Qa(s),a.drawingArea=Math.min(Math.floor(e-(r+i)/2),Math.floor(e-(o+s)/2)),a.setCenterPoint(r,i,o,s)},setCenterPoint:function(e,t,n,a){var r=this,i=r.width-t-r.drawingArea,o=e+r.drawingArea,s=n+r.drawingArea,l=r.height-r.paddingTop-a-r.drawingArea;r.xCenter=Math.floor((o+i)/2+r.left),r.yCenter=Math.floor((s+l)/2+r.top+r.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,a=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(a)*t+n.xCenter,y:Math.sin(a)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,n=t.min,a=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:n<0&&a<0?a:n>0&&a>0?n:0)},_drawGrid:function(){var e,t,n,a=this,r=a.ctx,i=a.options,o=i.gridLines,s=i.angleLines,l=Fa(s.lineWidth,o.lineWidth),c=Fa(s.color,o.color);if(i.pointLabels.display&&Ja(a),o.display&&ie.each(a.ticks,(function(e,n){0!==n&&(t=a.getDistanceFromCenterForValue(a.ticksAsNumbers[n]),Xa(a,o,t,n))})),s.display&&l&&c){for(r.save(),r.lineWidth=l,r.strokeStyle=c,r.setLineDash&&(r.setLineDash(Ra([s.borderDash,o.borderDash,[]])),r.lineDashOffset=Ra([s.borderDashOffset,o.borderDashOffset,0])),e=a.chart.data.labels.length-1;e>=0;e--)t=a.getDistanceFromCenterForValue(i.ticks.reverse?a.min:a.max),n=a.getPointPosition(e,t),r.beginPath(),r.moveTo(a.xCenter,a.yCenter),r.lineTo(n.x,n.y),r.stroke();r.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var a,r,i=e.getIndexAngle(0),o=ie.options._parseFont(n),s=Fa(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)&&(a=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(r=t.measureText(i).width,t.fillStyle=n.backdropColor,t.fillRect(-r/2-n.backdropPaddingX,-a-o.size/2-n.backdropPaddingY,r+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(i,0,-a))})),t.restore()}},_drawTitle:ie.noop}),tr=Ba;er._defaults=tr;var nr=ie._deprecated,ar=ie.options.resolve,rr=ie.valueOrDefault,ir=Number.MIN_SAFE_INTEGER||-9007199254740991,or=Number.MAX_SAFE_INTEGER||9007199254740991,sr={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}},lr=Object.keys(sr);function cr(e,t){return e-t}function ur(e){var t,n,a,r={},i=[];for(t=0,n=e.length;t<n;++t)r[a=e[t]]||(r[a]=!0,i.push(a));return i}function dr(e){return ie.valueOrDefault(e.time.min,e.ticks.min)}function pr(e){return ie.valueOrDefault(e.time.max,e.ticks.max)}function mr(e,t,n,a){if("linear"===a||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var r,i,o,s,l,c=[],u=[t];for(r=0,i=e.length;r<i;++r)(s=e[r])>t&&s<n&&u.push(s);for(u.push(n),r=0,i=u.length;r<i;++r)l=u[r+1],o=u[r-1],s=u[r],void 0!==o&&void 0!==l&&Math.round((l+o)/2)===s||c.push({time:s,pos:r/(i-1)});return c}function fr(e,t,n){for(var a,r,i,o=0,s=e.length-1;o>=0&&o<=s;){if(r=e[(a=o+s>>1)-1]||null,i=e[a],!r)return{lo:null,hi:i};if(i[t]<n)o=a+1;else{if(!(r[t]>n))return{lo:r,hi:i};s=a-1}}return{lo:i,hi:null}}function hr(e,t,n,a){var r=fr(e,t,n),i=r.lo?r.hi?r.lo:e[e.length-2]:e[0],o=r.lo?r.hi?r.hi:e[e.length-1]:e[1],s=o[t]-i[t],l=s?(n-i[t])/s:0,c=(o[a]-i[a])*l;return i[a]+c}function _r(e,t){var n=e._adapter,a=e.options.time,r=a.parser,i=r||a.format,o=t;return"function"==typeof r&&(o=r(o)),ie.isFinite(o)||(o="string"==typeof i?n.parse(o,i):n.parse(o)),null!==o?+o:(r||"function"!=typeof i||(o=i(t),ie.isFinite(o)||(o=n.parse(o))),o)}function vr(e,t){if(ie.isNullOrUndef(t))return null;var n=e.options.time,a=_r(e,e.getRightValue(t));return null===a||n.round&&(a=+e._adapter.startOf(a,n.round)),a}function gr(e,t,n,a){var r,i,o,s=lr.length;for(r=lr.indexOf(e);r<s-1;++r)if(o=(i=sr[lr[r]]).steps?i.steps:or,i.common&&Math.ceil((n-t)/(o*i.size))<=a)return lr[r];return lr[s-1]}function yr(e,t,n,a,r){var i,o;for(i=lr.length-1;i>=lr.indexOf(n);i--)if(o=lr[i],sr[o].common&&e._adapter.diff(r,a,o)>=t-1)return o;return lr[n?lr.indexOf(n):0]}function br(e){for(var t=lr.indexOf(e)+1,n=lr.length;t<n;++t)if(sr[lr[t]].common)return lr[t]}function wr(e,t,n,a){var r,i=e._adapter,o=e.options,s=o.time,l=s.unit||gr(s.minUnit,t,n,a),c=ar([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(r=d;r<n;r=+i.add(r,c,l))p.push(r);return r!==n&&"ticks"!==o.bounds||p.push(r),p}function xr(e,t,n,a,r){var i,o,s=0,l=0;return r.offset&&t.length&&(i=hr(e,"time",t[0],"pos"),s=1===t.length?1-i:(hr(e,"time",t[1],"pos")-i)/2,o=hr(e,"time",t[t.length-1],"pos"),l=1===t.length?o:(o-hr(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}function kr(e,t,n,a){var r,i,o=e._adapter,s=+o.startOf(t[0].value,a),l=t[t.length-1].value;for(r=s;r<=l;r=+o.add(r,1,a))(i=n[r])>=0&&(t[i].major=!0);return t}function Dr(e,t,n){var a,r,i=[],o={},s=t.length;for(a=0;a<s;++a)o[r=t[a]]=a,i.push({value:r,major:!1});return 0!==s&&n?kr(e,i,o,n):i}var Mr={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}}},Sr=_a.extend({initialize:function(){this.mergeTicksOptions(),_a.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),a=e._adapter=new Zn._date(t.adapters.date);return nr("time scale",n.format,"time.format","time.parser"),nr("time scale",n.min,"time.min","ticks.min"),nr("time scale",n.max,"time.max","ticks.max"),ie.mergeIf(n.displayFormats,a.formats()),_a.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),_a.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,a,r,i,o,s=this,l=s.chart,c=s._adapter,u=s.options,d=u.time.unit||"day",p=or,m=ir,f=[],h=[],_=[],v=s._getLabels();for(e=0,n=v.length;e<n;++e)_.push(vr(s,v[e]));for(e=0,n=(l.data.datasets||[]).length;e<n;++e)if(l.isDatasetVisible(e))if(r=l.data.datasets[e].data,ie.isObject(r[0]))for(h[e]=[],t=0,a=r.length;t<a;++t)i=vr(s,r[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?ur(f).sort(cr):f.sort(cr),p=Math.min(p,f[0]),m=Math.max(m,f[f.length-1])),p=vr(s,dr(u))||p,m=vr(s,pr(u))||m,p=p===or?+c.startOf(Date.now(),d):p,m=m===ir?+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,a=this,r=a.min,i=a.max,o=a.options,s=o.ticks,l=o.time,c=a._timestamps,u=[],d=a.getLabelCapacity(r),p=s.source,m=o.distribution;for(c="data"===p||"auto"===p&&"series"===m?c.data:"labels"===p?c.labels:wr(a,r,i,d),"ticks"===o.bounds&&c.length&&(r=c[0],i=c[c.length-1]),r=vr(a,dr(o))||r,i=vr(a,pr(o))||i,e=0,t=c.length;e<t;++e)(n=c[e])>=r&&n<=i&&u.push(n);return a.min=r,a.max=i,a._unit=l.unit||(s.autoSkip?gr(l.minUnit,a.min,a.max,d):yr(a,u.length,l.minUnit,a.min,a.max)),a._majorUnit=s.major.enabled&&"year"!==a._unit?br(a._unit):void 0,a._table=mr(a._timestamps.data,r,i,m),a._offsets=xr(a._table,u,r,i,o),s.reverse&&u.reverse(),Dr(a,u,a._majorUnit)},getLabelForIndex:function(e,t){var n=this,a=n._adapter,r=n.chart.data,i=n.options.time,o=r.labels&&e<r.labels.length?r.labels[e]:"",s=r.datasets[t].data[e];return ie.isObject(s)&&(o=n.getRightValue(s)),i.tooltipFormat?a.format(_r(n,o),i.tooltipFormat):"string"==typeof o?o:a.format(_r(n,o),i.displayFormats.datetime)},tickFormatFunction:function(e,t,n,a){var r=this,i=r._adapter,o=r.options,s=o.time.displayFormats,l=s[r._unit],c=r._majorUnit,u=s[c],d=n[t],p=o.ticks,m=c&&u&&d&&d.major,f=i.format(e,a||(m?u:l)),h=m?p.major:p.minor,_=ar([h.callback,h.userCallback,p.callback,p.userCallback]);return _?_(f,t,n):f},convertTicksToLabels:function(e){var t,n,a=[];for(t=0,n=e.length;t<n;++t)a.push(this.tickFormatFunction(e[t].value,t,e));return a},getPixelForOffset:function(e){var t=this,n=t._offsets,a=hr(t._table,"time",e,"pos");return t.getPixelForDecimal((n.start+a)*n.factor)},getPixelForValue:function(e,t,n){var a=this,r=null;if(void 0!==t&&void 0!==n&&(r=a._timestamps.datasets[n][t]),null===r&&(r=vr(a,e)),null!==r)return a.getPixelForOffset(r)},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,a=t.getDecimalForPixel(e)/n.factor-n.end,r=hr(t._table,"pos",a,"time");return t._adapter._create(r)},_getLabelSize:function(e){var t=this,n=t.options.ticks,a=t.ctx.measureText(e).width,r=ie.toRadians(t.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(r),o=Math.sin(r),s=rr(n.fontSize,J.global.defaultFontSize);return{w:a*i+s*o,h:a*o+s*i}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,a=n.displayFormats,r=a[n.unit]||a.millisecond,i=t.tickFormatFunction(e,0,Dr(t,[e],t._majorUnit),r),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}}),Cr=Mr;Sr._defaults=Cr;var Lr={category:ya,linear:Ea,logarithmic:Na,radialLinear:er,time:Sr},Tr={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 Tr},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,a){return e(t).add(n,a).valueOf()},diff:function(t,n,a){return e(t).diff(e(n),a)},startOf:function(t,n,a){return t=e(t),"isoWeek"===n?t.isoWeekday(a).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 Or={dataset:function(e){var t=e.fill,n=e.chart,a=n.getDatasetMeta(t),r=a&&n.isDatasetVisible(t)&&a.dataset._children||[],i=r.length||0;return i?function(e,t){return t<i&&r[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,a=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===a?e.y:a}}}};function Er(e,t,n){var a,r=e._model||{},i=r.fill;if(void 0===i&&(i=!!r.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(a=parseFloat(i,10),isFinite(a)&&Math.floor(a)===a)return"-"!==i[0]&&"+"!==i[0]||(a=t+a),!(a===t||a<0||a>=n)&&a;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 jr(e){var t,n=e.el._model||{},a=e.el._scale||{},r=e.fill,i=null;if(isFinite(r))return null;if("start"===r?i=void 0===n.scaleBottom?a.bottom:n.scaleBottom:"end"===r?i=void 0===n.scaleTop?a.top:n.scaleTop:void 0!==n.scaleZero?i=n.scaleZero:a.getBasePixel&&(i=a.getBasePixel()),null!=i){if(void 0!==i.x&&void 0!==i.y)return i;if(ie.isFinite(i))return{x:(t=a.isHorizontal())?i:null,y:t?null:i}}return null}function Ar(e){var t,n,a,r,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,a=o.getPointPositionForValue(0,t),r=0;r<l;++r)i="start"===c||"end"===c?o.getPointPositionForValue(r,"start"===c?t:n):o.getBasePosition(r),s.gridLines.circular&&(i.cx=a.x,i.cy=a.y,i.angle=o.getIndexAngle(r)-Math.PI/2),u.push(i);return u}function Pr(e){return(e.el._scale||{}).getPointPositionForValue?Ar(e):jr(e)}function $r(e,t,n){var a,r=e[t].fill,i=[t];if(!n)return r;for(;!1!==r&&-1===i.indexOf(r);){if(!isFinite(r))return r;if(!(a=e[r]))return!1;if(a.visible)return r;i.push(r),r=a.fill}return!1}function Yr(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),Or[n](e))}function zr(e){return e&&!e.skip}function Nr(e,t,n,a,r){var i,o,s,l;if(a&&r){for(e.moveTo(t[0].x,t[0].y),i=1;i<a;++i)ie.canvas.lineTo(e,t[i-1],t[i]);if(void 0===n[0].angle)for(e.lineTo(n[r-1].x,n[r-1].y),i=r-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=r-1;i>0;--i)e.arc(o,s,l,n[i].angle,n[i-1].angle,!0)}}function Ir(e,t,n,a,r,i){var o,s,l,c,u,d,p,m,f=t.length,h=a.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,a),d=zr(c),p=zr(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)):(Nr(e,_,v,g,y),g=y=0,_=[],v=[]));Nr(e,_,v,g,y),e.closePath(),e.fillStyle=r,e.fill()}var Fr={id:"filler",afterDatasetsUpdate:function(e,t){var n,a,r,i,o=(e.data.datasets||[]).length,s=t.propagate,l=[];for(a=0;a<o;++a)i=null,(r=(n=e.getDatasetMeta(a)).dataset)&&r._model&&r instanceof Ve.Line&&(i={visible:e.isDatasetVisible(a),fill:Er(r,a,o),chart:e,el:r}),n.$filler=i,l.push(i);for(a=0;a<o;++a)(i=l[a])&&(i.fill=$r(l,a,s),i.boundary=Pr(i),i.mapper=Yr(i))},beforeDatasetsDraw:function(e){var t,n,a,r,i,o,s,l=e._getSortedVisibleDatasetMetas(),c=e.ctx;for(n=l.length-1;n>=0;--n)(t=l[n].$filler)&&t.visible&&(r=(a=t.el)._view,i=a._children||[],o=t.mapper,s=r.backgroundColor||J.global.defaultColor,o&&s&&i.length&&(ie.canvas.clipArea(c,e.chartArea),Ir(c,i,o,r,s,a._loop),ie.canvas.unclipArea(c)))}},Hr=ie.rtl.getRtlAdapter,Rr=ie.noop,Br=ie.valueOrDefault;function qr(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,a=this.chart,r=a.getDatasetMeta(n);r.hidden=null===r.hidden?!a.data.datasets[n].hidden:null,a.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},a=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var r=n.controller.getStyle(a?0:void 0);return{text:t[n.index].label,fillStyle:r.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:r.borderWidth,strokeStyle:r.borderColor,pointStyle:r.pointStyle,rotation:r.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,a,r=document.createElement("ul"),i=e.data.datasets;for(r.setAttribute("class",e.id+"-legend"),t=0,n=i.length;t<n;t++)(a=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=i[t].backgroundColor,i[t].label&&a.appendChild(document.createTextNode(i[t].label));return r.outerHTML}});var Vr=me.extend({initialize:function(e){var t=this;ie.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:Rr,update:function(e,t,n){var a=this;return a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=n,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:Rr,beforeSetDimensions:Rr,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:Rr,beforeBuildLabels:Rr,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:Rr,beforeFit:Rr,fit:function(){var e=this,t=e.options,n=t.labels,a=t.display,r=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=a?10:0):(l.width=a?10:0,l.height=e.maxHeight),a){if(r.font=i.string,c){var u=e.lineWidths=[0],d=0;r.textAlign="left",r.textBaseline="middle",ie.each(e.legendItems,(function(e,t){var a=qr(n,o)+o/2+r.measureText(e.text).width;(0===t||u[u.length-1]+a+2*n.padding>l.width)&&(d+=o+n.padding,u[u.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:a,height:o},u[u.length-1]+=a+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 a=qr(n,o)+o/2+r.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(_,a),v+=o+p,s[t]={left:0,top:0,width:a,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:Rr,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,a=J.global,r=a.defaultColor,i=a.elements.line,o=e.height,s=e.columnHeights,l=e.width,c=e.lineWidths;if(t.display){var u,d=Hr(t.rtl,e.left,e.minSize.width),p=e.ctx,m=Br(n.fontColor,a.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 _=qr(n,h),v=e.legendHitBoxes,g=function(e,t,a){if(!(isNaN(_)||_<=0)){p.save();var o=Br(a.lineWidth,i.borderWidth);if(p.fillStyle=Br(a.fillStyle,r),p.lineCap=Br(a.lineCap,i.borderCapStyle),p.lineDashOffset=Br(a.lineDashOffset,i.borderDashOffset),p.lineJoin=Br(a.lineJoin,i.borderJoinStyle),p.lineWidth=o,p.strokeStyle=Br(a.strokeStyle,r),p.setLineDash&&p.setLineDash(Br(a.lineDash,i.borderDash)),n&&n.usePointStyle){var s=_*Math.SQRT2/2,l=d.xPlus(e,_/2),c=t+h/2;ie.canvas.drawPoint(p,a.pointStyle,s,l,c,a.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,a){var r=h/2,i=d.xPlus(e,_+r),o=t+r;p.fillText(n.text,i,o),n.hidden&&(p.beginPath(),p.lineWidth=2,p.moveTo(i,o),p.lineTo(d.xPlus(i,a),o),p.stroke())},b=function(e,a){switch(t.align){case"start":return n.padding;case"end":return e-a;default:return(e-a+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,a){var r=p.measureText(t.text).width,i=_+h/2+r,m=u.x,f=u.y;d.setWidth(e.minSize.width),w?a>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])):a>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[a].left=d.leftForLtr(k,v[a].width),v[a].top=f,y(k,f,t,r),w?u.x+=i+n.padding:u.y+=x})),ie.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,a,r,i=this;if(e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom)for(r=i.legendHitBoxes,n=0;n<r.length;++n)if(e>=(a=r[n]).left&&e<=a.left+a.width&&t>=a.top&&t<=a.top+a.height)return i.legendItems[n];return null},handleEvent:function(e){var t,n=this,a=n.options,r="mouseup"===e.type?"click":e.type;if("mousemove"===r){if(!a.onHover&&!a.onLeave)return}else{if("click"!==r)return;if(!a.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===r?t&&a.onClick&&a.onClick.call(n,e.native,t):(a.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&a.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),a.onHover&&t&&a.onHover.call(n,e.native,t))}});function Wr(e,t){var n=new Vr({ctx:e.ctx,options:t,chart:e});Bt.configure(e,n,t),Bt.addBox(e,n),e.legend=n}var Ur={id:"legend",_element:Vr,beforeInit:function(e){var t=e.options.legend;t&&Wr(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):Wr(e,t)):n&&(Bt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Kr=ie.noop;J._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Zr=me.extend({initialize:function(e){var t=this;ie.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:Kr,update:function(e,t,n){var a=this;return a.beforeUpdate(),a.maxWidth=e,a.maxHeight=t,a.margins=n,a.beforeSetDimensions(),a.setDimensions(),a.afterSetDimensions(),a.beforeBuildLabels(),a.buildLabels(),a.afterBuildLabels(),a.beforeFit(),a.fit(),a.afterFit(),a.afterUpdate(),a.minSize},afterUpdate:Kr,beforeSetDimensions:Kr,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:Kr,beforeBuildLabels:Kr,buildLabels:Kr,afterBuildLabels:Kr,beforeFit:Kr,fit:function(){var e,t=this,n=t.options,a=t.minSize={},r=t.isHorizontal();n.display?(e=(ie.isArray(n.text)?n.text.length:1)*ie.options._parseFont(n).lineHeight+2*n.padding,t.width=a.width=r?t.maxWidth:e,t.height=a.height=r?e:t.maxHeight):t.width=a.width=t.height=a.height=0},afterFit:Kr,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 a,r,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()?(r=d+(m-d)/2,i=u+l,a=m-d):(r="left"===n.position?d+l:m-l,i=u+(p-u)/2,a=p-u,c=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,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,a),h+=s;else t.fillText(f,0,0,a);t.restore()}}});function Gr(e,t){var n=new Zr({ctx:e.ctx,options:t,chart:e});Bt.configure(e,n,t),Bt.addBox(e,n),e.titleBlock=n}var Jr={},Xr=Fr,Qr=Ur,ei={id:"title",_element:Zr,beforeInit:function(e){var t=e.options.title;t&&Gr(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):Gr(e,t)):n&&(Bt.removeBox(e,n),delete e.titleBlock)}};for(var ti in Jr.filler=Xr,Jr.legend=Qr,Jr.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=_a,Vn.scaleService=bn,Vn.Ticks=Gn,Vn.Tooltip=$n,Vn.helpers.each(Lr,(function(e,t){Vn.scaleService.registerScaleType(t,e,e._defaults)})),Jr)Jr.hasOwnProperty(ti)&&Vn.plugins.register(Jr[ti]);Vn.platform.initialize();var ni=Vn;return"undefined"!=typeof window&&(window.Chart=Vn),Vn.Chart=Vn,Vn.Legend=Jr.legend._element,Vn.Title=Jr.title._element,Vn.pluginService=Vn.plugins,Vn.PluginBase=Vn.Element.extend({}),Vn.canvasHelpers=Vn.helpers.canvas,Vn.layoutService=Vn.layouts,Vn.LinearScaleBase=Da,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 a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.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{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:64px;line-height:64px;border-bottom:1px solid #eaeaea;padding-left:32px;padding-right:64px}.sweet-modal .sweet-title>h2{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;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{margin-bottom:0}.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=r},2130:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.push([e.id,".flatpickr-calendar.open{z-index:60!important}",""]);const i=r},9:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.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=r},2222:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.push([e.id,".note-modal .header-editior .editor-menu-bar{margin-left:.5px;margin-right:0}",""]);const i=r},3042:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.push([e.id,".customer-select .list{max-height:173px;min-height:173px}",""]);const i=r},2828:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.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=r},9963:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.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=r},4853:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var a=n(3645),r=n.n(a),i=n(1667),o=n.n(i),s=n(5223),l=n(4262),c=n(5741),u=n(9759),d=r()((function(e){return e[1]})),p=o()(s.Z),m=o()(l.Z),f=o()(c.Z),h=o()(u.Z);d.push([e.id,".content-box[data-v-11c1cc80]{background-image:url("+p+")}.content-bottom[data-v-11c1cc80]{background-image:url("+m+");background-size:100% 100%;height:300px;right:32%;bottom:0}.content-box[data-v-11c1cc80]:before{background-image:url("+f+');content:"";background-size:100% 100%;background-repeat:no-repeat;height:300px;right:0;position:absolute;top:0;width:420px;z-index:1}.content-box[data-v-11c1cc80]:after{background-image:url('+h+');content:"";background-size:cover;background-repeat:no-repeat;height:100%;width:100%;right:7.5%;position:absolute}',""]);const _=d},2921:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.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=r},6691:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.push([e.id,"@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",""]);const i=r},9818:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.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=r},1323:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.push([e.id,'.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;padding:0;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex-basis:auto!important;width:auto;height:auto;margin:0 .3125em;padding:0}.swal2-popup.swal2-toast .swal2-styled{margin:.125em .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(100,150,200,.5)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:5px;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0;padding:0 1.6em}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-radius:100%;border-color:#2778c4 transparent;border-style:solid;border-width:.25em}.swal2-styled{margin:.3125em;padding:.625em 1.1em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{background:initial;background-color:#2778c4}.swal2-styled.swal2-confirm,.swal2-styled.swal2-deny{border:0;border-radius:.25em;color:#fff;font-size:1.0625em}.swal2-styled.swal2-deny{background:initial;background-color:#d14529}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#757575;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto}.swal2-validation-message{align-items:center;justify-content:center;margin:0 -2.7em;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message:before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border-radius:50%;border:.25em solid #000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotate(2deg)}33%{transform:translateY(0) rotate(-2deg)}66%{transform:translateY(.3125em) rotate(2deg)}to{transform:translateY(0) rotate(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotate(2deg)}33%{transform:translateY(0) rotate(-2deg)}66%{transform:translateY(.3125em) rotate(2deg)}to{transform:translateY(0) rotate(0)}}@-webkit-keyframes swal2-toast-hide{to{transform:rotate(1deg);opacity:0}}@keyframes swal2-toast-hide{to{transform:rotate(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}to{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}to{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}to{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}to{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}to{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}to{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}to{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}to{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}to{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}to{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}to{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}to{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}to{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}to{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}to{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}to{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}to{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}to{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - 1.25em);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}',""]);const i=r},7155:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.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=r},434:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.push([e.id,".graph-container[data-v-878dc3be]{height:300px}",""]);const i=r},7107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.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=r},788:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.push([e.id,".tab[data-v-135b706d]{padding:0!important}.tab-link[data-v-135b706d]{padding:10px 30px;display:block}",""]);const i=r},3499:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.push([e.id,".update-description ul li{list-style:disc!important;margin-bottom:4px}",""]);const i=r},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,a){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(a)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);a&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},1667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},5741:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const a="/images/frame.svg?80b4b3370cd4d68c39c0917187c3f808"},5223:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const a="/images/login-vector1.svg?0219f4e0e25c2e9312418104cd297059"},9759:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const a="/images/login-vector2.svg?8431f70ed49a489f143039f237dccb93"},4262:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const a="/images/login-vector3.svg?500ed563c10faf720187ca00a297ae89"},8527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});const a=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],r={_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 a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}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"),a=p("input","numInput "+e),r=p("span","arrowUp"),i=p("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==t)for(const e in t)a.setAttribute(e,t[e]);return n.appendChild(a),n.appendChild(r),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 a=parseInt(t),r=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),r},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=r,l10n:t=i,isMobile:n=!1})=>(a,r,i)=>{const o=i||t;return void 0===e.formatDate||n?r.split("").map(((t,n,r)=>w[t]&&"\\"!==r[n-1]?w[t](a,o,e):"\\"!==t?t:"")).join(""):e.formatDate(a,r,o)},k=({config:e=r,l10n:t=i})=>(n,a,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=a||(e||r).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 a,r=[];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&&(a=!0)&&r["Y"!==c?"push":"unshift"]({fn:y[c],val:e[++i]})}else u||(o+=".");r.forEach((({fn:e,val:t})=>l=e(l,t,s)||l))}l=a?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,a=e.defaultSeconds;if(void 0!==e.minDate){const r=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();t<r&&(t=r),t===r&&n<i&&(n=i),t===r&&n===i&&a<o&&(a=e.minDate.getSeconds())}if(void 0!==e.maxDate){const r=e.maxDate.getHours(),i=e.maxDate.getMinutes();t=Math.min(t,r),t===r&&(n=Math.min(i,n)),t===r&&n===i&&(a=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:a}}n(1895);function C(e,t){const n={config:Object.assign(Object.assign({},r),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,a=_(e),r=a;void 0!==n.amPM&&a===n.amPM&&(n.amPM.textContent=n.l10n.amPM[l(n.amPM.textContent===n.l10n.amPM[0])]);const i=parseFloat(r.getAttribute("min")),o=parseFloat(r.getAttribute("max")),c=parseFloat(r.getAttribute("step")),u=parseInt(r.value,10),d=e.delta||(t?38===e.which?1:-1:0);let p=u+c*d;if(void 0!==r.value&&2===r.value.length){const e=r===n.hourElement,t=r===n.minuteElement;p<i?(p=o+p+l(!e)+(l(e)&&l(!n.amPM)),t&&$(void 0,-1,n.hourElement)):p>o&&(p=r===n.hourElement?p-o-l(!n.amPM):i,t&&$(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])]),r.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,a=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;var r,i;void 0!==n.amPM&&(r=e,i=n.amPM.textContent,e=r%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 r=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;e=Math.min(e,r.getHours()),e===r.getHours()&&(t=Math.min(t,r.getMinutes())),t===r.getMinutes()&&(a=Math.min(a,r.getSeconds()))}if(o){const r=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;e=Math.max(e,r.getHours()),e===r.getHours()&&t<r.getMinutes()&&(t=r.getMinutes()),t===r.getMinutes()&&(a=Math.max(a,r.getSeconds()))}L(e,t,a)}function C(e){const t=e||n.latestSelectedDateObj;t&&L(t.getHours(),t.getMinutes(),t.getSeconds())}function L(e,t,a){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,a||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(a)))}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,a,r){return t instanceof Array?t.forEach((t=>E(e,t,a,r))):e instanceof Array?e.forEach((e=>E(e,t,a,r))):(e.addEventListener(t,a,r),void n._handlers.push({remove:()=>e.removeEventListener(t,a)}))}function j(){me("onChange")}function A(e,t){const a=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),r=n.currentYear,i=n.currentMonth;try{void 0!==a&&(n.currentYear=a.getFullYear(),n.currentMonth=a.getMonth())}catch(e){e.message="Invalid date supplied: "+a,n.config.errorHandler(e)}t&&n.currentYear!==r&&(me("onYearChange"),R()),!t||n.currentYear===r&&n.currentMonth===i||me("onMonthChange"),n.redraw()}function P(e){const t=_(e);~t.className.indexOf("arrow")&&$(e,t.classList.contains("arrowUp")?1:-1)}function $(e,t,n){const a=e&&_(e),r=n||a&&a.parentNode&&a.parentNode.firstChild,i=fe("increment");i.delta=t,r&&r.dispatchEvent(i)}function Y(e,t,a,r){const i=J(t,!0),o=p("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=r,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&&a%7==1&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(t)+"</span>"),me("onDayCreate",o),o}function z(e){e.focus(),"range"===n.config.mode&&te(e)}function N(e){const t=e>0?0:n.config.showMonths-1,a=e>0?n.config.showMonths:-1;for(let r=t;r!=a;r+=e){const t=n.daysContainer.children[r],a=e>0?0:t.children.length-1,i=e>0?t.children.length:-1;for(let n=a;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 a=X(document.activeElement||document.body),r=void 0!==e?e:a?document.activeElement:void 0!==n.selectedDateElem&&X(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&X(n.todayDateElem)?n.todayDateElem:N(t>0?1:-1);void 0===r?n._input.focus():a?function(e,t){const a=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,r=t>0?n.config.showMonths:-1,i=t>0?1:-1;for(let o=a-n.currentMonth;o!=r;o+=i){const r=n.daysContainer.children[o],s=a-n.currentMonth===o?e.$i+t:t<0?r.children.length-1:0,l=r.children.length;for(let n=s;n>=0&&n<l&&n!=(t>0?l:-1);n+=i){const a=r.children[n];if(-1===a.className.indexOf("hidden")&&J(a.dateObj)&&Math.abs(e.$i-n)>=Math.abs(t))return z(a)}}n.changeMonth(i),I(N(i),0)}(r,t):z(r)}function F(e,t){const a=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,r=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=r+1-a,d=0;for(;u<=r;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 r=i+1;r<=42-a&&(1===n.config.showMonths||d%7!=0);r++,d++)o.appendChild(Y(c,new Date(e,t+1,r%i),r,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 a=new Date(n.currentYear,n.currentMonth,1);a.setMonth(n.currentMonth+t),e.appendChild(F(a.getFullYear(),a.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 a=p("option","flatpickr-monthDropdown-month");a.value=new Date(n.currentYear,t).getMonth().toString(),a.textContent=g(t,n.config.shorthandCurrentMonth,n.l10n),a.tabIndex=-1,n.currentMonth===t&&(a.selected=!0),n.monthsDropdownContainer.appendChild(a)}}function B(){const e=p("div","flatpickr-month"),t=window.document.createDocumentFragment();let a;n.config.showMonths>1||"static"===n.config.monthSelectorType?a=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),a=parseInt(t.value,10);n.changeMonth(a-n.currentMonth),me("onMonthChange")})),R(),a=n.monthsDropdownContainer);const r=h("cur-year",{tabindex:"-1"}),i=r.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(a),o.appendChild(r),t.appendChild(o),e.appendChild(t),{container:e,yearElement:i,monthElement:a}}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 a=t?e:e-n.currentMonth;a<0&&!0===n._hidePrevMonthArrow||a>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=a,(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),a=K(t),r=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?r&&e.relatedTarget&&!K(e.relatedTarget):!r&&!a&&!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,a=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)),a&&(n.redraw(),me("onYearChange"),R())}function J(e,t=!0){var a;const r=n.parseDate(e,void 0,t);if(n.config.minDate&&r&&D(r,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&r&&D(r,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===r)return!1;const i=!!n.config.enable,o=null!==(a=n.config.enable)&&void 0!==a?a:n.config.disable;for(let e,t=0;t<o.length;t++){if(e=o[t],"function"==typeof e&&e(r))return i;if(e instanceof Date&&void 0!==r&&e.getTime()===r.getTime())return i;if("string"==typeof e){const t=n.parseDate(e,void 0,!0);return t&&t.getTime()===r.getTime()?i:!i}if("object"==typeof e&&void 0!==r&&e.from&&e.to&&r.getTime()>=e.from.getTime()&&r.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 a=_(t),r=n.config.wrap?e.contains(a):a===n._input,i=n.config.allowInput,o=n.isOpen&&(!i||!r),s=n.config.inline&&r&&!i;if(13===t.keyCode&&r){if(i)return n.setDate(n._input.value,!0,a===n.altInput?n.config.altFormat:n.config.dateFormat),a.blur();n.open()}else if(K(a)||o||s){const e=!!n.timeContainer&&n.timeContainer.contains(a);switch(t.keyCode){case 13:e?(t.preventDefault(),y(),le()):ce(t);break;case 27:t.preventDefault(),le();break;case 8:case 46:r&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(e||r)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(N(1),0)):I(void 0,e)}break;case 38:case 40:t.preventDefault();const o=40===t.keyCode?1:-1;n.daysContainer&&void 0!==a.$i||a===n.input||a===n.altInput?t.ctrlKey?(t.stopPropagation(),G(n.currentYear-o),I(N(1),0)):e||I(void 0,7*o):a===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)),r=e.indexOf(a);if(-1!==r){const a=e[r+(t.shiftKey?-1:1)];t.preventDefault(),(a||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(a)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&a===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()}(r||K(a))&&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(),a=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),r=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=r;e<i;e+=M)J(new Date(e),!0)||(o=o||e>r&&e<i,e<a&&(!s||e>s)?s=e:e>a&&(!l||e<l)&&(l=e));for(let r=0;r<n.config.showMonths;r++){const i=n.daysContainer.children[r];for(let r=0,p=i.children.length;r<p;r++){const p=i.children[r],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"),a<t&&m===a?p.classList.add("startRange"):a>t&&m===a&&p.classList.add("endRange"),m>=s&&(0===l||m<=l)&&(u=a,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 ae(e){return t=>{const a=n.config[`_${e}Date`]=n.parseDate(t,n.config.dateFormat),r=n.config[`_${"min"===e?"max":"min"}Date`];void 0!==a&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=a.getHours()>0||a.getMinutes()>0||a.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((e=>J(e))),n.selectedDates.length||"min"!==e||C(a),ge()),n.daysContainer&&(se(),void 0!==a?n.currentYearElement[e]=a.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!r&&void 0!==a&&r.getFullYear()===a.getFullYear())}}function re(){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,a=Array.prototype.reduce.call(n.calendarContainer.children,((e,t)=>e+t.offsetHeight),0),r=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<a&&l.top>a,p=window.pageYOffset+l.top+(u?-a-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-=(r-l.width)/2,f=!0):"right"===s&&(m-=r-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+r>window.document.body.offsetWidth,g=_+r>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,a=Math.max(0,t/2-r/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=`${a}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 a=t,r=n.latestSelectedDateObj=new Date(a.dateObj.getTime()),i=(r.getMonth()<n.currentMonth||r.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=a,"single"===n.config.mode)n.selectedDates=[r];else if("multiple"===n.config.mode){const e=he(r);e?n.selectedDates.splice(parseInt(e),1):n.selectedDates.push(r)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=r,n.selectedDates.push(r),0!==D(r,n.selectedDates[0],!0)&&n.selectedDates.sort(((e,t)=>e.getTime()-t.getTime())));if(w(),i){const e=n.currentYear!==r.getFullYear();n.currentYear=r.getFullYear(),n.currentMonth=r.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():z(a),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()}j()}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:a}=S(n.config);L(e,t,a)}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=A,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 a=n.isOpen;n.isOpen=!0,a||(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())):a.indexOf(e)>-1&&(n.config[e]=u(t));n.redraw(),ge(!0)},n.setDate=function(e,t=!1,a=n.config.dateFormat){if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);de(e,a),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),A(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:[A],maxDate:[A],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 a=[];if(e instanceof Array)a=e.map((e=>n.parseDate(e,t)));else if(e instanceof Date||"number"==typeof e)a=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":a=[n.parseDate(e,t)];break;case"multiple":a=e.split(n.config.conjunction).map((e=>n.parseDate(e,t)));break;case"range":a=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?a:a.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 a=n.config[e];if(void 0!==a&&a.length>0)for(let e=0;a[e]&&e<a.length;e++)a[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 a=new Date(n.currentYear,n.currentMonth,1);a.setMonth(n.currentMonth+t),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=g(a.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=a.getMonth().toString(),e.value=a.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,a)=>"range"!==n.config.mode||n.config.enableTime||a.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),a=n.prevMonthNav.contains(t),r=n.nextMonthNav.contains(t);a||r?U(a?-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||r.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||r.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:ae("min")}),Object.defineProperty(n.config,"maxDate",{get:()=>n.config._maxDate,set:ae("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]];a.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)a.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=re().className+" "+n.config.altInputClass);me("onParseConfig")}(),ie(),function(){if(n.input=re(),!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",":"),a=h("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=a.getElementsByTagName("input")[0];const r=h("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=r.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(a),n.timeContainer.appendChild(t),n.timeContainer.appendChild(r),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(j,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",P),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),j()}))}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)),a=[];for(let e=0;e<n.length;e++){const r=n[e];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=C(r,t||{}),a.push(r._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"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 a(e){if(!e)throw new TypeError("Invalid argument; `value` has no value.");this.value=a.EMPTY,e&&e instanceof a?this.value=e.toString():e&&"[object String]"===Object.prototype.toString.call(e)&&a.isGuid(e)&&(this.value=e),this.equals=function(e){return a.isGuid(e)&&this.value==e},this.isEmpty=function(){return this.value===a.EMPTY},this.toString=function(){return this.value},this.toJSON=function(){return this.value}}a.EMPTY="00000000-0000-0000-0000-000000000000",a.isGuid=function(e){return e&&(e instanceof a||t.test(e.toString()))},a.create=function(){return new a([n(2),n(1),n(1),n(1),n(3)].join("-"))},a.raw=function(){return[n(2),n(1),n(1),n(1),n(3)].join("-")},e.exports?e.exports=a:"undefined"!=typeof window&&(window.Guid=a)}()},8552:(e,t,n)=>{var a=n(852)(n(5639),"DataView");e.exports=a},1989:(e,t,n)=>{var a=n(1789),r=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 a=e[t];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=r,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},8407:(e,t,n)=>{var a=n(7040),r=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 a=e[t];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=r,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},7071:(e,t,n)=>{var a=n(852)(n(5639),"Map");e.exports=a},3369:(e,t,n)=>{var a=n(4785),r=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 a=e[t];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=r,l.prototype.get=i,l.prototype.has=o,l.prototype.set=s,e.exports=l},3818:(e,t,n)=>{var a=n(852)(n(5639),"Promise");e.exports=a},8525:(e,t,n)=>{var a=n(852)(n(5639),"Set");e.exports=a},8668:(e,t,n)=>{var a=n(3369),r=n(619),i=n(2385);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new a;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=r,o.prototype.has=i,e.exports=o},6384:(e,t,n)=>{var a=n(8407),r=n(7465),i=n(3779),o=n(7599),s=n(4758),l=n(4309);function c(e){var t=this.__data__=new a(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},2705:(e,t,n)=>{var a=n(5639).Symbol;e.exports=a},1149:(e,t,n)=>{var a=n(5639).Uint8Array;e.exports=a},577:(e,t,n)=>{var a=n(852)(n(5639),"WeakMap");e.exports=a},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,a=null==e?0:e.length,r=0,i=[];++n<a;){var o=e[n];t(o,n,e)&&(i[r++]=o)}return i}},4636:(e,t,n)=>{var a=n(2545),r=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&&r(e),d=!n&&!u&&o(e),p=!n&&!u&&!d&&l(e),m=n||u||d||p,f=m?a(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,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}},6556:(e,t,n)=>{var a=n(9465),r=n(7813);e.exports=function(e,t,n){(void 0!==n&&!r(e[t],n)||void 0===n&&!(t in e))&&a(e,t,n)}},4865:(e,t,n)=>{var a=n(9465),r=n(7813),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];i.call(e,t)&&r(o,n)&&(void 0!==n||t in e)||a(e,t,n)}},8470:(e,t,n)=>{var a=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1}},9465:(e,t,n)=>{var a=n(8777);e.exports=function(e,t,n){"__proto__"==t&&a?a(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},3118:(e,t,n)=>{var a=n(3218),r=Object.create,i=function(){function e(){}return function(t){if(!a(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},8483:(e,t,n)=>{var a=n(5063)();e.exports=a},8866:(e,t,n)=>{var a=n(2488),r=n(1469);e.exports=function(e,t,n){var i=t(e);return r(e)?i:a(i,n(e))}},4239:(e,t,n)=>{var a=n(2705),r=n(9607),i=n(2333),o=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?r(e):i(e)}},9454:(e,t,n)=>{var a=n(4239),r=n(7005);e.exports=function(e){return r(e)&&"[object Arguments]"==a(e)}},939:(e,t,n)=>{var a=n(2492),r=n(7005);e.exports=function e(t,n,i,o,s){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:a(t,n,i,o,e,s))}},2492:(e,t,n)=>{var a=n(6384),r=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 a),g||u(e)?r(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 a),_(C,L,n,h,v)}}return!!D&&(v||(v=new a),o(e,t,n,h,_,v))}},8458:(e,t,n)=>{var a=n(3560),r=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)||r(e))&&(a(e)?p:s).test(o(e))}},8749:(e,t,n)=>{var a=n(4239),r=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)&&r(e.length)&&!!o[a(e)]}},280:(e,t,n)=>{var a=n(7360),r=n(6916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!a(e))return r(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 a=n(3218),r=n(7360),i=n(3498),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!a(e))return i(e);var t=r(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},2980:(e,t,n)=>{var a=n(6384),r=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 a),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),r(t,l,m)}}),l)}},9783:(e,t,n)=>{var a=n(6556),r=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)a(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=r(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)),a(e,n,M)}}},5976:(e,t,n)=>{var a=n(6557),r=n(5357),i=n(61);e.exports=function(e,t){return i(r(e,t,a),e+"")}},6560:(e,t,n)=>{var a=n(5703),r=n(8777),i=n(6557),o=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:a(t),writable:!0})}:i;e.exports=o},2545:e=>{e.exports=function(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}},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 a=n(1149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new a(t).set(new a(e)),t}},4626:(e,t,n)=>{e=n.nmd(e);var a=n(5639),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?a.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,a=s?s(n):new e.constructor(n);return e.copy(a),a}},7133:(e,t,n)=>{var a=n(4318);e.exports=function(e,t){var n=t?a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},278:e=>{e.exports=function(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}},8363:(e,t,n)=>{var a=n(4865),r=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?r(n,c,u):a(n,c,u)}return n}},4429:(e,t,n)=>{var a=n(5639)["__core-js_shared__"];e.exports=a},1463:(e,t,n)=>{var a=n(5976),r=n(6612);e.exports=function(e){return a((function(t,n){var a=-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&&r(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++a<i;){var l=n[a];l&&e(t,l,a,o)}return t}))}},5063:e=>{e.exports=function(e){return function(t,n,a){for(var r=-1,i=Object(t),o=a(t),s=o.length;s--;){var l=o[e?s:++r];if(!1===n(i[l],l,i))break}return t}}},8777:(e,t,n)=>{var a=n(852),r=function(){try{var e=a(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},7114:(e,t,n)=>{var a=n(8668),r=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 a: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(!r(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 a=n(2705),r=n(1149),i=n(7813),o=n(7114),s=n(8776),l=n(1814),c=a?a.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,a,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 r(e),new r(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&a;if(m||(m=l),e.size!=t.size&&!f)return!1;var h=p.get(e);if(h)return h==t;a|=2,p.set(e,t);var _=o(m(e),m(t),a,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 a=n(8234),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,s){var l=1&n,c=a(e),u=c.length;if(u!=a(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:r.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 a="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=a},8234:(e,t,n)=>{var a=n(8866),r=n(9551),i=n(3674);e.exports=function(e){return a(e,i,r)}},5050:(e,t,n)=>{var a=n(7019);e.exports=function(e,t){var n=e.__data__;return a(t)?n["string"==typeof t?"string":"hash"]:n.map}},852:(e,t,n)=>{var a=n(8458),r=n(7801);e.exports=function(e,t){var n=r(e,t);return a(n)?n:void 0}},5924:(e,t,n)=>{var a=n(5569)(Object.getPrototypeOf,Object);e.exports=a},9607:(e,t,n)=>{var a=n(2705),r=Object.prototype,i=r.hasOwnProperty,o=r.toString,s=a?a.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var a=!0}catch(e){}var r=o.call(e);return a&&(t?e[s]=n:delete e[s]),r}},9551:(e,t,n)=>{var a=n(4963),r=n(479),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),a(o(e),(function(t){return i.call(e,t)})))}:r;e.exports=s},4160:(e,t,n)=>{var a=n(8552),r=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(a),_=c(r),v=c(i),g=c(o),y=c(s),b=l;(a&&b(new a(new ArrayBuffer(1)))!=f||r&&b(new r)!=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,a=n?c(n):"";if(a)switch(a){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 a=n(4536);e.exports=function(){this.__data__=a?a(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 a=n(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(a){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var a=n(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return a?void 0!==t[e]:r.call(t,e)}},1866:(e,t,n)=>{var a=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=a&&void 0===t?"__lodash_hash_undefined__":t,this}},8517:(e,t,n)=>{var a=n(3118),r=n(5924),i=n(7360);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:a(r(e))}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var a=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==a||"symbol"!=a&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:(e,t,n)=>{var a=n(7813),r=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?r(n)&&i(t,n.length):"string"==s&&t in n)&&a(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 a,r=n(4429),i=(a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";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 a=n(8470),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=a(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},2117:(e,t,n)=>{var a=n(8470);e.exports=function(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]}},7518:(e,t,n)=>{var a=n(8470);e.exports=function(e){return a(this.__data__,e)>-1}},4705:(e,t,n)=>{var a=n(8470);e.exports=function(e,t){var n=this.__data__,r=a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},4785:(e,t,n)=>{var a=n(1989),r=n(8407),i=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new a,map:new(i||r),string:new a}}},1285:(e,t,n)=>{var a=n(5050);e.exports=function(e){var t=a(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var a=n(5050);e.exports=function(e){return a(this,e).get(e)}},9916:(e,t,n)=>{var a=n(5050);e.exports=function(e){return a(this,e).has(e)}},5265:(e,t,n)=>{var a=n(5050);e.exports=function(e,t){var n=a(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,a){n[++t]=[a,e]})),n}},4536:(e,t,n)=>{var a=n(852)(Object,"create");e.exports=a},6916:(e,t,n)=>{var a=n(5569)(Object.keys,Object);e.exports=a},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 a=n(1957),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&a.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 a=n(6874),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=r(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),a(e,this,c)}}},5639:(e,t,n)=>{var a=n(1957),r="object"==typeof self&&self&&self.Object===Object&&self,i=a||r||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 a=n(6560),r=n(1275)(a);e.exports=r},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,a=0;return function(){var r=t(),i=16-(r-a);if(a=r,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var a=n(8407);e.exports=function(){this.__data__=new a,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 a=n(8407),r=n(7071),i=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof a){var o=n.__data__;if(!r||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 a=n(9454),r=n(7005),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,l=a(function(){return arguments}())?a:function(e){return r(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 a=n(3560),r=n(1780);e.exports=function(e){return null!=e&&r(e.length)&&!a(e)}},9246:(e,t,n)=>{var a=n(8612),r=n(7005);e.exports=function(e){return r(e)&&a(e)}},4144:(e,t,n)=>{e=n.nmd(e);var a=n(5639),r=n(5062),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?a.Buffer:void 0,l=(s?s.isBuffer:void 0)||r;e.exports=l},8446:(e,t,n)=>{var a=n(939);e.exports=function(e,t){return a(e,t)}},3560:(e,t,n)=>{var a=n(4239),r=n(3218);e.exports=function(e){if(!r(e))return!1;var t=a(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 a=n(4239),r=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]"!=a(e))return!1;var t=r(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 a=n(8749),r=n(1717),i=n(1167),o=i&&i.isTypedArray,s=o?r(o):a;e.exports=s},3674:(e,t,n)=>{var a=n(4636),r=n(280),i=n(8612);e.exports=function(e){return i(e)?a(e):r(e)}},1704:(e,t,n)=>{var a=n(4636),r=n(313),i=n(8612);e.exports=function(e){return i(e)?a(e,!0):r(e)}},6486:function(e,t,n){var a;e=n.nmd(e),function(){var r,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]",j="[object Symbol]",A="[object WeakMap]",P="[object ArrayBuffer]",$="[object DataView]",Y="[object Float32Array]",z="[object Float64Array]",N="[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*$/,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(re.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]",je="["+Te+"]",Ae="["+De+"]",Pe="\\d+",$e="[\\u2700-\\u27bf]",Ye="["+Se+"]",ze="[^\\ud800-\\udfff"+Te+Pe+Me+Se+Ce+"]",Ne="\\ud83c[\\udffb-\\udfff]",Ie="[^\\ud800-\\udfff]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",Re="["+Ce+"]",Be="(?:"+Ye+"|"+ze+")",qe="(?:"+Re+"|"+ze+")",Ve="(?:['](?:d|ll|m|re|s|t|ve))?",We="(?:['](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+Ae+"|"+Ne+")"+"?",Ke="[\\ufe0e\\ufe0f]?",Ze=Ke+Ue+("(?:\\u200d(?:"+[Ie,Fe,He].join("|")+")"+Ke+Ue+")*"),Ge="(?:"+[$e,Fe,He].join("|")+")"+Ze,Je="(?:"+[Ie+Ae+"?",Ae,Fe,He,Ee].join("|")+")",Xe=RegExp(Oe,"g"),Qe=RegExp(Ae,"g"),et=RegExp(Ne+"(?="+Ne+")|"+Je+Ze,"g"),tt=RegExp([Re+"?"+Ye+"+"+Ve+"(?="+[je,Re,"$"].join("|")+")",qe+"+"+We+"(?="+[je,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_])",Pe,Ge].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+De+Le+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["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[z]=ot[N]=ot[I]=ot[F]=ot[H]=ot[R]=ot[B]=ot[q]=!0,ot[g]=ot[y]=ot[P]=ot[b]=ot[$]=ot[w]=ot[x]=ot[k]=ot[M]=ot[S]=ot[C]=ot[T]=ot[O]=ot[E]=ot[A]=!1;var st={};st[g]=st[y]=st[P]=st[$]=st[b]=st[w]=st[Y]=st[z]=st[N]=st[I]=st[F]=st[M]=st[S]=st[C]=st[T]=st[O]=st[E]=st[j]=st[H]=st[R]=st[B]=st[q]=!0,st[x]=st[k]=st[A]=!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,a){for(var r=-1,i=null==e?0:e.length;++r<i;){var o=e[r];t(a,o,n(o),e)}return a}function Ct(e,t){for(var n=-1,a=null==e?0:e.length;++n<a&&!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,a=null==e?0:e.length;++n<a;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,a=null==e?0:e.length,r=0,i=[];++n<a;){var o=e[n];t(o,n,e)&&(i[r++]=o)}return i}function Et(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function jt(e,t,n){for(var a=-1,r=null==e?0:e.length;++a<r;)if(n(t,e[a]))return!0;return!1}function At(e,t){for(var n=-1,a=null==e?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}function Pt(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}function $t(e,t,n,a){var r=-1,i=null==e?0:e.length;for(a&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function Yt(e,t,n,a){var r=null==e?0:e.length;for(a&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function zt(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}var Nt=Vt("length");function It(e,t,n){var a;return n(e,(function(e,n,r){if(t(e,n,r))return a=n,!1})),a}function Ft(e,t,n,a){for(var r=e.length,i=n+(a?1:-1);a?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,n){return t==t?function(e,t,n){var a=n-1,r=e.length;for(;++a<r;)if(e[a]===t)return a;return-1}(e,t,n):Ft(e,Bt,n)}function Rt(e,t,n,a){for(var r=n-1,i=e.length;++r<i;)if(a(e[r],t))return r;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?r:t[e]}}function Wt(e){return function(t){return null==e?r:e[t]}}function Ut(e,t,n,a,r){return r(e,(function(e,r,i){n=a?(a=!1,e):t(n,e,r,i)})),n}function Kt(e,t){for(var n,a=-1,i=e.length;++a<i;){var o=t(e[a]);o!==r&&(n=n===r?o:n+o)}return n}function Zt(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}function Gt(e){return function(t){return e(t)}}function Jt(e,t){return At(t,(function(t){return e[t]}))}function Xt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,a=e.length;++n<a&&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,a=0;n--;)e[n]===t&&++a;return a}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"}),an=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rn(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,a){n[++t]=[a,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,a=e.length,r=0,i=[];++n<a;){var o=e[n];o!==t&&o!==s||(e[n]=s,i[r++]=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):Nt(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,a=(t=null==t?mt:hn.defaults(mt.Object(),t,hn.pick(mt,rt))).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,je=a.prototype,Ae=Se.prototype,Pe=Le.prototype,$e=t["__core-js_shared__"],Ye=Ae.toString,ze=Pe.hasOwnProperty,Ne=0,Ie=(n=/[^.]+$/.exec($e&&$e.keys&&$e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Fe=Pe.toString,He=Ye.call(Le),Re=mt._,Be=Te("^"+Ye.call(ze).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=_t?t.Buffer:r,Ve=t.Symbol,We=t.Uint8Array,Ue=qe?qe.allocUnsafe:r,Ke=ln(Le.getPrototypeOf,Le),Ze=Le.create,Ge=Pe.propertyIsEnumerable,Je=je.splice,et=Ve?Ve.isConcatSpreadable:r,nt=Ve?Ve.iterator:r,lt=Ve?Ve.toStringTag:r,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,Nt=Le.getOwnPropertySymbols,Wt=qe?qe.isBuffer:r,_n=t.isFinite,vn=je.join,gn=ln(Le.keys,Le),yn=Ce.max,bn=Ce.min,wn=De.now,xn=t.parseInt,kn=Ce.random,Dn=je.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,jn={},An=Ii(Mn),Pn=Ii(Sn),$n=Ii(Cn),Yn=Ii(Ln),zn=Ii(Tn),Nn=Ve?Ve.prototype:r,In=Nn?Nn.valueOf:r,Fn=Nn?Nn.toString:r;function Hn(e){if(as(e)&&!Wo(e)&&!(e instanceof Vn)){if(e instanceof qn)return e;if(ze.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=r,n}}();function Bn(){}function qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}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 a=e[t];this.set(a[0],a[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[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),a=!n&&Vo(e),r=!n&&!a&&Go(e),i=!n&&!a&&!r&&ds(e),o=n||a||r||i,s=o?Zt(e.length,Oe):[],l=s.length;for(var c in e)!t&&!ze.call(e,c)||o&&("length"==c||r&&("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[Za(0,t-1)]:r}function Qn(e,t){return Yi(Or(e),la(t,0,e.length))}function ea(e){return Yi(Or(e))}function ta(e,t,n){(n!==r&&!Ro(e[t],n)||n===r&&!(t in e))&&oa(e,t,n)}function na(e,t,n){var a=e[t];ze.call(e,t)&&Ro(a,n)&&(n!==r||t in e)||oa(e,t,n)}function aa(e,t){for(var n=e.length;n--;)if(Ro(e[n][0],t))return n;return-1}function ra(e,t,n,a){return ma(e,(function(e,r,i){t(a,e,n(e),i)})),a}function ia(e,t){return e&&Er(t,As(t),e)}function oa(e,t,n){"__proto__"==t&&dt?dt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sa(e,t){for(var n=-1,i=t.length,o=a(i),s=null==e;++n<i;)o[n]=s?r:Ls(e,t[n]);return o}function la(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ca(e,t,n,a,i,o){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,a,i,o):n(e)),s!==r)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]&&ze.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Or(e,s)}else{var p=hi(e),m=p==k||p==D;if(Go(e))return Dr(e,l);if(p==C||p==g||m&&!i){if(s=c||m?{}:vi(e),!l)return c?function(e,t){return Er(e,fi(e),t)}(e,function(e,t){return e&&Er(t,Ps(t),e)}(s,e)):function(e,t){return Er(e,mi(e),t)}(e,ia(s,e))}else{if(!st[p])return i?e:{};s=function(e,t,n){var a=e.constructor;switch(t){case P:return Mr(e);case b:case w:return new a(+e);case $:return function(e,t){var n=t?Mr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case Y:case z:case N:case I:case F:case H:case R:case B:case q:return Sr(e,n);case M:return new a;case S:case E:return new a(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 a;case j:return r=e,In?Le(In.call(r)):{}}var r}(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(a){s.add(ca(a,t,n,a,e,o))})):rs(e)&&e.forEach((function(a,r){s.set(r,ca(a,t,n,r,e,o))}));var h=d?r:(u?c?ii:ri:c?Ps:As)(e);return Ct(h||e,(function(a,r){h&&(a=e[r=a]),na(s,r,ca(a,t,n,r,e,o))})),s}function ua(e,t,n){var a=n.length;if(null==e)return!a;for(e=Le(e);a--;){var i=n[a],o=t[i],s=e[i];if(s===r&&!(i in e)||!o(s))return!1}return!0}function da(e,t,n){if("function"!=typeof e)throw new Ee(i);return ji((function(){e.apply(r,n)}),t)}function pa(e,t,n,a){var r=-1,i=Et,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=At(t,Gt(n))),a?(i=jt,o=!1):t.length>=200&&(i=Xt,o=!1,t=new Zn(t));e:for(;++r<s;){var u=e[r],d=null==n?u:n(u);if(u=a||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,a)||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?r:n}return ze.call(t,e)?t[e]:r},Wn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==r:ze.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===r?o:t,this},Un.prototype.clear=function(){this.__data__=[],this.size=0},Un.prototype.delete=function(e){var t=this.__data__,n=aa(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=aa(t,e);return n<0?r:t[n][1]},Un.prototype.has=function(e){return aa(this.__data__,e)>-1},Un.prototype.set=function(e,t){var n=this.__data__,a=aa(n,e);return a<0?(++this.size,n.push([e,t])):n[a][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),a=n.size;return n.set(e,t),this.size+=n.size==a?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 a=n.__data__;if(!Sn||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(a)}return n.set(e,t),this.size=n.size,this};var ma=Pr(wa),fa=Pr(xa,!0);function ha(e,t){var n=!0;return ma(e,(function(e,a,r){return n=!!t(e,a,r)})),n}function _a(e,t,n){for(var a=-1,i=e.length;++a<i;){var o=e[a],s=t(o);if(null!=s&&(l===r?s==s&&!us(s):n(s,l)))var l=s,c=o}return c}function va(e,t){var n=[];return ma(e,(function(e,a,r){t(e,a,r)&&n.push(e)})),n}function ga(e,t,n,a,r){var i=-1,o=e.length;for(n||(n=gi),r||(r=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?ga(s,t-1,n,a,r):Pt(r,s):a||(r[r.length]=s)}return r}var ya=$r(),ba=$r(!0);function wa(e,t){return e&&ya(e,t,As)}function xa(e,t){return e&&ba(e,t,As)}function ka(e,t){return Ot(t,(function(t){return Qo(e[t])}))}function Da(e,t){for(var n=0,a=(t=br(t,e)).length;null!=e&&n<a;)e=e[Ni(t[n++])];return n&&n==a?e:r}function Ma(e,t,n){var a=t(e);return Wo(e)?a:Pt(a,n(e))}function Sa(e){return null==e?e===r?"[object Undefined]":"[object Null]":lt&&lt in Le(e)?function(e){var t=ze.call(e,lt),n=e[lt];try{e[lt]=r;var a=!0}catch(e){}var i=Fe.call(e);a&&(t?e[lt]=n:delete e[lt]);return i}(e):function(e){return Fe.call(e)}(e)}function Ca(e,t){return e>t}function La(e,t){return null!=e&&ze.call(e,t)}function Ta(e,t){return null!=e&&t in Le(e)}function Oa(e,t,n){for(var i=n?jt:Et,o=e[0].length,s=e.length,l=s,c=a(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=At(p,Gt(t))),u=bn(p.length,u),c[l]=!n&&(t||o>=120&&p.length>=120)?new Zn(l&&p):r}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 Ea(e,t,n){var a=null==(e=Li(e,t=br(t,e)))?e:e[Ni(Ji(t))];return null==a?r:Mt(a,e,n)}function ja(e){return as(e)&&Sa(e)==g}function Aa(e,t,n,a,i){return e===t||(null==e||null==t||!as(e)&&!as(t)?e!=e&&t!=t:function(e,t,n,a,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,a,i,o):function(e,t,n,a,r,i,o){switch(n){case $:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P: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&a;if(s||(s=un),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;a|=2,o.set(e,t);var u=ni(s(e),s(t),a,r,i,o);return o.delete(e),u;case j:if(In)return In.call(e)==In.call(t)}return!1}(e,t,c,n,a,i,o);if(!(1&n)){var f=d&&ze.call(e,"__wrapped__"),h=p&&ze.call(t,"__wrapped__");if(f||h){var _=f?e.value():e,v=h?t.value():t;return o||(o=new Gn),i(_,v,n,a,o)}}if(!m)return!1;return o||(o=new Gn),function(e,t,n,a,i,o){var s=1&n,l=ri(e),c=l.length,u=ri(t).length;if(c!=u&&!s)return!1;var d=c;for(;d--;){var p=l[d];if(!(s?p in t:ze.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(a)var y=s?a(g,v,p,t,e,o):a(v,g,p,e,t,o);if(!(y===r?v===g||i(v,g,n,a,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,a,i,o)}(e,t,n,a,Aa,i))}function Pa(e,t,n,a){var i=n.length,o=i,s=!a;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===r&&!(c in e))return!1}else{var p=new Gn;if(a)var m=a(u,d,c,e,t,p);if(!(m===r?Aa(d,u,3,a,p):m))return!1}}return!0}function $a(e){return!(!ns(e)||(t=e,Ie&&Ie in t))&&(Qo(e)?Be:ge).test(Ii(e));var t}function Ya(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?Wo(e)?Ra(e[0],e[1]):Ha(e):fl(e)}function za(e){if(!Di(e))return gn(e);var t=[];for(var n in Le(e))ze.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Na(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 a in e)("constructor"!=a||!t&&ze.call(e,a))&&n.push(a);return n}function Ia(e,t){return e<t}function Fa(e,t){var n=-1,r=Ko(e)?a(e.length):[];return ma(e,(function(e,a,i){r[++n]=t(e,a,i)})),r}function Ha(e){var t=di(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(n){return n===e||Pa(n,e,t)}}function Ra(e,t){return wi(e)&&Mi(t)?Si(Ni(e),t):function(n){var a=Ls(n,e);return a===r&&a===t?Ts(n,e):Aa(t,a,3)}}function Ba(e,t,n,a,i){e!==t&&ya(t,(function(o,s){if(i||(i=new Gn),ns(o))!function(e,t,n,a,i,o,s){var l=Oi(e,n),c=Oi(t,n),u=s.get(c);if(u)return void ta(e,n,u);var d=o?o(l,c,n+"",e,t,s):r,p=d===r;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=Or(l):f?(p=!1,d=Dr(c,!0)):h?(p=!1,d=Sr(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,a,o,s),s.delete(c));ta(e,n,d)}(e,t,s,n,Ba,a,i);else{var l=a?a(Oi(e,s),o,s+"",e,t,i):r;l===r&&(l=o),ta(e,s,l)}}),Ps)}function qa(e,t){var n=e.length;if(n)return yi(t+=t<0?n:0,n)?e[t]:r}function Va(e,t,n){t=t.length?At(t,(function(e){return Wo(e)?function(t){return Da(t,1===e.length?e[0]:e)}:e})):[il];var a=-1;return t=At(t,Gt(ci())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Fa(e,(function(e,n,r){return{criteria:At(t,(function(t){return t(e)})),index:++a,value:e}})),(function(e,t){return function(e,t,n){var a=-1,r=e.criteria,i=t.criteria,o=r.length,s=n.length;for(;++a<o;){var l=Cr(r[a],i[a]);if(l)return a>=s?l:l*("desc"==n[a]?-1:1)}return e.index-t.index}(e,t,n)}))}function Wa(e,t,n){for(var a=-1,r=t.length,i={};++a<r;){var o=t[a],s=Da(e,o);n(s,o)&&er(i,br(o,e),s)}return i}function Ua(e,t,n,a){var r=a?Rt:Ht,i=-1,o=t.length,s=e;for(e===t&&(t=Or(t)),n&&(s=At(e,Gt(n)));++i<o;)for(var l=0,c=t[i],u=n?n(c):c;(l=r(s,u,l,a))>-1;)s!==e&&Je.call(s,l,1),Je.call(e,l,1);return e}function Ka(e,t){for(var n=e?t.length:0,a=n-1;n--;){var r=t[n];if(n==a||r!==i){var i=r;yi(r)?Je.call(e,r,1):pr(e,r)}}return e}function Za(e,t){return e+gt(kn()*(t-e+1))}function Ga(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 Ja(e,t){return Ai(Ci(e,t,il),e+"")}function Xa(e){return Xn(Rs(e))}function Qa(e,t){var n=Rs(e);return Yi(n,la(t,0,n.length))}function er(e,t,n,a){if(!ns(e))return e;for(var i=-1,o=(t=br(t,e)).length,s=o-1,l=e;null!=l&&++i<o;){var c=Ni(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=a?a(d,c,l):r)===r&&(u=ns(d)?d:yi(t[i+1])?[]:{})}na(l,c,u),l=l[c]}return e}var tr=En?function(e,t){return En.set(e,t),e}:il,nr=dt?function(e,t){return dt(e,"toString",{configurable:!0,enumerable:!1,value:nl(t),writable:!0})}:il;function ar(e){return Yi(Rs(e))}function rr(e,t,n){var r=-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=a(i);++r<i;)o[r]=e[r+t];return o}function ir(e,t){var n;return ma(e,(function(e,a,r){return!(n=t(e,a,r))})),!!n}function or(e,t,n){var a=0,r=null==e?a:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;a<r;){var i=a+r>>>1,o=e[i];null!==o&&!us(o)&&(n?o<=t:o<t)?a=i+1:r=i}return r}return sr(e,t,il,n)}function sr(e,t,n,a){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===r;i<o;){var d=gt((i+o)/2),p=n(e[d]),m=p!==r,f=null===p,h=p==p,_=us(p);if(s)var v=a||h;else v=u?h&&(a||m):l?h&&m&&(a||!f):c?h&&m&&!f&&(a||!_):!f&&!_&&(a?p<=t:p<t);v?i=d+1:o=d}return bn(o,4294967294)}function lr(e,t){for(var n=-1,a=e.length,r=0,i=[];++n<a;){var o=e[n],s=t?t(o):o;if(!n||!Ro(s,l)){var l=s;i[r++]=0===o?0:o}}return i}function cr(e){return"number"==typeof e?e:us(e)?h:+e}function ur(e){if("string"==typeof e)return e;if(Wo(e))return At(e,ur)+"";if(us(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function dr(e,t,n){var a=-1,r=Et,i=e.length,o=!0,s=[],l=s;if(n)o=!1,r=jt;else if(i>=200){var c=t?null:Gr(e);if(c)return un(c);o=!1,r=Xt,l=new Zn}else l=t?[]:s;e:for(;++a<i;){var u=e[a],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 r(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function pr(e,t){return null==(e=Li(e,t=br(t,e)))||delete e[Ni(Ji(t))]}function mr(e,t,n,a){return er(e,t,n(Da(e,t)),a)}function fr(e,t,n,a){for(var r=e.length,i=a?r:-1;(a?i--:++i<r)&&t(e[i],i,e););return n?rr(e,a?0:i,a?i+1:r):rr(e,a?i+1:0,a?r:i)}function hr(e,t){var n=e;return n instanceof Vn&&(n=n.value()),$t(t,(function(e,t){return t.func.apply(t.thisArg,Pt([e],t.args))}),n)}function _r(e,t,n){var r=e.length;if(r<2)return r?dr(e[0]):[];for(var i=-1,o=a(r);++i<r;)for(var s=e[i],l=-1;++l<r;)l!=i&&(o[i]=pa(o[i]||s,e[l],t,n));return dr(ga(o,1),t,n)}function vr(e,t,n){for(var a=-1,i=e.length,o=t.length,s={};++a<i;){var l=a<o?t[a]:r;n(s,e[a],l)}return s}function gr(e){return Zo(e)?e:[]}function yr(e){return"function"==typeof e?e:il}function br(e,t){return Wo(e)?e:wi(e,t)?[e]:zi(bs(e))}var wr=Ja;function xr(e,t,n){var a=e.length;return n=n===r?a:n,!t&&n>=a?e:rr(e,t,n)}var kr=pt||function(e){return mt.clearTimeout(e)};function Dr(e,t){if(t)return e.slice();var n=e.length,a=Ue?Ue(n):new e.constructor(n);return e.copy(a),a}function Mr(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Sr(e,t){var n=t?Mr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Cr(e,t){if(e!==t){var n=e!==r,a=null===e,i=e==e,o=us(e),s=t!==r,l=null===t,c=t==t,u=us(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||a&&s&&c||!n&&c||!i)return 1;if(!a&&!o&&!u&&e<t||u&&n&&i&&!a&&!o||l&&n&&i||!s&&i||!c)return-1}return 0}function Lr(e,t,n,r){for(var i=-1,o=e.length,s=n.length,l=-1,c=t.length,u=yn(o-s,0),d=a(c+u),p=!r;++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 Tr(e,t,n,r){for(var i=-1,o=e.length,s=-1,l=n.length,c=-1,u=t.length,d=yn(o-l,0),p=a(d+u),m=!r;++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 Or(e,t){var n=-1,r=e.length;for(t||(t=a(r));++n<r;)t[n]=e[n];return t}function Er(e,t,n,a){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=a?a(n[l],e[l],l,n,e):r;c===r&&(c=e[l]),i?oa(n,l,c):na(n,l,c)}return n}function jr(e,t){return function(n,a){var r=Wo(n)?St:ra,i=t?t():{};return r(n,e,ci(a,2),i)}}function Ar(e){return Ja((function(t,n){var a=-1,i=n.length,o=i>1?n[i-1]:r,s=i>2?n[2]:r;for(o=e.length>3&&"function"==typeof o?(i--,o):r,s&&bi(n[0],n[1],s)&&(o=i<3?r:o,i=1),t=Le(t);++a<i;){var l=n[a];l&&e(t,l,a,o)}return t}))}function Pr(e,t){return function(n,a){if(null==n)return n;if(!Ko(n))return e(n,a);for(var r=n.length,i=t?r:-1,o=Le(n);(t?i--:++i<r)&&!1!==a(o[i],i,o););return n}}function $r(e){return function(t,n,a){for(var r=-1,i=Le(t),o=a(t),s=o.length;s--;){var l=o[e?s:++r];if(!1===n(i[l],l,i))break}return t}}function Yr(e){return function(t){var n=on(t=bs(t))?mn(t):r,a=n?n[0]:t.charAt(0),i=n?xr(n,1).join(""):t.slice(1);return a[e]()+i}}function zr(e){return function(t){return $t(Qs(Vs(t).replace(Xe,"")),e,"")}}function Nr(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),a=e.apply(n,t);return ns(a)?a:n}}function Ir(e){return function(t,n,a){var i=Le(t);if(!Ko(t)){var o=ci(n,3);t=As(t),n=function(e){return o(i[e],e,i)}}var s=e(t,n,a);return s>-1?i[o?t[s]:s]:r}}function Fr(e){return ai((function(t){var n=t.length,a=n,o=qn.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new Ee(i);if(o&&!l&&"wrapper"==si(s))var l=new qn([],!0)}for(a=l?a:n;++a<n;){var c=si(s=t[a]),u="wrapper"==c?oi(s):r;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,a=e[0];if(l&&1==e.length&&Wo(a))return l.plant(a).value();for(var r=0,i=n?t[r].apply(this,e):a;++r<n;)i=t[r].call(this,i);return i}}))}function Hr(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?r:Nr(e);return function r(){for(var d=arguments.length,y=a(d),b=d;b--;)y[b]=arguments[b];if(_)var w=li(r),x=tn(y,w);if(i&&(y=Lr(y,i,o,_)),s&&(y=Tr(y,s,l,_)),d-=x,_&&d<p){var k=cn(y,w);return Kr(e,t,Hr,r.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 r&&(M=g||Nr(M)),M.apply(D,y)}}function Rr(e,t){return function(n,a){return function(e,t,n,a){return wa(e,(function(e,r,i){t(a,n(e),r,i)})),a}(n,e,t(a),{})}}function Br(e,t){return function(n,a){var i;if(n===r&&a===r)return t;if(n!==r&&(i=n),a!==r){if(i===r)return a;"string"==typeof n||"string"==typeof a?(n=ur(n),a=ur(a)):(n=cr(n),a=cr(a)),i=e(n,a)}return i}}function qr(e){return ai((function(t){return t=At(t,Gt(ci())),Ja((function(n){var a=this;return e(t,(function(e){return Mt(e,a,n)}))}))}))}function Vr(e,t){var n=(t=t===r?" ":ur(t)).length;if(n<2)return n?Ga(t,e):t;var a=Ga(t,vt(e/pn(t)));return on(t)?xr(mn(a),0,e).join(""):a.slice(0,e)}function Wr(e){return function(t,n,i){return i&&"number"!=typeof i&&bi(t,n,i)&&(n=i=r),t=hs(t),n===r?(n=t,t=0):n=hs(n),function(e,t,n,r){for(var i=-1,o=yn(vt((t-e)/(n||1)),0),s=a(o);o--;)s[r?o:++i]=e,e+=n;return s}(t,n,i=i===r?t<n?1:-1:hs(i),e)}}function Ur(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function Kr(e,t,n,a,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:r,m?s:r,m?r:o,m?r:s,l,d,p],h=n.apply(r,f);return xi(e)&&Ei(h,f),h.placeholder=a,Pi(h,e,t)}function Zr(e){var t=Ce[e];return function(e,n){if(e=gs(e),(n=null==n?0:bn(_s(n),292))&&_n(e)){var a=(bs(e)+"e").split("e");return+((a=(bs(t(a[0]+"e"+(+a[1]+n)))+"e").split("e"))[0]+"e"+(+a[1]-n))}return t(e)}}var Gr=Ln&&1/un(new Ln([,-0]))[1]==m?function(e){return new Ln(e)}:ul;function Jr(e){return function(t){var n=hi(t);return n==M?sn(t):n==O?dn(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xr(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=r),h=h===r?h:yn(_s(h),0),_=_===r?_:_s(_),g-=m?m.length:0,t&u){var y=o,b=m;o=m=r}var w=v?r:oi(e),x=[e,t,n,o,m,y,b,f,h,_];if(w&&function(e,t){var n=e[1],a=t[1],r=n|a,i=r<131,o=a==d&&8==n||a==d&&n==p&&e[7].length<=t[8]||384==a&&t[7].length<=t[8]&&8==n;if(!i&&!o)return e;1&a&&(e[2]=t[2],r|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Lr(c,l,t[4]):l,e[4]=c?cn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Tr(c,l,t[6]):l,e[6]=c?cn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);a&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]=r}(x,w),e=x[0],t=x[1],n=x[2],o=x[3],m=x[4],!(_=x[9]=x[9]===r?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=Nr(e);return function o(){for(var s=arguments.length,l=a(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?Kr(e,t,Hr,o.placeholder,r,l,d,r,r,n-s):Mt(this&&this!==mt&&this instanceof o?i:e,this,l)}}(e,t,_):t!=c&&33!=t||m.length?Hr.apply(r,x):function(e,t,n,r){var i=1&t,o=Nr(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=r.length,d=a(u+l),p=this&&this!==mt&&this instanceof t?o:e;++c<u;)d[c]=r[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 a=1&t,r=Nr(e);return function t(){return(this&&this!==mt&&this instanceof t?r:e).apply(a?n:this,arguments)}}(e,t,n);return Pi((w?tr:Ei)(k,x),e,t)}function Qr(e,t,n,a){return e===r||Ro(e,Pe[n])&&!ze.call(a,n)?t:e}function ei(e,t,n,a,i,o){return ns(e)&&ns(t)&&(o.set(t,e),Ba(e,t,r,ei,o),o.delete(t)),e}function ti(e){return os(e)?r:e}function ni(e,t,n,a,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:r;for(o.set(e,t),o.set(t,e);++p<l;){var h=e[p],_=t[p];if(a)var v=s?a(_,h,p,t,e,o):a(h,_,p,e,t,o);if(v!==r){if(v)continue;m=!1;break}if(f){if(!zt(t,(function(e,t){if(!Xt(f,t)&&(h===e||i(h,e,n,a,o)))return f.push(t)}))){m=!1;break}}else if(h!==_&&!i(h,_,n,a,o)){m=!1;break}}return o.delete(e),o.delete(t),m}function ai(e){return Ai(Ci(e,r,Wi),e+"")}function ri(e){return Ma(e,As,mi)}function ii(e){return Ma(e,Ps,fi)}var oi=En?function(e){return En.get(e)}:ul;function si(e){for(var t=e.name+"",n=jn[t],a=ze.call(jn,t)?n.length:0;a--;){var r=n[a],i=r.func;if(null==i||i==e)return r.name}return t}function li(e){return(ze.call(Hn,"placeholder")?Hn:e).placeholder}function ci(){var e=Hn.iteratee||ol;return e=e===ol?Ya:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n,a,r=e.__data__;return("string"==(a=typeof(n=t))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function di(e){for(var t=As(e),n=t.length;n--;){var a=t[n],r=e[a];t[n]=[a,r,Mi(r)]}return t}function pi(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return $a(n)?n:r}var mi=Nt?function(e){return null==e?[]:(e=Le(e),Ot(Nt(e),(function(t){return Ge.call(e,t)})))}:vl,fi=Nt?function(e){for(var t=[];e;)Pt(t,mi(e)),e=Ke(e);return t}:vl,hi=Sa;function _i(e,t,n){for(var a=-1,r=(t=br(t,e)).length,i=!1;++a<r;){var o=Ni(t[a]);if(!(i=null!=e&&n(e,o)))break;e=e[o]}return i||++a!=r?i:!!(r=null==e?0:e.length)&&ts(r)&&yi(o,r)&&(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 a=typeof t;return!!("number"==a?Ko(n)&&yi(t,n.length):"string"==a&&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 a=oi(n);return!!a&&e===a[0]}(Mn&&hi(new Mn(new ArrayBuffer(1)))!=$||Sn&&hi(new Sn)!=M||Cn&&hi(Cn.resolve())!=L||Ln&&hi(new Ln)!=O||Tn&&hi(new Tn)!=A)&&(hi=function(e){var t=Sa(e),n=t==C?e.constructor:r,a=n?Ii(n):"";if(a)switch(a){case An:return $;case Pn:return M;case $n:return L;case Yn:return O;case zn:return A}return t});var ki=$e?Qo:gl;function Di(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function Mi(e){return e==e&&!ns(e)}function Si(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Le(n)))}}function Ci(e,t,n){return t=yn(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=yn(r.length-t,0),s=a(o);++i<o;)s[i]=r[t+i];i=-1;for(var l=a(t+1);++i<t;)l[i]=r[i];return l[t]=n(s),Mt(e,this,l)}}function Li(e,t){return t.length<2?e:Da(e,rr(t,0,-1))}function Ti(e,t){for(var n=e.length,a=bn(t.length,n),i=Or(e);a--;){var o=t[a];e[a]=yi(o,n)?i[o]:r}return e}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ei=$i(tr),ji=ht||function(e,t){return mt.setTimeout(e,t)},Ai=$i(nr);function Pi(e,t,n){var a=t+"";return Ai(e,function(e,t){var n=t.length;if(!n)return e;var a=n-1;return t[a]=(n>1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(a,function(e,t){return Ct(v,(function(n){var a="_."+n[0];t&n[1]&&!Et(e,a)&&e.push(a)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(de):[]}(a),n)))}function $i(e){var t=0,n=0;return function(){var a=wn(),i=16-(a-n);if(n=a,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Yi(e,t){var n=-1,a=e.length,i=a-1;for(t=t===r?a:t;++n<t;){var o=Za(n,i),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var zi=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(ae,(function(e,n,a,r){t.push(a?r.replace(me,"$1"):n||e)})),t}));function Ni(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__=Or(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Hi=Ja((function(e,t){return Zo(e)?pa(e,ga(t,1,Zo,!0)):[]})),Ri=Ja((function(e,t){var n=Ji(t);return Zo(n)&&(n=r),Zo(e)?pa(e,ga(t,1,Zo,!0),ci(n,2)):[]})),Bi=Ja((function(e,t){var n=Ji(t);return Zo(n)&&(n=r),Zo(e)?pa(e,ga(t,1,Zo,!0),r,n):[]}));function qi(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var r=null==n?0:_s(n);return r<0&&(r=yn(a+r,0)),Ft(e,ci(t,3),r)}function Vi(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var i=a-1;return n!==r&&(i=_s(n),i=n<0?yn(a+i,0):bn(i,a-1)),Ft(e,ci(t,3),i,!0)}function Wi(e){return(null==e?0:e.length)?ga(e,1):[]}function Ui(e){return e&&e.length?e[0]:r}var Ki=Ja((function(e){var t=At(e,gr);return t.length&&t[0]===e[0]?Oa(t):[]})),Zi=Ja((function(e){var t=Ji(e),n=At(e,gr);return t===Ji(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Oa(n,ci(t,2)):[]})),Gi=Ja((function(e){var t=Ji(e),n=At(e,gr);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Oa(n,r,t):[]}));function Ji(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Xi=Ja(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?Ua(e,t):e}var eo=ai((function(e,t){var n=null==e?0:e.length,a=sa(e,t);return Ka(e,At(t,(function(e){return yi(e,n)?+e:e})).sort(Cr)),a}));function to(e){return null==e?e:Dn.call(e)}var no=Ja((function(e){return dr(ga(e,1,Zo,!0))})),ao=Ja((function(e){var t=Ji(e);return Zo(t)&&(t=r),dr(ga(e,1,Zo,!0),ci(t,2))})),ro=Ja((function(e){var t=Ji(e);return t="function"==typeof t?t:r,dr(ga(e,1,Zo,!0),r,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 At(e,Vt(t))}))}function oo(e,t){if(!e||!e.length)return[];var n=io(e);return null==t?n:At(n,(function(e){return Mt(t,r,e)}))}var so=Ja((function(e,t){return Zo(e)?pa(e,t):[]})),lo=Ja((function(e){return _r(Ot(e,Zo))})),co=Ja((function(e){var t=Ji(e);return Zo(t)&&(t=r),_r(Ot(e,Zo),ci(t,2))})),uo=Ja((function(e){var t=Ji(e);return t="function"==typeof t?t:r,_r(Ot(e,Zo),r,t)})),po=Ja(io);var mo=Ja((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,oo(e,n)}));function fo(e){var t=Hn(e);return t.__chain__=!0,t}function ho(e,t){return t(e)}var _o=ai((function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,i=function(t){return sa(t,e)};return!(t>1||this.__actions__.length)&&a instanceof Vn&&yi(n)?((a=a.slice(n,+n+(t?1:0))).__actions__.push({func:ho,args:[i],thisArg:r}),new qn(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(i)}));var vo=jr((function(e,t,n){ze.call(e,n)?++e[n]:oa(e,n,1)}));var go=Ir(qi),yo=Ir(Vi);function bo(e,t){return(Wo(e)?Ct:ma)(e,ci(t,3))}function wo(e,t){return(Wo(e)?Lt:fa)(e,ci(t,3))}var xo=jr((function(e,t,n){ze.call(e,n)?e[n].push(t):oa(e,n,[t])}));var ko=Ja((function(e,t,n){var r=-1,i="function"==typeof t,o=Ko(e)?a(e.length):[];return ma(e,(function(e){o[++r]=i?Mt(t,e,n):Ea(e,t,n)})),o})),Do=jr((function(e,t,n){oa(e,n,t)}));function Mo(e,t){return(Wo(e)?At:Fa)(e,ci(t,3))}var So=jr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Co=Ja((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]]),Va(e,ga(t,1),[])})),Lo=ft||function(){return mt.Date.now()};function To(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Xr(e,d,r,r,r,r,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=r),n}}var Eo=Ja((function(e,t,n){var a=1;if(n.length){var r=cn(n,li(Eo));a|=c}return Xr(e,a,t,n,r)})),jo=Ja((function(e,t,n){var a=3;if(n.length){var r=cn(n,li(jo));a|=c}return Xr(t,a,e,n,r)}));function Ao(e,t,n){var a,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=a,i=o;return a=o=r,d=t,l=e.apply(i,n)}function _(e){return d=e,c=ji(g,t),p?h(e):l}function v(e){var n=e-u;return u===r||n>=t||n<0||m&&e-d>=s}function g(){var e=Lo();if(v(e))return y(e);c=ji(g,function(e){var n=t-(e-u);return m?bn(n,s-(e-d)):n}(e))}function y(e){return c=r,f&&a?h(e):(a=o=r,l)}function b(){var e=Lo(),n=v(e);if(a=arguments,o=this,u=e,n){if(c===r)return _(u);if(m)return kr(c),c=ji(g,t),h(u)}return c===r&&(c=ji(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!==r&&kr(c),d=0,a=u=o=c=r},b.flush=function(){return c===r?l:y(Lo())},b}var Po=Ja((function(e,t){return da(e,1,t)})),$o=Ja((function(e,t,n){return da(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 a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var o=e.apply(this,a);return n.cache=i.set(r,o)||i,o};return n.cache=new(Yo.Cache||Kn),n}function zo(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 No=wr((function(e,t){var n=(t=1==t.length&&Wo(t[0])?At(t[0],Gt(ci())):At(ga(t,1),Gt(ci()))).length;return Ja((function(a){for(var r=-1,i=bn(a.length,n);++r<i;)a[r]=t[r].call(this,a[r]);return Mt(e,this,a)}))})),Io=Ja((function(e,t){var n=cn(t,li(Io));return Xr(e,c,r,t,n)})),Fo=Ja((function(e,t){var n=cn(t,li(Fo));return Xr(e,u,r,t,n)})),Ho=ai((function(e,t){return Xr(e,p,r,r,r,t)}));function Ro(e,t){return e===t||e!=e&&t!=t}var Bo=Ur(Ca),qo=Ur((function(e,t){return e>=t})),Vo=ja(function(){return arguments}())?ja:function(e){return as(e)&&ze.call(e,"callee")&&!Ge.call(e,"callee")},Wo=a.isArray,Uo=yt?Gt(yt):function(e){return as(e)&&Sa(e)==P};function Ko(e){return null!=e&&ts(e.length)&&!Qo(e)}function Zo(e){return as(e)&&Ko(e)}var Go=Wt||gl,Jo=bt?Gt(bt):function(e){return as(e)&&Sa(e)==w};function Xo(e){if(!as(e))return!1;var t=Sa(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=Sa(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 as(e){return null!=e&&"object"==typeof e}var rs=wt?Gt(wt):function(e){return as(e)&&hi(e)==M};function is(e){return"number"==typeof e||as(e)&&Sa(e)==S}function os(e){if(!as(e)||Sa(e)!=C)return!1;var t=Ke(e);if(null===t)return!0;var n=ze.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ye.call(n)==He}var ss=xt?Gt(xt):function(e){return as(e)&&Sa(e)==T};var ls=kt?Gt(kt):function(e){return as(e)&&hi(e)==O};function cs(e){return"string"==typeof e||!Wo(e)&&as(e)&&Sa(e)==E}function us(e){return"symbol"==typeof e||as(e)&&Sa(e)==j}var ds=Dt?Gt(Dt):function(e){return as(e)&&ts(e.length)&&!!ot[Sa(e)]};var ps=Ur(Ia),ms=Ur((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ko(e))return cs(e)?mn(e):Or(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?la(_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 Er(e,Ps(e))}function bs(e){return null==e?"":ur(e)}var ws=Ar((function(e,t){if(Di(t)||Ko(t))Er(t,As(t),e);else for(var n in t)ze.call(t,n)&&na(e,n,t[n])})),xs=Ar((function(e,t){Er(t,Ps(t),e)})),ks=Ar((function(e,t,n,a){Er(t,Ps(t),e,a)})),Ds=Ar((function(e,t,n,a){Er(t,As(t),e,a)})),Ms=ai(sa);var Ss=Ja((function(e,t){e=Le(e);var n=-1,a=t.length,i=a>2?t[2]:r;for(i&&bi(t[0],t[1],i)&&(a=1);++n<a;)for(var o=t[n],s=Ps(o),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===r||Ro(d,Pe[u])&&!ze.call(e,u))&&(e[u]=o[u])}return e})),Cs=Ja((function(e){return e.push(r,ei),Mt(Ys,r,e)}));function Ls(e,t,n){var a=null==e?r:Da(e,t);return a===r?n:a}function Ts(e,t){return null!=e&&_i(e,t,Ta)}var Os=Rr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),nl(il)),Es=Rr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),ze.call(e,t)?e[t].push(n):e[t]=[n]}),ci),js=Ja(Ea);function As(e){return Ko(e)?Jn(e):za(e)}function Ps(e){return Ko(e)?Jn(e,!0):Na(e)}var $s=Ar((function(e,t,n){Ba(e,t,n)})),Ys=Ar((function(e,t,n,a){Ba(e,t,n,a)})),zs=ai((function(e,t){var n={};if(null==e)return n;var a=!1;t=At(t,(function(t){return t=br(t,e),a||(a=t.length>1),t})),Er(e,ii(e),n),a&&(n=ca(n,7,ti));for(var r=t.length;r--;)pr(n,t[r]);return n}));var Ns=ai((function(e,t){return null==e?{}:function(e,t){return Wa(e,t,(function(t,n){return Ts(e,n)}))}(e,t)}));function Is(e,t){if(null==e)return{};var n=At(ii(e),(function(e){return[e]}));return t=ci(t),Wa(e,n,(function(e,n){return t(e,n[0])}))}var Fs=Jr(As),Hs=Jr(Ps);function Rs(e){return null==e?[]:Jt(e,As(e))}var Bs=zr((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=zr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Us=zr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ks=Yr("toLowerCase");var Zs=zr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Gs=zr((function(e,t,n){return e+(n?" ":"")+Xs(t)}));var Js=zr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=Yr("toUpperCase");function Qs(e,t,n){return e=bs(e),(t=n?r:t)===r?function(e){return at.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(pe)||[]}(e):e.match(t)||[]}var el=Ja((function(e,t){try{return Mt(e,r,t)}catch(e){return Xo(e)?e:new Me(e)}})),tl=ai((function(e,t){return Ct(t,(function(t){t=Ni(t),oa(e,t,Eo(e[t],e))})),e}));function nl(e){return function(){return e}}var al=Fr(),rl=Fr(!0);function il(e){return e}function ol(e){return Ya("function"==typeof e?e:ca(e,1))}var sl=Ja((function(e,t){return function(n){return Ea(n,e,t)}})),ll=Ja((function(e,t){return function(n){return Ea(e,n,t)}}));function cl(e,t,n){var a=As(t),r=ka(t,a);null!=n||ns(t)&&(r.length||!a.length)||(n=t,t=e,e=this,r=ka(t,As(t)));var i=!(ns(n)&&"chain"in n&&!n.chain),o=Qo(e);return Ct(r,(function(n){var a=t[n];e[n]=a,o&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),r=n.__actions__=Or(this.__actions__);return r.push({func:a,args:arguments,thisArg:e}),n.__chain__=t,n}return a.apply(e,Pt([this.value()],arguments))})})),e}function ul(){}var dl=qr(At),pl=qr(Tt),ml=qr(zt);function fl(e){return wi(e)?Vt(Ni(e)):function(e){return function(t){return Da(t,e)}}(e)}var hl=Wr(),_l=Wr(!0);function vl(){return[]}function gl(){return!1}var yl=Br((function(e,t){return e+t}),0),bl=Zr("ceil"),wl=Br((function(e,t){return e/t}),1),xl=Zr("floor");var kl,Dl=Br((function(e,t){return e*t}),1),Ml=Zr("round"),Sl=Br((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=jo,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===r)?1:yn(_s(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,l=a(vt(i/t));o<i;)l[s++]=rr(e,o,o+=t);return l},Hn.compact=function(e){for(var t=-1,n=null==e?0:e.length,a=0,r=[];++t<n;){var i=e[t];i&&(r[a++]=i)}return r},Hn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=a(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Pt(Wo(n)?Or(n):[n],ga(t,1))},Hn.cond=function(e){var t=null==e?0:e.length,n=ci();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Ee(i);return[n(e[0]),e[1]]})):[],Ja((function(n){for(var a=-1;++a<t;){var r=e[a];if(Mt(r[0],this,n))return Mt(r[1],this,n)}}))},Hn.conforms=function(e){return function(e){var t=As(e);return function(n){return ua(n,e,t)}}(ca(e,1))},Hn.constant=nl,Hn.countBy=vo,Hn.create=function(e,t){var n=Rn(e);return null==t?n:ia(n,t)},Hn.curry=function e(t,n,a){var i=Xr(t,8,r,r,r,r,r,n=a?r:n);return i.placeholder=e.placeholder,i},Hn.curryRight=function e(t,n,a){var i=Xr(t,l,r,r,r,r,r,n=a?r:n);return i.placeholder=e.placeholder,i},Hn.debounce=Ao,Hn.defaults=Ss,Hn.defaultsDeep=Cs,Hn.defer=Po,Hn.delay=$o,Hn.difference=Hi,Hn.differenceBy=Ri,Hn.differenceWith=Bi,Hn.drop=function(e,t,n){var a=null==e?0:e.length;return a?rr(e,(t=n||t===r?1:_s(t))<0?0:t,a):[]},Hn.dropRight=function(e,t,n){var a=null==e?0:e.length;return a?rr(e,0,(t=a-(t=n||t===r?1:_s(t)))<0?0:t):[]},Hn.dropRightWhile=function(e,t){return e&&e.length?fr(e,ci(t,3),!0,!0):[]},Hn.dropWhile=function(e,t){return e&&e.length?fr(e,ci(t,3),!0):[]},Hn.fill=function(e,t,n,a){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&bi(e,t,n)&&(n=0,a=i),function(e,t,n,a){var i=e.length;for((n=_s(n))<0&&(n=-n>i?0:i+n),(a=a===r||a>i?i:_s(a))<0&&(a+=i),a=n>a?0:vs(a);n<a;)e[n++]=t;return e}(e,t,n,a)):[]},Hn.filter=function(e,t){return(Wo(e)?Ot:va)(e,ci(t,3))},Hn.flatMap=function(e,t){return ga(Mo(e,t),1)},Hn.flatMapDeep=function(e,t){return ga(Mo(e,t),m)},Hn.flatMapDepth=function(e,t,n){return n=n===r?1:_s(n),ga(Mo(e,t),n)},Hn.flatten=Wi,Hn.flattenDeep=function(e){return(null==e?0:e.length)?ga(e,m):[]},Hn.flattenDepth=function(e,t){return(null==e?0:e.length)?ga(e,t=t===r?1:_s(t)):[]},Hn.flip=function(e){return Xr(e,512)},Hn.flow=al,Hn.flowRight=rl,Hn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,a={};++t<n;){var r=e[t];a[r[0]]=r[1]}return a},Hn.functions=function(e){return null==e?[]:ka(e,As(e))},Hn.functionsIn=function(e){return null==e?[]:ka(e,Ps(e))},Hn.groupBy=xo,Hn.initial=function(e){return(null==e?0:e.length)?rr(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=As,Hn.keysIn=Ps,Hn.map=Mo,Hn.mapKeys=function(e,t){var n={};return t=ci(t,3),wa(e,(function(e,a,r){oa(n,t(e,a,r),e)})),n},Hn.mapValues=function(e,t){var n={};return t=ci(t,3),wa(e,(function(e,a,r){oa(n,a,t(e,a,r))})),n},Hn.matches=function(e){return Ha(ca(e,1))},Hn.matchesProperty=function(e,t){return Ra(e,ca(t,1))},Hn.memoize=Yo,Hn.merge=$s,Hn.mergeWith=Ys,Hn.method=sl,Hn.methodOf=ll,Hn.mixin=cl,Hn.negate=zo,Hn.nthArg=function(e){return e=_s(e),Ja((function(t){return qa(t,e)}))},Hn.omit=zs,Hn.omitBy=function(e,t){return Is(e,zo(ci(t)))},Hn.once=function(e){return Oo(2,e)},Hn.orderBy=function(e,t,n,a){return null==e?[]:(Wo(t)||(t=null==t?[]:[t]),Wo(n=a?r:n)||(n=null==n?[]:[n]),Va(e,t,n))},Hn.over=dl,Hn.overArgs=No,Hn.overEvery=pl,Hn.overSome=ml,Hn.partial=Io,Hn.partialRight=Fo,Hn.partition=So,Hn.pick=Ns,Hn.pickBy=Is,Hn.property=fl,Hn.propertyOf=function(e){return function(t){return null==e?r:Da(e,t)}},Hn.pull=Xi,Hn.pullAll=Qi,Hn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Ua(e,t,ci(n,2)):e},Hn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Ua(e,t,r,n):e},Hn.pullAt=eo,Hn.range=hl,Hn.rangeRight=_l,Hn.rearg=Ho,Hn.reject=function(e,t){return(Wo(e)?Ot:va)(e,zo(ci(t,3)))},Hn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var a=-1,r=[],i=e.length;for(t=ci(t,3);++a<i;){var o=e[a];t(o,a,e)&&(n.push(o),r.push(a))}return Ka(e,r),n},Hn.rest=function(e,t){if("function"!=typeof e)throw new Ee(i);return Ja(e,t=t===r?t:_s(t))},Hn.reverse=to,Hn.sampleSize=function(e,t,n){return t=(n?bi(e,t,n):t===r)?1:_s(t),(Wo(e)?Qn:Qa)(e,t)},Hn.set=function(e,t,n){return null==e?e:er(e,t,n)},Hn.setWith=function(e,t,n,a){return a="function"==typeof a?a:r,null==e?e:er(e,t,n,a)},Hn.shuffle=function(e){return(Wo(e)?ea:ar)(e)},Hn.slice=function(e,t,n){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&bi(e,t,n)?(t=0,n=a):(t=null==t?0:_s(t),n=n===r?a:_s(n)),rr(e,t,n)):[]},Hn.sortBy=Co,Hn.sortedUniq=function(e){return e&&e.length?lr(e):[]},Hn.sortedUniqBy=function(e,t){return e&&e.length?lr(e,ci(t,2)):[]},Hn.split=function(e,t,n){return n&&"number"!=typeof n&&bi(e,t,n)&&(t=n=r),(n=n===r?_:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=ur(t))&&on(e)?xr(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),Ja((function(n){var a=n[t],r=xr(n,0,t);return a&&Pt(r,a),Mt(e,this,r)}))},Hn.tail=function(e){var t=null==e?0:e.length;return t?rr(e,1,t):[]},Hn.take=function(e,t,n){return e&&e.length?rr(e,0,(t=n||t===r?1:_s(t))<0?0:t):[]},Hn.takeRight=function(e,t,n){var a=null==e?0:e.length;return a?rr(e,(t=a-(t=n||t===r?1:_s(t)))<0?0:t,a):[]},Hn.takeRightWhile=function(e,t){return e&&e.length?fr(e,ci(t,3),!1,!0):[]},Hn.takeWhile=function(e,t){return e&&e.length?fr(e,ci(t,3)):[]},Hn.tap=function(e,t){return t(e),e},Hn.throttle=function(e,t,n){var a=!0,r=!0;if("function"!=typeof e)throw new Ee(i);return ns(n)&&(a="leading"in n?!!n.leading:a,r="trailing"in n?!!n.trailing:r),Ao(e,t,{leading:a,maxWait:t,trailing:r})},Hn.thru=ho,Hn.toArray=fs,Hn.toPairs=Fs,Hn.toPairsIn=Hs,Hn.toPath=function(e){return Wo(e)?At(e,Ni):us(e)?[e]:Or(zi(bs(e)))},Hn.toPlainObject=ys,Hn.transform=function(e,t,n){var a=Wo(e),r=a||Go(e)||ds(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=r?a?new i:[]:ns(e)&&Qo(i)?Rn(Ke(e)):{}}return(r?Ct:wa)(e,(function(e,a,r){return t(n,e,a,r)})),n},Hn.unary=function(e){return To(e,1)},Hn.union=no,Hn.unionBy=ao,Hn.unionWith=ro,Hn.uniq=function(e){return e&&e.length?dr(e):[]},Hn.uniqBy=function(e,t){return e&&e.length?dr(e,ci(t,2)):[]},Hn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?dr(e,r,t):[]},Hn.unset=function(e,t){return null==e||pr(e,t)},Hn.unzip=io,Hn.unzipWith=oo,Hn.update=function(e,t,n){return null==e?e:mr(e,t,yr(n))},Hn.updateWith=function(e,t,n,a){return a="function"==typeof a?a:r,null==e?e:mr(e,t,yr(n),a)},Hn.values=Rs,Hn.valuesIn=function(e){return null==e?[]:Jt(e,Ps(e))},Hn.without=so,Hn.words=Qs,Hn.wrap=function(e,t){return Io(yr(t),e)},Hn.xor=lo,Hn.xorBy=co,Hn.xorWith=uo,Hn.zip=po,Hn.zipObject=function(e,t){return vr(e||[],t||[],na)},Hn.zipObjectDeep=function(e,t){return vr(e||[],t||[],er)},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===r&&(n=t,t=r),n!==r&&(n=(n=gs(n))==n?n:0),t!==r&&(t=(t=gs(t))==t?t:0),la(gs(e),t,n)},Hn.clone=function(e){return ca(e,4)},Hn.cloneDeep=function(e){return ca(e,5)},Hn.cloneDeepWith=function(e,t){return ca(e,5,t="function"==typeof t?t:r)},Hn.cloneWith=function(e,t){return ca(e,4,t="function"==typeof t?t:r)},Hn.conformsTo=function(e,t){return null==t||ua(e,t,As(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=ur(t);var a=e.length,i=n=n===r?a:la(_s(n),0,a);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,an):e},Hn.escapeRegExp=function(e){return(e=bs(e))&&ie.test(e)?e.replace(re,"\\$&"):e},Hn.every=function(e,t,n){var a=Wo(e)?Tt:ha;return n&&bi(e,t,n)&&(t=r),a(e,ci(t,3))},Hn.find=go,Hn.findIndex=qi,Hn.findKey=function(e,t){return It(e,ci(t,3),wa)},Hn.findLast=yo,Hn.findLastIndex=Vi,Hn.findLastKey=function(e,t){return It(e,ci(t,3),xa)},Hn.floor=xl,Hn.forEach=bo,Hn.forEachRight=wo,Hn.forIn=function(e,t){return null==e?e:ya(e,ci(t,3),Ps)},Hn.forInRight=function(e,t){return null==e?e:ba(e,ci(t,3),Ps)},Hn.forOwn=function(e,t){return e&&wa(e,ci(t,3))},Hn.forOwnRight=function(e,t){return e&&xa(e,ci(t,3))},Hn.get=Ls,Hn.gt=Bo,Hn.gte=qo,Hn.has=function(e,t){return null!=e&&_i(e,t,La)},Hn.hasIn=Ts,Hn.head=Ui,Hn.identity=il,Hn.includes=function(e,t,n,a){e=Ko(e)?e:Rs(e),n=n&&!a?_s(n):0;var r=e.length;return n<0&&(n=yn(r+n,0)),cs(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Ht(e,t,n)>-1},Hn.indexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var r=null==n?0:_s(n);return r<0&&(r=yn(a+r,0)),Ht(e,t,r)},Hn.inRange=function(e,t,n){return t=hs(t),n===r?(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=js,Hn.isArguments=Vo,Hn.isArray=Wo,Hn.isArrayBuffer=Uo,Hn.isArrayLike=Ko,Hn.isArrayLikeObject=Zo,Hn.isBoolean=function(e){return!0===e||!1===e||as(e)&&Sa(e)==b},Hn.isBuffer=Go,Hn.isDate=Jo,Hn.isElement=function(e){return as(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!za(e).length;for(var n in e)if(ze.call(e,n))return!1;return!0},Hn.isEqual=function(e,t){return Aa(e,t)},Hn.isEqualWith=function(e,t,n){var a=(n="function"==typeof n?n:r)?n(e,t):r;return a===r?Aa(e,t,r,n):!!a},Hn.isError=Xo,Hn.isFinite=function(e){return"number"==typeof e&&_n(e)},Hn.isFunction=Qo,Hn.isInteger=es,Hn.isLength=ts,Hn.isMap=rs,Hn.isMatch=function(e,t){return e===t||Pa(e,t,di(t))},Hn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Pa(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 $a(e)},Hn.isNil=function(e){return null==e},Hn.isNull=function(e){return null===e},Hn.isNumber=is,Hn.isObject=ns,Hn.isObjectLike=as,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===r},Hn.isWeakMap=function(e){return as(e)&&hi(e)==A},Hn.isWeakSet=function(e){return as(e)&&"[object WeakSet]"==Sa(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 a=null==e?0:e.length;if(!a)return-1;var i=a;return n!==r&&(i=(i=_s(n))<0?yn(a+i,0):bn(i,a-1)),t==t?function(e,t,n){for(var a=n+1;a--;)if(e[a]===t)return a;return a}(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?_a(e,il,Ca):r},Hn.maxBy=function(e,t){return e&&e.length?_a(e,ci(t,2),Ca):r},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?_a(e,il,Ia):r},Hn.minBy=function(e,t){return e&&e.length?_a(e,ci(t,2),Ia):r},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?qa(e,_s(t)):r},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 a=(t=_s(t))?pn(e):0;if(!t||a>=t)return e;var r=(t-a)/2;return Vr(gt(r),n)+e+Vr(vt(r),n)},Hn.padEnd=function(e,t,n){e=bs(e);var a=(t=_s(t))?pn(e):0;return t&&a<t?e+Vr(t-a,n):e},Hn.padStart=function(e,t,n){e=bs(e);var a=(t=_s(t))?pn(e):0;return t&&a<t?Vr(t-a,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=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=hs(e),t===r?(t=e,e=0):t=hs(t)),e>t){var a=e;e=t,t=a}if(n||e%1||t%1){var i=kn();return bn(e+i*(t-e+ct("1e-"+((i+"").length-1))),t)}return Za(e,t)},Hn.reduce=function(e,t,n){var a=Wo(e)?$t:Ut,r=arguments.length<3;return a(e,ci(t,4),n,r,ma)},Hn.reduceRight=function(e,t,n){var a=Wo(e)?Yt:Ut,r=arguments.length<3;return a(e,ci(t,4),n,r,fa)},Hn.repeat=function(e,t,n){return t=(n?bi(e,t,n):t===r)?1:_s(t),Ga(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 a=-1,i=(t=br(t,e)).length;for(i||(i=1,e=r);++a<i;){var o=null==e?r:e[Ni(t[a])];o===r&&(a=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:Xa)(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:za(e).length},Hn.snakeCase=Zs,Hn.some=function(e,t,n){var a=Wo(e)?zt:ir;return n&&bi(e,t,n)&&(t=r),a(e,ci(t,3))},Hn.sortedIndex=function(e,t){return or(e,t)},Hn.sortedIndexBy=function(e,t,n){return sr(e,t,ci(n,2))},Hn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var a=or(e,t);if(a<n&&Ro(e[a],t))return a}return-1},Hn.sortedLastIndex=function(e,t){return or(e,t,!0)},Hn.sortedLastIndexBy=function(e,t,n){return sr(e,t,ci(n,2),!0)},Hn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=or(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:la(_s(n),0,e.length),t=ur(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 a=Hn.templateSettings;n&&bi(e,t,n)&&(t=r),e=bs(e),t=ks({},t,a,Qr);var i,o,s=ks({},t.imports,a.imports,Qr),l=As(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="+(ze.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(m,(function(t,n,a,r,s,l){return a||(a=r),p+=e.slice(u,l).replace(ke,rn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(o=!0,p+="';\n"+s+";\n__p += '"),a&&(p+="' +\n((__t = ("+a+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var h=ze.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(r,c)}));if(_.source=p,Xo(_))throw _;return _},Hn.times=function(e,t){if((e=_s(e))<1||e>f)return[];var n=_,a=bn(e,_);t=ci(t),e-=_;for(var r=Zt(a,t);++n<e;)t(n);return r},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?la(_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===r))return e.replace(oe,"");if(!e||!(t=ur(t)))return e;var a=mn(e),i=mn(t);return xr(a,Qt(a,i),en(a,i)+1).join("")},Hn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===r))return e.replace(le,"");if(!e||!(t=ur(t)))return e;var a=mn(e);return xr(a,0,en(a,mn(t))+1).join("")},Hn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===r))return e.replace(se,"");if(!e||!(t=ur(t)))return e;var a=mn(e);return xr(a,Qt(a,mn(t))).join("")},Hn.truncate=function(e,t){var n=30,a="...";if(ns(t)){var i="separator"in t?t.separator:i;n="length"in t?_s(t.length):n,a="omission"in t?ur(t.omission):a}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(a);if(l<1)return a;var c=s?xr(s,0,l).join(""):e.slice(0,l);if(i===r)return c+a;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===r?l:p)}}else if(e.indexOf(ur(i),l)!=l){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+a},Hn.unescape=function(e){return(e=bs(e))&&G.test(e)?e.replace(K,fn):e},Hn.uniqueId=function(e){var t=++Ne;return bs(e)+t},Hn.upperCase=Js,Hn.upperFirst=Xs,Hn.each=bo,Hn.eachRight=wo,Hn.first=Ui,cl(Hn,(kl={},wa(Hn,(function(e,t){ze.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===r?1:yn(_s(n),0);var a=this.__filtered__&&!t?new Vn(this):this.clone();return a.__filtered__?a.__takeCount__=bn(n,a.__takeCount__):a.__views__.push({size:bn(n,_),type:e+(a.__dir__<0?"Right":"")}),a},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,a=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__||a,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=Ja((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Ea(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(zo(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!==r&&(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(_)},wa(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),i=Hn[a?"take"+("last"==t?"Right":""):t],o=a||/^find/.test(t);i&&(Hn.prototype[t]=function(){var t=this.__wrapped__,s=a?[1]:arguments,l=t instanceof Vn,c=s[0],u=l||Wo(t),d=function(e){var t=i.apply(Hn,Pt([e],s));return a&&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:r}),new qn(_,p)}return f&&h?e.apply(this,s):(_=this.thru(d),f?a?_.value()[0]:_.value():_)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);Hn.prototype[e]=function(){var e=arguments;if(a&&!this.__chain__){var r=this.value();return t.apply(Wo(r)?r:[],e)}return this[n]((function(n){return t.apply(Wo(n)?n:[],e)}))}})),wa(Vn.prototype,(function(e,t){var n=Hn[t];if(n){var a=n.name+"";ze.call(jn,a)||(jn[a]=[]),jn[a].push({name:t,func:n})}})),jn[Hr(r,2).name]=[{name:"wrapper",func:r}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Or(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Or(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Or(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),a=t<0,r=n?e.length:0,i=function(e,t,n){var a=-1,r=n.length;for(;++a<r;){var i=n[a],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,r,this.__views__),o=i.start,s=i.end,l=s-o,c=a?s:o-1,u=this.__iteratees__,d=u.length,p=0,m=bn(l,this.__takeCount__);if(!n||!a&&r==l&&m==l)return hr(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__===r&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Hn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var a=Fi(n);a.__index__=0,a.__values__=r,t?i.__wrapped__=a:t=a;var i=a;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:r}),new qn(t,this.__chain__)}return this.thru(to)},Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=function(){return hr(this.__wrapped__,this.__actions__)},Hn.prototype.first=Hn.prototype.head,nt&&(Hn.prototype[nt]=function(){return this}),Hn}();mt._=hn,(a=function(){return hn}.call(t,n,t,e))===r||(e.exports=a)}.call(this)},3857:(e,t,n)=>{var a=n(2980),r=n(1463)((function(e,t,n){a(e,t,n)}));e.exports=r},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9881:(e,t,n)=>{var a=n(8363),r=n(1704);e.exports=function(e){return a(e,r(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 عام"]},a=function(e){return function(a,r,i,o){var s=t(a),l=n[e][t(a)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,a)}},r=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,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")},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},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 عام"]},r=function(e){return function(t,r,i,o){var s=n(t),l=a[e][n(t)];return 2===s&&(l=l[r?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:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/،/g,",")},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"},a=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 عام"]},i=function(e){return function(t,n,i,o){var s=a(t),l=r[e][a(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,a=e%100-n,r=e>=100?100:null;return e+(t[n]||t[a]||t[r])},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,a){return"m"===a?n?"хвіліна":"хвіліну":"h"===a?n?"гадзіна":"гадзіну":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[a],+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+" "+r({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){switch(a(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function a(e){return e>9?a(e%10):e}function r(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 a=e+" ";switch(n){case"ss":return a+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return a+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return a+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return a+=1===e?"dan":"dana";case"MM":return a+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return a+=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("_"),a=[/^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],r=/^(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,a){var r=e+" ";switch(n){case"s":return t||a?"pár sekund":"pár sekundami";case"ss":return t||a?r+(i(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":a?"minutu":"minutou";case"mm":return t||a?r+(i(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?r+(i(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||a?"den":"dnem";case"dd":return t||a?r+(i(e)?"dny":"dní"):r+"dny";case"M":return t||a?"měsíc":"měsícem";case"MM":return t||a?r+(i(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||a?"rok":"rokem";case"yy":return t||a?r+(i(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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,a){var r={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?r[n][0]:r[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,a){var r={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?r[n][0]:r[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,a){var r={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?r[n][0]:r[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 a=this._calendarEl[e],r=n&&n.hours();return t(a)&&(a=a.apply(n)),a.replace("{}",r%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("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(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,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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,a){var r={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?r[n][2]?r[n][2]:r[n][1]:a?r[n][0]:r[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 a(e,t,n,a){var i="";switch(n){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":i=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":i=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":i=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":i=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":i=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":i=a?"vuoden":"vuotta"}return i=r(e,a)+" "+i}function r(e,a){return e<10?a?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: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))},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,a=/(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,r=[/^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:a,monthsShortRegex:a,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,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,a){return e?/-MMM-/.test(a)?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"],a=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],r=["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:a,weekdaysShort:r,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"],a=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],r=["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:a,weekdaysShort:r,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,a){var r={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 a?r[n][0]:r[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,a){var r={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 a?r[n][0]:r[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"},a=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],r=[/^जन/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:a,longMonthsParse:a,shortMonthsParse:r,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 a=e+" ";switch(n){case"ss":return a+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return a+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return a+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return a+=1===e?"dan":"dana";case"MM":return a+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return a+=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,a){var r=e;switch(n){case"s":return a||t?"néhány másodperc":"néhány másodperce";case"ss":return r+(a||t)?" másodperc":" másodperce";case"m":return"egy"+(a||t?" perc":" perce");case"mm":return r+(a||t?" perc":" perce");case"h":return"egy"+(a||t?" óra":" órája");case"hh":return r+(a||t?" óra":" órája");case"d":return"egy"+(a||t?" nap":" napja");case"dd":return r+(a||t?" nap":" napja");case"M":return"egy"+(a||t?" hónap":" hónapja");case"MM":return r+(a||t?" hónap":" hónapja");case"y":return"egy"+(a||t?" év":" éve");case"yy":return r+(a||t?" év":" éve")}return""}function a(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 a.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return a.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,a,r){var i=e+" ";switch(a){case"s":return n||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(n||r?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?i+(n||r?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(n||r?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?i+"dagar":i+(r?"daga":"dögum"):n?i+"dagur":i+(r?"dag":"degi");case"M":return n?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?n?i+"mánuðir":i+(r?"mánuði":"mánuðum"):n?i+"mánuður":i+(r?"mánuð":"mánuði");case"y":return n||r?"ár":"ári";case"yy":return t(e)?i+(n||r?"ár":"árum"):i+(n||r?"á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,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},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"},a=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:a,monthsShort:a,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,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},week:{dow:1,doy:7}})}(n(381))},6841:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var r={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?r[n][0]:r[n][1]}function n(e){return r(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function a(e){return r(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function r(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 r(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return r(e)}return r(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:a,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,a){return t?"kelios sekundės":a?"kelių sekundžių":"kelias sekundes"}function a(e,t,n,a){return t?i(n)[0]:a?i(n)[1]:i(n)[2]}function r(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+a(e,t,n[0],o):t?s+(r(e)?i(n)[1]:i(n)[0]):o?s+i(n)[1]:s+(r(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:a,mm:o,h:a,hh:o,d:a,dd:o,M:a,MM:o,y:a,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 a(e,a,r){return e+" "+n(t[r],e,a)}function r(e,a,r){return n(t[r],e,a)}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:a,m:r,mm:a,h:r,hh:a,d:r,dd:a,M:r,MM:a,y:r,yy:a},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,a){var r=t.words[a];return 1===a.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};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,a){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 a(e,t,n,a){var r="";if(t)switch(n){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(n){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.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:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},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("_"),a=[/^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],r=/^(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,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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("_"),a=[/^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],r=/^(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,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,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:a,longMonthsParse:a,shortMonthsParse:a,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("_"),a=[/^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 r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var a=e+" ";switch(n){case"ss":return a+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return a+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return a+(r(e)?"godziny":"godzin");case"ww":return a+(r(e)?"tygodnie":"tygodni");case"MM":return a+(r(e)?"miesiące":"miesięcy");case"yy":return a+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,a){return e?/D MMMM/.test(a)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:a,longMonthsParse:a,shortMonthsParse:a,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 a=" ";return(e%100>=20||e>=100&&e%100==0)&&(a=" de "),e+a+{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,a){return"m"===a?n?"минута":"минуту":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"часасаасов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяцаесяцев",yy:"год_годает"}[a],+e)}var a=[/^янв/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:a,longMonthsParse:a,shortMonthsParse:a,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 a(e){return e>1&&e<5}function r(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?i+(a(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?i+(a(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(a(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?i+(a(e)?"dni":"dní"):i+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?i+(a(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?i+(a(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: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))},4985:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var r=e+" ";switch(n){case"s":return t||a?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===e?t?"sekundo":"sekundi":2===e?t||a?"sekundi":"sekundah":e<5?t||a?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return r+=1===e?t?"minuta":"minuto":2===e?t||a?"minuti":"minutama":e<5?t||a?"minute":"minutami":t||a?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return r+=1===e?t?"ura":"uro":2===e?t||a?"uri":"urama":e<5?t||a?"ure":"urami":t||a?"ur":"urami";case"d":return t||a?"en dan":"enim dnem";case"dd":return r+=1===e?t||a?"dan":"dnem":2===e?t||a?"dni":"dnevoma":t||a?"dni":"dnevi";case"M":return t||a?"en mesec":"enim mesecem";case"MM":return r+=1===e?t||a?"mesec":"mesecem":2===e?t||a?"meseca":"mesecema":e<5?t||a?"mesece":"meseci":t||a?"mesecev":"meseci";case"y":return t||a?"eno leto":"enim letom";case"yy":return r+=1===e?t||a?"leto":"letom":2===e?t||a?"leti":"letoma":e<5?t||a?"leta":"leti":t||a?"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,a){var r=t.words[a];return 1===a.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};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,a){var r=t.words[a];return 1===a.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};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,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},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 a=e%10,r=e%100-a,i=e>=100?100:null;return e+(t[a]||t[r]||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 a(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 r(e,t,n,a){var r=i(e);switch(n){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function i(e){var n=Math.floor(e%1e3/100),a=Math.floor(e%100/10),r=e%10,i="";return n>0&&(i+=t[n]+"vatlh"),a>0&&(i+=(""!==i?" ":"")+t[a]+"maH"),r>0&&(i+=(""!==i?" ":"")+t[r]),""===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:a,s:"puS lup",ss:r,m:"wa tup",mm:r,h:"wa rep",hh:r,d:"wa jaj",dd:r,M:"wa jar",MM:r,y:"wa DIS",yy:r},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 a=e%10,r=e%100-a,i=e>=100?100:null;return e+(t[a]||t[r]||t[i])}},week:{dow:1,doy:7}})}(n(381))},8254:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var r={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 a||t?r[n][0]:r[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 a=100*e+t;return a<600?"يېرىم كېچە":a<900?"سەھەر":a<1130?"چۈشتىن بۇرۇن":a<1230?"چۈش":a<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,a){return"m"===a?n?"хвилина":"хвилину":"h"===a?n?"година":"годину":e+" "+t({ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяціісяців",yy:"рік_роки_років"}[a],+e)}function a(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 r(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_веровт_лист_груд".split("_"),weekdays:a,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:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] 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 a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<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 a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1200?"上午":1200===a?"中午":a<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 a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<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 a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<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 a={"./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 r(e){var t=i(e);return n(t)}function i(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=i,e.exports=r,r.id=6700},381:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,a;function r(){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,a=[];for(n=0;n<e.length;++n)a.push(t(e[n],n));return a}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,a){return Kn(e,t,n,a,!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=a.call(t.parsedDateParts,(function(e){return null!=e})),r=!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&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function y(e){var t=h(NaN);return null!=e?f(v(t),e):v(t).userInvalidated=!0,t}a=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),a=n.length>>>0;for(t=0;t<a;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function x(e,t){var n,a,r;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(r=t[a=b[n]])||(e[a]=r);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,r.updateOffset(this),w=!1)}function D(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function M(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var a,i,o,s=[];for(i=0;i<arguments.length;i++){if(a="","object"==typeof arguments[i]){for(o in a+="\n["+i+"] ",arguments[0])l(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];s.push(a)}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!=r.deprecationHandler&&r.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 j(e,t){var n,a=f({},e);for(n in t)l(t,n)&&(s(e[n])&&s(t[n])?(a[n]={},f(a[n],e[n]),f(a[n],t[n])):null!=t[n]?a[n]=t[n]:delete a[n]);for(n in e)l(e,n)&&!l(t,n)&&s(e[n])&&(a[n]=f({},a[n]));return a}function A(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.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 P={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function $(e,t,n){var a=this._calendar[e]||this._calendar.sameElse;return O(a)?a.call(t,n):a}function Y(e,t,n){var a=""+Math.abs(e),r=t-a.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+a}var z=/(\[[^\[]*\])|(\\)?([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,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},F={};function H(e,t,n,a){var r=a;"string"==typeof a&&(r=function(){return this[a]()}),e&&(F[e]=r),t&&(F[t[0]]=function(){return Y(r.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function R(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,a=e.match(z);for(t=0,n=a.length;t<n;t++)F[a[t]]?a[t]=F[a[t]]:a[t]=R(a[t]);return function(t){var r,i="";for(r=0;r<n;r++)i+=O(a[r])?a[r].call(t,e):a[r];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 a(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;n>=0&&N.test(e);)e=e.replace(N,a),N.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(z).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,a){var r=this._relativeTime[n];return O(r)?r(e,t,n,a):r.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 ae(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function re(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ie(e){var t,n,a={};for(n in e)l(e,n)&&(t=re(n))&&(a[t]=e[n]);return a}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),r.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=re(e)])?this[e]():this}function _e(e,t){if("object"==typeof e){var n,a=le(e=ie(e));for(n=0;n<a.length;n++)this[a[n].unit](e[a[n].unit])}else if(O(this[e=re(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,je=/Z|[+-]\d\d(?::?\d\d)?/gi,Ae=/[+-]?\d+(\.\d{1,3})?/,Pe=/[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 $e(e,t,n){ve[e]=O(t)?t:function(e,a){return e&&n?n:t}}function Ye(e,t){return l(ve,e)?ve[e](t._strict,t._locale):new RegExp(ze(e))}function ze(e){return Ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,a,r){return t||n||a||r})))}function Ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Ie={};function Fe(e,t){var n,a=t;for("string"==typeof e&&(e=[e]),d(t)&&(a=function(e,n){n[t]=de(e)}),n=0;n<e.length;n++)Ie[e[n]]=a}function He(e,t){Fe(e,(function(e,n,a,r){a._w=a._w||{},t(e,a._w,a,r)}))}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)})),ae("month","M"),se("month",8),$e("M",ke),$e("MM",ke,ye),$e("MMM",(function(e,t){return t.monthsShortRegex(e)})),$e("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,a){var r=n._locale.monthsParse(e,a,n._strict);null!=r?t[Ve]=r: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("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Pe,it=Pe;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).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[at.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var a,r,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)i=h([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Be.call(this._shortMonthsParse,o))?r:null:-1!==(r=Be.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=Be.call(this._shortMonthsParse,o))||-1!==(r=Be.call(this._longMonthsParse,o))?r:null:-1!==(r=Be.call(this._longMonthsParse,o))||-1!==(r=Be.call(this._shortMonthsParse,o))?r:null}function ct(e,t,n){var a,r,i;if(this._monthsParseExact)return lt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(r=h([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[a]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}}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),r.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=rt),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,a=[],r=[],i=[];for(t=0;t<12;t++)n=h([2e3,t]),a.push(this.monthsShort(n,"")),r.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(a.sort(e),r.sort(e),i.sort(e),t=0;t<12;t++)a[t]=Ne(a[t]),r[t]=Ne(r[t]);for(t=0;t<24;t++)i[t]=Ne(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.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"),ae("year","y"),se("year",1),$e("Y",Oe),$e("YY",ke,ye),$e("YYYY",Ce,we),$e("YYYYY",Le,xe),$e("YYYYYY",Le,xe),Fe(["YYYYY","YYYYYY"],qe),Fe("YYYY",(function(e,t){t[qe]=2===e.length?r.parseTwoDigitYear(e):de(e)})),Fe("YY",(function(e,t){t[qe]=r.parseTwoDigitYear(e)})),Fe("Y",(function(e,t){t[qe]=parseInt(e,10)})),r.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,a,r,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,a,r,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,a,r,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 a=7+t-n;return-(7+bt(e,0,a).getUTCDay()-t)%7+a-1}function xt(e,t,n,a,r){var i,o,s=1+7*(t-1)+(7+n-a)%7+wt(e,a,r);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 a,r,i=wt(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?a=o+Dt(r=e.year()-1,t,n):o>Dt(e.year(),t,n)?(a=o-Dt(e.year(),t,n),r=e.year()+1):(r=e.year(),a=o),{week:a,year:r}}function Dt(e,t,n){var a=wt(e,t,n),r=wt(e+1,t,n);return(_t(e)-a+r)/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"),ae("week","w"),ae("isoWeek","W"),se("week",5),se("isoWeek",5),$e("w",ke),$e("ww",ke,ye),$e("W",ke),$e("WW",ke,ye),He(["w","ww","W","WW"],(function(e,t,n,a){t[a.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 jt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function At(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"),ae("day","d"),ae("weekday","e"),ae("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),$e("d",ke),$e("e",ke),$e("E",ke),$e("dd",(function(e,t){return t.weekdaysMinRegex(e)})),$e("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),$e("dddd",(function(e,t){return t.weekdaysRegex(e)})),He(["dd","ddd","dddd"],(function(e,t,n,a){var r=n._locale.weekdaysParse(e,a,n._strict);null!=r?t.d=r:v(n).invalidWeekday=e})),He(["d","e","E"],(function(e,t,n,a){t[a]=de(e)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zt=Pe,Nt=Pe,It=Pe;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?At(n,this._week.dow):e?n[e.day()]:n}function Ht(e){return!0===e?At(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Rt(e){return!0===e?At(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Bt(e,t,n){var a,r,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)i=h([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Be.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Be.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=Be.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=Be.call(this._weekdaysParse,o))||-1!==(r=Be.call(this._shortWeekdaysParse,o))||-1!==(r=Be.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Be.call(this._shortWeekdaysParse,o))||-1!==(r=Be.call(this._weekdaysParse,o))||-1!==(r=Be.call(this._minWeekdaysParse,o))?r:null:-1!==(r=Be.call(this._minWeekdaysParse,o))||-1!==(r=Be.call(this._weekdaysParse,o))||-1!==(r=Be.call(this._shortWeekdaysParse,o))?r:null}function qt(e,t,n){var a,r,i;if(this._weekdaysParseExact)return Bt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(r=h([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[a]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}}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=jt(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=zt),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=Nt),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,a,r,i,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),a=Ne(this.weekdaysMin(n,"")),r=Ne(this.weekdaysShort(n,"")),i=Ne(this.weekdays(n,"")),o.push(a),s.push(r),l.push(i),c.push(a),c.push(r),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),ae("hour","h"),se("hour",13),$e("a",tn),$e("A",tn),$e("H",ke),$e("h",ke),$e("k",ke),$e("HH",ke,ye),$e("hh",ke,ye),$e("kk",ke,ye),$e("hmm",De),$e("hmmss",Me),$e("Hmm",De),$e("Hmmss",Me),Fe(["H","HH"],Ue),Fe(["k","kk"],(function(e,t,n){var a=de(e);t[Ue]=24===a?0:a})),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 a=e.length-2;t[Ue]=de(e.substr(0,a)),t[Ke]=de(e.substr(a)),v(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var a=e.length-4,r=e.length-2;t[Ue]=de(e.substr(0,a)),t[Ke]=de(e.substr(a,2)),t[Ze]=de(e.substr(r)),v(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var a=e.length-2;t[Ue]=de(e.substr(0,a)),t[Ke]=de(e.substr(a))})),Fe("Hmmss",(function(e,t,n){var a=e.length-4,r=e.length-2;t[Ue]=de(e.substr(0,a)),t[Ke]=de(e.substr(a,2)),t[Ze]=de(e.substr(r))}));var an=/[ap]\.?m?\.?/i,rn=pe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:P,longDateFormat:W,invalidDate:K,ordinal:G,dayOfMonthOrdinalParse:J,relativeTime:Q,months:tt,monthsShort:nt,week:St,weekdays:Pt,weekdaysMin:Yt,weekdaysShort:$t,meridiemParse:an},cn={},un={};function dn(e,t){var n,a=Math.min(e.length,t.length);for(n=0;n<a;n+=1)if(e[n]!==t[n])return n;return a}function pn(e){return e?e.toLowerCase().replace("_","-"):e}function mn(e){for(var t,n,a,r,i=0;i<e.length;){for(t=(r=pn(e[i]).split("-")).length,n=(n=pn(e[i+1]))?n.split("-"):null;t>0;){if(a=fn(r.slice(0,t).join("-")))return a;if(n&&n.length>=t&&dn(r,n)>=t-1)break;t--}i++}return sn}function fn(t){var a=null;if(void 0===cn[t]&&e&&e.exports)try{a=sn._abbr,n(6700)("./"+t),hn(a)}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,a=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."),a=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])a=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;a=n._config}return cn[e]=new A(j(a,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,a,r=ln;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(j(cn[e]._config,t)):(null!=(a=fn(e))&&(r=a._config),t=j(r,t),null==a&&(t.abbr=e),(n=new A(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,a,r,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])){r=Dn[t][0],a=!1!==Dn[t][2];break}if(null==r)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(!a&&null!=i)return void(e._isValid=!1);if(l[4]){if(!kn.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=r+(i||"")+(o||""),Hn(e)}else e._isValid=!1}function On(e,t,n,a,r,i){var o=[En(e),nt.indexOf(t),parseInt(n,10),parseInt(a,10),parseInt(r,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 jn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function An(e,t,n){return!e||$t.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Pn(e,t,n){if(e)return Ln[e];if(t)return 0;var a=parseInt(n,10),r=a%100;return(a-r)/100*60+r}function $n(e){var t,n=Cn.exec(jn(e._i));if(n){if(t=On(n[4],n[3],n[2],n[5],n[6],n[7]),!An(n[1],t,e))return;e._a=t,e._tzm=Pn(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,$n(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function zn(e,t,n){return null!=e?e:null!=t?t:n}function Nn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function In(e){var t,n,a,r,i,o=[];if(!e._d){for(a=Nn(e),e._w&&null==e._a[We]&&null==e._a[Ve]&&Fn(e),null!=e._dayOfYear&&(i=zn(e._a[qe],a[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]=a[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),r=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!==r&&(v(e).weekdayMismatch=!0)}}function Fn(e){var t,n,a,r,i,o,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=zn(t.GG,e._a[qe],kt(Zn(),1,4).year),a=zn(t.W,1),((r=zn(t.E,1))<1||r>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,c=kt(Zn(),i,o),n=zn(t.gg,e._a[qe],c.year),a=zn(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+i,(t.e<0||t.e>6)&&(l=!0)):r=i),a<1||a>Dt(n,i,o)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(s=xt(n,a,r,i,o),e._a[qe]=s.year,e._dayOfYear=s.dayOfYear)}function Hn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],v(e).empty=!0;var t,n,a,i,o,s,l=""+e._i,c=l.length,u=0;for(a=V(e._f,e._locale).match(z)||[],t=0;t<a.length;t++)i=a[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 $n(e);else Tn(e)}function Rn(e,t,n){var a;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((a=e.isPM(n))&&t<12&&(t+=12),a||12!==t||(t=0),t):t}function Bn(e){var t,n,a,r,i,o,s=!1;if(0===e._f.length)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)i=0,o=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Hn(t),g(t)&&(o=!0),i+=v(t).charsLeftOver,i+=10*v(t).unusedTokens.length,v(t).score=i,s?i<a&&(a=i,n=t):(null==a||i<a||o)&&(a=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(r.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):r.createFromInputFallback(e)}function Kn(e,t,n,a,r){var i={};return!0!==t&&!1!==t||(a=t,t=void 0),!0!==n&&!1!==n||(a=n,n=void 0),(s(e)&&c(e)||o(e)&&0===e.length)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=n,i._i=e,i._f=t,i._strict=a,Vn(i)}function Zn(e,t,n,a){return Kn(e,t,n,a,!1)}r.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":""))})),r.ISO_8601=function(){},r.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,a;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Zn();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}function Qn(){return Xn("isBefore",[].slice.call(arguments,0))}function ea(){return Xn("isAfter",[].slice.call(arguments,0))}var ta=function(){return Date.now?Date.now():+new Date},na=["year","quarter","month","week","day","hour","minute","second","millisecond"];function aa(e){var t,n,a=!1;for(t in e)if(l(e,t)&&(-1===Be.call(na,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<na.length;++n)if(e[na[n]]){if(a)return!1;parseFloat(e[na[n]])!==de(e[na[n]])&&(a=!0)}return!0}function ra(){return this._isValid}function ia(){return La(NaN)}function oa(e){var t=ie(e),n=t.year||0,a=t.quarter||0,r=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=aa(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*i,this._months=+r+3*a+12*n,this._data={},this._locale=gn(),this._bubble()}function sa(e){return e instanceof oa}function la(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ca(e,t,n){var a,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(a=0;a<r;a++)(n&&e[a]!==t[a]||!n&&de(e[a])!==de(t[a]))&&o++;return o+i}function ua(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)}))}ua("Z",":"),ua("ZZ",""),$e("Z",je),$e("ZZ",je),Fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=pa(je,e)}));var da=/([\+\-]|\d\d)/gi;function pa(e,t){var n,a,r=(t||"").match(e);return null===r?null:0===(a=60*(n=((r[r.length-1]||[])+"").match(da)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?a:-a}function ma(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(D(e)||p(e)?e.valueOf():Zn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),r.updateOffset(n,!1),n):Zn(e).local()}function fa(e){return-Math.round(e._d.getTimezoneOffset())}function ha(e,t,n){var a,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=pa(je,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=fa(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),i!==e&&(!t||this._changeInProgress?Aa(this,La(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:fa(this)}function _a(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function va(e){return this.utcOffset(0,e)}function ga(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fa(this),"m")),this}function ya(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=pa(Ee,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ba(e){return!!this.isValid()&&(e=e?Zn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function wa(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xa(){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()&&ca(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ka(){return!!this.isValid()&&!this._isUTC}function Da(){return!!this.isValid()&&this._isUTC}function Ma(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Sa=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ca=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function La(e,t){var n,a,r,i=e,o=null;return sa(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Sa.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(la(1e3*o[Ge]))*n}):(o=Ca.exec(e))?(n="-"===o[1]?-1:1,i={y:Ta(o[2],n),M:Ta(o[3],n),w:Ta(o[4],n),d:Ta(o[5],n),h:Ta(o[6],n),m:Ta(o[7],n),s:Ta(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(r=Ea(Zn(i.from),Zn(i.to)),(i={}).ms=r.milliseconds,i.M=r.months),a=new oa(i),sa(e)&&l(e,"_locale")&&(a._locale=e._locale),sa(e)&&l(e,"_isValid")&&(a._isValid=e._isValid),a}function Ta(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Oa(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 Ea(e,t){var n;return e.isValid()&&t.isValid()?(t=ma(t,e),e.isBefore(t)?n=Oa(e,t):((n=Oa(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ja(e,t){return function(n,a){var r;return null===a||isNaN(+a)||(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."),r=n,n=a,a=r),Aa(this,La(n,a),e),this}}function Aa(e,t,n,a){var i=t._milliseconds,o=la(t._days),s=la(t._months);e.isValid()&&(a=null==a||a,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),a&&r.updateOffset(e,o||s))}La.fn=oa.prototype,La.invalid=ia;var Pa=ja(1,"add"),$a=ja(-1,"subtract");function Ya(e){return"string"==typeof e||e instanceof String}function za(e){return D(e)||p(e)||Ya(e)||d(e)||Ia(e)||Na(e)||null==e}function Na(e){var t,n,a=s(e)&&!c(e),r=!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],r=r||l(e,n);return a&&r}function Ia(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Ya(e)})).length),t&&n}function Fa(e){var t,n,a=s(e)&&!c(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=i[t],r=r||l(e,n);return a&&r}function Ha(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 Ra(e,t){1===arguments.length&&(arguments[0]?za(arguments[0])?(e=arguments[0],t=void 0):Fa(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Zn(),a=ma(n,this).startOf("day"),i=r.calendarFormat(this,a)||"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 Ba(){return new k(this)}function qa(e,t){var n=D(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Va(e,t){var n=D(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Wa(e,t,n,a){var r=D(e)?e:Zn(e),i=D(t)?t:Zn(t);return!!(this.isValid()&&r.isValid()&&i.isValid())&&("("===(a=a||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===a[1]?this.isBefore(i,n):!this.isAfter(i,n))}function Ua(e,t){var n,a=D(e)?e:Zn(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===a.valueOf():(n=a.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Ka(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Za(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ga(e,t,n){var a,r,i;if(!this.isValid())return NaN;if(!(a=ma(e,this)).isValid())return NaN;switch(r=6e4*(a.utcOffset()-this.utcOffset()),t=re(t)){case"year":i=Ja(this,a)/12;break;case"month":i=Ja(this,a);break;case"quarter":i=Ja(this,a)/3;break;case"second":i=(this-a)/1e3;break;case"minute":i=(this-a)/6e4;break;case"hour":i=(this-a)/36e5;break;case"day":i=(this-a-r)/864e5;break;case"week":i=(this-a-r)/6048e5;break;default:i=this-a}return n?i:ue(i)}function Ja(e,t){if(e.date()<t.date())return-Ja(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(n,"months");return-(n+(t-a<0?(t-a)/(a-e.clone().add(n-1,"months")):(t-a)/(e.clone().add(n+1,"months")-a)))||0}function Xa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qa(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 er(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,a,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=i+'[")]',this.format(e+t+n+a)}function tr(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=q(this,e);return this.localeData().postformat(t)}function nr(e,t){return this.isValid()&&(D(e)&&e.isValid()||Zn(e).isValid())?La({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ar(e){return this.from(Zn(),e)}function rr(e,t){return this.isValid()&&(D(e)&&e.isValid()||Zn(e).isValid())?La({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ir(e){return this.to(Zn(),e)}function or(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sr=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 lr(){return this._locale}var cr=1e3,ur=60*cr,dr=60*ur,pr=3506328*dr;function mr(e,t){return(e%t+t)%t}function fr(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-pr:new Date(e,t,n).valueOf()}function hr(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-pr:Date.UTC(e,t,n)}function _r(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?hr:fr,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-=mr(t+(this._isUTC?0:this.utcOffset()*ur),dr);break;case"minute":t=this._d.valueOf(),t-=mr(t,ur);break;case"second":t=this._d.valueOf(),t-=mr(t,cr)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vr(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?hr:fr,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+=dr-mr(t+(this._isUTC?0:this.utcOffset()*ur),dr)-1;break;case"minute":t=this._d.valueOf(),t+=ur-mr(t,ur)-1;break;case"second":t=this._d.valueOf(),t+=cr-mr(t,cr)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function gr(){return this._d.valueOf()-6e4*(this._offset||0)}function yr(){return Math.floor(this.valueOf()/1e3)}function br(){return new Date(this.valueOf())}function wr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xr(){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 kr(){return this.isValid()?this.toISOString():null}function Dr(){return g(this)}function Mr(){return f({},v(this))}function Sr(){return v(this).overflow}function Cr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Lr(e,t){var n,a,i,o=this._eras||gn("en")._eras;for(n=0,a=o.length;n<a;++n){switch(typeof o[n].since){case"string":i=r(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=r(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}}return o}function Tr(e,t,n){var a,r,i,o,s,l=this.eras();for(e=e.toUpperCase(),a=0,r=l.length;a<r;++a)if(i=l[a].name.toUpperCase(),o=l[a].abbr.toUpperCase(),s=l[a].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[a];break;case"NNNN":if(i===e)return l[a];break;case"NNNNN":if(s===e)return l[a]}else if([i,o,s].indexOf(e)>=0)return l[a]}function Or(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Er(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].name;if(a[e].until<=n&&n<=a[e].since)return a[e].name}return""}function jr(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].narrow;if(a[e].until<=n&&n<=a[e].since)return a[e].narrow}return""}function Ar(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].abbr;if(a[e].until<=n&&n<=a[e].since)return a[e].abbr}return""}function Pr(){var e,t,n,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return(this.year()-r(i[e].since).year())*n+i[e].offset;return this.year()}function $r(e){return l(this,"_erasNameRegex")||Rr.call(this),e?this._erasNameRegex:this._erasRegex}function Yr(e){return l(this,"_erasAbbrRegex")||Rr.call(this),e?this._erasAbbrRegex:this._erasRegex}function zr(e){return l(this,"_erasNarrowRegex")||Rr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Nr(e,t){return t.erasAbbrRegex(e)}function Ir(e,t){return t.erasNameRegex(e)}function Fr(e,t){return t.erasNarrowRegex(e)}function Hr(e,t){return t._eraYearOrdinalRegex||Te}function Rr(){var e,t,n=[],a=[],r=[],i=[],o=this.eras();for(e=0,t=o.length;e<t;++e)a.push(Ne(o[e].name)),n.push(Ne(o[e].abbr)),r.push(Ne(o[e].narrow)),i.push(Ne(o[e].name)),i.push(Ne(o[e].abbr)),i.push(Ne(o[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Br(e,t){H(0,[e,e.length],0,t)}function qr(e){return Gr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vr(e){return Gr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wr(){return Dt(this.year(),1,4)}function Ur(){return Dt(this.isoWeekYear(),1,4)}function Kr(){var e=this.localeData()._week;return Dt(this.year(),e.dow,e.doy)}function Zr(){var e=this.localeData()._week;return Dt(this.weekYear(),e.dow,e.doy)}function Gr(e,t,n,a,r){var i;return null==e?kt(this,a,r).year:(t>(i=Dt(e,a,r))&&(t=i),Jr.call(this,e,t,n,a,r))}function Jr(e,t,n,a,r){var i=xt(e,t,n,a,r),o=bt(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Xr(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"),$e("N",Nr),$e("NN",Nr),$e("NNN",Nr),$e("NNNN",Ir),$e("NNNNN",Fr),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,a){var r=n._locale.erasParse(e,a,n._strict);r?v(n).era=r:v(n).invalidEra=e})),$e("y",Te),$e("yy",Te),$e("yyy",Te),$e("yyyy",Te),$e("yo",Hr),Fe(["y","yy","yyy","yyyy"],qe),Fe(["yo"],(function(e,t,n,a){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[qe]=n._locale.eraYearOrdinalParse(e,r):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})),Br("gggg","weekYear"),Br("ggggg","weekYear"),Br("GGGG","isoWeekYear"),Br("GGGGG","isoWeekYear"),ae("weekYear","gg"),ae("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),$e("G",Oe),$e("g",Oe),$e("GG",ke,ye),$e("gg",ke,ye),$e("GGGG",Ce,we),$e("gggg",Ce,we),$e("GGGGG",Le,xe),$e("ggggg",Le,xe),He(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,a){t[a.substr(0,2)]=de(e)})),He(["gg","GG"],(function(e,t,n,a){t[a]=r.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),ae("quarter","Q"),se("quarter",7),$e("Q",ge),Fe("Q",(function(e,t){t[Ve]=3*(de(e)-1)})),H("D",["DD",2],"Do","date"),ae("date","D"),se("date",9),$e("D",ke),$e("DD",ke,ye),$e("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 Qr=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"),ae("dayOfYear","DDD"),se("dayOfYear",4),$e("DDD",Se),$e("DDDD",be),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=de(e)})),H("m",["mm",2],0,"minute"),ae("minute","m"),se("minute",14),$e("m",ke),$e("mm",ke,ye),Fe(["m","mm"],Ke);var ti=pe("Minutes",!1);H("s",["ss",2],0,"second"),ae("second","s"),se("second",15),$e("s",ke),$e("ss",ke,ye),Fe(["s","ss"],Ze);var ni,ai,ri=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()})),ae("millisecond","ms"),se("millisecond",16),$e("S",Se,ge),$e("SS",Se,ye),$e("SSS",Se,be),ni="SSSS";ni.length<=9;ni+="S")$e(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":""}ai=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=Pa,li.calendar=Ra,li.clone=Ba,li.diff=Ga,li.endOf=vr,li.format=tr,li.from=nr,li.fromNow=ar,li.to=rr,li.toNow=ir,li.get=he,li.invalidAt=Sr,li.isAfter=qa,li.isBefore=Va,li.isBetween=Wa,li.isSame=Ua,li.isSameOrAfter=Ka,li.isSameOrBefore=Za,li.isValid=Dr,li.lang=sr,li.locale=or,li.localeData=lr,li.max=Jn,li.min=Gn,li.parsingFlags=Mr,li.set=_e,li.startOf=_r,li.subtract=$a,li.toArray=wr,li.toObject=xr,li.toDate=br,li.toISOString=Qa,li.inspect=er,"undefined"!=typeof Symbol&&null!=Symbol.for&&(li[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),li.toJSON=kr,li.toString=Xa,li.unix=yr,li.valueOf=gr,li.creationData=Cr,li.eraName=Er,li.eraNarrow=jr,li.eraAbbr=Ar,li.eraYear=Pr,li.year=vt,li.isLeapYear=gt,li.weekYear=qr,li.isoWeekYear=Vr,li.quarter=li.quarters=Xr,li.month=dt,li.daysInMonth=pt,li.week=li.weeks=Tt,li.isoWeek=li.isoWeeks=Ot,li.weeksInYear=Kr,li.weeksInWeekYear=Zr,li.isoWeeksInYear=Wr,li.isoWeeksInISOWeekYear=Ur,li.date=Qr,li.day=li.days=Vt,li.weekday=Wt,li.isoWeekday=Ut,li.dayOfYear=ei,li.hour=li.hours=rn,li.minute=li.minutes=ti,li.second=li.seconds=ri,li.millisecond=li.milliseconds=ai,li.utcOffset=ha,li.utc=va,li.local=ga,li.parseZone=ya,li.hasAlignedHourOffset=ba,li.isDST=wa,li.isLocal=ka,li.isUtcOffset=Da,li.isUtc=Ma,li.isUTC=Ma,li.zoneAbbr=oi,li.zoneName=si,li.dates=S("dates accessor is deprecated. Use date instead.",Qr),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/",_a),li.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xa);var pi=A.prototype;function mi(e,t,n,a){var r=gn(),i=h().set(a,t);return r[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 a,r=[];for(a=0;a<12;a++)r[a]=mi(e,a,n,"month");return r}function hi(e,t,n,a){"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 r,i=gn(),o=e?i._week.dow:0,s=[];if(null!=n)return mi(t,(n+o)%7,a,"day");for(r=0;r<7;r++)s[r]=mi(t,(r+o)%7,a,"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=$,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=Lr,pi.erasParse=Tr,pi.erasConvertYear=Or,pi.erasAbbrRegex=Yr,pi.erasNameRegex=$r,pi.erasNarrowRegex=zr,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")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",hn),r.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,a){var r=La(t,n);return e._milliseconds+=a*r._milliseconds,e._days+=a*r._days,e._months+=a*r._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,a,r,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+=r=ue(Li(o)),o-=Si(Ti(r)),a=ue(s/12),s%=12,l.days=o,l.months=s,l.years=a,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,a=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+a/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+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;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 ji(e){return function(){return this.as(e)}}var Ai=ji("ms"),Pi=ji("s"),$i=ji("m"),Yi=ji("h"),zi=ji("d"),Ni=ji("w"),Ii=ji("M"),Fi=ji("Q"),Hi=ji("y");function Ri(){return La(this)}function Bi(e){return e=re(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,a,r){return r.relativeTime(t||1,!!n,e,a)}function no(e,t,n,a){var r=La(e).abs(),i=Qi(r.as("s")),o=Qi(r.as("m")),s=Qi(r.as("h")),l=Qi(r.as("d")),c=Qi(r.as("M")),u=Qi(r.as("w")),d=Qi(r.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]=a,to.apply(null,p)}function ao(e){return void 0===e?Qi:"function"==typeof e&&(Qi=e,!0)}function ro(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,a,r=!1,i=eo;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(i=Object.assign({},eo,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),a=no(this,!r,i,n=this.localeData()),r&&(a=n.pastFuture(+this,a)),n.postformat(a)}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,a,r,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,a=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",i=so(this._months)!==so(d)?"-":"",o=so(this._days)!==so(d)?"-":"",s=so(this._milliseconds)!==so(d)?"-":"",r+"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+a+"S":"")):"P0D"}var co=oa.prototype;return co.isValid=ra,co.abs=xi,co.add=Di,co.subtract=Mi,co.as=Oi,co.asMilliseconds=Ai,co.asSeconds=Pi,co.asMinutes=$i,co.asHours=Yi,co.asDays=zi,co.asWeeks=Ni,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=or,co.localeData=lr,co.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),co.lang=sr,H("X",0,0,"unix"),H("x",0,0,"valueOf"),$e("x",Oe),$e("X",Ae),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))})),r.version="2.29.1",i(Zn),r.fn=li,r.min=Qn,r.max=ea,r.now=ta,r.utc=h,r.unix=ci,r.months=_i,r.isDate=p,r.locale=hn,r.invalid=y,r.duration=La,r.isMoment=D,r.weekdays=gi,r.parseZone=ui,r.localeData=gn,r.isDuration=sa,r.monthsShort=vi,r.weekdaysMin=bi,r.defineLocale=_n,r.updateLocale=vn,r.locales=yn,r.weekdaysShort=yi,r.normalizeUnits=re,r.relativeTimeRounding=ao,r.relativeTimeThreshold=ro,r.calendarFormat=Ha,r.prototype=li,r.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"},r}()},4155:e=>{var t,n,a=e.exports={};function r(){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===r||!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:r}catch(e){t=r}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(){}a.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)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=f,a.addListener=f,a.once=f,a.off=f,a.removeListener=f,a.removeAllListeners=f,a.emit=f,a.prependListener=f,a.prependOnceListener=f,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},5666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,a=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.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,a){var r=t&&t.prototype instanceof _?t:_,i=Object.create(r.prototype),o=new L(a||[]);return i._invoke=function(e,t,n){var a=d;return function(r,i){if(a===m)throw new Error("Generator is already running");if(a===f){if("throw"===r)throw i;return O()}for(n.method=r,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(a===d)throw a=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var l=u(e,t,n);if("normal"===l.type){if(a=n.done?f:p,l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=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&&a.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(r,i,o,s){var l=u(e[r],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&a.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 r;this._invoke=function(e,a){function i(){return new t((function(t,r){n(e,a,t,r)}))}return r=r?r.then(i,i):i()}}function M(e,n){var a=e.iterator[n.method];if(a===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 r=u(a,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,h;var i=r.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 r=-1,o=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],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,a,r,i){void 0===i&&(i=Promise);var o=new D(c(t,n,a,r),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 a=t.pop();if(a in e)return n.value=a,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)&&a.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 r(a,r){return s.type="throw",s.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;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 a=n.completion;if("throw"===a.type){var r=a.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:T(e),resultName:n,nextLoc:a},"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 a(e){return(a="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 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 i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),a.forEach((function(t){r(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}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,a){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&y(e,t):y(e,t))||a&&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 a=(" "+e.className+" ").replace(k," ").replace(" "+t+" "," ");e.className=(a+(n?" "+t:"")).replace(k," ")}}function M(e,t,n){var a=e&&e.style;if(a){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 a||-1!==t.indexOf("webkit")||(t="-webkit-"+t),a[t]=n+("string"==typeof n?"":"px")}}function S(e,t){var n="";if("string"==typeof e)n=e;else do{var a=M(e,"transform");a&&"none"!==a&&(n=a+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function C(e,t,n){if(e){var a=e.getElementsByTagName(t),r=0,i=a.length;if(n)for(;r<i;r++)n(a[r],r);return a}return[]}function L(){var e=document.scrollingElement;return e||document.documentElement}function T(e,t,n,a,r){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&&(r=r||e.parentNode,!u))do{if(r&&r.getBoundingClientRect&&("none"!==M(r,"transform")||n&&"static"!==M(r,"position"))){var m=r.getBoundingClientRect();o-=m.top+parseInt(M(r,"border-top-width")),s-=m.left+parseInt(M(r,"border-left-width")),l=o+i.height,c=s+i.width;break}}while(r=r.parentNode);if(a&&e!==window){var f=S(r||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 a=$(e,!0),r=T(e)[t];a;){var i=T(a)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return a;if(a===L())break;a=$(a,!1)}return!1}function E(e,t,n){for(var a=0,r=0,i=e.children;r<i.length;){if("none"!==i[r].style.display&&i[r]!==Fe.ghost&&i[r]!==Fe.dragged&&w(i[r],n.draggable,e,!1)){if(a===t)return i[r];a++}r++}return null}function j(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 A(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 P(e){var t=0,n=0,a=L();if(e)do{var r=S(e),i=r.a,o=r.d;t+=e.scrollLeft*i,n+=e.scrollTop*o}while(e!==a&&(e=e.parentNode));return[t,n]}function $(e,t){if(!e||!e.getBoundingClientRect)return L();var n=e,a=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=M(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return L();if(a||t)return n;a=!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 z(e,t){return function(){if(!x){var n=arguments,a=this;1===n.length?e.call(a,n[0]):e.apply(a,n),x=setTimeout((function(){x=void 0}),t)}}}function N(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 a=S(e,!0);a&&(n.top-=a.f,n.left-=a.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 a in t)if(t.hasOwnProperty(a)&&t[a]===e[n][a])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var a=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var r=!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,a){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))*a.animation}(u,l,c,a.options)),Y(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||(t=a.options.animation),a.animate(n,u,s,t)),t&&(r=!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),r?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,a){if(a){M(e,"transition",""),M(e,"transform","");var r=S(this.el),i=r&&r.a,o=r&&r.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 "+a+"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}),a)}}}}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 a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var r=e+"Global";q.forEach((function(a){t[a.pluginName]&&(t[a.pluginName][r]&&t[a.pluginName][r](o({sortable:t},n)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,a){for(var r in q.forEach((function(a){var r=a.pluginName;if(e.options[r]||a.initializeByDefault){var o=new a(e,t,e.options);o.sortable=e,o.options=e.options,e[r]=o,i(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var o=this.modifyOption(e,r,e.options[r]);void 0!==o&&(e.options[r]=o)}},getEventProperties:function(e,t){var n={};return q.forEach((function(a){"function"==typeof a.eventProperties&&i(n,a.eventProperties.call(t[a.pluginName],e))})),n},modifyOption:function(e,t,n){var a;return q.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(a=r.optionListeners[t].call(e[r.pluginName],n))})),a}};function U(e){var t=e.sortable,n=e.rootEl,a=e.name,r=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"+a.charAt(0).toUpperCase()+a.substr(1);!window.CustomEvent||u||d?(g=document.createEvent("Event")).initEvent(a,!0,!0):g=new CustomEvent(a,{bubbles:!0,cancelable:!0}),g.to=s||n,g.from=l||n,g.item=r||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(a,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]:{},a=n.evt,r=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:ae,dragStarted:_e,putSortable:ce,activeSortable:Fe.active,originalEvent:a,oldIndex:re,oldDraggableIndex:oe,newIndex:ie,newDraggableIndex:se,hideGhostForTarget:Ye,unhideGhostForTarget:ze,cloneNowHidden:function(){ae=!0},cloneNowShown:function(){ae=!1},dispatchSortableEvent:function(e){Z({sortable:t,name:e,originalEvent:a})}},r))};function Z(e){U(o({putSortable:ce,cloneEl:ne,targetEl:G,rootEl:Q,oldIndex:re,oldDraggableIndex:oe,newIndex:ie,newDraggableIndex:se},e))}var G,J,X,Q,ee,te,ne,ae,re,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",je=Te&&!h&&!f&&"draggable"in document.createElement("div"),Ae=function(){if(Te){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Pe=function(e,t){var n=M(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=E(e,0,t),i=E(e,1,t),o=r&&M(r),s=i&&M(i),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+T(r).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(r&&o.float&&"none"!==o.float){var u="left"===o.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return r&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=a&&"none"===n[Ee]||i&&"none"===n[Ee]&&l+c>a)?"vertical":"horizontal"},$e=function(e){function t(e,n){return function(a,r,i,o){var s=a.options.group.name&&r.options.group.name&&a.options.group.name===r.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(a,r,i,o),n)(a,r,i,o);var l=(n?a:r).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==a(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Ye=function(){!Ae&&X&&M(X,"display","none")},ze=function(){!Ae&&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 Ne=function(e){if(G){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,i=e.clientY,ke.some((function(e){if(!j(e)){var t=T(e),n=e[R].options.emptyInsertThreshold,a=r>=t.left-n&&r<=t.right+n,s=i>=t.top-n&&i<=t.bottom+n;return n&&a&&s?o=e:void 0}})),o);if(t){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[R]._onDragOver(n)}}var r,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 Pe(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 a in W.initializePlugins(this,e,n),n)!(a in t)&&(t[a]=n[a]);for(var r in $e(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&je,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,a,r,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=a,l.related=r||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,a=0;n--;)a+=t.charCodeAt(n);return a.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,a=this.options,r=a.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=a.filter;if(function(e){Le.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var a=t[n];a.checked&&Le.push(a)}}(n),!G&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||a.disabled||l.isContentEditable||(s=w(s,a.draggable,n,!1))&&s.animated||te===s)){if(re=A(s),oe=A(s,a.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(r&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(a){if(a=w(l,a.trim(),n,!1))return Z({sortable:t,rootEl:a,name:"filter",targetEl:s,fromEl:n,toEl:n}),K("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());a.handle&&!w(l,a.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var a,r=this,i=r.el,o=r.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",a=function(){K("delayEnded",r,{evt:e}),Fe.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!p&&r.nativeDraggable&&(G.draggable=!0),r._triggerDragStart(e,t),Z({sortable:r,name:"choose",originalEvent:e}),D(G,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){C(G,e.trim(),Re)})),v(s,"dragover",Ne),v(s,"mousemove",Ne),v(s,"touchmove",Ne),v(s,"mouseup",r._onDrop),v(s,"touchend",r._onDrop),v(s,"touchcancel",r._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))a();else{if(Fe.eventCanceled)return void this._onDrop();v(s,"mouseup",r._disableDelayedDrag),v(s,"touchend",r._disableDelayedDrag),v(s,"touchcancel",r._disableDelayedDrag),v(s,"mousemove",r._delayedDragTouchMoveHandler),v(s,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&v(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(a,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);ze()}},_onTouchMove:function(e){if(ue){var t=this.options,n=t.fallbackTolerance,a=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=X&&S(X,!0),o=X&&i&&i.a,s=X&&i&&i.d,l=Oe&&be&&P(be),c=(r.clientX-ue.clientX+a.x)/(o||1)+(l?l[0]-Se[0]:0)/(o||1),u=(r.clientY-ue.clientY+a.y)/(s||1)+(l?l[1]-Se[1]:0)/(s||1);if(!Fe.active&&!we){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.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=r}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=P(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,a=e.dataTransfer,r=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,r.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),a&&(a.effectAllowed="move",r.setData&&r.setData.call(n,a,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,a,r,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||(a=!Q.contains(G)):ce===this||(this.lastPutMode=le.checkPull(this,u,G,e))&&c.checkPut(this,u,G,e))){if(r="vertical"===this._getDirection(e,s),t=T(G),Y("dragOverValid"),Fe.eventCanceled)return h;if(a)return J=Q,z(),this._hideClone(),Y("revert"),Fe.eventCanceled||(ee?Q.insertBefore(G,ee):Q.appendChild(G)),I(!0);var _=j(i,l.draggable);if(!_||function(e,t,n){var a=T(j(n.el,n.options.draggable)),r=10;return t?e.clientX>a.right+r||e.clientX<=a.right&&e.clientY>a.bottom&&e.clientX>=a.left:e.clientX>a.right&&e.clientY>a.top||e.clientX<=a.right&&e.clientY>a.bottom+r}(e,r,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 z(),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 a=n?e.left:e.top,r=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 a===o||r===s||a+i/2===o+l/2}(G.animated&&G.toRect||t,s.animated&&s.toRect||n,r),k=r?"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,a,r,i,o,s){var l=a?e.clientY:e.clientX,c=a?n.height:n.width,u=a?n.top:n.left,d=a?n.bottom:n.right,p=!1;if(!o)if(s&&ye<c*r){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-r)/2&&l<d-c*(1-r)/2)return function(e){return A(G)<A(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,r,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Me,ve===s))){var L=A(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,P=!1,$=He(Q,i,G,t,s,n,e,P=1===v);if(!1!==$)return 1!==$&&-1!==$||(P=1===$),Ce=!0,setTimeout(Be,30),z(),P&&!E?i.appendChild(G):s.parentNode.insertBefore(G,P?E:s),S&&N(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:r?"vertical":"horizontal",revert:a,dragRect:t,targetRect:n,canSort:p,fromSortable:m,target:s,completed:I,onMove:function(n,a){return He(Q,i,G,t,n,T(n),e,a)},changed:F},c))}function z(){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&&Ne(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function F(){ie=A(G),se=A(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",Ne),g(document,"mousemove",Ne),g(document,"touchmove",Ne)},_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=A(G),se=A(G,n.draggable),K("drop",this,{evt:e}),J=G&&G.parentNode,ie=A(G),se=A(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!==re&&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=re,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=ae=ue=de=_e=ie=se=re=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,a=0,r=n.length,i=this.options;a<r;a++)w(e=n[a],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,a){var r=n.children[a];w(r,this.options.draggable,n,!1)&&(t[e]=r)}),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 a=W.modifyOption(this,e,t);n[e]=void 0!==a?a:t,"group"===e&&$e(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(!ae){if(K("hideClone",this),Fe.eventCanceled)return;M(ne,"display","none"),this.options.removeCloneOnHide&&ne.parentNode&&ne.parentNode.removeChild(ne),ae=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ae){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",""),ae=!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:z,closest:w,toggleClass:D,clone:I,index:A,nextTick:Ve,cancelNextTick:We,detectDirection:Pe,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 at,rt=z((function(e,t,n,a){if(t.scroll){var r,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,r=t.scrollFn,!0===Ue&&(Ue=$(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),j=x&&(Math.abs(_-o)<=s&&O+b<D)-(Math.abs(h-o)<=s&&!!O);if(!Qe[d])for(var A=0;A<=d;A++)Qe[A]||(Qe[A]={});Qe[d].vx==E&&Qe[d].vy==j&&Qe[d].el===m||(Qe[d].el=m,Qe[d].vx=E,Qe[d].vy=j,clearInterval(Qe[d].pid),0==E&&0==j||(u=!0,Qe[d].pid=setInterval(function(){a&&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 r&&"continue"!==r.call(Fe.dragged.parentNode[R],n,t,e,Je,Qe[this.layer].el)||N(Qe[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&p!==c&&(p=$(p,!1)));et=u}}),30),it=function(e){var t=e.originalEvent,n=e.putSortable,a=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||r;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:a,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;at=t},dragOverValid:function(e){var t=e.completed,n=e.target,a=e.onMove,r=e.activeSortable,i=e.changed,o=e.cancel;if(r.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=at;!1!==a(n)?(D(n,l.swapClass,!0),at=n):at=null,c&&c!==at&&D(c,l.swapClass,!1)}i(),t(!0),o()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,a=e.dragEl,r=n||this.sortable,i=this.options;at&&D(at,i.swapClass,!1),at&&(i.swap||n&&n.options.swap)&&a!==at&&(r.captureAnimationState(),r!==t&&t.captureAnimationState(),function(e,t){var n,a,r=e.parentNode,i=t.parentNode;if(!r||!i||r.isEqualNode(t)||i.isEqualNode(e))return;n=A(e),a=A(t),r.isEqualNode(i)&&n<a&&a++;r.insertBefore(t,r.children[n]),i.insertBefore(e,i.children[a])}(a,at),r.animateAll(),r!==t&&t.animateAll())},nulling:function(){at=null}},i(e,{pluginName:"swap",eventProperties:function(){return{swapItem:at}}})}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 a=E(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):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 a="";ft.length&&ut===e?ft.forEach((function(e,t){a+=(t?", ":"")+e.textContent})):a=n.textContent,t.setData("Text",a)}}}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 a=0;a<ft.length;a++)ht.push(I(ft[a])),ht[a].sortableIndex=ft[a].sortableIndex,ht[a].draggable=!1,ht[a].style["will-change"]="",D(ht[a],this.options.selectedClass,!1),ft[a]===dt&&D(ht[a],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,a=e.dispatchSortableEvent,r=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ft.length&&ut===t&&(bt(!0,n),a("clone"),r()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,a=e.cancel;this.isMultiDrag&&(bt(!1,n),ht.forEach((function(e){M(e,"display","")})),t(),mt=!1,a())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),a=e.cancel;this.isMultiDrag&&(ht.forEach((function(e){M(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),mt=!0,a())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&ut&&ut.multiDrag._deselectMultiDrag(),ft.forEach((function(e){e.sortableIndex=A(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 a=T(dt,!1,!0,!0);ft.forEach((function(e){e!==dt&&F(e,a)})),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,a=e.cancel;vt&&~ft.indexOf(t)&&(n(!1),a())},revert:function(e){var t=e.fromSortable,n=e.rootEl,a=e.sortable,r=e.dragRect;ft.length>1&&(ft.forEach((function(e){a.addAnimationState({target:e,rect:vt?T(e):r}),H(e),e.fromRect=r,t.removeAnimationState(e)})),vt=!1,function(e,t){ft.forEach((function(n,a){var r=t.children[n.sortableIndex+(e?Number(a):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,a=e.insertion,r=e.activeSortable,i=e.parentEl,o=e.putSortable,s=this.options;if(a){if(n&&r._hideClone(),_t=!1,s.animation&&ft.length>1&&(vt||!n&&!r.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;r._showClone(t),r.options.animation&&!mt&&c&&ht.forEach((function(e){r.addAnimationState({target:e,rect:pt}),e.fromRect=pt,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,a=e.activeSortable;if(ft.forEach((function(e){e.thisAnimationDuration=null})),a.options.animation&&!n&&a.multiDrag.isMultiDrag){pt=i({},t);var r=S(dt,!0);pt.top-=r.f,pt.left-=r.e}},dragOverAnimationComplete:function(){vt&&(vt=!1,wt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,a=e.parentEl,r=e.sortable,i=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=a.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:r,rootEl:n,name:"deselect",targetEl:dt,originalEvt:t});else{if(ft.push(dt),U({sortable:r,rootEl:n,name:"select",targetEl:dt,originalEvt:t}),t.shiftKey&&ct&&r.el.contains(ct)){var d,p,m=A(ct),f=A(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:r,rootEl:n,name:"select",targetEl:u[p],originalEvt:t}))}else ct=dt;ut=l}if(gt&&this.isMultiDrag){if((a[R].options.sort||a!==n)&&ft.length>1){var h=T(dt),_=A(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[_]?a.insertBefore(e,u[_]):a.appendChild(e),_++})),o===A(dt))){var v=!1;ft.forEach((function(e){e.sortableIndex===A(e)||(v=!0)})),v&&i("update")}ft.forEach((function(e){H(e)})),l.animateAll()}ut=l}(n===a||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(a){var r;t.push({multiDragElement:a,index:a.sortableIndex}),r=vt&&a!==dt?-1:vt?A(a,":not(."+e.options.selectedClass+")"):A(a),n.push({multiDragElement:a,index:r})})),{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,a){var r=t.children[n.sortableIndex+(e?Number(a):0)];r?t.insertBefore(n,r):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,a=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(a,r);if(Je=e,t||d||u||m){rt(e,this.options,i,t);var o=$(i,!0);!et||Xe&&a===Ze&&r===Ge||(Xe&&nt(),Xe=setInterval((function(){var i=$(document.elementFromPoint(a,r),!0);i!==o&&(o=i,tt()),rt(e,n.options,i,t)}),10),Ze=a,Ge=r)}else{if(!this.options.bubbleScroll||$(i,!0)===L())return void tt();rt(e,this.options,$(i,!1),!1)}}},i(e,{pluginName:"scroll",initializeByDefault:!0})}),Fe.mount(st,ot);const xt=Fe},3379:(e,t,n)=>{"use strict";var a,r=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},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={},a=[],r=0;r<e.length;r++){var i=e[r],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}),a.push(u)}return a}function c(e){var t=document.createElement("style"),a=e.attributes||{};if(void 0===a.nonce){var r=n.nc;r&&(a.nonce=r)}if(Object.keys(a).forEach((function(e){t.setAttribute(e,a[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,a){var r=n?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(e.styleSheet)e.styleSheet.cssText=d(t,r);else{var i=document.createTextNode(r),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 a=n.css,r=n.media,i=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}var f=null,h=0;function _(e,t){var n,a,r;if(t.singleton){var i=h++;n=f||(f=c(t)),a=p.bind(null,n,i,!1),r=p.bind(null,n,i,!0)}else n=c(t),a=m.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return a(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;a(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var a=0;a<n.length;a++){var r=s(n[a]);o[r].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}}}},8764:function(e){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 a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function a(e,t,a){return t&&n(e.prototype,t),a&&n(e,a),e}function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,n){return(c=l()?Reflect.construct:function(e,t,n){var a=[null];a.push.apply(a,t);var r=new(Function.bind.apply(e,a));return n&&s(r,n.prototype),r}).apply(null,arguments)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?u(e):t}function p(e){var t=l();return function(){var n,a=o(e);if(t){var r=o(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return d(this,n)}}function m(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var a=m(e,t);if(a){var r=Object.getOwnPropertyDescriptor(a,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}var h="SweetAlert2:",_=function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t},v=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},g=function(e){return Object.keys(e).map((function(t){return e[t]}))},y=function(e){return Array.prototype.slice.call(e)},b=function(t){console.warn("".concat(h," ").concat("object"===e(t)?t.join(" "):t))},w=function(e){console.error("".concat(h," ").concat(e))},x=[],k=function(e){-1===x.indexOf(e)&&(x.push(e),b(e))},D=function(e,t){k('"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'))},M=function(e){return"function"==typeof e?e():e},S=function(e){return e&&"function"==typeof e.toPromise},C=function(e){return S(e)?e.toPromise():Promise.resolve(e)},L=function(e){return e&&Promise.resolve(e)===e},T=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),O=function(t){return"object"===e(t)&&t.jquery},E=function(e){return e instanceof Element||O(e)},j=function(t){var n={};return"object"!==e(t[0])||E(t[0])?["title","html","icon"].forEach((function(a,r){var i=t[r];"string"==typeof i||E(i)?n[a]=i:void 0!==i&&w("Unexpected type of ".concat(a,'! Expected "string" or "Element", got ').concat(e(i)))})):r(n,t[0]),n},A="swal2-",P=function(e){var t={};for(var n in e)t[e[n]]=A+e[n];return t},$=P(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","toast-column","show","hide","close","title","header","content","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),Y=P(["success","warning","info","question","error"]),z=function(){return document.body.querySelector(".".concat($.container))},N=function(e){var t=z();return t?t.querySelector(e):null},I=function(e){return N(".".concat(e))},F=function(){return I($.popup)},H=function(){return I($.icon)},R=function(){return I($.title)},B=function(){return I($.content)},q=function(){return I($["html-container"])},V=function(){return I($.image)},W=function(){return I($["progress-steps"])},U=function(){return I($["validation-message"])},K=function(){return N(".".concat($.actions," .").concat($.confirm))},Z=function(){return N(".".concat($.actions," .").concat($.deny))},G=function(){return I($["input-label"])},J=function(){return N(".".concat($.loader))},X=function(){return N(".".concat($.actions," .").concat($.cancel))},Q=function(){return I($.actions)},ee=function(){return I($.header)},te=function(){return I($.footer)},ne=function(){return I($["timer-progress-bar"])},ae=function(){return I($.close)},re='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',ie=function(){var e=y(F().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(e,t){return(e=parseInt(e.getAttribute("tabindex")))>(t=parseInt(t.getAttribute("tabindex")))?1:e<t?-1:0})),t=y(F().querySelectorAll(re)).filter((function(e){return"-1"!==e.getAttribute("tabindex")}));return _(e.concat(t)).filter((function(e){return Se(e)}))},oe=function(){return!se()&&!document.body.classList.contains($["no-backdrop"])},se=function(){return document.body.classList.contains($["toast-shown"])},le=function(){return F().hasAttribute("data-loading")},ce={previousBodyPadding:null},ue=function(e,t){if(e.textContent="",t){var n=(new DOMParser).parseFromString(t,"text/html");y(n.querySelector("head").childNodes).forEach((function(t){e.appendChild(t)})),y(n.querySelector("body").childNodes).forEach((function(t){e.appendChild(t)}))}},de=function(e,t){if(!t)return!1;for(var n=t.split(/\s+/),a=0;a<n.length;a++)if(!e.classList.contains(n[a]))return!1;return!0},pe=function(e,t){y(e.classList).forEach((function(n){-1===g($).indexOf(n)&&-1===g(Y).indexOf(n)&&-1===g(t.showClass).indexOf(n)&&e.classList.remove(n)}))},me=function(t,n,a){if(pe(t,n),n.customClass&&n.customClass[a]){if("string"!=typeof n.customClass[a]&&!n.customClass[a].forEach)return b("Invalid type of customClass.".concat(a,'! Expected string or iterable object, got "').concat(e(n.customClass[a]),'"'));ge(t,n.customClass[a])}};function fe(e,t){if(!t)return null;switch(t){case"select":case"textarea":case"file":return be(e,$[t]);case"checkbox":return e.querySelector(".".concat($.checkbox," input"));case"radio":return e.querySelector(".".concat($.radio," input:checked"))||e.querySelector(".".concat($.radio," input:first-child"));case"range":return e.querySelector(".".concat($.range," input"));default:return be(e,$.input)}}var he,_e=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},ve=function(e,t,n){e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((function(t){e.forEach?e.forEach((function(e){n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},ge=function(e,t){ve(e,t,!0)},ye=function(e,t){ve(e,t,!1)},be=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(de(e.childNodes[n],t))return e.childNodes[n]},we=function(e,t,n){n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?e.style[t]="number"==typeof n?"".concat(n,"px"):n:e.style.removeProperty(t)},xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},ke=function(e){e.style.display="none"},De=function(e,t,n,a){var r=e.querySelector(t);r&&(r.style[n]=a)},Me=function(e,t,n){t?xe(e,n):ke(e)},Se=function(e){return!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},Ce=function(){return!Se(K())&&!Se(Z())&&!Se(X())},Le=function(e){return!!(e.scrollHeight>e.clientHeight)},Te=function(e){var t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),a=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||a>0},Oe=function(e,t){if("function"==typeof e.contains)return e.contains(t)},Ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ne();Se(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},je=function(){var e=ne(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var n=parseInt(window.getComputedStyle(e).width),a=parseInt(t/n*100);e.style.removeProperty("transition"),e.style.width="".concat(a,"%")},Ae=function(){return"undefined"==typeof window||"undefined"==typeof document},Pe='\n <div aria-labelledby="'.concat($.title,'" aria-describedby="').concat($.content,'" class="').concat($.popup,'" tabindex="-1">\n <div class="').concat($.header,'">\n <ul class="').concat($["progress-steps"],'"></ul>\n <div class="').concat($.icon,'"></div>\n <img class="').concat($.image,'" />\n <h2 class="').concat($.title,'" id="').concat($.title,'"></h2>\n <button type="button" class="').concat($.close,'"></button>\n </div>\n <div class="').concat($.content,'">\n <div id="').concat($.content,'" class="').concat($["html-container"],'"></div>\n <input class="').concat($.input,'" />\n <input type="file" class="').concat($.file,'" />\n <div class="').concat($.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat($.select,'"></select>\n <div class="').concat($.radio,'"></div>\n <label for="').concat($.checkbox,'" class="').concat($.checkbox,'">\n <input type="checkbox" />\n <span class="').concat($.label,'"></span>\n </label>\n <textarea class="').concat($.textarea,'"></textarea>\n <div class="').concat($["validation-message"],'" id="').concat($["validation-message"],'"></div>\n </div>\n <div class="').concat($.actions,'">\n <div class="').concat($.loader,'"></div>\n <button type="button" class="').concat($.confirm,'"></button>\n <button type="button" class="').concat($.deny,'"></button>\n <button type="button" class="').concat($.cancel,'"></button>\n </div>\n <div class="').concat($.footer,'"></div>\n <div class="').concat($["timer-progress-bar-container"],'">\n <div class="').concat($["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),$e=function(){var e=z();return!!e&&(e.parentNode.removeChild(e),ye([document.documentElement,document.body],[$["no-backdrop"],$["toast-shown"],$["has-column"]]),!0)},Ye=function(e){mr.isVisible()&&he!==e.target.value&&mr.resetValidationMessage(),he=e.target.value},ze=function(){var e=B(),t=be(e,$.input),n=be(e,$.file),a=e.querySelector(".".concat($.range," input")),r=e.querySelector(".".concat($.range," output")),i=be(e,$.select),o=e.querySelector(".".concat($.checkbox," input")),s=be(e,$.textarea);t.oninput=Ye,n.onchange=Ye,i.onchange=Ye,o.onchange=Ye,s.oninput=Ye,a.oninput=function(e){Ye(e),r.value=a.value},a.onchange=function(e){Ye(e),a.nextSibling.value=a.value}},Ne=function(e){return"string"==typeof e?document.querySelector(e):e},Ie=function(e){var t=F();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Fe=function(e){"rtl"===window.getComputedStyle(e).direction&&ge(z(),$.rtl)},He=function(e){var t=$e();if(Ae())w("SweetAlert2 requires document to initialize");else{var n=document.createElement("div");n.className=$.container,t&&ge(n,$["no-transition"]),ue(n,Pe);var a=Ne(e.target);a.appendChild(n),Ie(e),Fe(a),ze()}},Re=function(t,n){t instanceof HTMLElement?n.appendChild(t):"object"===e(t)?Be(t,n):t&&ue(n,t)},Be=function(e,t){e.jquery?qe(t,e):ue(t,e.toString())},qe=function(e,t){if(e.textContent="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},Ve=function(){if(Ae())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e.style[n])return t[n];return!1}(),We=function(){var e=document.createElement("div");e.className=$["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},Ue=function(e,t){var n=Q(),a=J(),r=K(),i=Z(),o=X();t.showConfirmButton||t.showDenyButton||t.showCancelButton||ke(n),me(n,t,"actions"),Ze(r,"confirm",t),Ze(i,"deny",t),Ze(o,"cancel",t),Ke(r,i,o,t),t.reverseButtons&&(n.insertBefore(o,a),n.insertBefore(i,a),n.insertBefore(r,a)),ue(a,t.loaderHtml),me(a,t,"loader")};function Ke(e,t,n,a){if(!a.buttonsStyling)return ye([e,t,n],$.styled);ge([e,t,n],$.styled),a.confirmButtonColor&&(e.style.backgroundColor=a.confirmButtonColor),a.denyButtonColor&&(t.style.backgroundColor=a.denyButtonColor),a.cancelButtonColor&&(n.style.backgroundColor=a.cancelButtonColor)}function Ze(e,t,n){Me(e,n["show".concat(v(t),"Button")],"inline-block"),ue(e,n["".concat(t,"ButtonText")]),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]),e.className=$[t],me(e,n,"".concat(t,"Button")),ge(e,n["".concat(t,"ButtonClass")])}function Ge(e,t){"string"==typeof t?e.style.background=t:t||ge([document.documentElement,document.body],$["no-backdrop"])}function Je(e,t){t in $?ge(e,$[t]):(b('The "position" parameter is not valid, defaulting to "center"'),ge(e,$.center))}function Xe(e,t){if(t&&"string"==typeof t){var n="grow-".concat(t);n in $&&ge(e,$[n])}}var Qe=function(e,t){var n=z();if(n){Ge(n,t.backdrop),!t.backdrop&&t.allowOutsideClick&&b('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),Je(n,t.position),Xe(n,t.grow),me(n,t,"container");var a=document.body.getAttribute("data-swal2-queue-step");a&&(n.setAttribute("data-queue-step",a),document.body.removeAttribute("data-swal2-queue-step"))}},et={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},tt=["input","file","range","select","radio","checkbox","textarea"],nt=function(e,t){var n=B(),a=et.innerParams.get(e),r=!a||t.input!==a.input;tt.forEach((function(e){var a=$[e],i=be(n,a);it(e,t.inputAttributes),i.className=a,r&&ke(i)})),t.input&&(r&&at(t),ot(t))},at=function(e){if(!ut[e.input])return w('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));var t=ct(e.input),n=ut[e.input](t,e);xe(n),setTimeout((function(){_e(n)}))},rt=function(e){for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t].name;-1===["type","value","style"].indexOf(n)&&e.removeAttribute(n)}},it=function(e,t){var n=fe(B(),e);if(n)for(var a in rt(n),t)"range"===e&&"placeholder"===a||n.setAttribute(a,t[a])},ot=function(e){var t=ct(e.input);e.customClass&&ge(t,e.customClass.input)},st=function(e,t){e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},lt=function(e,t,n){if(n.inputLabel){e.id=$.input;var a=document.createElement("label"),r=$["input-label"];a.setAttribute("for",e.id),a.className=r,ge(a,n.customClass.inputLabel),a.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",a)}},ct=function(e){var t=$[e]?$[e]:$.input;return be(B(),t)},ut={};ut.text=ut.email=ut.password=ut.number=ut.tel=ut.url=function(t,n){return"string"==typeof n.inputValue||"number"==typeof n.inputValue?t.value=n.inputValue:L(n.inputValue)||b('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(e(n.inputValue),'"')),lt(t,t,n),st(t,n),t.type=n.input,t},ut.file=function(e,t){return lt(e,e,t),st(e,t),e},ut.range=function(e,t){var n=e.querySelector("input"),a=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,a.value=t.inputValue,lt(n,e,t),e},ut.select=function(e,t){if(e.textContent="",t.inputPlaceholder){var n=document.createElement("option");ue(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return lt(e,e,t),e},ut.radio=function(e){return e.textContent="",e},ut.checkbox=function(e,t){var n=fe(B(),"checkbox");n.value=1,n.id=$.checkbox,n.checked=Boolean(t.inputValue);var a=e.querySelector("span");return ue(a,t.inputPlaceholder),e},ut.textarea=function(e,t){e.value=t.inputValue,st(e,t),lt(e,e,t);var n=function(e){return parseInt(window.getComputedStyle(e).paddingLeft)+parseInt(window.getComputedStyle(e).paddingRight)};if("MutationObserver"in window){var a=parseInt(window.getComputedStyle(F()).width);new MutationObserver((function(){var t=e.offsetWidth+n(F())+n(B());F().style.width=t>a?"".concat(t,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}return e};var dt=function(e,t){var n=q();me(n,t,"htmlContainer"),t.html?(Re(t.html,n),xe(n,"block")):t.text?(n.textContent=t.text,xe(n,"block")):ke(n),nt(e,t),me(B(),t,"content")},pt=function(e,t){var n=te();Me(n,t.footer),t.footer&&Re(t.footer,n),me(n,t,"footer")},mt=function(e,t){var n=ae();ue(n,t.closeButtonHtml),me(n,t,"closeButton"),Me(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)},ft=function(e,t){var n=et.innerParams.get(e),a=H();return n&&t.icon===n.icon?(vt(a,t),void ht(a,t)):t.icon||t.iconHtml?t.icon&&-1===Object.keys(Y).indexOf(t.icon)?(w('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),ke(a)):(xe(a),vt(a,t),ht(a,t),void ge(a,t.showClass.icon)):ke(a)},ht=function(e,t){for(var n in Y)t.icon!==n&&ye(e,Y[n]);ge(e,Y[t.icon]),gt(e,t),_t(),me(e,t,"icon")},_t=function(){for(var e=F(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),a=0;a<n.length;a++)n[a].style.backgroundColor=t},vt=function(e,t){e.textContent="",t.iconHtml?ue(e,yt(t.iconHtml)):"success"===t.icon?ue(e,'\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n '):"error"===t.icon?ue(e,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n '):ue(e,yt({question:"?",warning:"!",info:"i"}[t.icon]))},gt=function(e,t){if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(var n=0,a=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n<a.length;n++){var r=a[n];De(e,r,"backgroundColor",t.iconColor)}De(e,".swal2-success-ring","borderColor",t.iconColor)}},yt=function(e){return'<div class="'.concat($["icon-content"],'">').concat(e,"</div>")},bt=function(e,t){var n=V();if(!t.imageUrl)return ke(n);xe(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),we(n,"width",t.imageWidth),we(n,"height",t.imageHeight),n.className=$.image,me(n,t,"image")},wt=[],xt=function(e){var t=this;wt=e;var n=function(e,t){wt=[],e(t)},a=[];return new Promise((function(e){!function r(i,o){i<wt.length?(document.body.setAttribute("data-swal2-queue-step",i),t.fire(wt[i]).then((function(t){void 0!==t.value?(a.push(t.value),r(i+1,o)):n(e,{dismiss:t.dismiss})}))):n(e,{value:a})}(0)}))},kt=function(){return z()&&z().getAttribute("data-queue-step")},Dt=function(e,t){return t&&t<wt.length?wt.splice(t,0,e):wt.push(e)},Mt=function(e){void 0!==wt[e]&&wt.splice(e,1)},St=function(e){var t=document.createElement("li");return ge(t,$["progress-step"]),ue(t,e),t},Ct=function(e){var t=document.createElement("li");return ge(t,$["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t},Lt=function(e,t){var n=W();if(!t.progressSteps||0===t.progressSteps.length)return ke(n);xe(n),n.textContent="";var a=parseInt(void 0===t.currentProgressStep?kt():t.currentProgressStep);a>=t.progressSteps.length&&b("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach((function(e,r){var i=St(e);if(n.appendChild(i),r===a&&ge(i,$["active-progress-step"]),r!==t.progressSteps.length-1){var o=Ct(t);n.appendChild(o)}}))},Tt=function(e,t){var n=R();Me(n,t.title||t.titleText),t.title&&Re(t.title,n),t.titleText&&(n.innerText=t.titleText),me(n,t,"title")},Ot=function(e,t){var n=ee();me(n,t,"header"),Lt(e,t),ft(e,t),bt(e,t),Tt(e,t),mt(e,t)},Et=function(e,t){var n=z(),a=F();t.toast?(we(n,"width",t.width),a.style.width="100%"):we(a,"width",t.width),we(a,"padding",t.padding),t.background&&(a.style.background=t.background),ke(U()),jt(a,t)},jt=function(e,t){e.className="".concat($.popup," ").concat(Se(e)?t.showClass.popup:""),t.toast?(ge([document.documentElement,document.body],$["toast-shown"]),ge(e,$.toast)):ge(e,$.modal),me(e,t,"popup"),"string"==typeof t.customClass&&ge(e,t.customClass),t.icon&&ge(e,$["icon-".concat(t.icon)])},At=function(e,t){Et(e,t),Qe(e,t),Ot(e,t),dt(e,t),Ue(e,t),pt(e,t),"function"==typeof t.didRender?t.didRender(F()):"function"==typeof t.onRender&&t.onRender(F())},Pt=function(){return Se(F())},$t=function(){return K()&&K().click()},Yt=function(){return Z()&&Z().click()},zt=function(){return X()&&X().click()};function Nt(){for(var e=this,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return c(e,n)}function It(e){return function(n){i(l,n);var s=p(l);function l(){return t(this,l),s.apply(this,arguments)}return a(l,[{key:"_main",value:function(t,n){return f(o(l.prototype),"_main",this).call(this,t,r({},e,n))}}]),l}(this)}var Ft=function(e){var t=F();t||mr.fire(),t=F();var n=Q(),a=J();!e&&Se(K())&&(e=K()),xe(n),e&&(ke(e),a.setAttribute("data-button-to-replace",e.className)),a.parentNode.insertBefore(a,e),ge([t,n],$.loading),xe(a),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},Ht=100,Rt={},Bt=function(){Rt.previousActiveElement&&Rt.previousActiveElement.focus?(Rt.previousActiveElement.focus(),Rt.previousActiveElement=null):document.body&&document.body.focus()},qt=function(e){return new Promise((function(t){if(!e)return t();var n=window.scrollX,a=window.scrollY;Rt.restoreFocusTimeout=setTimeout((function(){Bt(),t()}),Ht),void 0!==n&&void 0!==a&&window.scrollTo(n,a)}))},Vt=function(){return Rt.timeout&&Rt.timeout.getTimerLeft()},Wt=function(){if(Rt.timeout)return je(),Rt.timeout.stop()},Ut=function(){if(Rt.timeout){var e=Rt.timeout.start();return Ee(e),e}},Kt=function(){var e=Rt.timeout;return e&&(e.running?Wt():Ut())},Zt=function(e){if(Rt.timeout){var t=Rt.timeout.increase(e);return Ee(t,!0),t}},Gt=function(){return Rt.timeout&&Rt.timeout.isRunning()},Jt=!1,Xt={};function Qt(){Xt[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Jt||(document.body.addEventListener("click",en),Jt=!0)}var en=function(e){for(var t=e.target;t&&t!==document;t=t.parentNode)for(var n in Xt){var a=t.getAttribute(n);if(a)return void Xt[n].fire({template:a})}},tn={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},nn=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],an={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},rn=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],on=function(e){return Object.prototype.hasOwnProperty.call(tn,e)},sn=function(e){return-1!==nn.indexOf(e)},ln=function(e){return an[e]},cn=function(e){on(e)||b('Unknown parameter "'.concat(e,'"'))},un=function(e){-1!==rn.indexOf(e)&&b('The parameter "'.concat(e,'" is incompatible with toasts'))},dn=function(e){ln(e)&&D(e,ln(e))},pn=function(e){for(var t in e)cn(t),e.toast&&un(t),dn(t)},mn=Object.freeze({isValidParameter:on,isUpdatableParameter:sn,isDeprecatedParameter:ln,argsToParams:j,isVisible:Pt,clickConfirm:$t,clickDeny:Yt,clickCancel:zt,getContainer:z,getPopup:F,getTitle:R,getContent:B,getHtmlContainer:q,getImage:V,getIcon:H,getInputLabel:G,getCloseButton:ae,getActions:Q,getConfirmButton:K,getDenyButton:Z,getCancelButton:X,getLoader:J,getHeader:ee,getFooter:te,getTimerProgressBar:ne,getFocusableElements:ie,getValidationMessage:U,isLoading:le,fire:Nt,mixin:It,queue:xt,getQueueStep:kt,insertQueueStep:Dt,deleteQueueStep:Mt,showLoading:Ft,enableLoading:Ft,getTimerLeft:Vt,stopTimer:Wt,resumeTimer:Ut,toggleTimer:Kt,increaseTimer:Zt,isTimerRunning:Gt,bindClickHandler:Qt});function fn(){if(et.innerParams.get(this)){var e=et.domCache.get(this);ke(e.loader);var t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?xe(t[0],"inline-block"):Ce()&&ke(e.actions),ye([e.popup,e.actions],$.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}}function hn(e){var t=et.innerParams.get(e||this),n=et.domCache.get(e||this);return n?fe(n.content,t.input):null}var _n=function(){null===ce.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(ce.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(ce.previousBodyPadding+We(),"px"))},vn=function(){null!==ce.previousBodyPadding&&(document.body.style.paddingRight="".concat(ce.previousBodyPadding,"px"),ce.previousBodyPadding=null)},gn=function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!de(document.body,$.iosfix)){var e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),ge(document.body,$.iosfix),bn(),yn()}},yn=function(){if(!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)){var e=44;F().scrollHeight>window.innerHeight-e&&(z().style.paddingBottom="".concat(e,"px"))}},bn=function(){var e,t=z();t.ontouchstart=function(t){e=wn(t)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}},wn=function(e){var t=e.target,n=z();return!(xn(e)||kn(e)||t!==n&&(Le(n)||"INPUT"===t.tagName||Le(B())&&B().contains(t)))},xn=function(e){return e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType},kn=function(e){return e.touches&&e.touches.length>1},Dn=function(){if(de(document.body,$.iosfix)){var e=parseInt(document.body.style.top,10);ye(document.body,$.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},Mn=function(){return!!window.MSInputMethodContext&&!!document.documentMode},Sn=function(){var e=z(),t=F();e.style.removeProperty("align-items"),t.offsetTop<0&&(e.style.alignItems="flex-start")},Cn=function(){"undefined"!=typeof window&&Mn()&&(Sn(),window.addEventListener("resize",Sn))},Ln=function(){"undefined"!=typeof window&&Mn()&&window.removeEventListener("resize",Sn)},Tn=function(){y(document.body.children).forEach((function(e){e===z()||Oe(e,z())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))},On=function(){y(document.body.children).forEach((function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},En={swalPromiseResolve:new WeakMap};function jn(e,t,n,a){se()?In(e,a):(qt(n).then((function(){return In(e,a)})),Rt.keydownTarget.removeEventListener("keydown",Rt.keydownHandler,{capture:Rt.keydownListenerCapture}),Rt.keydownHandlerAdded=!1),t.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&t.parentNode.removeChild(t),oe()&&(vn(),Dn(),Ln(),On()),An()}function An(){ye([document.documentElement,document.body],[$.shown,$["height-auto"],$["no-backdrop"],$["toast-shown"],$["toast-column"]])}function Pn(e){var t=F();if(t){e=$n(e);var n=et.innerParams.get(this);if(n&&!de(t,n.hideClass.popup)){var a=En.swalPromiseResolve.get(this);ye(t,n.showClass.popup),ge(t,n.hideClass.popup);var r=z();ye(r,n.showClass.backdrop),ge(r,n.hideClass.backdrop),Yn(this,t,n),a(e)}}}var $n=function(e){return void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:r({isConfirmed:!1,isDenied:!1,isDismissed:!1},e)},Yn=function(e,t,n){var a=z(),r=Ve&&Te(t),i=n.onClose,o=n.onAfterClose,s=n.willClose,l=n.didClose;zn(t,s,i),r?Nn(e,t,a,n.returnFocus,l||o):jn(e,a,n.returnFocus,l||o)},zn=function(e,t,n){null!==t&&"function"==typeof t?t(e):null!==n&&"function"==typeof n&&n(e)},Nn=function(e,t,n,a,r){Rt.swalCloseEventFinishedCallback=jn.bind(null,e,n,a,r),t.addEventListener(Ve,(function(e){e.target===t&&(Rt.swalCloseEventFinishedCallback(),delete Rt.swalCloseEventFinishedCallback)}))},In=function(e,t){setTimeout((function(){"function"==typeof t&&t(),e._destroy()}))};function Fn(e,t,n){var a=et.domCache.get(e);t.forEach((function(e){a[e].disabled=n}))}function Hn(e,t){if(!e)return!1;if("radio"===e.type)for(var n=e.parentNode.parentNode.querySelectorAll("input"),a=0;a<n.length;a++)n[a].disabled=t;else e.disabled=t}function Rn(){Fn(this,["confirmButton","denyButton","cancelButton"],!1)}function Bn(){Fn(this,["confirmButton","denyButton","cancelButton"],!0)}function qn(){return Hn(this.getInput(),!1)}function Vn(){return Hn(this.getInput(),!0)}function Wn(e){var t=et.domCache.get(this),n=et.innerParams.get(this);ue(t.validationMessage,e),t.validationMessage.className=$["validation-message"],n.customClass&&n.customClass.validationMessage&&ge(t.validationMessage,n.customClass.validationMessage),xe(t.validationMessage);var a=this.getInput();a&&(a.setAttribute("aria-invalid",!0),a.setAttribute("aria-describedBy",$["validation-message"]),_e(a),ge(a,$.inputerror))}function Un(){var e=et.domCache.get(this);e.validationMessage&&ke(e.validationMessage);var t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),ye(t,$.inputerror))}function Kn(){return et.domCache.get(this).progressSteps}var Zn=function(){function e(n,a){t(this,e),this.callback=n,this.remaining=a,this.running=!1,this.start()}return a(e,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),e}(),Gn={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")}};function Jn(e){e.inputValidator||Object.keys(Gn).forEach((function(t){e.input===t&&(e.inputValidator=Gn[t])}))}function Xn(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(b('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Qn(e){Jn(e),e.showLoaderOnConfirm&&!e.preConfirm&&b("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),e.animation=M(e.animation),Xn(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),He(e)}var ea=["swal-title","swal-html","swal-footer"],ta=function(e){var t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};var n=t.content||t;return la(n),r(na(n),aa(n),ra(n),ia(n),oa(n),sa(n,ea))},na=function(t){var n={};return y(t.querySelectorAll("swal-param")).forEach((function(t){ca(t,["name","value"]);var a=t.getAttribute("name"),r=t.getAttribute("value");"boolean"==typeof tn[a]&&"false"===r&&(r=!1),"object"===e(tn[a])&&(r=JSON.parse(r)),n[a]=r})),n},aa=function(e){var t={};return y(e.querySelectorAll("swal-button")).forEach((function(e){ca(e,["type","color","aria-label"]);var n=e.getAttribute("type");t["".concat(n,"ButtonText")]=e.innerHTML,t["show".concat(v(n),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),t},ra=function(e){var t={},n=e.querySelector("swal-image");return n&&(ca(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},ia=function(e){var t={},n=e.querySelector("swal-icon");return n&&(ca(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},oa=function(e){var t={},n=e.querySelector("swal-input");n&&(ca(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));var a=e.querySelectorAll("swal-input-option");return a.length&&(t.inputOptions={},y(a).forEach((function(e){ca(e,["value"]);var n=e.getAttribute("value"),a=e.innerHTML;t.inputOptions[n]=a}))),t},sa=function(e,t){var n={};for(var a in t){var r=t[a],i=e.querySelector(r);i&&(ca(i,[]),n[r.replace(/^swal-/,"")]=i.innerHTML)}return n},la=function(e){var t=ea.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);y(e.querySelectorAll("*")).forEach((function(n){if(n.parentNode===e){var a=n.tagName.toLowerCase();-1===t.indexOf(a)&&b("Unrecognized element <".concat(a,">"))}}))},ca=function(e,t){y(e.attributes).forEach((function(n){-1===t.indexOf(n.name)&&b(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))},ua=10,da=function(e){var t=z(),n=F();"function"==typeof e.willOpen?e.willOpen(n):"function"==typeof e.onBeforeOpen&&e.onBeforeOpen(n);var a=window.getComputedStyle(document.body).overflowY;_a(t,n,e),setTimeout((function(){fa(t,n)}),ua),oe()&&(ha(t,e.scrollbarPadding,a),Tn()),se()||Rt.previousActiveElement||(Rt.previousActiveElement=document.activeElement),pa(n,e),ye(t,$["no-transition"])},pa=function(e,t){"function"==typeof t.didOpen?setTimeout((function(){return t.didOpen(e)})):"function"==typeof t.onOpen&&setTimeout((function(){return t.onOpen(e)}))},ma=function e(t){var n=F();if(t.target===n){var a=z();n.removeEventListener(Ve,e),a.style.overflowY="auto"}},fa=function(e,t){Ve&&Te(t)?(e.style.overflowY="hidden",t.addEventListener(Ve,ma)):e.style.overflowY="auto"},ha=function(e,t,n){gn(),Cn(),t&&"hidden"!==n&&_n(),setTimeout((function(){e.scrollTop=0}))},_a=function(e,t,n){ge(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),xe(t),setTimeout((function(){ge(t,n.showClass.popup),t.style.removeProperty("opacity")}),ua),ge([document.documentElement,document.body],$.shown),n.heightAuto&&n.backdrop&&!n.toast&&ge([document.documentElement,document.body],$["height-auto"])},va=function(e,t){"select"===t.input||"radio"===t.input?xa(e,t):-1!==["text","email","number","tel","textarea"].indexOf(t.input)&&(S(t.inputValue)||L(t.inputValue))&&ka(e,t)},ga=function(e,t){var n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return ya(n);case"radio":return ba(n);case"file":return wa(n);default:return t.inputAutoTrim?n.value.trim():n.value}},ya=function(e){return e.checked?1:0},ba=function(e){return e.checked?e.value:null},wa=function(e){return e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null},xa=function(t,n){var a=B(),r=function(e){return Da[n.input](a,Ma(e),n)};S(n.inputOptions)||L(n.inputOptions)?(Ft(K()),C(n.inputOptions).then((function(e){t.hideLoading(),r(e)}))):"object"===e(n.inputOptions)?r(n.inputOptions):w("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(e(n.inputOptions)))},ka=function(e,t){var n=e.getInput();ke(n),C(t.inputValue).then((function(a){n.value="number"===t.input?parseFloat(a)||0:"".concat(a),xe(n),n.focus(),e.hideLoading()})).catch((function(t){w("Error in inputValue promise: ".concat(t)),n.value="",xe(n),n.focus(),e.hideLoading()}))},Da={select:function(e,t,n){var a=be(e,$.select),r=function(e,t,a){var r=document.createElement("option");r.value=a,ue(r,t),r.selected=Sa(a,n.inputValue),e.appendChild(r)};t.forEach((function(e){var t=e[0],n=e[1];if(Array.isArray(n)){var i=document.createElement("optgroup");i.label=t,i.disabled=!1,a.appendChild(i),n.forEach((function(e){return r(i,e[1],e[0])}))}else r(a,n,t)})),a.focus()},radio:function(e,t,n){var a=be(e,$.radio);t.forEach((function(e){var t=e[0],r=e[1],i=document.createElement("input"),o=document.createElement("label");i.type="radio",i.name=$.radio,i.value=t,Sa(t,n.inputValue)&&(i.checked=!0);var s=document.createElement("span");ue(s,r),s.className=$.label,o.appendChild(i),o.appendChild(s),a.appendChild(o)}));var r=a.querySelectorAll("input");r.length&&r[0].focus()}},Ma=function t(n){var a=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach((function(n,r){var i=n;"object"===e(i)&&(i=t(i)),a.push([r,i])})):Object.keys(n).forEach((function(r){var i=n[r];"object"===e(i)&&(i=t(i)),a.push([r,i])})),a},Sa=function(e,t){return t&&t.toString()===e.toString()},Ca=function(e,t){e.disableButtons(),t.input?Oa(e,t,"confirm"):Pa(e,t,!0)},La=function(e,t){e.disableButtons(),t.returnInputValueOnDeny?Oa(e,t,"deny"):ja(e,t,!1)},Ta=function(e,t){e.disableButtons(),t(T.cancel)},Oa=function(e,t,n){var a=ga(e,t);t.inputValidator?Ea(e,t,a):e.getInput().checkValidity()?"deny"===n?ja(e,t,a):Pa(e,t,a):(e.enableButtons(),e.showValidationMessage(t.validationMessage))},Ea=function(e,t,n){e.disableInput(),Promise.resolve().then((function(){return C(t.inputValidator(n,t.validationMessage))})).then((function(a){e.enableButtons(),e.enableInput(),a?e.showValidationMessage(a):Pa(e,t,n)}))},ja=function(e,t,n){t.showLoaderOnDeny&&Ft(Z()),t.preDeny?Promise.resolve().then((function(){return C(t.preDeny(n,t.validationMessage))})).then((function(t){!1===t?e.hideLoading():e.closePopup({isDenied:!0,value:void 0===t?n:t})})):e.closePopup({isDenied:!0,value:n})},Aa=function(e,t){e.closePopup({isConfirmed:!0,value:t})},Pa=function(e,t,n){t.showLoaderOnConfirm&&Ft(),t.preConfirm?(e.resetValidationMessage(),Promise.resolve().then((function(){return C(t.preConfirm(n,t.validationMessage))})).then((function(t){Se(U())||!1===t?e.hideLoading():Aa(e,void 0===t?n:t)}))):Aa(e,n)},$a=function(e,t,n,a){t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1),n.toast||(t.keydownHandler=function(t){return Fa(e,t,a)},t.keydownTarget=n.keydownListenerCapture?window:F(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},Ya=function(e,t,n){var a=ie();if(a.length)return(t+=n)===a.length?t=0:-1===t&&(t=a.length-1),a[t].focus();F().focus()},za=["ArrowRight","ArrowDown","Right","Down"],Na=["ArrowLeft","ArrowUp","Left","Up"],Ia=["Escape","Esc"],Fa=function(e,t,n){var a=et.innerParams.get(e);a&&(a.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ha(e,t,a):"Tab"===t.key?Ra(t,a):-1!==[].concat(za,Na).indexOf(t.key)?Ba(t.key):-1!==Ia.indexOf(t.key)&&qa(t,a,n))},Ha=function(e,t,n){if(!t.isComposing&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;$t(),t.preventDefault()}},Ra=function(e,t){for(var n=e.target,a=ie(),r=-1,i=0;i<a.length;i++)if(n===a[i]){r=i;break}e.shiftKey?Ya(t,r,-1):Ya(t,r,1),e.stopPropagation(),e.preventDefault()},Ba=function(e){if(-1!==[K(),Z(),X()].indexOf(document.activeElement)){var t=-1!==za.indexOf(e)?"nextElementSibling":"previousElementSibling",n=document.activeElement[t];n&&n.focus()}},qa=function(e,t,n){M(t.allowEscapeKey)&&(e.preventDefault(),n(T.esc))},Va=function(e,t,n){et.innerParams.get(e).toast?Wa(e,t,n):(Ka(t),Za(t),Ga(e,t,n))},Wa=function(e,t,n){t.popup.onclick=function(){var t=et.innerParams.get(e);t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton||t.timer||t.input||n(T.close)}},Ua=!1,Ka=function(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Ua=!0)}}},Za=function(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Ua=!0)}}},Ga=function(e,t,n){t.container.onclick=function(a){var r=et.innerParams.get(e);Ua?Ua=!1:a.target===t.container&&M(r.allowOutsideClick)&&n(T.backdrop)}};function Ja(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pn(r({},t,e)),Rt.currentInstance&&Rt.currentInstance._destroy(),Rt.currentInstance=this;var n=Xa(e,t);Qn(n),Object.freeze(n),Rt.timeout&&(Rt.timeout.stop(),delete Rt.timeout),clearTimeout(Rt.restoreFocusTimeout);var a=er(this);return At(this,n),et.innerParams.set(this,n),Qa(this,a,n)}var Xa=function(e,t){var n=ta(e),a=r({},tn.showClass,t.showClass,n.showClass,e.showClass),i=r({},tn.hideClass,t.hideClass,n.hideClass,e.hideClass),o=r({},tn,t,n,e);return o.showClass=a,o.hideClass=i,!1===e.animation&&(o.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},o.hideClass={}),o},Qa=function(e,t,n){return new Promise((function(a){var r=function(t){e.closePopup({isDismissed:!0,dismiss:t})};En.swalPromiseResolve.set(e,a),t.confirmButton.onclick=function(){return Ca(e,n)},t.denyButton.onclick=function(){return La(e,n)},t.cancelButton.onclick=function(){return Ta(e,r)},t.closeButton.onclick=function(){return r(T.close)},Va(e,t,r),$a(e,Rt,n,r),n.toast&&(n.input||n.footer||n.showCloseButton)?ge(document.body,$["toast-column"]):ye(document.body,$["toast-column"]),va(e,n),da(n),tr(Rt,n,r),nr(t,n),setTimeout((function(){t.container.scrollTop=0}))}))},er=function(e){var t={popup:F(),container:z(),content:B(),actions:Q(),confirmButton:K(),denyButton:Z(),cancelButton:X(),loader:J(),closeButton:ae(),validationMessage:U(),progressSteps:W()};return et.domCache.set(e,t),t},tr=function(e,t,n){var a=ne();ke(a),t.timer&&(e.timeout=new Zn((function(){n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(xe(a),setTimeout((function(){e.timeout&&e.timeout.running&&Ee(t.timer)}))))},nr=function(e,t){if(!t.toast)return M(t.allowEnterKey)?void(ar(e,t)||Ya(t,-1,1)):rr()},ar=function(e,t){return t.focusDeny&&Se(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&Se(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!Se(e.confirmButton)||(e.confirmButton.focus(),0))},rr=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};function ir(e){var t=F(),n=et.innerParams.get(this);if(!t||de(t,n.hideClass.popup))return b("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var a={};Object.keys(e).forEach((function(t){mr.isUpdatableParameter(t)?a[t]=e[t]:b('Invalid parameter to update: "'.concat(t,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))}));var i=r({},n,a);At(this,i),et.innerParams.set(this,i),Object.defineProperties(this,{params:{value:r({},this.params,e),writable:!1,enumerable:!0}})}function or(){var e=et.domCache.get(this),t=et.innerParams.get(this);t&&(e.popup&&Rt.swalCloseEventFinishedCallback&&(Rt.swalCloseEventFinishedCallback(),delete Rt.swalCloseEventFinishedCallback),Rt.deferDisposalTimer&&(clearTimeout(Rt.deferDisposalTimer),delete Rt.deferDisposalTimer),lr(t),cr(this))}var sr,lr=function(e){"function"==typeof e.didDestroy?e.didDestroy():"function"==typeof e.onDestroy&&e.onDestroy()},cr=function(e){delete e.params,delete Rt.keydownHandler,delete Rt.keydownTarget,ur(et),ur(En)},ur=function(e){for(var t in e)e[t]=new WeakMap},dr=Object.freeze({hideLoading:fn,disableLoading:fn,getInput:hn,close:Pn,closePopup:Pn,closeModal:Pn,closeToast:Pn,enableButtons:Rn,disableButtons:Bn,enableInput:qn,disableInput:Vn,showValidationMessage:Wn,resetValidationMessage:Un,getProgressSteps:Kn,_main:Ja,update:ir,_destroy:or}),pr=function(){function e(){if(t(this,e),"undefined"!=typeof window){"undefined"==typeof Promise&&w("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),sr=this;for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];var i=Object.freeze(this.constructor.argsToParams(a));Object.defineProperties(this,{params:{value:i,writable:!1,enumerable:!0,configurable:!0}});var o=this._main(this.params);et.promise.set(this,o)}}return a(e,[{key:"then",value:function(e){return et.promise.get(this).then(e)}},{key:"finally",value:function(e){return et.promise.get(this).finally(e)}}]),e}();r(pr.prototype,dr),r(pr,mn),Object.keys(dr).forEach((function(e){pr[e]=function(){var t;if(sr)return(t=sr)[e].apply(t,arguments)}})),pr.DismissReason=T,pr.version="10.16.0";var mr=pr;return mr.default=mr,mr}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2)},9178:function(e){e.exports=function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},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 a=n(2),r=n(5),i=n(0);t.a=function(e,t){if(t.value){var o=n.i(r.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(a.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(a.b)(e,t),e.dispatchEvent(n.i(a.c)("change"))},e.onfocus=function(){n.i(a.b)(e,e.value.length-o.suffix.length)},e.oninput(),e.dispatchEvent(n.i(a.c)("input"))}}},function(e,t,n){"use strict";function a(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?"-":"",a=d(l(i(e),t.precision)).split("."),r=a[0],s=a[1];return r=c(r,t.thousands),t.prefix+n+u(r,s,t.decimal)+t.suffix}function r(e,t){var n=e.indexOf("-")>=0?-1:1,a=l(i(e),t);return parseFloat(a)*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 a})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return m}))},function(e,t,n){"use strict";function a(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 r=n(6),i=n.n(r),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=a,"undefined"!=typeof window&&window.Vue&&window.Vue.use(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),r=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 r.a.precision}},decimal:{type:String,default:function(){return r.a.decimal}},thousands:{type:String,default:function(){return r.a.thousands}},prefix:{type:String,default:function(){return r.a.prefix}},suffix:{type:String,default:function(){return r.a.suffix}}},directives:{money:a.a},data:function(){return{formattedValue:""}},watch:{value:{immediate:!0,handler:function(e,t){var a=n.i(i.a)(e,this.$props);a!==this.formattedValue&&(this.formattedValue=a)}}},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,a){return n[a]=void 0===t[a]?e[a]:t[a],n}),{})}},function(e,t,n){var a=n(7)(n(4),n(8),null,null);e.exports=a.exports},function(e,t){e.exports=function(e,t,n,a){var r,i=e=e||{},o=typeof e.default;"object"!==o&&"function"!==o||(r=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),a){var l=s.computed||(s.computed={});Object.keys(a).forEach((function(e){var t=a[e];l[e]=function(){return t}}))}return{esModule:r,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 a;"undefined"!=typeof self&&self,e.exports=(a=n(8527),function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},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=a},function(e,t,n){"use strict";n.r(t),n.d(t,"Component",(function(){return d})),n.d(t,"Plugin",(function(){return p}));var a=n(0),r=n.n(a),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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}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 a,i=r.a.defaultConfig[n]||[];t[n]=(a=t[n]||[],a instanceof Array?a:[a]).concat(i,(function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];e.$emit.apply(e,[s(n)].concat(a))}))})),t.defaultDate=this.value||t.defaultDate,this.fp=new r.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 a={props:{showBgOverlay:{default:!1,type:Boolean}}};var r=n(3379),i=n.n(r),o=n(9),s={insert:"head",singleton:!1};i()(o.Z,s);o.Z.locals;const l=(0,n(1900).Z)(a,(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},1520:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var a=n(6564),r=n(7751),i=n(3032);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={components:{XIcon:r.b0D,ExclamationCircleIcon:i.$Ow},data:function(){return{hasFocus:!1}},computed:s(s({},(0,a.Se)("notification",["notificationActive","notificationTitle","notificationType","notificationAutoHide","notificationMessage"])),{},{success:function(){return"success"===this.notificationType.toLowerCase()},error:function(){return"error"===this.notificationType.toLowerCase()},info:function(){return"info"===this.notificationType.toLowerCase()}}),watch:{notificationActive:function(e){e&&this.notificationAutoHide&&window.setTimeout(this.hideNotification,5e3)}},mounted:function(){this.notificationActive&&this.notificationAutoHide&&window.setTimeout(this.hideNotification,5e3)},methods:s({},(0,a.nv)("notification",["showNotification","hideNotification"]))};const u=(0,n(1900).Z)(c,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{"enter-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2 ","enter-active-class":"transition duration-300 ease-out transform","enter-to-class":"duration-300 translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition duration-100 ease-in","leave-class":"duration-200 opacity-100","leave-to-class":"duration-200 opacity-0"}},[e.notificationActive?n("div",{staticClass:"fixed inset-0 z-50 flex items-end justify-center px-4 py-6 pointer-events-none sm:p-6 sm:items-start sm:justify-end"},[n("div",{staticClass:"w-full max-w-sm rounded-lg shadow-lg cursor-pointer pointer-events-auto",class:e.success||e.info?"bg-white":"bg-red-50",on:{click:e.hideNotification}},[n("div",{staticClass:"overflow-hidden rounded-lg shadow-xs"},[n("div",{staticClass:"p-4"},[n("div",{staticClass:"flex items-start"},[n("div",{staticClass:"flex-shrink-0"},[e.success?n("svg",{staticClass:"w-6 h-6 text-green-400",attrs:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[n("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"}})]):e._e(),e._v(" "),e.info?n("exclamation-circle-icon",{staticClass:"w-6 h-6 text-blue-400"}):e._e(),e._v(" "),e.error?n("svg",{staticClass:"w-6 h-6 text-red-400",attrs:{fill:"currentColor",viewBox:"0 0 24 24"}},[n("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"}})]):e._e()],1),e._v(" "),n("div",{staticClass:"flex-1 w-0 ml-3"},[n("p",{class:"text-sm leading-5 font-medium "+(e.success||e.info?"text-gray-900":"text-red-800")},[e._v("\n "+e._s(e.notificationTitle?e.notificationTitle:e.success?"Success!":"Error")+"\n ")]),e._v(" "),n("p",{class:"mt-1 text-sm leading-5 "+(e.success||e.info?"text-gray-500":"text-red-700")},[e._v("\n "+e._s(e.notificationMessage?e.notificationMessage:e.success?"Successful":"Somthing went wrong")+"\n ")])]),e._v(" "),n("div",{staticClass:"flex flex-shrink-0"},[n("button",{staticClass:"inline-flex w-5 h-5 transition duration-150 ease-in-out focus:outline-none",class:e.success||e.info?" text-gray-400 focus:text-gray-500":"text-red-400 focus:text-red-500",on:{click:e.hideNotification}},[n("x-icon")],1)])])])])])]):e._e()])}),[],!1,null,null,null).exports},1557:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Aa});var a=n(3032),r=n(6564),i=n(7757),o=n.n(i);function s(e,t,n,a,r,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(a,r)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){s(i,a,r,o,l,"next",e)}function l(e){s(i,a,r,o,l,"throw",e)}o(void 0)}))}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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,r.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(u({},(0,r.nv)("modal",["closeModal","resetModalData"])),(0,r.nv)("taxType",["addTaxType","updateTaxType","fetchTaxType"])),(0,r.nv)("notification",["showNotification"])),{},{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?e.showNotification({type:"success",message:e.$t("settings.tax_types.updated_message")}):e.showNotification({type:"success",message: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:e.showNotification({type:"error",message: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,a,r,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(a,r)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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:a.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,r.Se)("company",["defaultCurrencyForInput"])),{},{price:{get:function(){return this.formData.price/100},set:function(e){this.formData.price=Math.round(100*e)}}},(0,r.Se)("modal",["modalDataID","modalData"])),(0,r.Se)("item",["getItemById","itemUnits"])),(0,r.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(x({},(0,r.nv)("modal",["closeModal","resetModalData"])),(0,r.nv)("item",["addItem","updateItem","fetchItemUnits"])),(0,r.nv)("invoice",["setItem"])),(0,r.nv)("notification",["showNotification"])),{},{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,a;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 a=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(a);case 14:n=e.sent;case 15:if(!n.data){e.next=24;break}return t.showNotification({type:"success",message: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:t.showNotification({type:"error",message:n.data.error});case 25:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){b(i,a,r,o,s,"next",e)}function s(e){b(i,a,r,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,a,r,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(a,r)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(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 $={data:function(){return{selectedTemplate:1,isLoading:!1}},computed:A(A({},(0,r.Se)("modal",["modalData"])),(0,r.Se)("estimate",["getTemplateId"])),mounted:function(){this.selectedTemplate=this.getTemplateId},methods:A(A(A({},(0,r.nv)("estimate",["setTemplate"])),(0,r.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(a,r){var i=e.apply(t,n);function o(e){E(i,a,r,o,s,"next",e)}function s(e){E(i,a,r,o,s,"throw",e)}o(void 0)}))})()},closeEstimateModal:function(){this.selectedTemplate=this.getTemplateId,this.closeModal(),this.resetModalData()}})};const Y=(0,g.Z)($,(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,a){return n("div",{key:a,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 z(e,t,n,a,r,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(a,r)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function I(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){F(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 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,r.Se)("modal",["modalData"])),(0,r.Se)("invoice",["getTemplateId"])),mounted:function(){this.selectedTemplate=this.getTemplateId},methods:I(I(I({},(0,r.nv)("invoice",["setTemplate"])),(0,r.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(a,r){var i=e.apply(t,n);function o(e){z(i,a,r,o,s,"next",e)}function s(e){z(i,a,r,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,a){return n("div",{key:a,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,a,r,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(a,r)}function V(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){q(i,a,r,o,s,"next",e)}function s(e){q(i,a,r,o,s,"throw",e)}o(void 0)}))}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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,r.Se)(["currencies","countries"])),(0,r.Se)("company",["defaultCurrency"])),(0,r.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(U({},(0,r.nv)("invoice",{setInvoiceCustomer:"selectCustomer"})),(0,r.nv)("estimate",{setEstimateCustomer:"selectCustomer"})),(0,r.nv)("customer",["fetchCustomer","addCustomer","updateCustomer"])),(0,r.nv)("modal",["closeModal"])),(0,r.nv)("notification",["showNotification"])),{},{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?e.showNotification({type:"success",message:e.$tc("customers.updated_message")}):e.showNotification({type:"success",message: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"),"max-height":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:{loading:e.isLoading,variant:"primary",type:"submit"}},[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 ae(e,t,n,a,r,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(a,r)}function re(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){ae(i,a,r,o,s,"next",e)}function s(e){ae(i,a,r,o,s,"throw",e)}o(void 0)}))}}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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,r.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(oe({},(0,r.nv)("modal",["closeModal"])),(0,r.nv)("category",["addCategory","updateCategory"])),(0,r.nv)("notification",["showNotification"])),{},{resetFormData:function(){this.formData={id:null,name:null,description:null},this.$v.formData.$reset()},submitCategoryData:function(){var e=this;return re(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?e.showNotification({type:"success",message:e.$t("settings.expense_category.updated_message")}):e.showNotification({type:"success",message: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:e.showNotification({type:"error",message:n.data.error});case 21:case"end":return t.stop()}}),t)})))()},setData:function(){var e=this;return re(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:{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;n(6486);function fe(e,t,n,a,r,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(a,r)}function he(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){fe(i,a,r,o,s,"next",e)}function s(e){fe(i,a,r,o,s,"throw",e)}o(void 0)}))}}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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,r.Se)("disks",["getDisks"])),(0,r.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(ve({},(0,r.nv)("backup",["createBackup"])),(0,r.nv)("disks",["fetchDisks"])),(0,r.nv)("modal",["closeModal"])),(0,r.nv)("notification",["showNotification"])),{},{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,e.showNotification({type:"success",message: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,e.showNotification({type:"error",message: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,"max-height":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,"preselect-first":!0,"custom-label":e.getCustomLabel,"max-height":100,loading:e.isLoading,"track-by":"id"},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,disabled:e.isCreateLoading,variant:"primary",type:"submit"}},[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,a,r,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(a,r)}function ke(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){xe(i,a,r,o,s,"next",e)}function s(e){xe(i,a,r,o,s,"throw",e)}o(void 0)}))}}function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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,r.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"):""}}),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(Me({},(0,r.nv)("modal",["closeModal","resetModalData"])),(0,r.nv)("payment",["addPaymentMode","updatePaymentMode"])),(0,r.nv)("notification",["showNotification"])),{},{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 e.showNotification({type:"success",message:e.$t("settings.customization.payments.payment_mode_updated")}),e.refreshData&&e.refreshData(),e.closePaymentModeModal(),t.abrupt("return",!0);case 13:e.showNotification({type:"error",message: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,e.showNotification({type:"success",message:e.$t("settings.customization.payments.payment_mode_added")}),e.refreshData&&e.refreshData(),e.closePaymentModeModal(),t.abrupt("return",!0);case 26:e.showNotification({type:"error",message: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 je(e,t,n,a,r,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(a,r)}function Ae(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){je(i,a,r,o,s,"next",e)}function s(e){je(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $e(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){Ye(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 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 ze=n(379),Ne=ze.required,Ie=ze.minLength;const Fe={data:function(){return{isEdit:!1,isLoading:!1,formData:{id:null,name:null}}},computed:$e($e({},(0,r.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"):""}}),validations:{formData:{name:{required:Ne,minLength:Ie(2)}}},mounted:function(){var e=this;return Ae(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:$e($e($e($e({},(0,r.nv)("modal",["closeModal","resetModalData"])),(0,r.nv)("item",["addItemUnit","updateItemUnit","fatchItemUnit"])),(0,r.nv)("notification",["showNotification"])),{},{resetFormData:function(){this.formData={id:null,name:null},this.$v.formData.$reset()},submitItemUnit: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,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?e.showNotification({type:"success",message:e.$t("settings.customization.items.item_unit_updated")}):e.showNotification({type:"success",message: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,e.showNotification({type:"error",message:n.data.error});case 26:case"end":return t.stop()}}),t,null,[[4,22]])})))()},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};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,a,r,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(a,r)}function qe(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Be(i,a,r,o,s,"next",e)}function s(e){Be(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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,r.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(We({},(0,r.nv)("modal",["closeModal","resetModalData"])),(0,r.nv)("company",["sendTestMail"])),(0,r.nv)("notification",["showNotification"])),{},{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 e.showNotification({type:"success",message:e.$tc("general.send_mail_successfully")}),e.closeTaxModal(),e.isLoading=!1,t.abrupt("return",!0);case 13:return e.showNotification({type:"error",message:e.$tc("validation.something_went_wrong")}),e.closeTaxModal(),e.isLoading=!1,t.abrupt("return",!0);case 17:e.showNotification({type:"error",message: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:{loading:e.isLoading,variant:"primary",type:"submit"}},[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,a,r,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(a,r)}function tt(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){et(i,a,r,o,s,"next",e)}function s(e){et(i,a,r,o,s,"throw",e)}o(void 0)}))}}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function at(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){rt(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 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 it=n(379),ot=it.required,st=it.email;n(6486);const lt={components:{PaperAirplaneIcon:a.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:at(at(at({},(0,r.Se)("modal",["modalDataID","modalData","modalActive"])),(0,r.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:at(at(at(at(at({},(0,r.nv)("modal",["closeModal"])),(0,r.nv)("invoice",["sendEmail"])),(0,r.nv)("company",["fetchCompanySettings","fetchMailConfig"])),(0,r.nv)("notification",["showNotification"])),{},{setInitialData:function(){var e=this;return tt(o().mark((function t(){var n,a;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:a=t.sent,e.formData.body=a.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:e.$swal({title:e.$t("general.are_you_sure"),text:e.$t("invoices.confirm_send_invoice"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=tt(o().mark((function t(n){var a,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n.value){t.next=15;break}return a=at(at({},e.formData),{},{id:e.modalDataID,status:"SENT"}),e.isLoading=!0,t.next=6,e.sendEmail(a);case 6:if(r=t.sent,e.closeModal(),!r.data.success){t.next=12;break}return e.isLoading=!1,e.showNotification({type:"success",message:e.$tc("invoices.send_invoice_successfully")}),t.abrupt("return",!0);case 12:if("invoices.user_email_does_not_exist"!==r.data.error){t.next=15;break}return e.showNotification({type:"error",message: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,e.showNotification({type:"error",message: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,a,r,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(a,r)}function dt(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){ut(i,a,r,o,s,"next",e)}function s(e){ut(i,a,r,o,s,"throw",e)}o(void 0)}))}}function pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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:a.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(mt({},(0,r.Se)("modal",["modalDataID","modalData","modalActive"])),(0,r.Se)("user",["currentUser"])),(0,r.nv)("notification",["showNotification"])),{},{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,r.nv)("modal",["closeModal"])),(0,r.nv)("estimate",["sendEmail"])),(0,r.nv)("company",["fetchCompanySettings","fetchMailConfig"])),{},{setInitialData:function(){var e=this;return dt(o().mark((function t(){var n,a;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:a=t.sent,e.formData.body=a.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:e.$swal({title:e.$t("general.are_you_sure"),text:e.$t("estimates.confirm_send_estimate"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=dt(o().mark((function t(n){var a,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n.value){t.next=15;break}return a=mt(mt({},e.formData),{},{id:e.modalDataID,status:"SENT"}),e.isLoading=!0,t.next=6,e.sendEmail(a);case 6:if(r=t.sent,e.closeModal(),!r.data.success){t.next=12;break}return e.isLoading=!1,e.showNotification({type:"success",message:e.$tc("estimates.send_estimate_successfully")}),t.abrupt("return",!0);case 12:if("estimates.user_email_does_not_exist"!==r.data.error){t.next=15;break}return e.showNotification({type:"error",message: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,e.showNotification({type:"error",message: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,a,r,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(a,r)}function wt(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){bt(i,a,r,o,s,"next",e)}function s(e){bt(i,a,r,o,s,"throw",e)}o(void 0)}))}}function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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:a.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,r.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(kt({},(0,r.nv)("modal",["closeModal"])),(0,r.nv)("payment",["sendEmail"])),(0,r.nv)("company",["fetchCompanySettings","fetchMailConfig"])),(0,r.nv)("notification",["showNotification"])),{},{setInitialData:function(){var e=this;return wt(o().mark((function t(){var n,a;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:a=t.sent,e.formData.body=a.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:e.$swal({title:e.$t("general.are_you_sure"),text:e.$t("payments.confirm_send_payment"),icon:"question",iconHtml:'<svg\n aria-hidden="true"\n class="w-6 h-6"\n focusable="false"\n data-prefix="fas"\n data-icon="check-circle"\n class="svg-inline--fa fa-check-circle fa-w-16"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 512 512"\n >\n <path\n fill="#55547A"\n d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"\n ></path>\n </svg>',showCancelButton:!0,showConfirmButton:!0}).then(function(){var t=wt(o().mark((function t(n){var a,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n.value){t.next=15;break}return a=kt(kt({},e.formData),{},{id:e.modalDataID,status:"SENT"}),e.isLoading=!0,t.next=6,e.sendEmail(a);case 6:if(r=t.sent,e.closeModal(),!r.data.success){t.next=12;break}return e.isLoading=!1,e.showNotification({type:"success",message:e.$tc("payments.send_payment_successfully")}),t.abrupt("return",!0);case 12:if("payments.user_email_does_not_exist"!==r.data.error){t.next=15;break}return e.showNotification({type:"error",message: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,e.showNotification({type:"error",message: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"),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("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,a,r,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(a,r)}function Et(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Ot(i,a,r,o,s,"next",e)}function s(e){Ot(i,a,r,o,s,"throw",e)}o(void 0)}))}}function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){Pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $t=n(379),Yt=$t.required;$t.edisk;const zt={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:At(At({},(0,r.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:At(At({},(0,r.nv)("disks",["fetchDiskEnv","updateDisk"])),{},{loadData:function(){var e=this;return Et(o().mark((function t(){var n,a;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:a=t.sent,e.diskConfigData=a.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 Nt=(0,g.Z)(zt,(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,a,r,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(a,r)}function Ft(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){It(i,a,r,o,s,"next",e)}function s(e){It(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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,r.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,r.nv)("disks",["fetchDiskEnv","updateDisk"])),{},{loadData:function(){var e=this;return Ft(o().mark((function t(){var n,a;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:a=t.sent,e.diskConfigData=a.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,a,r,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(a,r)}function Zt(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){Kt(i,a,r,o,s,"next",e)}function s(e){Kt(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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,r.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,r.nv)("disks",["fetchDiskEnv","updateDisk"])),{},{loadData:function(){var e=this;return Zt(o().mark((function t(){var n,a;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:a=t.sent,e.diskConfigData=a.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 an(e,t,n,a,r,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(a,r)}function rn(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){an(i,a,r,o,s,"next",e)}function s(e){an(i,a,r,o,s,"throw",e)}o(void 0)}))}}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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,r.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,r.nv)("disks",["fetchDiskEnv","updateDisk"])),{},{loadData:function(){var e=this;return rn(o().mark((function t(){var n,a;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:a=t.sent,e.diskConfigData=a.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 rn(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,a,r,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(a,r)}function hn(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){fn(i,a,r,o,s,"next",e)}function s(e){fn(i,a,r,o,s,"throw",e)}o(void 0)}))}}function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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:Nt,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,r.Se)("modal",["modalDataID","modalData","modalActive","refreshData"])),(0,r.Se)("disks",["getDiskDrivers"])),created:function(){this.modalDataID&&(this.isEdit=!0),this.loadData()},methods:vn(vn(vn(vn({},(0,r.nv)("disks",["fetchDiskDrivers","createDisk","updateDisk"])),(0,r.nv)("modal",["closeModal"])),(0,r.nv)("notification",["showNotification"])),{},{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 a,r;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.isLoading=!0,a=vn({id:t.modalDataID},e),!t.isEdit){n.next=8;break}return n.next=5,t.updateDisk(a);case 5:r=n.sent,n.next=11;break;case 8:return n.next=10,t.createDisk(a);case 10:r=n.sent;case 11:r.data.success?(t.refreshData(),t.closeDisk(),t.isEdit?t.showNotification({type:"success",message:t.$t("settings.disk.success_update")}):t.showNotification({type:"success",message:t.$t("settings.disk.success_create")})):t.showNotification({type:"error",message: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),disabled:e.isRequestFire(t),variant:"primary",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,2598929240)})],1):e._e()])}),[],!1,null,null,null).exports;function xn(e,t,n,a,r,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(a,r)}function kn(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){xn(i,a,r,o,s,"next",e)}function s(e){xn(i,a,r,o,s,"throw",e)}o(void 0)}))}}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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:Nt,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,r.Se)("modal",["modalData","refreshData"])),(0,r.Se)("disks",["getDisks"])),created:function(){this.loadData()},methods:Mn(Mn(Mn(Mn({},(0,r.nv)("disks",["fetchDisks","setDefaultDisk"])),(0,r.nv)("modal",["closeModal"])),(0,r.nv)("notification",["showNotification"])),{},{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(),e.showNotification({type:"success",message: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,"custom-label":e.getCustomLabel,"track-by":"id"},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 jn={props:{value:{type:[String,Number],default:null}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}};const An=(0,g.Z)(jn,(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 Pn={props:{value:{type:[Boolean,Number],default:!1}},data:function(){return{inputValue:this.value}},watch:{value:function(e){this.inputValue=e}}};const $n=(0,g.Z)(Pn,(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 zn=(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 Nn={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)(Nn,(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:a.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 ea(e){return function(e){if(Array.isArray(e))return ta(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 ta(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 ta(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 ta(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function na(e){return(na="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 aa(e,t,n,a,r,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(a,r)}function ra(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){aa(i,a,r,o,s,"next",e)}function s(e){aa(i,a,r,o,s,"throw",e)}o(void 0)}))}}function ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}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),ca=la.required,ua=la.requiredIf,da=la.numeric,pa=la.minLength;const ma={components:{MinusCircleIcon:a.$_5,OptionCreate:Qn,InputType:En,NumberType:An,SwitchType:$n,TextAreaType:zn,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:ca},formData:{name:{required:ca},label:{required:ca},model_type:{required:ca},order:{required:ca,numeric:da},options:{required:ua("isDropdownSelected"),minLength:pa(1),$each:{name:{required:ua("isDropdownSelected"),minLength:pa(1)}}}}},computed:oa(oa({},(0,r.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:oa(oa(oa(oa({},(0,r.nv)("customFields",["addCustomField","updateCustomField","fetchCustomField"])),(0,r.nv)("modal",["closeModal"])),(0,r.nv)("notification",["showNotification"])),{},{resetFormData:function(){var e;this.formData=(sa(e={label:null},"label",null),sa(e,"type",null),sa(e,"dateTimeValue",null),sa(e,"default_answer",null),sa(e,"is_required",!1),sa(e,"placeholder",null),sa(e,"model_type",null),sa(e,"options",[{name:""}]),e),this.$v.$reset()},submitCustomFieldData:function(){var e=this;return ra(o().mark((function t(){var n,a,r,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=oa(oa({},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"==na(n.default_answer)&&(a=n&&n.default_answer&&n.default_answer.HH?n.default_answer.HH:null,r=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(a,":").concat(r,":").concat(i)),null,!e.isEdit){t.next=18;break}return e.isLoading=!0,t.next=13,e.updateCustomField(n);case 13:return t.sent,e.showNotification({type:"success",message: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,e.showNotification({type:"success",message: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(ea(this.formData.options))},removeOption:function(e){this.formData.options.splice(e,1)},setData:function(){var e=this;return ra(o().mark((function t(){var n,a,r;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,a=n.data.customField,e.isEdit=!0,r=oa(oa({},a),{},sa({options:[],dateTimeValue:a.defaultAnswer,default_answer:a.defaultAnswer},"options",a.options?a.options.map((function(e){return{name:e||""}})):[])),e.selectType=e.dataTypes.find((function(e){return e.value==a.type})),"Dropdown"==r.type&&(r.default_answer={name:a.defaultAnswer}),e.formData=oa({},r);case 9:case"end":return t.stop()}}),t)})))()},onChangeReset:function(){this.formData=oa(oa({},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 fa=(0,g.Z)(ma,(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,a){return n("div",{key:a,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(a)}}})],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,"default-date-time":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 ha(e,t,n,a,r,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(a,r)}function _a(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){ha(i,a,r,o,s,"next",e)}function s(e){ha(i,a,r,o,s,"throw",e)}o(void 0)}))}}function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach((function(t){ya(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ya(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ba=n(379),wa=ba.required,xa=ba.minLength;const ka={data:function(){return{isEdit:!1,isLoading:!1,types:["Invoice","Estimate","Payment"],selectType:null,formData:{type:"",name:"",notes:""},noteType:null,fields:[]}},computed:ga(ga({},(0,r.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"):""},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:wa,minLength:xa(2)},notes:{required:wa}},noteType:{required:wa}},watch:{noteType:function(){this.setFields()}},mounted:function(){var e=this;return _a(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)})))()},methods:ga(ga(ga(ga(ga(ga(ga({},(0,r.nv)("modal",["closeModal","resetModalData"])),(0,r.nv)("notes",["addNote","updateNote"])),(0,r.nv)("notification",["showNotification"])),(0,r.nv)("invoice",{setInvoiceNote:"selectNote"})),(0,r.nv)("estimate",{setEstimateNote:"selectNote"})),(0,r.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 _a(o().mark((function t(){var n,a,r,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(!(a=t.sent).data){t.next=15;break}return e.showNotification({type:"success",message:e.$t("settings.customization.notes.note_updated")}),e.refreshData&&e.refreshData(),e.closeNoteModal(),t.abrupt("return",!0);case 15:e.showNotification({type:"error",message:a.data.error}),t.next=38;break;case 18:return t.prev=18,r={type:e.noteType,name:e.formData.name,notes:e.formData.notes},t.next=22,e.addNote(r);case 22:if(!(i=t.sent).data||!i.data.note){t.next=32;break}return e.isLoading=!1,e.showNotification({type:"success",message: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:e.showNotification({type:"error",message: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 _a(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 Da=n(3379),Ma=n.n(Da),Sa=n(2222),Ca={insert:"head",singleton:!1};Ma()(Sa.Z,Ca);Sa.Z.locals;const La=(0,g.Z)(ka,(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 Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach((function(t){Ea(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(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 ja={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:a.b0D,FileDiskModal:wn,SetDefaultDiskModal:Tn,CustomFieldModal:fa,NoteSelectModal:La},data:function(){return{component:""}},computed:Oa({},(0,r.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:Oa({},(0,r.nv)("modal",["openModal","closeModal"]))};const Aa=(0,g.Z)(ja,(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:()=>a});const a=(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 a(e,t,n,a,r,i,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),a&&(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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),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:()=>a})},8345:(e,t,n)=>{"use strict";function a(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}n.d(t,{Z:()=>Ee});var r={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,a=t.children,r=t.parent,i=t.data;i.routerView=!0;for(var o=r.$createElement,s=n.name,l=r.$route,c=r._routerViewCache||(r._routerViewCache={}),u=0,d=!1;r&&r._routerRoot!==r;)r.$vnode&&r.$vnode.data.routerView&&u++,r._inactive&&(d=!0),r=r.$parent;if(i.routerViewDepth=u,d)return o(c[s],i,a);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,a)}};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("="),a=c(n.shift()),r=n.length>0?c(n.join("=")):null;void 0===t[a]?t[a]=r:Array.isArray(t[a])?t[a].push(r):t[a]=[t[a],r]})),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 a=[];return n.forEach((function(e){void 0!==e&&(null===e?a.push(l(t)):a.push(l(t)+"="+l(e)))})),a.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,a){var r=a&&a.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,r),matched:e?h(e):[]};return n&&(i.redirectedFrom=_(n,r)),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,a=e.query;void 0===a&&(a={});var r=e.hash;return void 0===r&&(r=""),(n||"/")+(t||d)(a)+r}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),a=Object.keys(t);return n.length===a.length&&n.every((function(n){var a=e[n],r=t[n];return"object"==typeof a&&"object"==typeof r?g(a,r):String(a)===String(r)}))}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,a=this.$route,r=n.resolve(this.to,a,this.append),i=r.location,o=r.route,s=r.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(a,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)}(a,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 a=e.charAt(0);if("/"===a)return e;if("?"===a||"#"===a)return t+e;var r=t.split("/");n&&r[r.length-1]||r.pop();for(var i=e.replace(/^\//,"").split("/"),o=0;o<i.length;o++){var s=i[o];".."===s?r.pop():"."!==s&&r.push(s)}return""!==r[0]&&r.unshift(""),r.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=A,T=function(e,t){return $(A(e,t))},O=$,E=F,j=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function A(e,t){for(var n,a=[],r=0,i=0,o="",s=t&&t.delimiter||"/";null!=(n=j.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&&(a.push(o),o="");var g=null!=p&&null!=d&&d!==p,y="+"===_||"*"===_,b="?"===_||"*"===_,w=n[2]||s,x=f||h;a.push({name:m||r++,prefix:p||"",delimiter:w,optional:b,repeat:y,partial:g,asterisk:!!v,pattern:x?z(x):v?".*":"[^"+Y(w)+"]+?"})}}return i<e.length&&(o+=e.substr(i)),o&&a.push(o),a}function P(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function $(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,a){for(var r="",i=n||{},o=(a||{}).pretty?P: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&&(r+=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)+"`");r+=(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+'"');r+=l.prefix+c}}else r+=l}return r}}function Y(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function z(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function N(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 a=(n=n||{}).strict,r=!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 a||(i=(d?i.slice(0,-u.length):i)+"(?:"+u+"(?=$))?"),i+=r?"$":a&&d?"":"(?="+u+"|$)",N(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 a=0;a<n.length;a++)t.push({name:a,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return N(e,t)}(e,t):S(e)?function(e,t,n){for(var a=[],r=0;r<e.length;r++)a.push(H(e[r],t,n).source);return N(new RegExp("(?:"+a.join("|")+")",I(n)),t)}(e,t,n):function(e,t,n){return F(A(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,a){var r=t||[],i=n||Object.create(null),o=a||Object.create(null);e.forEach((function(e){V(r,i,o,e)}));for(var s=0,l=r.length;s<l;s++)"*"===r[s]&&(r.push(r.splice(s,1)[0]),l--,s--);return{pathList:r,pathMap:i,nameMap:o}}function V(e,t,n,a,r,i){var o=a.path,s=a.name;var l=function(e,t){if("/"===(e=e.replace(/\/$/,""))[0])return e;if(null==t)return e;return M(t.path+"/"+e)}(o,r),c=a.pathToRegexpOptions||{};"boolean"==typeof a.caseSensitive&&(c.sensitive=a.caseSensitive);var u={path:l,regex:W(l,c),components:a.components||{default:a.component},instances:{},name:s,parent:r,matchAs:i,redirect:a.redirect,beforeEnter:a.beforeEnter,meta:a.meta||{},props:null==a.props?{}:a.components?a.props:{default:a.props}};(a.children&&a.children.forEach((function(a){var r=i?M(i+"/"+a.path):void 0;V(e,t,n,a,u,r)})),void 0!==a.alias)&&(Array.isArray(a.alias)?a.alias:[a.alias]).forEach((function(i){var o={path:i,children:a.children};V(e,t,n,o,r,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,a){var r="string"==typeof e?{path:e}:e;if(r.name||r._normalized)return r;if(!r.path&&r.params&&t){(r=K({},r))._normalized=!0;var i=K(K({},t.params),r.params);if(t.name)r.name=t.name,r.params=i;else if(t.matched.length){var o=t.matched[t.matched.length-1].path;r.path=B(o,i,t.path)}else 0;return r}var s=function(e){var t="",n="",a=e.indexOf("#");a>=0&&(t=e.slice(a),e=e.slice(0,a));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:t}}(r.path||""),l=t&&t.path||"/",c=s.path?D(s.path,l,n||r.append):l,d=function(e,t,n){void 0===t&&(t={});var a,r=n||u;try{a=r(e||"")}catch(e){a={}}for(var i in t){var o=t[i];a[i]=Array.isArray(o)?o.slice():o}return a}(s.query,r.query,a&&a.options.parseQuery),p=r.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),a=n.pathList,r=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<a.length;m++){var f=a[m],h=r[f];if(G(h.regex,s.path,s.params))return l(h,s,o)}}return l(null,s)}function s(e,n){var a=e.redirect,r="function"==typeof a?a(m(e,n,null,t)):a;if("string"==typeof r&&(r={path:r}),!r||"object"!=typeof r)return l(null,n);var s=r,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,a){return e&&e.redirect?s(e,a||n):e&&e.matchAs?function(e,t,n){var a=o({_normalized:!0,path:B(n,t.params)});if(a){var r=a.matched,i=r[r.length-1];return t.params=a.params,l(i,t)}return l(null,t)}(0,n,e.matchAs):m(e,n,a,t)}return{match:o,addRoutes:function(e){q(e,a,r,i)}}}function G(e,t,n){var a=t.match(e);if(!a)return!1;if(!n)return!0;for(var r=1,i=a.length;r<i;++r){var o=e.keys[r-1],s="string"==typeof a[r]?decodeURIComponent(a[r]):a[r];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,a){if(e.app){var r=e.options.scrollBehavior;r&&e.app.$nextTick((function(){var e=function(){var e=ce();if(e)return J[e]}(),i=r(t,n,a?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(),a=e.getBoundingClientRect();return{x:a.left-n.left-t.x,y:a.top-n.top-t.y}}(l,c={x:ae((o=c).x)?o.x:0,y:ae(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 ae(e.x)||ae(e.y)}function ne(e){return{x:ae(e.x)?e.x:window.pageXOffset,y:ae(e.y)?e.y:window.pageYOffset}}function ae(e){return"number"==typeof e}var re,ie=k&&((-1===(re=window.navigator.userAgent).indexOf("Android 2.")&&-1===re.indexOf("Android 4.0")||-1===re.indexOf("Mobile Safari")||-1!==re.indexOf("Chrome")||-1!==re.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 a=function(r){r>=e.length?n():e[r]?t(e[r],(function(){a(r+1)})):a(r+1)};a(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=[],a=arguments.length;a--;)n[a]=arguments[a];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,a){var r=me(e,(function(e,a,r,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,a,r,i)})):n(o,a,r,i)}));return fe(a?r.reverse():r)}function ge(e,t){if(t)return function(){return e.apply(t,arguments)}}function ye(e,t,n,a){t[n]?e(t[n]):a()&&setTimeout((function(){ye(e,t,n,a)}),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 a=this,r=this.router.match(e,this.current);this.confirmTransition(r,(function(){a.updateRoute(r),t&&t(r),a.ensureURL(),a.ready||(a.ready=!0,a.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!a.ready&&(a.ready=!0,a.readyErrorCbs.forEach((function(t){t(e)})))}))},_e.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current,o=function(e){a(e)&&(r.errorCbs.length?r.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,a=Math.max(e.length,t.length);for(n=0;n<a&&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 r=!1,i=0,o=null;me(s,(function(e,t,s,l){if("function"==typeof e&&void 0===e.cid){r=!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=a(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)}}})),r||n()}));this.pending=e;var m=function(t,n){if(r.pending!==e)return o();try{t(e,i,(function(e){!1===e||a(e)?(r.ensureURL(!0),o(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(o(),"object"==typeof e&&e.replace?r.replace(e):r.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,a,r,i){return function(e,t,n,a,r){return function(i,o,s){return e(i,o,(function(e){s(e),"function"==typeof e&&a.push((function(){ye(e,t.instances,n,r)}))}))}}(e,r,i,t,n)}))}(d,n,(function(){return r.current===e})).concat(r.router.resolveHooks),m,(function(){if(r.pending!==e)return o();r.pending=null,t(e),r.router.app&&r.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 a=this;e.call(this,t,n);var r=t.options.scrollBehavior;r&&X(),window.addEventListener("popstate",(function(e){var n=a.current;a.transitionTo(we(a.base),(function(e){r&&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 a=this,r=this.current;this.transitionTo(e,(function(e){ue(M(a.base+e.fullPath)),Q(a.router,e,r,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var a=this,r=this.current;this.transitionTo(e,(function(e){de(M(a.base+e.fullPath)),Q(a.router,e,r,!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,a){e.call(this,t,n),a&&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("#"),a=n>=0?t.slice(0,n):t;window.location.replace(a+"#"+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 a=this;this.transitionTo(e,(function(e){a.stack=a.stack.slice(0,a.index+1).concat(e),a.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var a=this;this.transitionTo(e,(function(e){a.stack=a.stack.slice(0,a.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 a=this.stack[n];this.confirmTransition(a,(function(){t.index=n,t.updateRoute(a)}))}},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 a=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),a,a)}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 a=U(e,t||this.history.current,n,this),r=this.match(a,t),i=r.redirectedFrom||r.fullPath;return{location:a,route:r,href:function(e,t,n){var a="hash"===n?"#"+t:t;return e?M(e+"/"+a):a}(this.history.base,i,this.mode),normalizedTo:a,resolved:r}},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},a=function(e,t){var a=e.$options._parentVnode;n(a)&&n(a=a.data)&&n(a=a.registerRouteInstance)&&a(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,a(this,this)},destroyed:function(){a(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",r),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 a=Object.freeze({});function r(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),a=e.split(","),r=0;r<a.length;r++)n[a[r]]=!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 a=arguments.length;return a?a>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,a=new Array(n);n--;)a[n]=e[n+t];return a}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 j(e,t,n){}var A=function(e,t,n){return!1},P=function(e){return e};function $(e,t){if(e===t)return!0;var n=l(e),a=l(t);if(!n||!a)return!n&&!a&&String(e)===String(t);try{var r=Array.isArray(e),i=Array.isArray(t);if(r&&i)return e.length===t.length&&e.every((function(e,n){return $(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||i)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return $(e[n],t[n])}))}catch(e){return!1}}function Y(e,t){for(var n=0;n<e.length;n++)if($(e[n],t))return n;return-1}function z(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var N="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:A,isReservedAttr:A,isUnknownElement:A,getTagNamespace:j,parsePlatformTagName:P,mustUseProp:A,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,a){Object.defineProperty(e,t,{value:n,enumerable:!!a,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+)/)),ae={}.watch,re=!1;if(K)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){re=!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=j,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,a,r,i,o,s){this.tag=e,this.data=t,this.children=n,this.text=a,this.elm=r,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=[],a=arguments.length;a--;)n[a]=arguments[a];var r,i=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&o.observeArray(r),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 a=0,r=n.length;a<r;a++){var i=n[a];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,a,r){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=!r&&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)&&je(t))),t},set:function(t){var a=s?s.call(e):n;t===a||t!=t&&a!=a||s&&!l||(l?l.call(e,t):n=t,c=!r&&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 a=e.__ob__;return e._isVue||a&&a.vmCount?n:a?(Te(a.value,t,n),a.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 je(e){for(var t=void 0,n=0,a=e.length;n<a;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&je(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 Ae=H.optionMergeStrategies;function Pe(e,t){if(!t)return e;for(var n,a,r,i=ue?Reflect.ownKeys(t):Object.keys(t),o=0;o<i.length;o++)"__ob__"!==(n=i[o])&&(a=e[n],r=t[n],w(e,n)?a!==r&&u(a)&&u(r)&&Pe(a,r):Oe(e,n,r));return e}function $e(e,t,n){return n?function(){var a="function"==typeof t?t.call(n,n):t,r="function"==typeof e?e.call(n,n):e;return a?Pe(a,r):r}:t?e?function(){return Pe("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 ze(e,t,n,a){var r=Object.create(e||null);return t?O(r,t):r}Ae.data=function(e,t,n){return n?$e(e,t,n):t&&"function"!=typeof t?e:$e(e,t)},F.forEach((function(e){Ae[e]=Ye})),I.forEach((function(e){Ae[e+"s"]=ze})),Ae.watch=function(e,t,n,a){if(e===ae&&(e=void 0),t===ae&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var r={};for(var i in O(r,e),t){var o=r[i],s=t[i];o&&!Array.isArray(o)&&(o=[o]),r[i]=o?o.concat(s):Array.isArray(s)?s:[s]}return r},Ae.props=Ae.methods=Ae.inject=Ae.computed=function(e,t,n,a){if(!e)return t;var r=Object.create(null);return O(r,e),t&&O(r,t),r},Ae.provide=$e;var Ne=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 a,r,i={};if(Array.isArray(n))for(a=n.length;a--;)"string"==typeof(r=n[a])&&(i[D(r)]={type:null});else if(u(n))for(var o in n)r=n[o],i[D(o)]=u(r)?r:{type:r};e.props=i}}(t),function(e,t){var n=e.inject;if(n){var a=e.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)a[n[r]]={from:n[r]};else if(u(n))for(var i in n){var o=n[i];a[i]=u(o)?O({from:i},o):{from:o}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var a=t[n];"function"==typeof a&&(t[n]={bind:a,update:a})}}(t),!t._base&&(t.extends&&(e=Ie(e,t.extends,n)),t.mixins))for(var a=0,r=t.mixins.length;a<r;a++)e=Ie(e,t.mixins[a],n);var i,o={};for(i in e)s(i);for(i in t)w(e,i)||s(i);function s(a){var r=Ae[a]||Ne;o[a]=r(e[a],t[a],n,a)}return o}function Fe(e,t,n,a){if("string"==typeof n){var r=e[t];if(w(r,n))return r[n];var i=D(n);if(w(r,i))return r[i];var o=M(i);return w(r,o)?r[o]:r[n]||r[i]||r[o]}}function He(e,t,n,a){var r=t[e],i=!w(n,e),o=n[e],s=qe(Boolean,r.type);if(s>-1)if(i&&!w(r,"default"))o=!1;else if(""===o||o===C(e)){var l=qe(String,r.type);(l<0||s<l)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!w(t,"default"))return;var a=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 a&&"Function"!==Re(t.type)?a.call(e):a}(a,r,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,a=t.length;n<a;n++)if(Be(t[n],e))return n;return-1}function Ve(e,t,n){he();try{if(t)for(var a=t;a=a.$parent;){var r=a.$options.errorCaptured;if(r)for(var i=0;i<r.length;i++)try{if(!1===r[i].call(a,e,t,n))return}catch(e){Ue(e,a,"errorCaptured hook")}}Ue(e,t,n)}finally{_e()}}function We(e,t,n,a,r){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,a,r+" (Promise/async)")})),i._handled=!0)}catch(e){Ve(e,a,r)}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(j)},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),at=document.createTextNode(String(tt));nt.observe(at,{characterData:!0}),Ze=function(){tt=(tt+1)%2,at.data=String(tt)},Ge=!0}function rt(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,a,r=Array.isArray(e);if(!(!r&&!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(r)for(n=e.length;n--;)st(e[n],t);else for(n=(a=Object.keys(e)).length;n--;)st(e[a[n]],t)}}var lt=x((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),a="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=a?e.slice(1):e,once:n,capture:a,passive:t}}));function ct(e,t){function n(){var e=arguments,a=n.fns;if(!Array.isArray(a))return We(a,null,arguments,t,"v-on handler");for(var r=a.slice(),i=0;i<r.length;i++)We(r[i],null,e,t,"v-on handler")}return n.fns=e,n}function ut(e,t,n,a,i,s){var l,c,u,d;for(l in e)c=e[l],u=t[l],d=lt(l),r(c)||(r(u)?(r(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)r(e[l])&&a((d=lt(l)).name,t[l],d.capture)}function dt(e,t,n){var a;e instanceof ve&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),y(a.fns,l)}r(s)?a=ct([l]):i(s.fns)&&o(s.merged)?(a=s).fns.push(l):a=ct([s,l]),a.merged=!0,e[t]=a}function pt(e,t,n,a,r){if(i(t)){if(w(t,n))return e[n]=t[n],r||delete t[n],!0;if(w(t,a))return e[n]=t[a],r||delete t[a],!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,a,l,c,u=[];for(n=0;n<e.length;n++)r(a=e[n])||"boolean"==typeof a||(c=u[l=u.length-1],Array.isArray(a)?a.length>0&&(ft((a=ht(a,(t||"")+"_"+n))[0])&&ft(c)&&(u[l]=be(c.text+a[0].text),a.shift()),u.push.apply(u,a)):s(a)?ft(c)?u[l]=be(c.text+a):""!==a&&u.push(be(a)):ft(a)&&ft(c)?u[l]=be(c.text+a.text):(o(e._isVList)&&i(a.tag)&&r(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+n+"__"),u.push(a)));return u}function _t(e,t){if(e){for(var n=Object.create(null),a=ue?Reflect.ownKeys(e):Object.keys(e),r=0;r<a.length;r++){var i=a[r];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={},a=0,r=e.length;a<r;a++){var i=e[a],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 r,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!==a&&s===n.$key&&!i&&!n.$hasNormal)return n;for(var l in r={},e)e[l]&&"$"!==l[0]&&(r[l]=bt(t,l,e[l]))}else r={};for(var c in t)c in r||(r[c]=wt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),q(r,"$stable",o),q(r,"$key",s),q(r,"$hasNormal",i),r}function bt(e,t,n){var a=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:a,enumerable:!0,configurable:!0}),a}function wt(e,t){return function(){return e[t]}}function xt(e,t){var n,a,r,o,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),a=0,r=e.length;a<r;a++)n[a]=t(e[a],a);else if("number"==typeof e)for(n=new Array(e),a=0;a<e;a++)n[a]=t(a+1,a);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),a=0,r=o.length;a<r;a++)s=o[a],n[a]=t(e[s],s,a);return i(n)||(n=[]),n._isVList=!0,n}function kt(e,t,n,a){var r,i=this.$scopedSlots[e];i?(n=n||{},a&&(n=O(O({},a),n)),r=i(n)||t):r=this.$slots[e]||t;var o=n&&n.slot;return o?this.$createElement("template",{slot:o},r):r}function Dt(e){return Fe(this.$options,"filters",e)||P}function Mt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function St(e,t,n,a,r){var i=H.keyCodes[t]||n;return r&&a&&!H.keyCodes[t]?Mt(r,a):i?Mt(i,e):a?C(a)!==t:void 0}function Ct(e,t,n,a,r){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=a||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],r&&((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=[]),a=n[e];return a&&!t||Ot(a=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),a}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 a=0;a<e.length;a++)e[a]&&"string"!=typeof e[a]&&Et(e[a],t+"_"+a,n);else Et(e,t,n)}function Et(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function jt(e,t){if(t)if(u(t)){var n=e.on=e.on?O({},e.on):{};for(var a in t){var r=n[a],i=t[a];n[a]=r?[].concat(r,i):i}}else;return e}function At(e,t,n,a){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?At(i,t,n):i&&(i.proxy&&(i.fn.proxy=!0),t[i.key]=i.fn)}return a&&(t.$key=a),t}function Pt(e,t){for(var n=0;n<t.length;n+=2){var a=t[n];"string"==typeof a&&a&&(e[t[n]]=t[n+1])}return e}function $t(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=$,e._i=Y,e._m=Lt,e._f=Dt,e._k=St,e._b=Ct,e._v=be,e._e=ye,e._u=At,e._g=jt,e._d=Pt,e._p=$t}function zt(e,t,n,r,i){var s,l=this,c=i.options;w(r,"_uid")?(s=Object.create(r))._original=r:(s=r,r=r._original);var u=o(c._compiled),d=!u;this.data=e,this.props=t,this.children=n,this.parent=r,this.listeners=e.on||a,this.injections=_t(c.inject,r),this.slots=function(){return l.$slots||yt(e.scopedSlots,l.$slots=vt(n,r)),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,a){var i=qt(s,e,t,n,a,d);return i&&!Array.isArray(i)&&(i.fnScopeId=c._scopeId,i.fnContext=r),i}:this._c=function(e,t,n,a){return qt(s,e,t,n,a,d)}}function Nt(e,t,n,a,r){var i=we(e);return i.fnContext=n,i.fnOptions=a,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(zt.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},a=e.data.inlineTemplate;i(a)&&(n.render=a.render,n.staticRenderFns=a.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,r,i){0;var o=r.data.scopedSlots,s=e.$scopedSlots,l=!!(o&&!o.$stable||s!==a&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(i||e.$options._renderChildren||l);e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r);if(e.$options._renderChildren=i,e.$attrs=r.data.attrs||a,e.$listeners=n||a,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||a;var h=e.$options._parentListeners;e.$options._parentListeners=n,en(e,n,h),c&&(e.$slots=vt(i,r.context),e.$forceUpdate());0}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,a=e.componentInstance;a._isMounted||(a._isMounted=!0,sn(a,"mounted")),e.data.keepAlive&&(n._isMounted?((t=a)._inactive=!1,cn.push(t)):rn(a,!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(!r(e)){var u=n.$options._base;if(l(e)&&(e=u.extend(e)),"function"==typeof e){var d;if(r(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 a=e.owners=[n],s=!0,c=null,u=null;n.$on("hook:destroyed",(function(){return y(a,n)}));var d=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},p=z((function(n){e.resolved=Kt(n,t),s?a.length=0:d(!0)})),f=z((function(t){i(e.errorComp)&&(e.error=!0,d(!0))})),h=e(p,f);return l(h)&&(m(h)?r(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,r(e.resolved)&&r(e.error)&&(e.loading=!0,d(!1))}),h.delay||200)),i(h.timeout)&&(u=setTimeout((function(){u=null,r(e.resolved)&&f(null)}),h.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}(d=e,u)))return function(e,t,n,a,r){var i=ye();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:a,tag:r},i}(d,t,n,s,c);t=t||{},Tn(e),i(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",a=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var r=t.on||(t.on={}),o=r[a],s=t.model.callback;i(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(r[a]=[s].concat(o)):r[a]=s}(e.options,t);var p=function(e,t,n){var a=t.options.props;if(!r(a)){var o={},s=e.attrs,l=e.props;if(i(s)||i(l))for(var c in a){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,r,o){var s=e.options,l={},c=s.props;if(i(c))for(var u in c)l[u]=He(u,c,t||a);else i(n.attrs)&&It(l,n.attrs),i(n.props)&&It(l,n.props);var d=new zt(n,l,o,r,e),p=s.render.call(null,d._c,d);if(p instanceof ve)return Nt(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]=Nt(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 a=Ht[n],r=t[a],i=Ft[a];r===i||r&&r._merged||(t[a]=r?Bt(i,r):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,a){e(n,a),t(n,a)};return n._merged=!0,n}function qt(e,t,n,a,r,c){return(Array.isArray(n)||s(n))&&(r=a,a=n,n=void 0),o(c)&&(r=2),function(e,t,n,a,r){if(i(n)&&i(n.__ob__))return ye();i(n)&&i(n.is)&&(t=n.is);if(!t)return ye();0;Array.isArray(a)&&"function"==typeof a[0]&&((n=n||{}).scopedSlots={default:a[0]},a.length=0);2===r?a=mt(a):1===r&&(a=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(a));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,a,void 0,void 0,e):n&&n.pre||!i(c=Fe(e.$options,"components",t))?new ve(t,n,a,void 0,void 0,e):Rt(c,n,e,a,t)}else o=Rt(t,n,e,a);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,a,r)}function Vt(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var a=0,s=e.children.length;a<s;a++){var l=e.children[a];i(l.tag)&&(r(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 a(){var r=t.apply(null,arguments);null!==r&&n.$off(e,a)}}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 an(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function rn(e,t){if(t){if(e._directInactive=!1,an(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++)rn(e.$children[n]);sn(e,"activated")}}function on(e,t){if(!(t&&(e._directInactive=!0,an(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],a=t+" hook";if(n)for(var r=0,i=n.length;r<i;r++)We(n[r],e,null,e,a);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(),a=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,rn(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],a=n.vm;a._watcher===n&&a._isMounted&&!a._isDestroyed&&sn(a,"updated")}}(a),se&&H.devtools&&se.emit("flush")}var gn=0,yn=function(e,t,n,a,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),a?(this.deep=!!a.deep,this.user=!!a.user,this.lazy=!!a.lazy,this.sync=!!a.sync,this.before=a.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=j)),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,rt(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:j,set:j};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||{},a=e._props={},r=e.$options._propKeys=[];e.$parent&&Se(!1);var i=function(i){r.push(i);var o=He(i,t,n,e);Te(a,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]?j: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),a=e.$options.props,r=(e.$options.methods,n.length);for(;r--;){var i=n[r];0,a&&w(a,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),a=oe();for(var r in t){var i=t[r],o="function"==typeof i?i:i.get;0,a||(n[r]=new yn(e,o||j,j,kn)),r in e||Dn(e,r,i)}}(e,t.computed),t.watch&&t.watch!==ae&&function(e,t){for(var n in t){var a=t[n];if(Array.isArray(a))for(var r=0;r<a.length;r++)Cn(e,n,a[r]);else Cn(e,n,a)}}(e,t.watch)}var kn={lazy:!0};function Dn(e,t,n){var a=!oe();"function"==typeof n?(bn.get=a?Mn(t):Sn(n),bn.set=j):(bn.get=n.get?a&&!1!==n.cache?Mn(t):Sn(n.get):j,bn.set=n.set||j),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,a){return u(n)&&(a=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,a)}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 a=function(e){var t,n=e.options,a=e.sealedOptions;for(var r in n)n[r]!==a[r]&&(t||(t={}),t[r]=n[r]);return t}(e);a&&O(e.extendOptions,a),(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,a=n.cid,r=e._Ctor||(e._Ctor={});if(r[a])return r[a];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),r[a]=o,o}}function jn(e){return e&&(e.Ctor.options.name||e.tag)}function An(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Pn(e,t){var n=e.cache,a=e.keys,r=e._vnode;for(var i in n){var o=n[i];if(o){var s=jn(o.componentOptions);s&&!t(s)&&$n(n,i,a,r)}}}function $n(e,t,n,a){var r=e[t];!r||a&&r.tag===a.tag||r.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),a=t._parentVnode;n.parent=t.parent,n._parentVnode=a;var r=a.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.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,r=n&&n.context;e.$slots=vt(t._renderChildren,r),e.$scopedSlots=a,e._c=function(t,n,a,r){return qt(e,t,n,a,r,!1)},e.$createElement=function(t,n,a,r){return qt(e,t,n,a,r,!0)};var i=n&&n.data;Te(e,"$attrs",i&&i.attrs||a,null,!0),Te(e,"$listeners",t._parentListeners||a,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 a=this;if(u(t))return Cn(a,e,t,n);(n=n||{}).user=!0;var r=new yn(a,e,t,n);if(n.immediate)try{t.call(a,r.value)}catch(e){Ve(e,a,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(On),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var a=this;if(Array.isArray(e))for(var r=0,i=e.length;r<i;r++)a.$on(e[r],n);else(a._events[e]||(a._events[e]=[])).push(n),t.test(e)&&(a._hasHookEvent=!0);return a},e.prototype.$once=function(e,t){var n=this;function a(){n.$off(e,a),t.apply(n,arguments)}return a.fn=t,n.$on(e,a),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 a=0,r=e.length;a<r;a++)n.$off(e[a],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 a=T(arguments,1),r='event handler for "'+e+'"',i=0,o=n.length;i<o;i++)We(n[i],t,a,t,r)}return t}}(On),function(e){e.prototype._update=function(e,t){var n=this,a=n.$el,r=n._vnode,i=nn(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),i(),a&&(a.__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 rt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,a=n.render,r=n._parentVnode;r&&(t.$scopedSlots=yt(r.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=r;try{Ut=t,e=a.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=r,e}}(On);var Yn=[String,RegExp,Array],zn={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)$n(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Pn(e,(function(e){return An(t,e)}))})),this.$watch("exclude",(function(t){Pn(e,(function(e){return!An(t,e)}))}))},render:function(){var e=this.$slots.default,t=Gt(e),n=t&&t.componentOptions;if(n){var a=jn(n),r=this.include,i=this.exclude;if(r&&(!a||!An(r,a))||i&&a&&An(i,a))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)&&$n(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=rt,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,zn),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:zt}),On.version="2.6.12";var Nn=_("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,a=e;i(a.componentInstance);)(a=a.componentInstance._vnode)&&a.data&&(t=Zn(a.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="",a=0,r=e.length;a<r;a++)i(t=Jn(e[a]))&&""!==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"),ea=_("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),ta=function(e){return Qn(e)||ea(e)};function na(e){return ea(e)?"svg":"math"===e?"math":void 0}var aa=Object.create(null);var ra=_("text,number,password,search,email,tel,url");function ia(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var oa=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,"")}}),sa={create:function(e,t){la(t)},update:function(e,t){e.data.ref!==t.data.ref&&(la(e,!0),la(t))},destroy:function(e){la(e,!0)}};function la(e,t){var n=e.data.ref;if(i(n)){var a=e.context,r=e.componentInstance||e.elm,o=a.$refs;t?Array.isArray(o[n])?y(o[n],r):o[n]===r&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(r)<0&&o[n].push(r):o[n]=[r]:o[n]=r}}var ca=new ve("",{},[]),ua=["create","activate","update","remove","destroy"];function da(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,a=i(n=e.data)&&i(n=n.attrs)&&n.type,r=i(n=t.data)&&i(n=n.attrs)&&n.type;return a===r||ra(a)&&ra(r)}(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function pa(e,t,n){var a,r,o={};for(a=t;a<=n;++a)i(r=e[a].key)&&(o[r]=a);return o}var ma={create:fa,update:fa,destroy:function(e){fa(e,ca)}};function fa(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,a,r,i=e===ca,o=t===ca,s=_a(e.data.directives,e.context),l=_a(t.data.directives,t.context),c=[],u=[];for(n in l)a=s[n],r=l[n],a?(r.oldValue=a.value,r.oldArg=a.arg,ga(r,"update",t,e),r.def&&r.def.componentUpdated&&u.push(r)):(ga(r,"bind",t,e),r.def&&r.def.inserted&&c.push(r));if(c.length){var d=function(){for(var n=0;n<c.length;n++)ga(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++)ga(u[n],"componentUpdated",t,e)}));if(!i)for(n in s)l[n]||ga(s[n],"unbind",e,e,o)}(e,t)}var ha=Object.create(null);function _a(e,t){var n,a,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++)(a=e[n]).modifiers||(a.modifiers=ha),r[va(a)]=a,a.def=Fe(t.$options,"directives",a.name);return r}function va(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function ga(e,t,n,a,r){var i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,a,r)}catch(a){Ve(a,n.context,"directive "+e.name+" "+t+" hook")}}var ya=[sa,ma];function ba(e,t){var n=t.componentOptions;if(!(i(n)&&!1===n.Ctor.options.inheritAttrs||r(e.data.attrs)&&r(t.data.attrs))){var a,o,s=t.elm,l=e.data.attrs||{},c=t.data.attrs||{};for(a in i(c.__ob__)&&(c=t.data.attrs=O({},c)),c)o=c[a],l[a]!==o&&wa(s,a,o);for(a in(X||ee)&&c.value!==l.value&&wa(s,"value",c.value),l)r(c[a])&&(Vn(a)?s.removeAttributeNS(qn,Wn(a)):Hn(a)||s.removeAttribute(a))}}function wa(e,t,n){e.tagName.indexOf("-")>-1?xa(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):xa(e,t,n)}function xa(e,t,n){if(Un(n))e.removeAttribute(t);else{if(X&&!Q&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var a=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",a)};e.addEventListener("input",a),e.__ieph=!0}e.setAttribute(t,n)}}var ka={create:ba,update:ba};function Da(e,t){var n=t.elm,a=t.data,o=e.data;if(!(r(a.staticClass)&&r(a.class)&&(r(o)||r(o.staticClass)&&r(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 Ma,Sa,Ca,La,Ta,Oa,Ea={create:Da,update:Da},ja=/[\w).+\-_$\]]/;function Aa(e){var t,n,a,r,i,o=!1,s=!1,l=!1,c=!1,u=0,d=0,p=0,m=0;for(a=0;a<e.length;a++)if(n=t,t=e.charCodeAt(a),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(a+1)||124===e.charCodeAt(a-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=a-1,h=void 0;f>=0&&" "===(h=e.charAt(f));f--);h&&ja.test(h)||(c=!0)}}else void 0===r?(m=a+1,r=e.slice(0,a).trim()):_();function _(){(i||(i=[])).push(e.slice(m,a).trim()),m=a+1}if(void 0===r?r=e.slice(0,a).trim():0!==m&&_(),i)for(a=0;a<i.length;a++)r=Pa(r,i[a]);return r}function Pa(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var a=t.slice(0,n),r=t.slice(n+1);return'_f("'+a+'")('+e+(")"!==r?","+r:r)}function $a(e,t){console.error("[Vue compiler]: "+e)}function Ya(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function za(e,t,n,a,r){(e.props||(e.props=[])).push(Wa({name:t,value:n,dynamic:r},a)),e.plain=!1}function Na(e,t,n,a,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Wa({name:t,value:n,dynamic:r},a)),e.plain=!1}function Ia(e,t,n,a){e.attrsMap[t]=n,e.attrsList.push(Wa({name:t,value:n},a))}function Fa(e,t,n,a,r,i,o,s){(e.directives||(e.directives=[])).push(Wa({name:t,rawName:n,value:a,arg:r,isDynamicArg:i,modifiers:o},s)),e.plain=!1}function Ha(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Ra(e,t,n,r,i,o,s,l){var c;(r=r||a).right?l?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete r.right):r.middle&&(l?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),r.capture&&(delete r.capture,t=Ha("!",t,l)),r.once&&(delete r.once,t=Ha("~",t,l)),r.passive&&(delete r.passive,t=Ha("&",t,l)),r.native?(delete r.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});var u=Wa({value:n.trim(),dynamic:l},s);r!==a&&(u.modifiers=r);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 Ba(e,t,n){var a=qa(e,":"+t)||qa(e,"v-bind:"+t);if(null!=a)return Aa(a);if(!1!==n){var r=qa(e,t);if(null!=r)return JSON.stringify(r)}}function qa(e,t,n){var a;if(null!=(a=e.attrsMap[t]))for(var r=e.attrsList,i=0,o=r.length;i<o;i++)if(r[i].name===t){r.splice(i,1);break}return n&&delete e.attrsMap[t],a}function Va(e,t){for(var n=e.attrsList,a=0,r=n.length;a<r;a++){var i=n[a];if(t.test(i.name))return n.splice(a,1),i}}function Wa(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Ua(e,t,n){var a=n||{},r=a.number,i="$$v",o=i;a.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(o="_n("+o+")");var s=Ka(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+s+"}"}}function Ka(e,t){var n=function(e){if(e=e.trim(),Ma=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<Ma-1)return(La=e.lastIndexOf("."))>-1?{exp:e.slice(0,La),key:'"'+e.slice(La+1)+'"'}:{exp:e,key:null};Sa=e,La=Ta=Oa=0;for(;!Ga();)Ja(Ca=Za())?Qa(Ca):91===Ca&&Xa(Ca);return{exp:e.slice(0,Ta),key:e.slice(Ta+1,Oa)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Za(){return Sa.charCodeAt(++La)}function Ga(){return La>=Ma}function Ja(e){return 34===e||39===e}function Xa(e){var t=1;for(Ta=La;!Ga();)if(Ja(e=Za()))Qa(e);else if(91===e&&t++,93===e&&t--,0===t){Oa=La;break}}function Qa(e){for(var t=e;!Ga()&&(e=Za())!==t;);}var er,tr="__r";function nr(e,t,n){var a=er;return function r(){var i=t.apply(null,arguments);null!==i&&ir(e,r,n,a)}}var ar=Ge&&!(ne&&Number(ne[1])<=53);function rr(e,t,n,a){if(ar){var r=fn,i=t;t=i._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return i.apply(this,arguments)}}er.addEventListener(e,t,re?{capture:n,passive:a}:n)}function ir(e,t,n,a){(a||er).removeEventListener(e,t._wrapper||t,n)}function or(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},a=e.data.on||{};er=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,a,rr,ir,nr,t.context),er=void 0}}var sr,lr={create:or,update:or};function cr(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,a,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(a=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),a===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=a;var c=r(a)?"":String(a);ur(o,c)&&(o.value=c)}else if("innerHTML"===n&&ea(o.tagName)&&r(o.innerHTML)){(sr=sr||document.createElement("div")).innerHTML="<svg>"+a+"</svg>";for(var u=sr.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;u.firstChild;)o.appendChild(u.firstChild)}else if(a!==s[n])try{o[n]=a}catch(e){}}}}function ur(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,a=e._vModifiers;if(i(a)){if(a.number)return h(n)!==h(t);if(a.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var dr={create:cr,update:cr},pr=x((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var a=e.split(n);a.length>1&&(t[a[0].trim()]=a[1].trim())}})),t}));function mr(e){var t=fr(e.style);return e.staticStyle?O(e.staticStyle,t):t}function fr(e){return Array.isArray(e)?E(e):"string"==typeof e?pr(e):e}var hr,_r=/^--/,vr=/\s*!important$/,gr=function(e,t,n){if(_r.test(t))e.style.setProperty(t,n);else if(vr.test(n))e.style.setProperty(C(t),n.replace(vr,""),"important");else{var a=br(t);if(Array.isArray(n))for(var r=0,i=n.length;r<i;r++)e.style[a]=n[r];else e.style[a]=n}},yr=["Webkit","Moz","ms"],br=x((function(e){if(hr=hr||document.createElement("div").style,"filter"!==(e=D(e))&&e in hr)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<yr.length;n++){var a=yr[n]+t;if(a in hr)return a}}));function wr(e,t){var n=t.data,a=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(a.staticStyle)&&r(a.style))){var o,s,l=t.elm,c=a.staticStyle,u=a.normalizedStyle||a.style||{},d=c||u,p=fr(t.data.style)||{};t.data.normalizedStyle=i(p.__ob__)?O({},p):p;var m=function(e,t){var n,a={};if(t)for(var r=e;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(n=mr(r.data))&&O(a,n);(n=mr(e.data))&&O(a,n);for(var i=e;i=i.parent;)i.data&&(n=mr(i.data))&&O(a,n);return a}(t,!0);for(s in d)r(m[s])&&gr(l,s,"");for(s in m)(o=m[s])!==d[s]&&gr(l,s,null==o?"":o)}}var xr={create:wr,update:wr},kr=/\s+/;function Dr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(kr).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 Mr(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(kr).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")||"")+" ",a=" "+t+" ";n.indexOf(a)>=0;)n=n.replace(a," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Sr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&O(t,Cr(e.name||"v")),O(t,e),t}return"string"==typeof e?Cr(e):void 0}}var Cr=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"}})),Lr=K&&!Q,Tr="transition",Or="animation",Er="transition",jr="transitionend",Ar="animation",Pr="animationend";Lr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Er="WebkitTransition",jr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ar="WebkitAnimation",Pr="webkitAnimationEnd"));var $r=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Yr(e){$r((function(){$r(e)}))}function zr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Dr(e,t))}function Nr(e,t){e._transitionClasses&&y(e._transitionClasses,t),Mr(e,t)}function Ir(e,t,n){var a=Hr(e,t),r=a.type,i=a.timeout,o=a.propCount;if(!r)return n();var s=r===Tr?jr:Pr,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 Fr=/\b(transform|all)(,|$)/;function Hr(e,t){var n,a=window.getComputedStyle(e),r=(a[Er+"Delay"]||"").split(", "),i=(a[Er+"Duration"]||"").split(", "),o=Rr(r,i),s=(a[Ar+"Delay"]||"").split(", "),l=(a[Ar+"Duration"]||"").split(", "),c=Rr(s,l),u=0,d=0;return t===Tr?o>0&&(n=Tr,u=o,d=i.length):t===Or?c>0&&(n=Or,u=c,d=l.length):d=(n=(u=Math.max(o,c))>0?o>c?Tr:Or:null)?n===Tr?i.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===Tr&&Fr.test(a[Er+"Property"])}}function Rr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Br(t)+Br(e[n])})))}function Br(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function qr(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var a=Sr(e.data.transition);if(!r(a)&&!i(n._enterCb)&&1===n.nodeType){for(var o=a.css,s=a.type,c=a.enterClass,u=a.enterToClass,d=a.enterActiveClass,p=a.appearClass,m=a.appearToClass,f=a.appearActiveClass,_=a.beforeEnter,v=a.enter,g=a.afterEnter,y=a.enterCancelled,b=a.beforeAppear,w=a.appear,x=a.afterAppear,k=a.appearCancelled,D=a.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||_,j=C&&"function"==typeof w?w:v,A=C&&x||g,P=C&&k||y,$=h(l(D)?D.enter:D);0;var Y=!1!==o&&!Q,N=Ur(j),I=n._enterCb=z((function(){Y&&(Nr(n,O),Nr(n,T)),I.cancelled?(Y&&Nr(n,L),P&&P(n)):A&&A(n),n._enterCb=null}));e.data.show||dt(e,"insert",(function(){var t=n.parentNode,a=t&&t._pending&&t._pending[e.key];a&&a.tag===e.tag&&a.elm._leaveCb&&a.elm._leaveCb(),j&&j(n,I)})),E&&E(n),Y&&(zr(n,L),zr(n,T),Yr((function(){Nr(n,L),I.cancelled||(zr(n,O),N||(Wr($)?setTimeout(I,$):Ir(n,s,I)))}))),e.data.show&&(t&&t(),j&&j(n,I)),Y||N||I()}}}function Vr(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var a=Sr(e.data.transition);if(r(a)||1!==n.nodeType)return t();if(!i(n._leaveCb)){var o=a.css,s=a.type,c=a.leaveClass,u=a.leaveToClass,d=a.leaveActiveClass,p=a.beforeLeave,m=a.leave,f=a.afterLeave,_=a.leaveCancelled,v=a.delayLeave,g=a.duration,y=!1!==o&&!Q,b=Ur(m),w=h(l(g)?g.leave:g);0;var x=n._leaveCb=z((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(Nr(n,u),Nr(n,d)),x.cancelled?(y&&Nr(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&&(zr(n,c),zr(n,d),Yr((function(){Nr(n,c),x.cancelled||(zr(n,u),b||(Wr(w)?setTimeout(x,w):Ir(n,s,x)))}))),m&&m(n,x),y||b||x())}}function Wr(e){return"number"==typeof e&&!isNaN(e)}function Ur(e){if(r(e))return!1;var t=e.fns;return i(t)?Ur(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Kr(e,t){!0!==t.data.show&&qr(t)}var Zr=function(e){var t,n,a={},l=e.modules,c=e.nodeOps;for(t=0;t<ua.length;++t)for(a[ua[t]]=[],n=0;n<l.length;++n)i(l[n][ua[t]])&&a[ua[t]].push(l[n][ua[t]]);function u(e){var t=c.parentNode(e);i(t)&&c.removeChild(t,e)}function d(e,t,n,r,s,l,u){if(i(e.elm)&&i(l)&&(e=l[u]=we(e)),e.isRootInsert=!s,!function(e,t,n,r){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,r),o(l)&&function(e,t,n,r){var o,s=e;for(;s.componentInstance;)if(i(o=(s=s.componentInstance._vnode).data)&&i(o=o.transition)){for(o=0;o<a.activate.length;++o)a.activate[o](ca,s);t.push(s);break}m(n,e.elm,r)}(e,t,n,r),!0}}(e,t,n,r)){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,r)):o(e.isComment)?(e.elm=c.createComment(e.text),m(n,e.elm,r)):(e.elm=c.createTextNode(e.text),m(n,e.elm,r))}}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)):(la(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 a=0;a<t.length;++a)d(t[a],n,e.elm,null,!0,t,a)}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 r=0;r<a.create.length;++r)a.create[r](ca,e);i(t=e.data.hook)&&(i(t.create)&&t.create(ca,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,a,r,i){for(;a<=r;++a)d(n[a],i,e,t,!1,n,a)}function b(e){var t,n,r=e.data;if(i(r))for(i(t=r.hook)&&i(t=t.destroy)&&t(e),t=0;t<a.destroy.length;++t)a.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 a=e[t];i(a)&&(i(a.tag)?(x(a),b(a)):u(a.elm))}}function x(e,t){if(i(t)||i(e.data)){var n,r=a.remove.length+1;for(i(t)?t.listeners+=r:t=function(e,t){function n(){0==--n.listeners&&u(e)}return n.listeners=t,n}(e.elm,r),i(n=e.componentInstance)&&i(n=n._vnode)&&i(n.data)&&x(n,t),n=0;n<a.remove.length;++n)a.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,a){for(var r=n;r<a;r++){var o=t[r];if(i(o)&&da(e,o))return r}}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<a.update.length;++m)a.update[m](e,t);i(m=f.hook)&&i(m=m.update)&&m(e,t)}r(t.text)?i(_)&&i(v)?_!==v&&function(e,t,n,a,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;)r(h)?h=t[++p]:r(_)?_=t[--f]:da(h,g)?(D(h,g,a,n,m),h=t[++p],g=n[++m]):da(_,b)?(D(_,b,a,n,v),_=t[--f],b=n[--v]):da(h,b)?(D(h,b,a,n,v),x&&c.insertBefore(e,h.elm,c.nextSibling(_.elm)),h=t[++p],b=n[--v]):da(_,g)?(D(_,g,a,n,m),x&&c.insertBefore(e,_.elm,h.elm),_=t[--f],g=n[++m]):(r(s)&&(s=pa(t,p,f)),r(l=i(g.key)?s[g.key]:k(g,t,p,f))?d(g,a,e,h.elm,!1,n,m):da(u=t[l],g)?(D(u,g,a,n,m),t[l]=void 0,x&&c.insertBefore(e,u.elm,h.elm)):d(g,a,e,h.elm,!1,n,m),g=n[++m]);p>f?y(e,r(n[v+1])?null:n[v+1].elm,n,m,v,a):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 a=0;a<t.length;++a)t[a].data.hook.insert(t[a])}var S=_("attrs,class,staticClass,staticStyle,key");function C(e,t,n,a){var r,s=t.tag,l=t.data,c=t.children;if(a=a||l&&l.pre,t.elm=e,o(t.isComment)&&i(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(i(l)&&(i(r=l.hook)&&i(r=r.init)&&r(t,!0),i(r=t.componentInstance)))return p(t,n),!0;if(i(s)){if(i(c))if(e.hasChildNodes())if(i(r=l)&&i(r=r.domProps)&&i(r=r.innerHTML)){if(r!==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,a)){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(!r(t)){var l,u=!1,p=[];if(r(e))u=!0,d(t,p);else{var m=i(e.nodeType);if(!m&&da(e,t))D(e,t,p,null,null,s);else{if(m){if(1===e.nodeType&&e.hasAttribute(N)&&(e.removeAttribute(N),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<a.destroy.length;++y)a.destroy[y](v);if(v.elm=t.elm,g){for(var x=0;x<a.create.length;++x)a.create[x](ca,v);var k=v.data.hook.insert;if(k.merged)for(var S=1;S<k.fns.length;S++)k.fns[S]()}else la(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:oa,modules:[ka,Ea,lr,dr,xr,K?{create:Kr,activate:Kr,remove:function(e,t){!0!==e.data.show?Vr(e,t):t()}}:{}].concat(ya)});Q&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ai(e,"input")}));var Gr={inserted:function(e,t,n,a){"select"===n.tag?(a.elm&&!a.elm._vOptions?dt(n,"postpatch",(function(){Gr.componentUpdated(e,t,n)})):Jr(e,t,n.context),e._vOptions=[].map.call(e.options,ei)):("textarea"===n.tag||ra(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){Jr(e,t,n.context);var a=e._vOptions,r=e._vOptions=[].map.call(e.options,ei);if(r.some((function(e,t){return!$(e,a[t])})))(e.multiple?t.value.some((function(e){return Qr(e,r)})):t.value!==t.oldValue&&Qr(t.value,r))&&ai(e,"change")}}};function Jr(e,t,n){Xr(e,t,n),(X||ee)&&setTimeout((function(){Xr(e,t,n)}),0)}function Xr(e,t,n){var a=t.value,r=e.multiple;if(!r||Array.isArray(a)){for(var i,o,s=0,l=e.options.length;s<l;s++)if(o=e.options[s],r)i=Y(a,ei(o))>-1,o.selected!==i&&(o.selected=i);else if($(ei(o),a))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}}function Qr(e,t){return t.every((function(t){return!$(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,ai(e.target,"input"))}function ai(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ri(e){return!e.componentInstance||e.data&&e.data.transition?e:ri(e.componentInstance._vnode)}var ii={model:Gr,show:{bind:function(e,t,n){var a=t.value,r=(n=ri(n)).data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;a&&r?(n.data.show=!0,qr(n,(function(){e.style.display=i}))):e.style.display=a?i:"none"},update:function(e,t,n){var a=t.value;!a!=!t.oldValue&&((n=ri(n)).data&&n.data.transition?(n.data.show=!0,a?qr(n,(function(){e.style.display=e.__vOriginalDisplay})):Vr(n,(function(){e.style.display="none"}))):e.style.display=a?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,a,r){r||(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 a in n.propsData)t[a]=e[a];var r=n._parentListeners;for(var i in r)t[D(i)]=r[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 a=this.mode;0;var r=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;var i=si(r);if(!i)return r;if(this._leaving)return ci(e,r);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"===a)return this._leaving=!0,dt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ci(e,r);if("in-out"===a){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 r}}},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,a=t.left-n.left,r=t.top-n.top;if(a||r){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+a+"px,"+r+"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,a){var r=nn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,a)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),a=this.prevChildren=this.children,r=this.$slots.default||[],i=this.children=[],o=li(this),s=0;s<r.length;s++){var l=r[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(a){for(var c=[],u=[],d=0;d<a.length;d++){var p=a[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,a=n.style;zr(n,t),a.transform=a.WebkitTransform=a.transitionDuration="",n.addEventListener(jr,n._moveCb=function e(a){a&&a.target!==n||a&&!/transform$/.test(a.propertyName)||(n.removeEventListener(jr,e),n._moveCb=null,Nr(n,t))})}})))},methods:{hasMove:function(e,t){if(!Lr)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Mr(n,e)})),Dr(n,t),n.style.display="none",this.$el.appendChild(n);var a=Hr(n);return this.$el.removeChild(n),this._hasMove=a.hasTransform}}}};On.config.mustUseProp=Fn,On.config.isReservedTag=ta,On.config.isReservedAttr=Nn,On.config.getTagNamespace=na,On.config.isUnknownElement=function(e){if(!K)return!0;if(ta(e))return!1;if(e=e.toLowerCase(),null!=aa[e])return aa[e];var t=document.createElement(e);return e.indexOf("-")>-1?aa[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:aa[e]=/HTMLUnknownElement/.test(t.toString())},O(On.options.directives,ii),O(On.options.components,vi),On.prototype.__patch__=K?Zr:j,On.prototype.$mount=function(e,t){return function(e,t,n){var a;return e.$el=t,e.$options.render||(e.$options.render=ye),sn(e,"beforeMount"),a=function(){e._update(e._render(),n)},new yn(e,a,j,{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?ia(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=qa(e,"class");n&&(e.staticClass=JSON.stringify(n));var a=Ba(e,"class",!1);a&&(e.classBinding=a)},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=qa(e,"style");n&&(e.staticStyle=JSON.stringify(pr(n)));var a=Ba(e,"style",!1);a&&(e.styleBinding=a)},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+")",ji=new RegExp("^<"+Ei),Ai=/^\s*(\/?)>/,Pi=new RegExp("^<\\/"+Ei+"[^>]*>"),$i=/^<!DOCTYPE [^>]+>/i,Yi=/^<!\--/,zi=/^<!\[/,Ni=_("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]*)/,ao=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,ro=/^\(|\)$/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||$a,Ji=t.isPreTag||A,Xi=t.mustUseProp||A,Qi=t.getTagNamespace||A;var n=t.isReservedTag||A;(function(e){return!!e.component||!n(e.tag)}),Ki=Ya(t.modules,"transformNode"),Zi=Ya(t.modules,"preTransformNode"),Gi=Ya(t.modules,"postTransformNode"),Ui=t.delimiters;var a,r,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===a||a.if&&(e.elseif||e.else)&&yo(a,{exp:e.elseif,block:e}),r&&!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()}}(r.children))&&s.if&&yo(s,{exp:o.elseif,block:o});else{if(e.slotScope){var n=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=e}r.children.push(e),e.parent=r}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,a,r=[],i=t.expectHTML,o=t.isUnaryTag||A,s=t.canBeLeftOpenTag||A,l=0;e;){if(n=e,a&&Ni(a)){var c=0,u=a.toLowerCase(),d=Ii[u]||(Ii[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),p=e.replace(d,(function(e,n,a){return c=a.length,Ni(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(zi.test(e)){var h=e.indexOf("]>");if(h>=0){k(h+2);continue}}var _=e.match($i);if(_){k(_[0].length);continue}var v=e.match(Pi);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);!(Pi.test(w)||ji.test(w)||Yi.test(w)||zi.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(ji);if(t){var n,a,r={tagName:t[1],attrs:[],start:l};for(k(t[0].length);!(n=e.match(Ai))&&(a=e.match(Ti)||e.match(Li));)a.start=l,k(a[0].length),a.end=l,r.attrs.push(a);if(n)return r.unarySlash=n[1],k(n[0].length),r.end=l,r}}function M(e){var n=e.tagName,l=e.unarySlash;i&&("p"===a&&Ci(n)&&S(a),s(n)&&a===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||(r.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),a=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=r.length-1;o>=0&&r[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=r.length-1;c>=o;c--)t.end&&t.end(r[c].tag,n,i);r.length=o,a=o&&r[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=r&&r.ns||Qi(e);X&&"svg"===p&&(n=function(e){for(var t=[],n=0;n<e.length;n++){var a=e[n];ko.test(a.name)||(a.name=a.name.replace(Do,""),t.push(a))}return t}(n));var m,f=ho(e,n,r);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!=qa(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 a=e.attrs=new Array(n),r=0;r<n;r++)a[r]={name:t[r].name,value:JSON.stringify(t[r].value)},null!=t[r].start&&(a[r].start=t[r].start,a[r].end=t[r].end);else e.pre||(e.plain=!0)}(f):f.processed||(go(f),function(e){var t=qa(e,"v-if");if(t)e.if=t,yo(e,{exp:t,block:e});else{null!=qa(e,"v-else")&&(e.else=!0);var n=qa(e,"v-else-if");n&&(e.elseif=n)}}(f),function(e){null!=qa(e,"v-once")&&(e.once=!0)}(f)),a||(a=f),o?u(f):(r=f,i.push(f))},end:function(e,t,n){var a=i[i.length-1];i.length-=1,r=i[i.length-1],u(a)},chars:function(e,t,n){if(r&&(!X||"textarea"!==r.tag||r.attrsMap.placeholder!==e)){var a,i,u,d=r.children;if(e=c||e.trim()?"script"===(a=r).tag||"style"===a.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 a,r,i,o=[],s=[],l=n.lastIndex=0;a=n.exec(e);){(r=a.index)>l&&(s.push(i=e.slice(l,r)),o.push(JSON.stringify(i)));var c=Aa(a[1].trim());o.push("_s("+c+")"),s.push({"@binding":c}),l=r+a[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(r){var a={type:3,text:e,isComment:!0};0,r.children.push(a)}}}),a}function vo(e,t){var n;!function(e){var t=Ba(e,"key");if(t){e.key=t}}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Ba(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=qa(e,"scope"),e.slotScope=t||qa(e,"slot-scope")):(t=qa(e,"slot-scope"))&&(e.slotScope=t);var n=Ba(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Na(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 a=Va(e,co);if(a){0;var r=bo(a),i=r.name,o=r.dynamic;e.slotTarget=i,e.slotTargetDynamic=o,e.slotScope=a.value||fo}}else{var s=Va(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=Ba(n,"name")),function(e){var t;(t=Ba(e,"is"))&&(e.component=t);null!=qa(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var a=0;a<Ki.length;a++)e=Ki[a](e,t)||e;return function(e){var t,n,a,r,i,o,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++){if(a=r=c[t].name,i=c[t].value,to.test(a))if(e.hasBindings=!0,(o=wo(a.replace(to,"")))&&(a=a.replace(lo,"")),so.test(a))a=a.replace(so,""),i=Aa(i),(l=io.test(a))&&(a=a.slice(1,-1)),o&&(o.prop&&!l&&"innerHtml"===(a=D(a))&&(a="innerHTML"),o.camel&&!l&&(a=D(a)),o.sync&&(s=Ka(i,"$event"),l?Ra(e,'"update:"+('+a+")",s,null,!1,0,c[t],!0):(Ra(e,"update:"+D(a),s,null,!1,0,c[t]),C(a)!==D(a)&&Ra(e,"update:"+C(a),s,null,!1,0,c[t])))),o&&o.prop||!e.component&&Xi(e.tag,e.attrsMap.type,a)?za(e,a,i,c[t],l):Na(e,a,i,c[t],l);else if(eo.test(a))a=a.replace(eo,""),(l=io.test(a))&&(a=a.slice(1,-1)),Ra(e,a,i,o,!1,0,c[t],l);else{var u=(a=a.replace(to,"")).match(oo),d=u&&u[1];l=!1,d&&(a=a.slice(0,-(d.length+1)),io.test(d)&&(d=d.slice(1,-1),l=!0)),Fa(e,a,r,i,d,l,o,c[t])}else Na(e,a,JSON.stringify(i),c[t]),!e.component&&"muted"===a&&Xi(e.tag,e.attrsMap.type,a)&&za(e,a,"true",c[t])}}(e),e}function go(e){var t;if(t=qa(e,"v-for")){var n=function(e){var t=e.match(no);if(!t)return;var n={};n.for=t[2].trim();var a=t[1].trim().replace(ro,""),r=a.match(ao);r?(n.alias=a.replace(ao,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=a;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,a=e.length;n<a;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,a=e.attrsMap;if(!a["v-model"])return;if((a[":type"]||a["v-bind:type"])&&(n=Ba(e,"type")),a.type||n||!a["v-bind"]||(n="("+a["v-bind"]+").type"),n){var r=qa(e,"v-if",!0),i=r?"&&("+r+")":"",o=null!=qa(e,"v-else",!0),s=qa(e,"v-else-if",!0),l=Mo(e);go(l),Ia(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);qa(c,"v-for",!0),Ia(c,"type","radio"),vo(c,t),yo(l,{exp:"("+n+")==='radio'"+i,block:c});var u=Mo(e);return qa(u,"v-for",!0),Ia(u,":type",n),vo(u,t),yo(l,{exp:r,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 a=t.value,r=t.modifiers,i=e.tag,o=e.attrsMap.type;if(e.component)return Ua(e,a,r),!1;if("select"===i)!function(e,t,n){var a='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")+"});";a=a+" "+Ka(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Ra(e,"change",a,null,!0)}(e,a,r);else if("input"===i&&"checkbox"===o)!function(e,t,n){var a=n&&n.number,r=Ba(e,"value")||"null",i=Ba(e,"true-value")||"true",o=Ba(e,"false-value")||"false";za(e,"checked","Array.isArray("+t+")?_i("+t+","+r+")>-1"+("true"===i?":("+t+")":":_q("+t+","+i+")")),Ra(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+o+");if(Array.isArray($$a)){var $$v="+(a?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Ka(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Ka(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Ka(t,"$$c")+"}",null,!0)}(e,a,r);else if("input"===i&&"radio"===o)!function(e,t,n){var a=n&&n.number,r=Ba(e,"value")||"null";za(e,"checked","_q("+t+","+(r=a?"_n("+r+")":r)+")"),Ra(e,"change",Ka(t,r),null,!0)}(e,a,r);else if("input"===i||"textarea"===i)!function(e,t,n){var a=e.attrsMap.type;0;var r=n||{},i=r.lazy,o=r.number,s=r.trim,l=!i&&"range"!==a,c=i?"change":"range"===a?tr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()");o&&(u="_n("+u+")");var d=Ka(t,u);l&&(d="if($event.target.composing)return;"+d);za(e,"value","("+t+")"),Ra(e,c,d,null,!0),(s||o)&&Ra(e,"blur","$forceUpdate()")}(e,a,r);else{if(!H.isReservedTag(i))return Ua(e,a,r),!1}return!0},text:function(e,t){t.value&&za(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&za(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:Mi,mustUseProp:Fn,canBeLeftOpenTag:Si,isReservedTag:ta,getTagNamespace:na,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||A,jo(e),Ao(e,!1))}function jo(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 a=e.children[t];jo(a),a.static||(e.static=!1)}if(e.ifConditions)for(var r=1,i=e.ifConditions.length;r<i;r++){var o=e.ifConditions[r].block;jo(o),o.static||(e.static=!1)}}}function Ao(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,a=e.children.length;n<a;n++)Ao(e.children[n],t||!!e.for);if(e.ifConditions)for(var r=1,i=e.ifConditions.length;r<i;r++)Ao(e.ifConditions[r].block,t)}}var Po=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,$o=/\([^)]*?\);*$/,Yo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,zo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},No={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:",a="",r="";for(var i in e){var o=Ro(e[i]);e[i]&&e[i].dynamic?r+=i+","+o+",":a+='"'+i+'":'+o+","}return a="{"+a.slice(0,-1)+"}",r?n+"_d("+a+",["+r.slice(0,-1)+"])":n+a}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=Po.test(e.value),a=Yo.test(e.value.replace($o,""));if(e.modifiers){var r="",i="",o=[];for(var s in e.modifiers)if(Fo[s])i+=Fo[s],zo[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&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Bo).join("&&")+")return null;"}(o)),i&&(r+=i),"function($event){"+r+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":a?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(a?"return "+e.value:e.value)+"}"}function Bo(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=zo[e],a=No[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(a)+")"}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:j},Vo=function(e){this.options=e,this.warn=e.warn||$a,this.transforms=Ya(e.modules,"transformCode"),this.dataGenFns=Ya(e.modules,"genData"),this.directives=O(O({},qo),e.directives);var t=e.isReservedTag||A;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"',a=ns(e,t),r="_t("+n+(a?","+a:""),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||a||(r+=",null");i&&(r+=","+i);o&&(r+=(i?"":",null")+","+o);return r+")"}(e,t);var n;if(e.component)n=function(e,t,n){var a=t.inlineTemplate?null:ns(t,n,!0);return"_c("+e+","+Qo(t,n)+(a?","+a:"")+")"}(e.component,e,t);else{var a;(!e.plain||e.pre&&t.maybeComponent(e))&&(a=Qo(e,t));var r=e.inlineTemplate?null:ns(e,t,!0);n="_c('"+e.tag+"'"+(a?","+a:"")+(r?","+r:"")+")"}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="",a=e.parent;a;){if(a.for){n=a.key;break}a=a.parent}return n?"_o("+Uo(e,t)+","+t.onceId+++","+n+")":Uo(e,t)}return Ko(e,t)}function Go(e,t,n,a){return e.ifProcessed=!0,Jo(e.ifConditions.slice(),t,n,a)}function Jo(e,t,n,a){if(!e.length)return a||"_e()";var r=e.shift();return r.exp?"("+r.exp+")?"+i(r.block)+":"+Jo(e,t,n,a):""+i(r.block);function i(e){return n?n(e,t):e.once?Zo(e,t):Uo(e,t)}}function Xo(e,t,n,a){var r=e.for,i=e.alias,o=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(a||"_l")+"(("+r+"),function("+i+o+s+"){return "+(n||Uo)(e,t)+"})"}function Qo(e,t){var n="{",a=function(e,t){var n=e.directives;if(!n)return;var a,r,i,o,s="directives:[",l=!1;for(a=0,r=n.length;a<r;a++){i=n[a],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);a&&(n+=a+","),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 r=0;r<t.dataGenFns.length;r++)n+=t.dataGenFns[r](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 a=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||es(n)})),r=!!e.if;if(!a)for(var i=e.parent;i;){if(i.slotScope&&i.slotScope!==fo||i.for){a=!0;break}i.if&&(r=!0),i=i.parent}var o=Object.keys(t).map((function(e){return ts(t[e],n)})).join(",");return"scopedSlots:_u(["+o+"]"+(a?",null,true":"")+(!a&&r?",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 a=Wo(n,t.options);return"inlineTemplate:{render:function(){"+a.render+"},staticRenderFns:["+a.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 a=e.slotScope===fo?"":String(e.slotScope),r="function("+a+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(ns(e,t)||"undefined")+":undefined":ns(e,t)||"undefined":Uo(e,t))+"}",i=a?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+r+i+"}"}function ns(e,t,n,a,r){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""+(a||Uo)(o,t)+s}var l=n?function(e,t){for(var n=0,a=0;a<e.length;a++){var r=e[a];if(1===r.type){if(as(r)||r.ifConditions&&r.ifConditions.some((function(e){return as(e.block)}))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}(i,t.maybeComponent):0,c=r||rs;return"["+i.map((function(e){return c(e,t)})).join(",")+"]"+(l?","+l:"")}}function as(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function rs(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="",a=0;a<e.length;a++){var r=e[a],i=os(r.value);r.dynamic?n+=r.name+","+i+",":t+='"'+r.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}),j}}function ls(e){var t=Object.create(null);return function(n,a,r){(a=O({},a)).warn;delete a.warn;var i=a.delimiters?String(a.delimiters)+n:n;if(t[i])return t[i];var o=e(n,a);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 a=Wo(n,t);return{ast:n,render:a.render,staticRenderFns:a.staticRenderFns}},function(e){function t(t,n){var a=Object.create(e),r=[],i=[];if(n)for(var o in n.modules&&(a.modules=(e.modules||[]).concat(n.modules)),n.directives&&(a.directives=O(Object.create(e.directives||null),n.directives)),n)"modules"!==o&&"directives"!==o&&(a[o]=n[o]);a.warn=function(e,t,n){(n?i:r).push(e)};var s=cs(t.trim(),a);return s.errors=r,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=ia(e);return t&&t.innerHTML})),vs=On.prototype.$mount;On.prototype.$mount=function(e,t){if((e=e&&ia(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var a=n.template;if(a)if("string"==typeof a)"#"===a.charAt(0)&&(a=_s(a));else{if(!a.nodeType)return this;a=a.innerHTML}else e&&(a=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(a){0;var r=ps(a,{outputSourceRange:!1,shouldDecodeNewlines:fs,shouldDecodeNewlinesForHref:hs,delimiters:n.delimiters,comments:n.comments},this),i=r.render,o=r.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 a;"undefined"!=typeof self&&self,a=function(e){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(a,r,function(t){return e[t]}.bind(null,r));return a},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 a=n("2d00"),r=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),a||"function"==typeof x[d]||o(x,d,h)),M&&L&&L.name!==f&&(S=!0,T=function(){return L.call(this)}),a&&!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 r(r.P+r.F*(p||S),t,b);return b}},"02f4":function(e,t,n){var a=n("4588"),r=n("be13");e.exports=function(e){return function(t,n){var i,o,s=String(r(t)),l=a(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 a=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?a(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var a=n("cb7c");e.exports=function(){var e=a(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 a=n("ce10"),r=n("e11e");e.exports=Object.keys||function(e){return a(e,r)}},1495:function(e,t,n){var a=n("86cc"),r=n("cb7c"),i=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){r(e);for(var n,o=i(t),s=o.length,l=0;s>l;)a.f(e,n=o[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var a=n("2aba"),r=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,a,r){return t.exec===l?m&&!r?{done:!0,value:h.call(t,n,a)}:{done:!0,value:e.call(n,t,a)}:{done:!1}})),v=_[0],g=_[1];a(String.prototype,e,v),r(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 a=n("d3f4"),r=n("7726").document,i=a(r)&&a(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},"23c6":function(e,t,n){var a=n("2d95"),r=n("2b4c")("toStringTag"),i="Arguments"==a(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),r))?n:i?a(t):"Object"==(o=a(t))&&"function"==typeof t.callee?"Arguments":o}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var a=n("7726"),r=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")||r(n,"name",t)),e[t]!==n&&(l&&(i(n,o)||r(n,o,e[t]?""+e[t]:c.join(String(t)))),e===a?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2aeb":function(e,t,n){var a=n("cb7c"),r=n("1495"),i=n("e11e"),o=n("613b")("IE_PROTO"),s=function(){},l=function(){var e,t=n("230e")("iframe"),a=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;a--;)delete l.prototype[i[a]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=a(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:r(n,t)}},"2b4c":function(e,t,n){var a=n("5537")("wks"),r=n("ca5a"),i=n("7726").Symbol,o="function"==typeof i;(e.exports=function(e){return a[e]||(a[e]=o&&i[e]||(o?i:r)("Symbol."+e))}).store=a},"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 a=n("5ca1"),r=n("d2c8"),i="includes";a(a.P+a.F*n("5147")(i),"String",{includes:function(e){return!!~r(this,e,i).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var a=n("86cc"),r=n("4630");e.exports=n("9e1e")?function(e,t,n){return a.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var a=n("69a8"),r=n("4bf8"),i=n("613b")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),a(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 a=n("2aeb"),r=n("4630"),i=n("7f20"),o={};n("32e9")(o,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=a(o,{next:r(1,n)}),i(e,t+" Iterator")}},"456d":function(e,t,n){var a=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(e){return r(a(e))}}))},4588:function(e,t){var n=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a: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 a=n("be13");e.exports=function(e){return Object(a(e))}},5147:function(e,t,n){var a=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[a]=!1,!"/./"[e](t)}catch(e){}}return!0}},"520a":function(e,t,n){"use strict";var a,r,i=n("0bfb"),o=RegExp.prototype.exec,s=String.prototype.replace,l=o,c=(a=/a/,r=/b*/g,o.call(a,"a"),o.call(r,"a"),0!==a.lastIndex||0!==r.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(e){var t,n,a,r,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),c&&(t=l.lastIndex),a=o.call(l,e),c&&a&&(l.lastIndex=l.global?a.index+a[0].length:t),u&&a&&a.length>1&&s.call(a[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(a[r]=void 0)})),a}),e.exports=l},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var a=n("8378"),r=n("7726"),i="__core-js_shared__",o=r[i]||(r[i]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:a.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var a=n("7726"),r=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?a:h?a[t]||(a[t]={}):(a[t]||{}).prototype,y=f?r:r[t]||(r[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,a):_&&"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)};a.core=r,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 a=n("5ca1"),r=n("8378"),i=n("79e5");e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],o={};o[e]=t(n),a(a.S+a.F*i((function(){n(1)})),"Object",o)}},"5f1b":function(e,t,n){"use strict";var a=n("23c6"),r=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"!==a(e))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"613b":function(e,t,n){var a=n("5537")("keys"),r=n("ca5a");e.exports=function(e){return a[e]||(a[e]=r(e))}},"626a":function(e,t,n){var a=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var a=n("5ca1"),r=n("c366")(!0);a(a.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var a=n("626a"),r=n("be13");e.exports=function(e){return a(r(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var a=n("d3f4");e.exports=function(e,t){if(!a(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!a(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var a=n("0d58"),r=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(),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=a}))?function(e,t){for(var n=o(e),l=arguments.length,c=1,u=r.f,d=i.f;l>c;)for(var p,m=s(arguments[c++]),f=u?a(m).concat(u(m)):a(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 a=n("4588"),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=a(e))<0?r(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 a=n("86cc").f,r=n("69a8"),i=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&a(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 a=n("cb7c"),r=n("c69a"),i=n("6a99"),o=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(a(e),t=i(t,!0),a(n),r)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 a=n("d8e8");e.exports=function(e,t,n){if(a(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,a){return e.call(t,n,a)};case 3:return function(n,a,r){return e.call(t,n,a,r)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var a=n("2b4c")("unscopables"),r=Array.prototype;null==r[a]&&n("32e9")(r,a,{}),e.exports=function(e){r[a][e]=!0}},"9def":function(e,t,n){var a=n("4588"),r=Math.min;e.exports=function(e){return e>0?r(a(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 a=n("cb7c"),r=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(a,r){var i=e(this),o=null==a?void 0:a[t];return void 0!==o?o.call(a,i,r):n.call(String(i),a,r)},function(e,t){var r=f(n,e,this,t);if(r.done)return r.value;var d=a(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,a,i,o,s){var l=a+e.length,c=i.length,u=m;return void 0!==o&&(o=r(o),u=p),n.call(s,u,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,a);case"'":return t.slice(l);case"<":s=o[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var p=d(u/10);return 0===p?n:p<=c?void 0===i[p-1]?r.charAt(1):i[p-1]+r.charAt(1):n}s=i[u-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var a=n("d3f4"),r=n("2d95"),i=n("2b4c")("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==r(e))}},ac6a:function(e,t,n){for(var a=n("cadf"),r=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=r(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 a)b[_]||i(b,_,a[_],!0)}},b0c5:function(e,t,n){"use strict";var a=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},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 a=n("6821"),r=n("9def"),i=n("77f1");e.exports=function(e){return function(t,n,o){var s,l=a(t),c=r(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 a,r,i="undefined"!=typeof window?window.console:e.console,o=/-(\w)/g,s=(a=function(e){return e.replace(o,(function(e,t){return t?t.toUpperCase():""}))},r=Object.create(null),function(e){return r[e]||(r[e]=a(e))});function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var a=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,a)}}).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,a=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+a).toString(36))}},cadf:function(e,t,n){"use strict";var a=n("9c6c"),r=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,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},cb7c:function(e,t,n){var a=n("d3f4");e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var a=n("69a8"),r=n("6821"),i=n("c366")(!1),o=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)n!=o&&a(s,n)&&c.push(n);for(;t.length>l;)a(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var a=n("aae3"),r=n("be13");e.exports=function(e,t,n){if(a(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(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 a=n("5ca1"),r=n("9def"),i=n("d2c8"),o="startsWith",s="".startsWith;a(a.P+a.F*n("5147")(o),"String",{startsWith:function(e){var t=i(this,e,o),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),a=String(e);return s?s.call(t,a,n):t.slice(n,n+a.length)===a}})},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(a){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(a.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 a=n("5ca1");a(a.S+a.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 a=n("7726").document;e.exports=a&&a.documentElement},fb15:function(e,t,n){"use strict";var a;function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function i(e,t){if(e){if("string"==typeof e)return r(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)?r(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=[],a=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==s.return||s.return()}finally{if(r)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 r(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"),(a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=a[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 a=0,r=0,i=f(t,n,"header");i&&(a=i.length,e=e?[].concat(s(i),s(e)):s(i));var o=f(t,n,"footer");return o&&(r=o.length,e=e?[].concat(s(e),s(o)):s(o)),{children:e,headerOffset:a,footerOffset:r}}(t,this.$slots,this.$scopedSlots),a=n.children,r=n.headerOffset,i=n.footerOffset;this.headerOffset=r,this.footerOffset=i;var l=function(e,t){var n=null,a=function(e,t){n=function(e,t,n){return void 0===n||((e=e||{})[t]=n),e}(n,e,t)};if(a("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 r=t.on,i=t.props,o=t.attrs;return a("on",r),a("props",i),Object.assign(n.attrs,o),n}(this.$attrs,this.componentData);return e(this.getTag(),l,a)},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}),{}),a=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in a)&&(a.draggable=">*"),this._sortable=new c.a(this.rootContainer,a),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,a){if(!e)return[];var r=e.map((function(e){return e.elm})),i=t.length-a,o=s(t).map((function(e,t){return t>=i?r.length:r.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,a=this.getUnderlyingPotencialDraggableComponent(t);if(!a)return{component:a};var r=a.realList,i={list:r,component:a};if(t!==n&&r&&a.getUnderlyingVm){var o=a.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 a={element:t,newIndex:n};this.emitChanges({added:a})}},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 a={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:a})},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})),a=n.indexOf(t.related),r=e.component.getVmIndex(a);return-1===n.indexOf(g)&&t.willInsertAfter?r+1:r},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var a=this.getRelatedContextFromMoveEvent(e),r=this.context,i=this.computeFutureIndex(a,e);return Object.assign(r,{futureIndex:i}),n(Object.assign({},e,{relatedContext:a,draggedContext:r}),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=a(n(1474))},8620:(e,t,n)=>{"use strict";var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r=n(2584),i=n(8413),o=function(){return null},s=function(e,t,n){return e.reduce((function(e,a){return e[n?n(a):a]=t(a),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,a){if("function"==typeof n)return n.call(e,t,a);n=Array.isArray(n)?n:n.split(".");for(var r=0;r<n.length;r++){if(!t||"object"!=typeof t)return a;t=t[n[r]]}return void 0===t?a: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 a({},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 a=e[n].$flattenParams(),r=0;r<a.length;r++)a[r].path.unshift(n);t=t.concat(a)}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,r.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,r.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 a,r=this.rule.call(this.rootModel,n,t),o=c(a=r)&&l(a.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,r):r,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:a({},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:a({},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]}}})),r=s(h,(function(t){return{enumerable:!1,configurable:!0,get:function(){return e[t]}}}));return Object.defineProperties({},a({},t,n,r))},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=a({},t);delete i.$trackBy;var o={};return this.keys.map((function(t){var a=e.tracker(t);return o.hasOwnProperty(a)?null:(o[a]=!0,(0,r.h)(p,a,{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,r.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 a=e.rootModel,i=s(n,(function(e){return function(){return u(a,a.$v,e)}}),(function(e){return Array.isArray(e)?e.join("."):e}));return(0,r.h)(v,t,{validations:i,lazyParentModel:o,prop:t,lazyModel:o,rootModel:a})}return(0,r.h)(p,t,{validations:n,lazyParentModel:e.getModel,prop:t,lazyModel:e.getModelKey,rootModel:e.rootModel})},b=function(e,t){return(0,r.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),a=v(n),i=a.Validation;return new(0,a.VBase)({computed:{children:function(){var n="function"==typeof t?t.call(e):t;return[(0,r.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 a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e};t.pushParams=i,t.popParams=o,t.withParams=function(e,t){if("object"==typeof e&&void 0!==t)return n=e,a=t,l((function(e){return function(){e(n);for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return a.apply(this,r)}}));var n,a;return l(e)};var a=[],r=t.target=null;t._setTarget=function(e){t.target=r=e};function i(){null!==r&&a.push(r),t.target=r={}}function o(){var e=r,n=t.target=r=a.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=r=n({},r,e)}function l(e){var t=e(s);return function(){i();try{for(var e=arguments.length,n=Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.apply(this,n)}finally{o()}}}},6408:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=(0,a.regex)("alpha",/^[a-zA-Z]*$/)},6195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=(0,a.regex)("alphaNum",/^[a-zA-Z0-9]*$/)},5573:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.withParams)({type:"and"},(function(){for(var e=this,n=arguments.length,a=Array(n),r=0;r<n;r++)a[r]=arguments[r];return t.length>0&&t.reduce((function(t,n){return t&&n.apply(e,a)}),!0)}))}},7884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=function(e,t){return(0,a.withParams)({type:"between",min:e,max:t},(function(n){return!(0,a.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 a,r=n(8085),i=(a=r)&&a.__esModule?a:{default:a};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 a=n(6681);t.default=(0,a.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 a=w(n(6408)),r=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=a.default,t.alphaNum=r.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 a=n(6681);t.default=(0,a.withParams)({type:"ipAddress"},(function(e){if(!(0,a.req)(e))return!0;if("string"!=typeof e)return!1;var t=e.split(".");return 4===t.length&&t.every(r)}));var r=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 a=n(6681);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":";return(0,a.withParams)({type:"macAddress"},(function(t){if(!(0,a.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(r)}))};var r=function(e){return e.toLowerCase().match(/^[0-9a-f]{2}$/)}},5287:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=function(e){return(0,a.withParams)({type:"maxLength",max:e},(function(t){return!(0,a.req)(t)||(0,a.len)(t)<=e}))}},301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=function(e){return(0,a.withParams)({type:"maxValue",max:e},(function(t){return!(0,a.req)(t)||(!/\s/.test(t)||t instanceof Date)&&+t<=+e}))}},3091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=function(e){return(0,a.withParams)({type:"minLength",min:e},(function(t){return!(0,a.req)(t)||(0,a.len)(t)>=e}))}},2628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=function(e){return(0,a.withParams)({type:"minValue",min:e},(function(t){return!(0,a.req)(t)||(!/\s/.test(t)||t instanceof Date)&&+t>=+e}))}},5669:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=(0,a.regex)("numeric",/^[0-9]*$/)},5832:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.withParams)({type:"or"},(function(){for(var e=this,n=arguments.length,a=Array(n),r=0;r<n;r++)a[r]=arguments[r];return t.length>0&&t.reduce((function(t,n){return t||n.apply(e,a)}),!1)}))}},2419:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=(0,a.withParams)({type:"required"},a.req)},2941:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=function(e){return(0,a.withParams)({type:"requiredIf",prop:e},(function(t,n){return!(0,a.ref)(e,this,n)||(0,a.req)(t)}))}},8300:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=function(e){return(0,a.withParams)({type:"requiredUnless",prop:e},(function(t,n){return!!(0,a.ref)(e,this,n)||(0,a.req)(t)}))}},918:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=function(e){return(0,a.withParams)({type:"sameAs",eq:e},(function(t,n){return t===(0,a.ref)(e,this,n)}))}},3213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(6681);t.default=(0,a.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 a(e){return null!=e}function r(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 r=void 0,i=void 0,o={};for(r=t;r<=n;++r)a(i=e[r].key)&&(o[i]=r);return o}function s(e,t,n){for(;t<=n;++t)i(e[t])}function l(e,t,n){for(;t<=n;++t){var r=e[t];a(r)&&(r.vm.$destroy(),r.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){a(e)&&a(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]:r(m,_)?(c(m,_),m=e[++u],_=t[++d]):r(f,v)?(c(f,v),f=e[--p],v=t[--h]):r(m,v)?(c(m,v),m=e[++u],v=t[--h]):r(f,_)?(c(f,_),f=e[--p],_=t[++d]):(n(g)&&(g=o(e,u,p)),n(y=a(_.key)?g[_.key]:null)?(i(_),_=t[++d]):r(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):a(t)?s(t,0,t.length-1):a(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 a=n(8413).withParams;t.default=a},7968:(e,t,n)=>{"use strict";var a=("undefined"!=typeof window?window:void 0!==n.g?n.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,a=(n=function(t){return t.original===e},t.filter(n)[0]);if(a)return a.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=r(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 a in n.modules){if(!t.getChild(a))return void 0;u(e.concat(a),t.getChild(a),n.modules[a])}}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 a=this;void 0===n&&(n=!0);var r=new s(t,n);0===e.length?this.root=r:this.get(e.slice(0,-1)).addChild(e[e.length-1],r);t.modules&&i(t.modules,(function(t,r){a.register(e.concat(r),t,n)}))},c.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],a=t.getChild(n);a&&a.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 r=e.strict;void 0===r&&(r=!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=r;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){a&&(e._devtoolHook=a,a.emit("vuex:init",e),a.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){a.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){a.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 a=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};i(r,(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),a&&(n&&e._withCommit((function(){a._data.$$state=null})),d.nextTick((function(){return a.$destroy()})))}function v(e,t,n,a,r){var i=!n.length,o=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=a),!i&&!r){var s=g(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){d.set(s,l,a.state)}))}var c=a.context=function(e,t,n){var a=""===t,r={dispatch:a?e.dispatch:function(n,a,r){var i=y(n,a,r),o=i.payload,s=i.options,l=i.type;return s&&s.root||(l=t+l),e.dispatch(l,o)},commit:a?e.commit:function(n,a,r){var i=y(n,a,r),o=i.payload,s=i.options,l=i.type;s&&s.root||(l=t+l),e.commit(l,o,s)}};return Object.defineProperties(r,{getters:{get:a?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,a)===t){var i=r.slice(a);Object.defineProperty(n,i,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return g(e.state,n)}}}),r}(e,o,n);a.forEachMutation((function(t,n){!function(e,t,n,a){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,a.state,t)}))}(e,o+n,t,c)})),a.forEachAction((function(t,n){var a=t.root?n:o+n,r=t.handler||t;!function(e,t,n,a){(e._actions[t]||(e._actions[t]=[])).push((function(t){var r,i=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},t);return(r=i)&&"function"==typeof r.then||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}(e,a,r,c)})),a.forEachGetter((function(t,n){!function(e,t,n,a){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(a.state,a.getters,e.state,e.getters)}}(e,o+n,t,c)})),a.forEachChild((function(a,i){v(e,t,n.concat(i),a,r)}))}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 a=this,r=y(e,t,n),i=r.type,o=r.payload,s=(r.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,a.state)})))},p.prototype.dispatch=function(e,t){var n=this,a=y(e,t),r=a.type,i=a.payload,o={type:r,payload:i},s=this._actions[r];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 a=this;return this._watcherVM.$watch((function(){return e(a.state,a.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 a=t.key,r=t.val;n[a]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var a=C(this.$store,"mapState",e);if(!a)return;t=a.context.state,n=a.context.getters}return"function"==typeof r?r.call(this,t,n):t[r]},n[a].vuex=!0})),n})),x=S((function(e,t){var n={};return M(t).forEach((function(t){var a=t.key,r=t.val;n[a]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=this.$store.commit;if(e){var i=C(this.$store,"mapMutations",e);if(!i)return;a=i.context.commit}return"function"==typeof r?r.apply(this,[a].concat(t)):a.apply(this.$store,[r].concat(t))}})),n})),k=S((function(e,t){var n={};return M(t).forEach((function(t){var a=t.key,r=t.val;r=e+r,n[a]=function(){if(!e||C(this.$store,"mapGetters",e))return this.$store.getters[r]},n[a].vuex=!0})),n})),D=S((function(e,t){var n={};return M(t).forEach((function(t){var a=t.key,r=t.val;n[a]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var a=this.$store.dispatch;if(e){var i=C(this.$store,"mapActions",e);if(!i)return;a=i.context.dispatch}return"function"==typeof r?r.apply(this,[a].concat(t)):a.apply(this.$store,[r].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 a=n?e.groupCollapsed:e.group;try{a.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",a=t-e.toString().length,new Array(a+1).join(n)+e;var n,a}var j={Store:p,install:b,version:"3.6.0",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 a=e.transformer;void 0===a&&(a=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=r(e.state);void 0!==u&&(l&&e.subscribe((function(e,o){var s=r(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",a(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",a(s)),T(u)}d=s})),c&&e.subscribeAction((function(e,n){if(o(e,n)){var a=O(),r=s(e),i="action "+e.type+a;L(u,i,t),u.log("%c action","color: #03A9F4; font-weight: bold",r),T(u)}})))}}};e.exports=j},6564:(e,t,n)=>{"use strict";n.d(t,{Se:()=>c,nv:()=>u});var a=n(7968);const{Store:r,install:i,version:o,mapState:s,mapMutations:l,mapGetters:c,mapActions:u,createNamespacedHelpers:d,createLogger:p}=a}},t={};function n(a){if(t[a])return t[a].exports;var r=t[a]={id:a,loaded:!1,exports:{}};return e[a].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=e,n.x=e=>{},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},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=[[5375],[284]],a=e=>{},r=(r,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),r&&r(i);m.length;)m.shift()();return d&&t.push.apply(t,d),a()},i=self.webpackChunk=self.webpackChunk||[];function o(){for(var a,r=0;r<t.length;r++){for(var i=t[r],o=!0,s=1;s<i.length;s++){var l=i[s];0!==e[l]&&(o=!1)}o&&(t.splice(r--,1),a=n(n.s=i[0]))}return 0===t.length&&(n.x(),n.x=e=>{}),a}i.forEach(r.bind(null,0)),i.push=r.bind(null,i.push.bind(i));var s=n.x;n.x=()=>(n.x=s||(e=>{}),(a=o)())})(),n.x()})();